@bondsports/types 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +15 -15
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
2
|
-
import { Stripe } from
|
|
3
|
-
import moment from
|
|
4
|
-
export { TypesProvider } from
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Stripe } from "stripe";
|
|
3
|
+
import moment from "moment";
|
|
4
|
+
export { TypesProvider } from "./provider";
|
|
5
5
|
export declare class BasicActivityTimesDto {
|
|
6
6
|
dayOfWeek: number;
|
|
7
7
|
close: string;
|
|
@@ -668,7 +668,7 @@ export declare class MoveParticipantDto {
|
|
|
668
668
|
userId: number;
|
|
669
669
|
oldProductId: number;
|
|
670
670
|
newProductId: number;
|
|
671
|
-
moveType:
|
|
671
|
+
moveType: "session" | "segment";
|
|
672
672
|
resourceId: number;
|
|
673
673
|
invoiceId: number;
|
|
674
674
|
}
|
|
@@ -846,7 +846,7 @@ export declare class GetExtraProductDataDto {
|
|
|
846
846
|
includeArchived?: boolean;
|
|
847
847
|
}
|
|
848
848
|
export declare class GetBySessionType {
|
|
849
|
-
sessionType:
|
|
849
|
+
sessionType: "event" | "segment";
|
|
850
850
|
}
|
|
851
851
|
export declare class CreateSubcategoryDto {
|
|
852
852
|
productType: ProductTypesEnum;
|
|
@@ -3247,7 +3247,7 @@ export interface ISessionsLandingPage {
|
|
|
3247
3247
|
lateRegistrationStartDate?: Date;
|
|
3248
3248
|
lateRegistrationEndDate?: Date;
|
|
3249
3249
|
attendeeCount?: number;
|
|
3250
|
-
segmentsOrEvents:
|
|
3250
|
+
segmentsOrEvents: "segment" | "event";
|
|
3251
3251
|
}
|
|
3252
3252
|
export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
|
|
3253
3253
|
hasRequiredMembership: boolean;
|
|
@@ -3374,8 +3374,8 @@ export declare class PunchPassDto {
|
|
|
3374
3374
|
export declare class ImportedSlotProductDto {
|
|
3375
3375
|
slotID?: string;
|
|
3376
3376
|
name?: string;
|
|
3377
|
-
pricingType?:
|
|
3378
|
-
appliesTo?:
|
|
3377
|
+
pricingType?: "Hourly" | "Flat";
|
|
3378
|
+
appliesTo?: "slot" | "addon" | "reservation";
|
|
3379
3379
|
price?: string;
|
|
3380
3380
|
minutes?: string;
|
|
3381
3381
|
quantity: string;
|
|
@@ -3690,7 +3690,7 @@ export declare class PaymentDataDto {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
export declare class SendReceiptDataDto {
|
|
3692
3692
|
paymentId: number;
|
|
3693
|
-
deliveryMethod:
|
|
3693
|
+
deliveryMethod: "email" | "sms";
|
|
3694
3694
|
sendToAddress?: string;
|
|
3695
3695
|
}
|
|
3696
3696
|
export declare class PaymentPlanSchduleDto {
|
|
@@ -3891,7 +3891,7 @@ export declare class LineItemDto {
|
|
|
3891
3891
|
unitPrice?: number;
|
|
3892
3892
|
quantity: number;
|
|
3893
3893
|
resources?: PurchasedResourceDto[];
|
|
3894
|
-
relationType?:
|
|
3894
|
+
relationType?: "reservation-addon" | "slots" | "slot_addons";
|
|
3895
3895
|
unitPriceWithTax?: number;
|
|
3896
3896
|
unitTaxPrice?: number;
|
|
3897
3897
|
parentOrdinal?: number;
|
|
@@ -4358,7 +4358,7 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
|
4358
4358
|
conflicts?: Slot[];
|
|
4359
4359
|
}
|
|
4360
4360
|
export declare type TSlotAndType = {
|
|
4361
|
-
type:
|
|
4361
|
+
type: "slots" | "slot_addons";
|
|
4362
4362
|
slotsForProduct: {
|
|
4363
4363
|
[productId: number]: {
|
|
4364
4364
|
product: Product;
|
|
@@ -4367,7 +4367,7 @@ export declare type TSlotAndType = {
|
|
|
4367
4367
|
};
|
|
4368
4368
|
};
|
|
4369
4369
|
export interface ILineItemResource {
|
|
4370
|
-
type:
|
|
4370
|
+
type: "segments" | "series" | "slots" | "reservation_addons" | "slot_addons";
|
|
4371
4371
|
values: TResource[];
|
|
4372
4372
|
}
|
|
4373
4373
|
export declare type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
|
|
@@ -4497,8 +4497,8 @@ export interface CalendarSlotCard extends Slot {
|
|
|
4497
4497
|
totalSlotsInSeries?: number;
|
|
4498
4498
|
slotIndexInSeries?: number;
|
|
4499
4499
|
}
|
|
4500
|
-
declare type IPartialInvoice = Pick<Invoice,
|
|
4501
|
-
export declare type IPartialPayment = Pick<Payment,
|
|
4500
|
+
declare type IPartialInvoice = Pick<Invoice, "id" | "createdAt" | "price" | "paymentStatus" | "paidAmount">;
|
|
4501
|
+
export declare type IPartialPayment = Pick<Payment, "id" | "createdAt" | "price" | "paymentStatus" | "paymentType" | "ccBrand" | "ccLast4">;
|
|
4502
4502
|
export interface IInvoice extends IPartialInvoice {
|
|
4503
4503
|
lineItemsCount: number;
|
|
4504
4504
|
}
|