@bondsports/types 0.0.74 → 0.0.75
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/build/index.d.ts +349 -81
- package/build/index.es.js.map +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1246,6 +1246,12 @@ export declare class CustomerCreditTransaction extends OrganizationConnectionBas
|
|
|
1246
1246
|
order: Order;
|
|
1247
1247
|
invoice: Invoice;
|
|
1248
1248
|
}
|
|
1249
|
+
export declare class CustomerNote extends OrganizationConnectionBaseEntity {
|
|
1250
|
+
customerId?: number;
|
|
1251
|
+
description: string;
|
|
1252
|
+
pinToTop?: boolean;
|
|
1253
|
+
customer: Customer;
|
|
1254
|
+
}
|
|
1249
1255
|
export declare class Division extends BondBaseEntity {
|
|
1250
1256
|
name: string;
|
|
1251
1257
|
ordinal?: number;
|
|
@@ -1260,12 +1266,6 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
|
|
|
1260
1266
|
phoneNumber: string | null;
|
|
1261
1267
|
customer: Customer;
|
|
1262
1268
|
}
|
|
1263
|
-
export declare class CustomerNote extends OrganizationConnectionBaseEntity {
|
|
1264
|
-
customerId?: number;
|
|
1265
|
-
description: string;
|
|
1266
|
-
pinToTop?: boolean;
|
|
1267
|
-
customer: Customer;
|
|
1268
|
-
}
|
|
1269
1269
|
export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
|
|
1270
1270
|
name: string | null;
|
|
1271
1271
|
}
|
|
@@ -2254,6 +2254,15 @@ export declare class Team extends BondBaseEntity {
|
|
|
2254
2254
|
gender: number | null;
|
|
2255
2255
|
questionnaireId: number | null;
|
|
2256
2256
|
}
|
|
2257
|
+
export declare class TeamInvite extends BondBaseEntity {
|
|
2258
|
+
email: string;
|
|
2259
|
+
teamId: number;
|
|
2260
|
+
invitedUserId?: number;
|
|
2261
|
+
userCreatorId: number;
|
|
2262
|
+
token: string;
|
|
2263
|
+
tokenExpirationDate: Date;
|
|
2264
|
+
isUsed: boolean;
|
|
2265
|
+
}
|
|
2257
2266
|
export declare class TeamMember extends BondBaseEntity {
|
|
2258
2267
|
teamId: number | null;
|
|
2259
2268
|
userId: number | null;
|
|
@@ -2302,15 +2311,6 @@ export declare class User extends BondBaseEntity {
|
|
|
2302
2311
|
orderNotes: OrderNote[];
|
|
2303
2312
|
invoiceNotes: InvoiceNote[];
|
|
2304
2313
|
}
|
|
2305
|
-
export declare class TeamInvite extends BondBaseEntity {
|
|
2306
|
-
email: string;
|
|
2307
|
-
teamId: number;
|
|
2308
|
-
invitedUserId?: number;
|
|
2309
|
-
userCreatorId: number;
|
|
2310
|
-
token: string;
|
|
2311
|
-
tokenExpirationDate: Date;
|
|
2312
|
-
isUsed: boolean;
|
|
2313
|
-
}
|
|
2314
2314
|
export declare class UserAuthorizations extends BondBaseEntity {
|
|
2315
2315
|
entityId: number | null;
|
|
2316
2316
|
userId: number | null;
|
|
@@ -3240,6 +3240,20 @@ export declare class ColumnNumericTransformer {
|
|
|
3240
3240
|
from(data: string): number;
|
|
3241
3241
|
}
|
|
3242
3242
|
export declare function convertToNumber(data: string): number;
|
|
3243
|
+
export declare class AddImportedCustomerDto extends AddEditCustomerDto {
|
|
3244
|
+
name?: string;
|
|
3245
|
+
genderStr?: string;
|
|
3246
|
+
parentID?: string;
|
|
3247
|
+
partnerID?: string;
|
|
3248
|
+
membershipName?: string;
|
|
3249
|
+
membershipExpDate?: string;
|
|
3250
|
+
membershipCreationDate?: string;
|
|
3251
|
+
bondMembershipID?: number;
|
|
3252
|
+
}
|
|
3253
|
+
export declare class AddFamilyDto {
|
|
3254
|
+
parents: AddImportedCustomerDto[];
|
|
3255
|
+
children: AddImportedCustomerDto[];
|
|
3256
|
+
}
|
|
3243
3257
|
export declare enum ImportPaymentTypeEnum {
|
|
3244
3258
|
CREDIT_CARD = "card",
|
|
3245
3259
|
ACH = "ach",
|
|
@@ -3275,20 +3289,6 @@ export declare class ImportedPaymentDto {
|
|
|
3275
3289
|
date: string;
|
|
3276
3290
|
time: string;
|
|
3277
3291
|
}
|
|
3278
|
-
export declare class AddImportedCustomerDto extends AddEditCustomerDto {
|
|
3279
|
-
name?: string;
|
|
3280
|
-
genderStr?: string;
|
|
3281
|
-
parentID?: string;
|
|
3282
|
-
partnerID?: string;
|
|
3283
|
-
membershipName?: string;
|
|
3284
|
-
membershipExpDate?: string;
|
|
3285
|
-
membershipCreationDate?: string;
|
|
3286
|
-
bondMembershipID?: number;
|
|
3287
|
-
}
|
|
3288
|
-
export declare class AddFamilyDto {
|
|
3289
|
-
parents: AddImportedCustomerDto[];
|
|
3290
|
-
children: AddImportedCustomerDto[];
|
|
3291
|
-
}
|
|
3292
3292
|
export declare class ProductIdsDto {
|
|
3293
3293
|
productIds?: number[];
|
|
3294
3294
|
}
|
|
@@ -3305,19 +3305,6 @@ export declare class PunchPassDto {
|
|
|
3305
3305
|
BondSessionID: number;
|
|
3306
3306
|
ProductID: number;
|
|
3307
3307
|
}
|
|
3308
|
-
export declare class GameSlots extends BondBaseEntity {
|
|
3309
|
-
entityType: string;
|
|
3310
|
-
entityId: number;
|
|
3311
|
-
}
|
|
3312
|
-
export declare class MatchParticipants extends BondBaseEntity {
|
|
3313
|
-
matchId: number | null;
|
|
3314
|
-
ordinal: number | null;
|
|
3315
|
-
outcomeOrdinal: number | null;
|
|
3316
|
-
resultMetaData: any | null;
|
|
3317
|
-
points: number | null;
|
|
3318
|
-
score: number | null;
|
|
3319
|
-
gameSlotId: number | null;
|
|
3320
|
-
}
|
|
3321
3308
|
export declare class ImportedSlotProductDto {
|
|
3322
3309
|
slotID?: string;
|
|
3323
3310
|
name?: string;
|
|
@@ -3369,6 +3356,19 @@ export declare class ImportedReservationDto {
|
|
|
3369
3356
|
slots?: ImportedSlotDto[];
|
|
3370
3357
|
addons?: ImportedSlotProductDto[];
|
|
3371
3358
|
}
|
|
3359
|
+
export declare class GameSlots extends BondBaseEntity {
|
|
3360
|
+
entityType: string;
|
|
3361
|
+
entityId: number;
|
|
3362
|
+
}
|
|
3363
|
+
export declare class MatchParticipants extends BondBaseEntity {
|
|
3364
|
+
matchId: number | null;
|
|
3365
|
+
ordinal: number | null;
|
|
3366
|
+
outcomeOrdinal: number | null;
|
|
3367
|
+
resultMetaData: any | null;
|
|
3368
|
+
points: number | null;
|
|
3369
|
+
score: number | null;
|
|
3370
|
+
gameSlotId: number | null;
|
|
3371
|
+
}
|
|
3372
3372
|
export declare class Matches extends BondBaseEntity {
|
|
3373
3373
|
eventId: number | null;
|
|
3374
3374
|
status: number | null;
|
|
@@ -3396,6 +3396,27 @@ export declare class Lock extends BondBaseEntity {
|
|
|
3396
3396
|
name: string;
|
|
3397
3397
|
locked?: Date;
|
|
3398
3398
|
}
|
|
3399
|
+
export interface ValidatedMonthAndDay {
|
|
3400
|
+
valid: boolean;
|
|
3401
|
+
month?: number;
|
|
3402
|
+
day?: number;
|
|
3403
|
+
}
|
|
3404
|
+
export interface ValidationReason {
|
|
3405
|
+
valid: boolean;
|
|
3406
|
+
reason?: string;
|
|
3407
|
+
}
|
|
3408
|
+
export interface PaymentStatus {
|
|
3409
|
+
parentId: number;
|
|
3410
|
+
paymentStatus: ReservationPaymentStatusEnum;
|
|
3411
|
+
approvalStatus?: ReservationStatusEnum;
|
|
3412
|
+
id?: number;
|
|
3413
|
+
}
|
|
3414
|
+
export interface PaymentStatusesDict {
|
|
3415
|
+
[id: number]: PaymentStatus[];
|
|
3416
|
+
}
|
|
3417
|
+
export interface PaymentStatusDict {
|
|
3418
|
+
[id: number]: ReservationPaymentStatusEnum;
|
|
3419
|
+
}
|
|
3399
3420
|
export declare class CreateMonitorConfigDto {
|
|
3400
3421
|
facilityId: number;
|
|
3401
3422
|
name: string;
|
|
@@ -3471,6 +3492,10 @@ export declare class OrganizationBranding extends OrganizationConnectionBaseEnti
|
|
|
3471
3492
|
export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
|
|
3472
3493
|
mainAdminUserId?: number;
|
|
3473
3494
|
}
|
|
3495
|
+
export declare class OrganizationUsers extends BondBaseEntity {
|
|
3496
|
+
organisationId: number | null;
|
|
3497
|
+
userId: number | null;
|
|
3498
|
+
}
|
|
3474
3499
|
export declare class CustomerIdDto {
|
|
3475
3500
|
customerId: number;
|
|
3476
3501
|
}
|
|
@@ -3588,16 +3613,6 @@ export declare class SendRequestDto {
|
|
|
3588
3613
|
sendToEmail: string;
|
|
3589
3614
|
memo?: string;
|
|
3590
3615
|
}
|
|
3591
|
-
export declare class VoidDto {
|
|
3592
|
-
lineItems: VoidLineItemDto[];
|
|
3593
|
-
meta?: RevertMetaDto;
|
|
3594
|
-
}
|
|
3595
|
-
export declare class VoidLineItemDto {
|
|
3596
|
-
id: number;
|
|
3597
|
-
quantity?: number;
|
|
3598
|
-
isEdit?: boolean;
|
|
3599
|
-
amount?: number;
|
|
3600
|
-
}
|
|
3601
3616
|
export declare class RefundDto {
|
|
3602
3617
|
orderId: number;
|
|
3603
3618
|
lineItems: RefundLineItemAmountDto[];
|
|
@@ -3620,9 +3635,54 @@ export declare class RefundLineItemAmountDto {
|
|
|
3620
3635
|
id: number;
|
|
3621
3636
|
refundAmount: number;
|
|
3622
3637
|
}
|
|
3623
|
-
export declare class
|
|
3624
|
-
|
|
3625
|
-
|
|
3638
|
+
export declare class VoidDto {
|
|
3639
|
+
lineItems: VoidLineItemDto[];
|
|
3640
|
+
meta?: RevertMetaDto;
|
|
3641
|
+
}
|
|
3642
|
+
export declare class VoidLineItemDto {
|
|
3643
|
+
id: number;
|
|
3644
|
+
quantity?: number;
|
|
3645
|
+
isEdit?: boolean;
|
|
3646
|
+
amount?: number;
|
|
3647
|
+
}
|
|
3648
|
+
export interface PaymentResult {
|
|
3649
|
+
paymentMethodId: string;
|
|
3650
|
+
paymentMethodType: PaymentMethodTypeEnum;
|
|
3651
|
+
amount: number;
|
|
3652
|
+
receiptId?: number;
|
|
3653
|
+
paymentMethod4Digits?: string;
|
|
3654
|
+
errorMessage?: string;
|
|
3655
|
+
wasSuccessful: boolean;
|
|
3656
|
+
}
|
|
3657
|
+
export interface PaymentsResults {
|
|
3658
|
+
success: PaymentResult[];
|
|
3659
|
+
failed: PaymentResult[];
|
|
3660
|
+
}
|
|
3661
|
+
export interface OrderPaymentSum {
|
|
3662
|
+
priceSum: number;
|
|
3663
|
+
paidSum: number;
|
|
3664
|
+
}
|
|
3665
|
+
export interface ExtendedLineItems {
|
|
3666
|
+
memberships: LineItems[];
|
|
3667
|
+
programs: LineItems[];
|
|
3668
|
+
leagues: LineItems[];
|
|
3669
|
+
rentals: LineItems[];
|
|
3670
|
+
products: LineItems[];
|
|
3671
|
+
events: LineItems[];
|
|
3672
|
+
}
|
|
3673
|
+
export declare class FindInvoices extends ByPaymentFilter {
|
|
3674
|
+
id?: number;
|
|
3675
|
+
months?: string;
|
|
3676
|
+
}
|
|
3677
|
+
export interface RefundResult extends PaymentsResults {
|
|
3678
|
+
successfulLineItems: RefundLineItemAmountDto[];
|
|
3679
|
+
failedLineItems: RefundLineItemAmountDto[];
|
|
3680
|
+
order?: Order;
|
|
3681
|
+
}
|
|
3682
|
+
export interface RefundResultWithLineItemsDict extends PaymentsResults {
|
|
3683
|
+
successfulLineItems: Map<number, RefundLineItemAmountDto>;
|
|
3684
|
+
failedLineItems: Map<number, RefundLineItemAmountDto>;
|
|
3685
|
+
totalAmountProcessed: number;
|
|
3626
3686
|
}
|
|
3627
3687
|
export declare class LineItemDto {
|
|
3628
3688
|
id?: number;
|
|
@@ -3657,14 +3717,6 @@ export declare class MaintenanceDto {
|
|
|
3657
3717
|
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
|
3658
3718
|
maintenanceTiming: MaintenanceTimingEnum;
|
|
3659
3719
|
}
|
|
3660
|
-
export declare class PurchasedResourceDto {
|
|
3661
|
-
resourceId?: number;
|
|
3662
|
-
resourceType: ResourceNameTypeEnum;
|
|
3663
|
-
startDate?: string;
|
|
3664
|
-
startTime?: string;
|
|
3665
|
-
endDate?: string;
|
|
3666
|
-
endTime?: string;
|
|
3667
|
-
}
|
|
3668
3720
|
export declare class OrderDto {
|
|
3669
3721
|
orderId?: string | null;
|
|
3670
3722
|
organizationId: number;
|
|
@@ -3706,6 +3758,14 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
|
3706
3758
|
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
|
3707
3759
|
segments: SegmentDto[];
|
|
3708
3760
|
}
|
|
3761
|
+
export declare class PurchasedResourceDto {
|
|
3762
|
+
resourceId?: number;
|
|
3763
|
+
resourceType: ResourceNameTypeEnum;
|
|
3764
|
+
startDate?: string;
|
|
3765
|
+
startTime?: string;
|
|
3766
|
+
endDate?: string;
|
|
3767
|
+
endTime?: string;
|
|
3768
|
+
}
|
|
3709
3769
|
export declare class ReservationDto {
|
|
3710
3770
|
id?: number;
|
|
3711
3771
|
organizationId?: number;
|
|
@@ -3936,24 +3996,6 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
|
|
|
3936
3996
|
slotDurationType: SlotDurationTypeEnum;
|
|
3937
3997
|
addonsIds?: number[];
|
|
3938
3998
|
}
|
|
3939
|
-
export declare class Addon extends OrganizationConnectionBaseEntity {
|
|
3940
|
-
parentId: number;
|
|
3941
|
-
parentType: AddonParentTypeEnum;
|
|
3942
|
-
productId: number;
|
|
3943
|
-
product?: Product;
|
|
3944
|
-
quantity: number;
|
|
3945
|
-
unitPrice: number;
|
|
3946
|
-
totalPrice: number;
|
|
3947
|
-
approvalStatus: ReservationStatusEnum;
|
|
3948
|
-
paymentStatus: ReservationPaymentStatusEnum;
|
|
3949
|
-
level?: ProductPackageLevelEnum;
|
|
3950
|
-
resourceId?: number;
|
|
3951
|
-
resource?: Resource;
|
|
3952
|
-
orderId?: number;
|
|
3953
|
-
order?: Order;
|
|
3954
|
-
productUserId?: number;
|
|
3955
|
-
productUser?: ProductsUsers;
|
|
3956
|
-
}
|
|
3957
3999
|
declare class AnswerDto {
|
|
3958
4000
|
questionId: number;
|
|
3959
4001
|
value: any;
|
|
@@ -3991,6 +4033,24 @@ export declare class BookingV1Dto {
|
|
|
3991
4033
|
cashPayment: boolean;
|
|
3992
4034
|
requestOnly: boolean;
|
|
3993
4035
|
}
|
|
4036
|
+
export declare class Addon extends OrganizationConnectionBaseEntity {
|
|
4037
|
+
parentId: number;
|
|
4038
|
+
parentType: AddonParentTypeEnum;
|
|
4039
|
+
productId: number;
|
|
4040
|
+
product?: Product;
|
|
4041
|
+
quantity: number;
|
|
4042
|
+
unitPrice: number;
|
|
4043
|
+
totalPrice: number;
|
|
4044
|
+
approvalStatus: ReservationStatusEnum;
|
|
4045
|
+
paymentStatus: ReservationPaymentStatusEnum;
|
|
4046
|
+
level?: ProductPackageLevelEnum;
|
|
4047
|
+
resourceId?: number;
|
|
4048
|
+
resource?: Resource;
|
|
4049
|
+
orderId?: number;
|
|
4050
|
+
order?: Order;
|
|
4051
|
+
productUserId?: number;
|
|
4052
|
+
productUser?: ProductsUsers;
|
|
4053
|
+
}
|
|
3994
4054
|
export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
|
|
3995
4055
|
deletedAt?: Date;
|
|
3996
4056
|
reservationId: number;
|
|
@@ -4136,6 +4196,214 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
|
4136
4196
|
changeLineItems?: LineItems[];
|
|
4137
4197
|
updatedLineItem?: LineItems;
|
|
4138
4198
|
}
|
|
4199
|
+
export declare type TSlotAndType = {
|
|
4200
|
+
type: 'slots' | 'slot_addons';
|
|
4201
|
+
slotsForProduct: {
|
|
4202
|
+
[productId: number]: {
|
|
4203
|
+
product: Product;
|
|
4204
|
+
slots: SlotDto[];
|
|
4205
|
+
};
|
|
4206
|
+
};
|
|
4207
|
+
};
|
|
4208
|
+
export interface ILineItemResource {
|
|
4209
|
+
type: 'addons' | 'segments' | 'series' | 'slots' | 'slot_addons';
|
|
4210
|
+
values: TResource[];
|
|
4211
|
+
}
|
|
4212
|
+
export declare type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | ProductPricesDto;
|
|
4213
|
+
export declare type TResource = Reservation | Segment | Series | Slot | Addon;
|
|
4214
|
+
export interface ReservationV1 {
|
|
4215
|
+
id: number;
|
|
4216
|
+
price: number;
|
|
4217
|
+
status: string;
|
|
4218
|
+
sentForClientDate?: string;
|
|
4219
|
+
sentForAdminDate?: string;
|
|
4220
|
+
name?: string;
|
|
4221
|
+
}
|
|
4222
|
+
export declare class SlotDateDto {
|
|
4223
|
+
startDate: moment.Moment;
|
|
4224
|
+
endDate: moment.Moment;
|
|
4225
|
+
}
|
|
4226
|
+
export interface IProductQuantity {
|
|
4227
|
+
productId: number;
|
|
4228
|
+
quantity?: number;
|
|
4229
|
+
unitPrice?: number;
|
|
4230
|
+
}
|
|
4231
|
+
export interface SlotsLineItemData extends BaseReservationItemLineItemData {
|
|
4232
|
+
slotIds: number[];
|
|
4233
|
+
}
|
|
4234
|
+
export interface AddonsLineItemData extends BaseReservationItemLineItemData {
|
|
4235
|
+
addonsIds: number[];
|
|
4236
|
+
}
|
|
4237
|
+
export declare type ReservationItemLineItemData = BaseReservationItemLineItemData | SlotsLineItemData | AddonsLineItemData;
|
|
4238
|
+
export interface BaseReservationItemLineItemData {
|
|
4239
|
+
id: number;
|
|
4240
|
+
amount: number;
|
|
4241
|
+
amountPaid: number;
|
|
4242
|
+
quantity: number;
|
|
4243
|
+
canVoid: boolean;
|
|
4244
|
+
canRefund: boolean;
|
|
4245
|
+
isEdit?: boolean;
|
|
4246
|
+
}
|
|
4247
|
+
export interface IRemoveSlotsFinancialData {
|
|
4248
|
+
paymentMethods: IPaymentMethodToFundLeft[];
|
|
4249
|
+
lineItems: SlotsLineItemData[];
|
|
4250
|
+
nextFinancialStep: FinancialStepEnum;
|
|
4251
|
+
}
|
|
4252
|
+
export interface IRemoveAddonsFinancialData {
|
|
4253
|
+
paymentMethods: IPaymentMethodToFundLeft[];
|
|
4254
|
+
lineItems: AddonsLineItemData[];
|
|
4255
|
+
nextFinancialStep: FinancialStepEnum;
|
|
4256
|
+
}
|
|
4257
|
+
export interface ReservationData {
|
|
4258
|
+
id: number;
|
|
4259
|
+
reservationName: string;
|
|
4260
|
+
customerId: number;
|
|
4261
|
+
customerFirstName: string;
|
|
4262
|
+
customerLastName: string;
|
|
4263
|
+
spaces: SpaceInReservation[];
|
|
4264
|
+
startDate: string;
|
|
4265
|
+
endDate: string;
|
|
4266
|
+
price: number;
|
|
4267
|
+
status: ReservationStatusEnum;
|
|
4268
|
+
paymentStatus: PaymentStatusEnum;
|
|
4269
|
+
frequencies: FrequencyInReservation[];
|
|
4270
|
+
reservationType: ReservationTypeEnum;
|
|
4271
|
+
}
|
|
4272
|
+
export interface SpaceInReservation {
|
|
4273
|
+
reservationId: number;
|
|
4274
|
+
spaceId: number;
|
|
4275
|
+
spaceName: string;
|
|
4276
|
+
}
|
|
4277
|
+
export interface FrequencyInReservation {
|
|
4278
|
+
reservationId: number;
|
|
4279
|
+
frequency?: string;
|
|
4280
|
+
repeatEvery?: number;
|
|
4281
|
+
repeatOn?: number[];
|
|
4282
|
+
repeatEndDate?: string;
|
|
4283
|
+
}
|
|
4284
|
+
export interface FindReservationsByOrganizationIdFilters extends PaginationQuery {
|
|
4285
|
+
resourcesIds?: string;
|
|
4286
|
+
datesRange?: {
|
|
4287
|
+
startDate: string;
|
|
4288
|
+
endDate: string;
|
|
4289
|
+
};
|
|
4290
|
+
approvalStatuses?: string[];
|
|
4291
|
+
paymentStatuses?: string[];
|
|
4292
|
+
customerName?: string;
|
|
4293
|
+
}
|
|
4294
|
+
export interface FindSlotsByFacilityIdFilters {
|
|
4295
|
+
startDate: string;
|
|
4296
|
+
endDate: string;
|
|
4297
|
+
limit: number;
|
|
4298
|
+
includeBlocking: boolean;
|
|
4299
|
+
onlyActiveSessions?: boolean;
|
|
4300
|
+
resourcesIds?: number[];
|
|
4301
|
+
resourcesTypes?: ResourceTypeEnum[];
|
|
4302
|
+
reservationStatuses?: ReservationStatusEnum[];
|
|
4303
|
+
}
|
|
4304
|
+
export interface ResourceSlots extends Resource {
|
|
4305
|
+
slots: Slot[];
|
|
4306
|
+
}
|
|
4307
|
+
export interface PriceFields {
|
|
4308
|
+
unitPrice: string;
|
|
4309
|
+
price: string;
|
|
4310
|
+
totalTax: string;
|
|
4311
|
+
quantity: string;
|
|
4312
|
+
isTaxInclusive: boolean;
|
|
4313
|
+
currency: string;
|
|
4314
|
+
}
|
|
4315
|
+
export interface LineItemPrice {
|
|
4316
|
+
unitPrice: number;
|
|
4317
|
+
unitTax: number;
|
|
4318
|
+
isTaxInclusive: boolean;
|
|
4319
|
+
unitPricePerHour: number;
|
|
4320
|
+
taxPerHour: number;
|
|
4321
|
+
quantity: number;
|
|
4322
|
+
currency: string;
|
|
4323
|
+
totalPrice: number;
|
|
4324
|
+
}
|
|
4325
|
+
export interface CalendarCardAddon extends ProductsUsers {
|
|
4326
|
+
price: LineItemPrice;
|
|
4327
|
+
}
|
|
4328
|
+
export interface CalendarSlotCard extends Slot {
|
|
4329
|
+
reservation: Reservation & {
|
|
4330
|
+
resources?: {
|
|
4331
|
+
id: number;
|
|
4332
|
+
name: string;
|
|
4333
|
+
}[];
|
|
4334
|
+
};
|
|
4335
|
+
addons: CalendarCardAddon[];
|
|
4336
|
+
invoice: Order;
|
|
4337
|
+
price: LineItemPrice;
|
|
4338
|
+
totalSlotsInSeries?: number;
|
|
4339
|
+
slotIndexInSeries?: number;
|
|
4340
|
+
}
|
|
4341
|
+
declare type IPartialInvoice = Pick<Order, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paidAmount'>;
|
|
4342
|
+
export declare type IPartialPayment = Pick<Invoice, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paymentType' | 'ccBrand' | 'ccLast4'>;
|
|
4343
|
+
export interface IInvoice extends IPartialInvoice {
|
|
4344
|
+
lineItemsCount: number;
|
|
4345
|
+
}
|
|
4346
|
+
export interface SingleReservation {
|
|
4347
|
+
id: number;
|
|
4348
|
+
name: string;
|
|
4349
|
+
organizationId: number;
|
|
4350
|
+
description: string;
|
|
4351
|
+
updatedAt: Date;
|
|
4352
|
+
privateNotes: string;
|
|
4353
|
+
publicNotes: string;
|
|
4354
|
+
approvalStatus: string;
|
|
4355
|
+
paymentStatus: PaymentStatusEnum;
|
|
4356
|
+
reservationType: ReservationTypeEnum;
|
|
4357
|
+
sports: number[];
|
|
4358
|
+
addonsProductUserIds: number[];
|
|
4359
|
+
facilityId?: number;
|
|
4360
|
+
customerId: number;
|
|
4361
|
+
customer?: Customer;
|
|
4362
|
+
invoices?: IInvoice[];
|
|
4363
|
+
payments?: IPartialPayment[];
|
|
4364
|
+
addons?: Addon[];
|
|
4365
|
+
answers?: Answer[];
|
|
4366
|
+
series: Series[];
|
|
4367
|
+
segments?: Segment[];
|
|
4368
|
+
}
|
|
4369
|
+
export interface UpdateReservationResult {
|
|
4370
|
+
reservation: Reservation;
|
|
4371
|
+
order?: Order;
|
|
4372
|
+
debug?: any;
|
|
4373
|
+
}
|
|
4374
|
+
export interface UpdateSlotPricesResult {
|
|
4375
|
+
reservation: ReservationDto;
|
|
4376
|
+
slots: SlotDto[];
|
|
4377
|
+
order: OrderDto;
|
|
4378
|
+
debug?: any;
|
|
4379
|
+
}
|
|
4380
|
+
export interface UpdateSlotsAddonsResult {
|
|
4381
|
+
slots: SlotDto[];
|
|
4382
|
+
order: OrderDto;
|
|
4383
|
+
debug?: any;
|
|
4384
|
+
}
|
|
4385
|
+
export interface ValidateEditSlotsResult {
|
|
4386
|
+
nextFinancialStep: FinancialStepEnum;
|
|
4387
|
+
slots: SlotDto[];
|
|
4388
|
+
paymentMethods?: IPaymentMethodToFundLeft[];
|
|
4389
|
+
refundMetadata?: EditSlotsRefundMetadata;
|
|
4390
|
+
originalInvoicePrice?: number;
|
|
4391
|
+
updatedInvoicePrice?: number;
|
|
4392
|
+
priceChange?: number;
|
|
4393
|
+
editData?: EditSlotsData;
|
|
4394
|
+
}
|
|
4395
|
+
export interface EditSlotsRefundMetadata {
|
|
4396
|
+
lineItems: SlotsLineItemData[];
|
|
4397
|
+
refundAmount: number;
|
|
4398
|
+
}
|
|
4399
|
+
export interface EditSlotsData {
|
|
4400
|
+
order?: Order;
|
|
4401
|
+
editSlotsLineItems?: SlotsLineItemData[];
|
|
4402
|
+
newLineItems?: LineItemDto[];
|
|
4403
|
+
}
|
|
4404
|
+
export interface EditSlotsResult extends UpdateReservationResult {
|
|
4405
|
+
refundResult?: RefundResult;
|
|
4406
|
+
}
|
|
4139
4407
|
export declare class ChangeRolePermissionsDto {
|
|
4140
4408
|
permissionIds: number[];
|
|
4141
4409
|
}
|