@bondsports/types 2.5.5 → 2.5.6
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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +2 -0
- package/dist/types/cart/types/consts/cart.consts.js +2 -0
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/consumer-activity/dto/consumer-activity.dto.d.ts +56 -0
- package/dist/types/consumer-activity/dto/consumer-activity.dto.js +30 -0
- package/dist/types/consumer-activity/dto/consumer-activity.dto.js.map +1 -0
- package/dist/types/consumer-activity/dto/index.d.ts +1 -0
- package/dist/types/consumer-activity/dto/index.js +18 -0
- package/dist/types/consumer-activity/dto/index.js.map +1 -0
- package/dist/types/consumer-activity/index.d.ts +2 -0
- package/dist/types/consumer-activity/index.js +19 -0
- package/dist/types/consumer-activity/index.js.map +1 -0
- package/dist/types/consumer-activity/types/consts/consumer-activity.consts.d.ts +8 -0
- package/dist/types/consumer-activity/types/consts/consumer-activity.consts.js +21 -0
- package/dist/types/consumer-activity/types/consts/consumer-activity.consts.js.map +1 -0
- package/dist/types/consumer-activity/types/consts/index.d.ts +1 -0
- package/dist/types/consumer-activity/types/consts/index.js +18 -0
- package/dist/types/consumer-activity/types/consts/index.js.map +1 -0
- package/dist/types/consumer-activity/types/enums/consumer-activity.enums.d.ts +13 -0
- package/dist/types/consumer-activity/types/enums/consumer-activity.enums.js +20 -0
- package/dist/types/consumer-activity/types/enums/consumer-activity.enums.js.map +1 -0
- package/dist/types/consumer-activity/types/enums/index.d.ts +1 -0
- package/dist/types/consumer-activity/types/enums/index.js +18 -0
- package/dist/types/consumer-activity/types/enums/index.js.map +1 -0
- package/dist/types/consumer-activity/types/index.d.ts +3 -0
- package/dist/types/consumer-activity/types/index.js +20 -0
- package/dist/types/consumer-activity/types/index.js.map +1 -0
- package/dist/types/consumer-activity/types/interfaces/consumer-activity.interfaces.d.ts +84 -0
- package/dist/types/consumer-activity/types/interfaces/consumer-activity.interfaces.js +3 -0
- package/dist/types/consumer-activity/types/interfaces/consumer-activity.interfaces.js.map +1 -0
- package/dist/types/consumer-activity/types/interfaces/index.d.ts +1 -0
- package/dist/types/consumer-activity/types/interfaces/index.js +18 -0
- package/dist/types/consumer-activity/types/interfaces/index.js.map +1 -0
- package/dist/types/customers/dto/add-family-member.dto.d.ts +3 -0
- package/dist/types/customers/dto/add-family-member.dto.js.map +1 -1
- package/dist/types/customers/dto/create-family.dto.d.ts +5 -0
- package/dist/types/customers/dto/create-family.dto.js.map +1 -1
- package/dist/types/customers/dto/customer-response.dto.d.ts +4 -2
- package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
- package/dist/types/customers/dto/customer.dto.d.ts +3 -1
- package/dist/types/customers/dto/customer.dto.js.map +1 -1
- package/dist/types/customers/dto/customers-public.dto.d.ts +2 -2
- package/dist/types/customers/dto/family-customer.dto.d.ts +5 -4
- package/dist/types/customers/dto/family-customer.dto.js +3 -3
- package/dist/types/customers/dto/family-customer.dto.js.map +1 -1
- package/dist/types/customers/dto/get-customers-list.dto.d.ts +2 -1
- package/dist/types/customers/dto/get-customers-list.dto.js.map +1 -1
- package/dist/types/customers/dto/index.d.ts +1 -0
- package/dist/types/customers/dto/index.js +1 -0
- package/dist/types/customers/dto/index.js.map +1 -1
- package/dist/types/customers/dto/organization-customer.dto.d.ts +2 -1
- package/dist/types/customers/dto/organization-customer.dto.js.map +1 -1
- package/dist/types/customers/dto/set-family-billing-user.dto.d.ts +2 -1
- package/dist/types/customers/dto/set-family-billing-user.dto.js.map +1 -1
- package/dist/types/customers/dto/switch-group-account-type.dto.d.ts +4 -0
- package/dist/types/customers/dto/switch-group-account-type.dto.js +7 -0
- package/dist/types/customers/dto/switch-group-account-type.dto.js.map +1 -0
- package/dist/types/customers/types/consts/customers.consts.d.ts +1 -0
- package/dist/types/customers/types/consts/customers.consts.js +2 -1
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/enums.d.ts +18 -3
- package/dist/types/customers/types/enums.js +23 -7
- package/dist/types/customers/types/enums.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +18 -3
- package/dist/types/customers-merge/enums/customer-merge-error-codes.enum.d.ts +1 -0
- package/dist/types/customers-merge/enums/customer-merge-error-codes.enum.js +1 -0
- package/dist/types/customers-merge/enums/customer-merge-error-codes.enum.js.map +1 -1
- package/dist/types/dto/customer.dto.d.ts +2 -2
- package/dist/types/entity/Customer.d.ts +4 -2
- package/dist/types/entity/Customer.js.map +1 -1
- package/dist/types/entity/FamilyAccount.d.ts +5 -0
- package/dist/types/entity/FamilyAccount.js.map +1 -1
- package/dist/types/entity/UserInFamilyAccount.d.ts +3 -1
- package/dist/types/entity/UserInFamilyAccount.js.map +1 -1
- package/dist/types/familyAccount/dto/addFamilyMember.dto.d.ts +10 -1
- package/dist/types/familyAccount/dto/addFamilyMember.dto.js +4 -1
- package/dist/types/familyAccount/dto/addFamilyMember.dto.js.map +1 -1
- package/dist/types/familyAccount/dto/createFamilyAccount.dto.d.ts +3 -0
- package/dist/types/familyAccount/dto/createFamilyAccount.dto.js.map +1 -1
- package/dist/types/familyAccount/dto/familyWithMembers.dto.d.ts +4 -1
- package/dist/types/familyAccount/dto/familyWithMembers.dto.js.map +1 -1
- package/dist/types/familyAccount/dto/group-accounts-public.dto.d.ts +18 -0
- package/dist/types/familyAccount/dto/group-accounts-public.dto.js +18 -0
- package/dist/types/familyAccount/dto/group-accounts-public.dto.js.map +1 -0
- package/dist/types/familyAccount/dto/index.d.ts +3 -0
- package/dist/types/familyAccount/dto/index.js +3 -0
- package/dist/types/familyAccount/dto/index.js.map +1 -1
- package/dist/types/familyAccount/dto/manage-family-member.dto.d.ts +8 -0
- package/dist/types/familyAccount/dto/manage-family-member.dto.js +11 -0
- package/dist/types/familyAccount/dto/manage-family-member.dto.js.map +1 -0
- 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/invites/dto/create-invite.dto.d.ts +1 -1
- package/dist/types/invites/dto/invite.dto.d.ts +1 -1
- package/dist/types/invites/entities/invites.entity.d.ts +1 -1
- package/dist/types/membership/dto/eligible-members.dto.d.ts +2 -1
- package/dist/types/membership/dto/eligible-members.dto.js.map +1 -1
- package/dist/types/membership/dto/membership-member.dto.d.ts +9 -0
- package/dist/types/membership/dto/membership-member.dto.js +4 -1
- package/dist/types/membership/dto/membership-member.dto.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -1
- package/dist/types/notifications/dto/notification.blast.query.dto.d.ts +2 -2
- 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 +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/public-product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/public-product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/rental-product.dto.d.ts +5 -3
- package/dist/types/product-pricing/dto/rental-product.dto.js +5 -2
- package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/rental-punch-pass-product.dto.d.ts +7 -0
- package/dist/types/product-pricing/dto/rental-punch-pass-product.dto.js +8 -0
- package/dist/types/product-pricing/dto/rental-punch-pass-product.dto.js.map +1 -0
- package/dist/types/product-pricing/entities/product.entity.d.ts +2 -0
- package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +6 -6
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +21 -1
- package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +5 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +7 -0
- package/dist/types/programs/dto/program.dto.d.ts +10 -3
- package/dist/types/programs/dto/program.dto.js.map +1 -1
- package/dist/types/programs/types/enums/program.enums.d.ts +10 -0
- package/dist/types/programs/types/enums/program.enums.js +13 -1
- package/dist/types/programs/types/enums/program.enums.js.map +1 -1
- package/dist/types/programs/types/interfaces/program.interfaces.d.ts +6 -0
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +3 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/punch-pass/types/enums.d.ts +5 -0
- package/dist/types/punch-pass/types/enums.js +7 -1
- package/dist/types/punch-pass/types/enums.js.map +1 -1
- package/dist/types/punch-pass/types/interfaces.d.ts +10 -2
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +1 -1
- package/dist/types/questionnaires/types/consts/questionnaire-public.consts.d.ts +0 -1
- package/dist/types/questionnaires/types/consts/questionnaire-public.consts.js +1 -2
- package/dist/types/questionnaires/types/consts/questionnaire-public.consts.js.map +1 -1
- package/dist/types/react/EventRosterTemplate/event-roster.types.d.ts +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +4 -1
- package/dist/types/reservations/dto/reservation.dto.js +4 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +2 -0
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +1 -0
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/product.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/product.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/segment.classes.d.ts +2 -0
- package/dist/types/reservations/types/classes/segment.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +7 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +9 -2
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/enums/reservation.enums.d.ts +4 -2
- package/dist/types/reservations/types/enums/reservation.enums.js +2 -0
- package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
- package/dist/types/reservations/types/interfaces/segment.interfaces.d.ts +2 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +3 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
- package/dist/types/user/dto/user-public.dto.d.ts +9 -1
- package/dist/types/user/dto/user-public.dto.js +4 -1
- package/dist/types/user/dto/user-public.dto.js.map +1 -1
- package/dist/types/user/dto/user-settings.dto.d.ts +2 -2
- package/dist/types/user/entities/User.d.ts +7 -2
- package/dist/types/user/entities/User.js.map +1 -1
- package/dist/types/user/types/enums/user.enums.d.ts +2 -1
- package/dist/types/user/types/enums/user.enums.js +1 -0
- package/dist/types/user/types/enums/user.enums.js.map +1 -1
- package/dist/types/user/types/family.interfaces.d.ts +4 -0
- package/dist/types/user/types/user.consts.d.ts +2 -2
- package/dist/types/user/types/user.consts.js +7 -4
- package/dist/types/user/types/user.consts.js.map +1 -1
- package/package.json +1 -1
|
@@ -116,6 +116,6 @@ export interface IAnswersParentResource extends IResource {
|
|
|
116
116
|
answers?: UserAnswersDto[];
|
|
117
117
|
}
|
|
118
118
|
export interface IChargeCallbacks {
|
|
119
|
-
onBeforeCharge?: () => Promise<void>;
|
|
119
|
+
onBeforeCharge?: (invoice: Invoice) => Promise<void>;
|
|
120
120
|
onInvoiceReady?: (invoice: ChargeInvoiceResult) => Promise<void> | void;
|
|
121
121
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QUESTIONNAIRE_ERROR_CODES = void 0;
|
|
4
4
|
exports.QUESTIONNAIRE_ERROR_CODES = {
|
|
5
5
|
QUESTIONNAIRE_NOT_FOUND: 'QUESTIONNAIRE.QUESTIONNAIRE_NOT_FOUND',
|
|
6
6
|
QUESTIONNAIRE_GENERAL_ERROR: 'QUESTIONNAIRE.GENERAL_ERROR',
|
|
7
7
|
};
|
|
8
|
-
exports.DEFAULT_SIGNATURE_VALIDITY_DAYS = 365;
|
|
9
8
|
//# sourceMappingURL=questionnaire-public.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-public.consts.js","sourceRoot":"","sources":["../../../../../src/types/questionnaires/types/consts/questionnaire-public.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACxC,uBAAuB,EAAE,uCAAuC;IAChE,2BAA2B,EAAE,6BAA6B;CAC1D,CAAC
|
|
1
|
+
{"version":3,"file":"questionnaire-public.consts.js","sourceRoot":"","sources":["../../../../../src/types/questionnaires/types/consts/questionnaire-public.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACxC,uBAAuB,EAAE,uCAAuC;IAChE,2BAA2B,EAAE,6BAA6B;CAC1D,CAAC"}
|
|
@@ -10,10 +10,10 @@ export interface IEventRosterAttendee {
|
|
|
10
10
|
birthDate: string | null;
|
|
11
11
|
entryStatus: EntryStatusEnum | null;
|
|
12
12
|
firstName: string | null;
|
|
13
|
+
hasValidWaiver: boolean;
|
|
13
14
|
lastName: string | null;
|
|
14
15
|
leftPasses: number | null;
|
|
15
16
|
paymentStatus: PaymentStatusEnum | null;
|
|
16
|
-
signedWaiver: string | null;
|
|
17
17
|
teamName: string | null;
|
|
18
18
|
totalPasses: number | null;
|
|
19
19
|
}
|
|
@@ -2,7 +2,7 @@ import { BondDayOfWeekEnum } from '@bondsports/date-time';
|
|
|
2
2
|
import { SportsEnum } from '../../activities/types/activities.enums';
|
|
3
3
|
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
|
4
4
|
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
|
5
|
-
import { AnswerTemplateDataDto } from '../../dto/application.dto';
|
|
5
|
+
import { AnswerTemplateDataDto, QuestionAnswersDto } from '../../dto/application.dto';
|
|
6
6
|
import { CustomerDto } from '../../dto/customer.dto';
|
|
7
7
|
import { PaginationQuery, PaginationSearchQuery, SimpleResourceDto } from '../../dto/general.dto';
|
|
8
8
|
import { Invoice } from '../../entity/Invoice';
|
|
@@ -476,4 +476,7 @@ export declare class EditReservationItemsResultDto {
|
|
|
476
476
|
export declare class EditReservationAddonsDto extends EditAddonsDto {
|
|
477
477
|
refundMeta?: EditItemsRefundMetaDto;
|
|
478
478
|
}
|
|
479
|
+
export declare class ReservationRedemptionDto {
|
|
480
|
+
answers?: QuestionAnswersDto[];
|
|
481
|
+
}
|
|
479
482
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByRentalProductId = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.InvoiceReservationItemsDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.RemoveAddonsFinancialDataDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditItemsRefundMetaDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindByAddonIdsDto = exports.FindBySlotIdsDto = exports.DuplicateSlotDto = exports.GetFilterOptionsDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.ReservationTableOptionsDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.FindSlotsQueryParamsDto = exports.SlotsFilterDto = exports.FindAddonsQueryParamsDto = exports.SingleReservationIncludesDto = exports.CreateReservationCartDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.BaseReservationItemLineItemDataDto = exports.SingleReservationDto = exports.ReservationDto = exports.DuplicatedDetailsDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
|
4
|
-
exports.EditReservationAddonsDto = exports.EditReservationItemsResultDto = exports.EditSlotsDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = void 0;
|
|
4
|
+
exports.ReservationRedemptionDto = exports.EditReservationAddonsDto = exports.EditReservationItemsResultDto = exports.EditSlotsDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = void 0;
|
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
|
6
6
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
|
7
7
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
@@ -224,4 +224,7 @@ exports.EditReservationItemsResultDto = EditReservationItemsResultDto;
|
|
|
224
224
|
class EditReservationAddonsDto extends addon_dto_1.EditAddonsDto {
|
|
225
225
|
}
|
|
226
226
|
exports.EditReservationAddonsDto = EditReservationAddonsDto;
|
|
227
|
+
class ReservationRedemptionDto {
|
|
228
|
+
}
|
|
229
|
+
exports.ReservationRedemptionDto = ReservationRedemptionDto;
|
|
227
230
|
//# 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":";;;;AAQA,uDAAkG;AAGlG,+DAAmG;AAEnG,8EAA8E;AAS9E,kEAAwF;AAiDxF,2CAA0F;AAK1F,MAAM,uBAAuB,GAAG,IAAI,CAAC;AACrC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CA6BvD;AA7BD,wCA6BC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAkBvD;AAlBD,oDAkBC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;AAED,MAAM,qBAAsB,SAAQ,kCAAkC;CAErE;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAMhE;AAND,8DAMC;AAED,MAAa,yBAA0B,SAAQ,yBAAyB;CAIvE;AAJD,8DAIC;AAED,MAAa,mBAAoB,SAAQ,yBAA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Aa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,wBAAyB,SAAQ,yBAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
|
|
@@ -28,6 +28,7 @@ declare class BaseDraftSegmentDto extends BaseSegmentDto implements IBaseDraftSe
|
|
|
28
28
|
facilityId: number;
|
|
29
29
|
participantsIds?: number[];
|
|
30
30
|
productsIds?: number[];
|
|
31
|
+
userPunchPassId?: number;
|
|
31
32
|
}
|
|
32
33
|
export declare class CreateDraftSegmentDto extends BaseDraftSegmentDto implements ICreateDraftSegment {
|
|
33
34
|
series: CreateDraftSeriesDto[];
|
|
@@ -35,6 +36,7 @@ export declare class CreateDraftSegmentDto extends BaseDraftSegmentDto implement
|
|
|
35
36
|
}
|
|
36
37
|
export declare class DraftSegmentDto extends BaseDraftSegmentDto implements IDraftSegment {
|
|
37
38
|
id: string;
|
|
39
|
+
redeemQuantity?: number;
|
|
38
40
|
series: DraftSeriesDto[];
|
|
39
41
|
}
|
|
40
42
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AACA,8EAAqE;AAarE,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,6BAAU,CAAC,KAAK,CAAC;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAW7C;AAXD,gCAWC;AAED,MAAM,mBAAoB,SAAQ,cAAc;
|
|
1
|
+
{"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AACA,8EAAqE;AAarE,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,6BAAU,CAAC,KAAK,CAAC;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAW7C;AAXD,gCAWC;AAED,MAAM,mBAAoB,SAAQ,cAAc;CAY/C;AAED,MAAa,qBAAsB,SAAQ,mBAAmB;CAI7D;AAJD,sDAIC;AAED,MAAa,eAAgB,SAAQ,mBAAmB;CAMvD;AAND,0CAMC"}
|
|
@@ -24,6 +24,7 @@ export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
|
|
24
24
|
prices?: SlotProductPricesMetadataDto[];
|
|
25
25
|
entitlementGroupId?: number;
|
|
26
26
|
originalPrice?: number;
|
|
27
|
+
userPunchPassId?: number;
|
|
27
28
|
}
|
|
28
29
|
export declare class SlotProductPricesMetadataDto implements ISlotProductPricesMetadata {
|
|
29
30
|
priceId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAOA,8EAAoF;AAQpF,wEAU0C;AAa1C,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAOA,8EAAoF;AAQpF,wEAU0C;AAa1C,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,4BAA4B;CAYxC;AAZD,oEAYC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAwCvC;AAxCD,0BAwCC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA0CxD;AA1CD,gCA0CC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAkBhD;AAlBD,4CAkBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED,MAAa,WAAY,SAAQ,gBAAgB;CAUhD;AAVD,kCAUC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAkBvC;AAlBD,kCAkBC;AAED,MAAa,gBAAgB;CAsB5B;AAtBD,4CAsBC;AArBC,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CAAC,UAAU,EAE5B,qCAAiB,CAAC,WAAW,EAE7B,qCAAiB,CAAC,MAAM,EAExB,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,QAAQ,EAE1B,qCAAiB,CAAC,MAAM,EAExB,qCAAiB,CAAC,eAAe,EAEjC,qCAAiB,CAAC,cAAc,EAEhC,qCAAiB,CAAC,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC"}
|
|
@@ -20,6 +20,8 @@ export declare class DraftSegment implements IDraftSegment {
|
|
|
20
20
|
participantsNumber?: number;
|
|
21
21
|
participantsIds?: number[];
|
|
22
22
|
productsIds?: number[];
|
|
23
|
+
userPunchPassId?: number;
|
|
24
|
+
redeemQuantity?: number;
|
|
23
25
|
series: DraftSeries[];
|
|
24
26
|
addToSegmentId?: number;
|
|
25
27
|
addons?: IDraftAddon[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/segment.classes.ts"],"names":[],"mappings":";;;AASA,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"segment.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/segment.classes.ts"],"names":[],"mappings":";;;AASA,MAAa,YAAY;CAwCxB;AAxCD,oCAwCC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
|
|
@@ -58,6 +58,7 @@ export declare class DraftSlot implements IDraftSlot {
|
|
|
58
58
|
approvalStatus?: ReservationStatusEnum;
|
|
59
59
|
paymentStatus?: ReservationPaymentStatusEnum;
|
|
60
60
|
cartItemId?: string;
|
|
61
|
+
productsUserId?: number;
|
|
61
62
|
groupId?: string;
|
|
62
63
|
facility?: Facility;
|
|
63
64
|
owner?: Customer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAuBA,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAuBA,MAAa,SAAS;CAkHrB;AAlHD,8BAkHC;AAED,0CAA0C;AAC1C,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C"}
|
|
@@ -22,6 +22,7 @@ export declare const reservationTypeMapper: {
|
|
|
22
22
|
program: SlotTypeEnum;
|
|
23
23
|
internal: SlotTypeEnum;
|
|
24
24
|
rental: SlotTypeEnum;
|
|
25
|
+
punch_pass: SlotTypeEnum;
|
|
25
26
|
};
|
|
26
27
|
export declare const reservationStatusToEventStatus: {
|
|
27
28
|
Planned: EventStatusEnum;
|
|
@@ -39,3 +40,9 @@ export declare const BOOKING_STATUS_CHANGES_TO_NOTIFY: ReservationStatusEnum[];
|
|
|
39
40
|
* Used when duplicating / invoicing held reservations so DraftSlot.facilityId can be mapped.
|
|
40
41
|
*/
|
|
41
42
|
export declare const SLOT_FACILITY_RELATIONS: readonly string[];
|
|
43
|
+
export declare const RESERVATION_ERROR_CODES: {
|
|
44
|
+
readonly REDEEM_REQUIRES_CHECKOUT: "RESERVATION.REDEEM_REQUIRES_CHECKOUT";
|
|
45
|
+
readonly MIXED_SLOT_TYPE_EDIT: "RESERVATION.MIXED_SLOT_TYPE_EDIT";
|
|
46
|
+
readonly MIXED_SLOT_TYPE_REMOVE: "RESERVATION.MIXED_SLOT_TYPE_REMOVE";
|
|
47
|
+
readonly PASSES_WITHOUT_MATCHING_SLOTS: "RESERVATION.PASSES_WITHOUT_MATCHING_SLOTS";
|
|
48
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SLOT_FACILITY_RELATIONS = exports.BOOKING_STATUS_CHANGES_TO_NOTIFY = exports.RESERVATION_TYPES = exports.REJECTED_OR_CANCELLED_STATUSES = exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
|
3
|
+
exports.RESERVATION_ERROR_CODES = exports.SLOT_FACILITY_RELATIONS = exports.BOOKING_STATUS_CHANGES_TO_NOTIFY = exports.RESERVATION_TYPES = exports.REJECTED_OR_CANCELLED_STATUSES = exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
|
5
5
|
const reservation_enums_1 = require("../enums/reservation.enums");
|
|
6
6
|
exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
|
|
@@ -32,6 +32,7 @@ exports.reservationTypeMapper = {
|
|
|
32
32
|
[reservation_enums_1.ReservationTypeEnum.PROGRAM]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
|
33
33
|
[reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
|
34
34
|
[reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
|
|
35
|
+
[reservation_enums_1.ReservationTypeEnum.PUNCH_PASS]: reservation_enums_1.SlotTypeEnum.PUNCH_PASS,
|
|
35
36
|
};
|
|
36
37
|
exports.reservationStatusToEventStatus = {
|
|
37
38
|
[reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.EventStatusEnum.DRAFT,
|
|
@@ -45,7 +46,7 @@ exports.REJECTED_OR_CANCELLED_STATUSES = [
|
|
|
45
46
|
reservation_enums_1.ReservationStatusEnum.REJECTED,
|
|
46
47
|
reservation_enums_1.ReservationStatusEnum.CANCELED,
|
|
47
48
|
];
|
|
48
|
-
exports.RESERVATION_TYPES = [reservation_enums_1.ReservationTypeEnum.RENTAL, reservation_enums_1.ReservationTypeEnum.INTERNAL];
|
|
49
|
+
exports.RESERVATION_TYPES = [reservation_enums_1.ReservationTypeEnum.RENTAL, reservation_enums_1.ReservationTypeEnum.INTERNAL, reservation_enums_1.ReservationTypeEnum.PUNCH_PASS];
|
|
49
50
|
exports.BOOKING_STATUS_CHANGES_TO_NOTIFY = [
|
|
50
51
|
reservation_enums_1.ReservationStatusEnum.APPROVED,
|
|
51
52
|
reservation_enums_1.ReservationStatusEnum.REJECTED,
|
|
@@ -58,4 +59,10 @@ exports.SLOT_FACILITY_RELATIONS = [
|
|
|
58
59
|
'segments.series.slots.resource',
|
|
59
60
|
'segments.series.slots.resource.facilities',
|
|
60
61
|
];
|
|
62
|
+
exports.RESERVATION_ERROR_CODES = {
|
|
63
|
+
REDEEM_REQUIRES_CHECKOUT: 'RESERVATION.REDEEM_REQUIRES_CHECKOUT',
|
|
64
|
+
MIXED_SLOT_TYPE_EDIT: 'RESERVATION.MIXED_SLOT_TYPE_EDIT',
|
|
65
|
+
MIXED_SLOT_TYPE_REMOVE: 'RESERVATION.MIXED_SLOT_TYPE_REMOVE',
|
|
66
|
+
PASSES_WITHOUT_MATCHING_SLOTS: 'RESERVATION.PASSES_WITHOUT_MATCHING_SLOTS',
|
|
67
|
+
};
|
|
61
68
|
//# sourceMappingURL=reservation.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAElD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AAEzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,4BAA4B,GAAa;IACrD,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,aAAa;IACb,KAAK;CACL,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAElD,QAAA,k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AAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC;AAEW,QAAA,8BAA8B,GAA4B;IACtE,yCAAqB,CAAC,QAAQ;IAC9B,yCAAqB,CAAC,QAAQ;CAC9B,CAAC;AAEW,QAAA,iBAAiB,GAAG,CAAC,uCAAmB,CAAC,MAAM,EAAE,uCAAmB,CAAC,QAAQ,EAAE,uCAAmB,CAAC,UAAU,CAAC,CAAC;AAE/G,QAAA,gCAAgC,GAA4B;IACxE,yCAAqB,CAAC,QAAQ;IAC9B,yCAAqB,CAAC,QAAQ;CAC9B,CAAC;AAEF;;;GAGG;AACU,QAAA,uBAAuB,GAAsB;IACzD,gCAAgC;IAChC,2CAA2C;CAC3C,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACtC,wBAAwB,EAAE,sCAAsC;IAChE,oBAAoB,EAAE,kCAAkC;IACxD,sBAAsB,EAAE,oCAAoC;IAC5D,6BAA6B,EAAE,2CAA2C;CACjE,CAAC"}
|
|
@@ -16,7 +16,8 @@ export declare enum ReservationTypeEnum {
|
|
|
16
16
|
PROGRAM = "program",
|
|
17
17
|
MAINTENANCE = "maintenance",
|
|
18
18
|
CUSTOM = "custom",
|
|
19
|
-
INTERNAL = "internal"
|
|
19
|
+
INTERNAL = "internal",
|
|
20
|
+
PUNCH_PASS = "punch_pass"
|
|
20
21
|
}
|
|
21
22
|
export declare enum DurationTypeEnum {
|
|
22
23
|
DATES = "dates",
|
|
@@ -46,7 +47,8 @@ export declare enum SlotTypeEnum {
|
|
|
46
47
|
EXTERNAL = "external",
|
|
47
48
|
INTERNAL = "internal",
|
|
48
49
|
MAINTENANCE = "maintenance",
|
|
49
|
-
CUSTOM = "custom"
|
|
50
|
+
CUSTOM = "custom",
|
|
51
|
+
PUNCH_PASS = "punch_pass"
|
|
50
52
|
}
|
|
51
53
|
export declare enum DurationUnitTypesEnum {
|
|
52
54
|
MINUTES = "minutes",
|
|
@@ -23,6 +23,7 @@ var ReservationTypeEnum;
|
|
|
23
23
|
ReservationTypeEnum["MAINTENANCE"] = "maintenance";
|
|
24
24
|
ReservationTypeEnum["CUSTOM"] = "custom";
|
|
25
25
|
ReservationTypeEnum["INTERNAL"] = "internal";
|
|
26
|
+
ReservationTypeEnum["PUNCH_PASS"] = "punch_pass";
|
|
26
27
|
})(ReservationTypeEnum = exports.ReservationTypeEnum || (exports.ReservationTypeEnum = {}));
|
|
27
28
|
var DurationTypeEnum;
|
|
28
29
|
(function (DurationTypeEnum) {
|
|
@@ -63,6 +64,7 @@ var SlotTypeEnum;
|
|
|
63
64
|
SlotTypeEnum["INTERNAL"] = "internal";
|
|
64
65
|
SlotTypeEnum["MAINTENANCE"] = "maintenance";
|
|
65
66
|
SlotTypeEnum["CUSTOM"] = "custom";
|
|
67
|
+
SlotTypeEnum["PUNCH_PASS"] = "punch_pass";
|
|
66
68
|
})(SlotTypeEnum = exports.SlotTypeEnum || (exports.SlotTypeEnum = {}));
|
|
67
69
|
var DurationUnitTypesEnum;
|
|
68
70
|
(function (DurationUnitTypesEnum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;AAC1B,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACtB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAIY,QAAA,oBAAoB,GAAG;IACnC,iCAAiB,CAAC,QAAQ;IAC1B,iCAAiB,CAAC,eAA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,iGAAgB,CAAA;AACjB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,+EAAa,CAAA;IACb,uFAAiB,CAAA;IACjB,yFAAkB,CAAA;AACnB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B"}
|
|
@@ -17,6 +17,7 @@ export interface IBaseDraftSegment extends IBaseSegment {
|
|
|
17
17
|
id?: string;
|
|
18
18
|
facilityId: number;
|
|
19
19
|
reservationId?: string;
|
|
20
|
+
userPunchPassId?: number;
|
|
20
21
|
participantsIds?: number[];
|
|
21
22
|
productsIds?: number[];
|
|
22
23
|
}
|
|
@@ -25,5 +26,6 @@ export interface ICreateDraftSegment extends IBaseDraftSegment {
|
|
|
25
26
|
}
|
|
26
27
|
export interface IDraftSegment extends IBaseDraftSegment {
|
|
27
28
|
id: string;
|
|
29
|
+
redeemQuantity?: number;
|
|
28
30
|
series: IDraftSeries[];
|
|
29
31
|
}
|
|
@@ -63,6 +63,7 @@ export interface ISlotProductMetadata {
|
|
|
63
63
|
entitlementGroupId?: number;
|
|
64
64
|
priceId?: number;
|
|
65
65
|
productId: number;
|
|
66
|
+
userPunchPassId?: number;
|
|
66
67
|
/**
|
|
67
68
|
* The original price before the entitlement discount was applied
|
|
68
69
|
*/
|
|
@@ -108,6 +109,7 @@ export interface ICreateSlotsOptions {
|
|
|
108
109
|
sportIds?: number[];
|
|
109
110
|
title?: string;
|
|
110
111
|
userEntitlements?: Map<number, IBiggestDiscountForItem[]>;
|
|
112
|
+
slotType?: SlotTypeEnum;
|
|
111
113
|
}
|
|
112
114
|
export interface ITimeSlot {
|
|
113
115
|
id?: string | number;
|
|
@@ -157,6 +159,7 @@ export interface IDraftSlot extends IBaseSlot {
|
|
|
157
159
|
id: string;
|
|
158
160
|
cartItemId?: string;
|
|
159
161
|
facilityId: number;
|
|
162
|
+
productsUserId?: number;
|
|
160
163
|
groupId?: string;
|
|
161
164
|
parentSlotId?: string;
|
|
162
165
|
reservationId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AAqJA,MAAa,SAAS;CA+BrB;AA/BD,8BA+BC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AddressDto } from '../../address/dto/address.dto';
|
|
2
2
|
import { BasicCustomerDto } from '../../customers/dto/customers-public.dto';
|
|
3
|
-
import { IdDto } from '../../dto/general.dto';
|
|
3
|
+
import { IdDto, PaginationQuery } from '../../dto/general.dto';
|
|
4
|
+
import { SimpleGroupAccountDto } from '../../familyAccount/dto/group-accounts-public.dto';
|
|
4
5
|
import { SimpleMediaDto } from '../../media/dto/media-public.dto';
|
|
5
6
|
import { GenderNameEnum } from '../../services/enums.service';
|
|
6
7
|
import { UserExpandEnum } from '../types/enums/user.enums';
|
|
@@ -14,11 +15,18 @@ export declare class BasicUserDto extends IdDto {
|
|
|
14
15
|
gender?: GenderNameEnum;
|
|
15
16
|
}
|
|
16
17
|
export declare class ExtendedUserDto extends BasicUserDto {
|
|
18
|
+
/**
|
|
19
|
+
*/
|
|
17
20
|
family?: ExtendedUserDto[];
|
|
18
21
|
customer?: BasicCustomerDto;
|
|
19
22
|
profilePicture?: SimpleMediaDto;
|
|
20
23
|
address?: AddressDto;
|
|
21
24
|
memberships?: IdDto[];
|
|
25
|
+
groups?: SimpleGroupAccountDto[];
|
|
26
|
+
organizationGroups?: SimpleGroupAccountDto[];
|
|
27
|
+
}
|
|
28
|
+
export declare class GetGroupMembersQueryDto extends PaginationQuery {
|
|
29
|
+
expand?: UserExpandEnum[];
|
|
22
30
|
}
|
|
23
31
|
export declare class GetUserInformationQueryDto implements IGetUserInformationOptions {
|
|
24
32
|
expand?: UserExpandEnum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUserInformationQueryDto = exports.ExtendedUserDto = exports.BasicUserDto = void 0;
|
|
3
|
+
exports.GetUserInformationQueryDto = exports.GetGroupMembersQueryDto = exports.ExtendedUserDto = exports.BasicUserDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
class BasicUserDto extends general_dto_1.IdDto {
|
|
6
6
|
}
|
|
@@ -8,6 +8,9 @@ exports.BasicUserDto = BasicUserDto;
|
|
|
8
8
|
class ExtendedUserDto extends BasicUserDto {
|
|
9
9
|
}
|
|
10
10
|
exports.ExtendedUserDto = ExtendedUserDto;
|
|
11
|
+
class GetGroupMembersQueryDto extends general_dto_1.PaginationQuery {
|
|
12
|
+
}
|
|
13
|
+
exports.GetGroupMembersQueryDto = GetGroupMembersQueryDto;
|
|
11
14
|
class GetUserInformationQueryDto {
|
|
12
15
|
}
|
|
13
16
|
exports.GetUserInformationQueryDto = GetUserInformationQueryDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-public.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/user-public.dto.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"user-public.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/user-public.dto.ts"],"names":[],"mappings":";;;AAGA,uDAA+D;AAO/D,MAAa,YAAa,SAAQ,mBAAK;CAYtC;AAZD,oCAYC;AAED,MAAa,eAAgB,SAAQ,YAAY;CAgBhD;AAhBD,0CAgBC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAE3D;AAFD,0DAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address } from '../../address/entities/Address';
|
|
2
|
-
import {
|
|
2
|
+
import { GroupUserRoleEnum } from '../../customers/types/enums';
|
|
3
3
|
import { CustomerDto } from '../../dto/customer.dto';
|
|
4
4
|
import { Media } from '../../media/entities/Media';
|
|
5
5
|
import { Athlete } from '../entities/Athlete';
|
|
@@ -24,5 +24,5 @@ export declare class UserSettingsDto {
|
|
|
24
24
|
privateProfile?: boolean;
|
|
25
25
|
hasPassword: boolean;
|
|
26
26
|
customers?: CustomerDto[];
|
|
27
|
-
|
|
27
|
+
userRole: GroupUserRoleEnum;
|
|
28
28
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Address } from '../../address/entities/Address';
|
|
2
2
|
import { CustomerMerge } from '../../customers-merge/entities/CustomerMerge';
|
|
3
|
-
import {
|
|
3
|
+
import { GroupUserRoleEnum } from '../../customers/types/enums';
|
|
4
4
|
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
5
5
|
import { Customer } from '../../entity/Customer';
|
|
6
6
|
import { EventAttendee } from '../../entity/EventAttendees';
|
|
7
|
+
import { FamilyAccount } from '../../entity/FamilyAccount';
|
|
7
8
|
import { InvoiceNote } from '../../entity/InvoiceNote';
|
|
8
9
|
import { LinkedAccounts } from '../../entity/LinkedAccounts';
|
|
9
10
|
import { SeasonAttendee } from '../../entity/SeasonAttendees';
|
|
@@ -60,9 +61,13 @@ export declare class User extends BondBaseEntity {
|
|
|
60
61
|
organizationUsers?: OrganizationUsers[];
|
|
61
62
|
mergeId?: number;
|
|
62
63
|
merge?: CustomerMerge;
|
|
64
|
+
/**
|
|
65
|
+
*/
|
|
63
66
|
family?: User[];
|
|
67
|
+
groups?: FamilyAccount[];
|
|
68
|
+
organizationGroups?: FamilyAccount[];
|
|
64
69
|
membershipMembers?: MembershipMember[];
|
|
65
|
-
|
|
70
|
+
userRole?: GroupUserRoleEnum;
|
|
66
71
|
}
|
|
67
72
|
export declare class IUserInOrganization extends User {
|
|
68
73
|
organizationId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;AAkB7D,MAAa,IAAK,SAAQ,+BAAc;CAkGvC;AAlGD,oBAkGC;AAED,MAAa,mBAAoB,SAAQ,IAAI;CAI5C;AAJD,kDAIC"}
|
|
@@ -7,5 +7,6 @@ var UserExpandEnum;
|
|
|
7
7
|
UserExpandEnum["PROFILE_PICTURE"] = "profile_picture";
|
|
8
8
|
UserExpandEnum["FAMILY"] = "family";
|
|
9
9
|
UserExpandEnum["MEMBERSHIPS"] = "memberships";
|
|
10
|
+
UserExpandEnum["GROUPS"] = "groups";
|
|
10
11
|
})(UserExpandEnum = exports.UserExpandEnum || (exports.UserExpandEnum = {}));
|
|
11
12
|
//# sourceMappingURL=user.enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.enums.js","sourceRoot":"","sources":["../../../../../src/types/user/types/enums/user.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"user.enums.js","sourceRoot":"","sources":["../../../../../src/types/user/types/enums/user.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAMX;AAND,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,qDAAmC,CAAA;IACnC,mCAAiB,CAAA;IACjB,6CAA2B,CAAA;IAC3B,mCAAiB,CAAA;AAClB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { GroupTypeEnum } from '../../customers/types/enums';
|
|
2
|
+
import { FamilyAccount } from '../../entity/FamilyAccount';
|
|
1
3
|
export interface IFetchFamilyAccountsOptions {
|
|
4
|
+
groupType?: GroupTypeEnum;
|
|
2
5
|
organizationId?: number;
|
|
3
6
|
relations?: string[];
|
|
4
7
|
throwError?: boolean;
|
|
8
|
+
select?: (keyof FamilyAccount)[];
|
|
5
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GroupUserRoleEnum } from '../../customers/types/enums';
|
|
2
2
|
import { GenderEnum } from '../../services/enums.service';
|
|
3
3
|
import { User } from '../entities/User';
|
|
4
4
|
export declare const NO_VALUE = "-";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const MINIMUM_PRIMARY_AGE_USER_ROLES: readonly GroupUserRoleEnum[];
|
|
6
6
|
export declare const GENDER_LABELS: Record<GenderEnum, string>;
|
|
7
7
|
export declare const PROFILE_FIELD_LABELS: Partial<Record<keyof User, string>>;
|
|
8
8
|
export declare const COGNITO_FIELDS: (keyof User)[];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserErrorKeysEnum = exports.USER_ENTITY_UPDATE_FIELDS = exports.COGNITO_FIELDS = exports.PROFILE_FIELD_LABELS = exports.GENDER_LABELS = exports.
|
|
3
|
+
exports.UserErrorKeysEnum = exports.USER_ENTITY_UPDATE_FIELDS = exports.COGNITO_FIELDS = exports.PROFILE_FIELD_LABELS = exports.GENDER_LABELS = exports.MINIMUM_PRIMARY_AGE_USER_ROLES = exports.NO_VALUE = void 0;
|
|
4
4
|
const enums_1 = require("../../customers/types/enums");
|
|
5
5
|
const enums_service_1 = require("../../services/enums.service");
|
|
6
6
|
exports.NO_VALUE = '-';
|
|
7
|
-
exports.
|
|
8
|
-
enums_1.
|
|
9
|
-
enums_1.
|
|
7
|
+
exports.MINIMUM_PRIMARY_AGE_USER_ROLES = [
|
|
8
|
+
enums_1.GroupUserRoleEnum.PRIMARY,
|
|
9
|
+
enums_1.GroupUserRoleEnum.ADMIN,
|
|
10
|
+
enums_1.GroupUserRoleEnum.INDEPENDENT,
|
|
11
|
+
enums_1.GroupUserRoleEnum.FINANCE,
|
|
12
|
+
enums_1.GroupUserRoleEnum.MANAGER,
|
|
10
13
|
];
|
|
11
14
|
exports.GENDER_LABELS = {
|
|
12
15
|
[enums_service_1.GenderEnum.MALE]: 'Male',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.consts.js","sourceRoot":"","sources":["../../../../src/types/user/types/user.consts.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"user.consts.js","sourceRoot":"","sources":["../../../../src/types/user/types/user.consts.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAChE,gEAA0D;AAG7C,QAAA,QAAQ,GAAG,GAAG,CAAC;AAEf,QAAA,8BAA8B,GAAiC;IAC3E,yBAAiB,CAAC,OAAO;IACzB,yBAAiB,CAAC,KAAK;IACvB,yBAAiB,CAAC,WAAW;IAC7B,yBAAiB,CAAC,OAAO;IACzB,yBAAiB,CAAC,OAAO;CACzB,CAAC;AAEW,QAAA,aAAa,GAA+B;IACxD,CAAC,0BAAU,CAAC,IAAI,CAAC,EAAE,MAAM;IACzB,CAAC,0BAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,0BAAU,CAAC,KAAK,CAAC,EAAE,gBAAgB;CACpC,CAAC;AAEW,QAAA,oBAAoB,GAAwC;IACxE,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,OAAO;IACpB,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,QAAQ;CAChB,CAAC;AAEW,QAAA,cAAc,GAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;AAE3F,QAAA,yBAAyB,GAAG;IACxC,OAAO;IACP,WAAW;IACX,WAAW;IACX,OAAO;IACP,WAAW;IACX,QAAQ;IACR,UAAU;IACV,aAAa;IACb,QAAQ;CACR,CAAC;AAEF,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,sEAAiD,CAAA;IACjD,kEAA6C,CAAA;AAC9C,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|