@bondsports/types 0.13.3 → 0.14.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/LICENSE.md +0 -0
- package/README.md +17 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/dto/activityTimes.dto.d.ts +7 -0
- package/dist/types/dto/activityTimes.dto.js +45 -0
- package/dist/types/dto/activityTimes.dto.js.map +1 -0
- package/dist/types/dto/application.dto.d.ts +11 -0
- package/dist/types/dto/application.dto.js +45 -0
- package/dist/types/dto/application.dto.js.map +1 -0
- package/dist/types/dto/bookingTypeSetting.dto.d.ts +7 -0
- package/dist/types/dto/bookingTypeSetting.dto.js +43 -0
- package/dist/types/dto/bookingTypeSetting.dto.js.map +1 -0
- package/dist/types/dto/configuration.dto.d.ts +7 -0
- package/dist/types/dto/configuration.dto.js +13 -0
- package/dist/types/dto/configuration.dto.js.map +1 -0
- package/dist/types/dto/customer.dto.d.ts +64 -0
- package/dist/types/dto/customer.dto.js +265 -0
- package/dist/types/dto/customer.dto.js.map +1 -0
- package/dist/types/dto/events.dto.d.ts +105 -0
- package/dist/types/dto/events.dto.js +266 -0
- package/dist/types/dto/events.dto.js.map +1 -0
- package/dist/types/dto/facilities.dto.d.ts +44 -0
- package/dist/types/dto/facilities.dto.js +186 -0
- package/dist/types/dto/facilities.dto.js.map +1 -0
- package/dist/types/dto/familyAccount.dto.d.ts +33 -0
- package/dist/types/dto/familyAccount.dto.js +131 -0
- package/dist/types/dto/familyAccount.dto.js.map +1 -0
- package/dist/types/dto/general.dto.d.ts +12 -0
- package/dist/types/dto/general.dto.js +62 -0
- package/dist/types/dto/general.dto.js.map +1 -0
- package/dist/types/dto/glcodes.dto.d.ts +10 -0
- package/dist/types/dto/glcodes.dto.js +51 -0
- package/dist/types/dto/glcodes.dto.js.map +1 -0
- package/dist/types/dto/groupsDivisions.dto.d.ts +74 -0
- package/dist/types/dto/groupsDivisions.dto.js +287 -0
- package/dist/types/dto/groupsDivisions.dto.js.map +1 -0
- package/dist/types/dto/index.d.ts +24 -0
- package/dist/types/dto/index.js +41 -0
- package/dist/types/dto/index.js.map +1 -0
- package/dist/types/dto/membership.dto.d.ts +58 -0
- package/dist/types/dto/membership.dto.js +240 -0
- package/dist/types/dto/membership.dto.js.map +1 -0
- package/dist/types/dto/pricing.dto.d.ts +45 -0
- package/dist/types/dto/pricing.dto.js +144 -0
- package/dist/types/dto/pricing.dto.js.map +1 -0
- package/dist/types/dto/productPricing.dto.d.ts +229 -0
- package/dist/types/dto/productPricing.dto.js +961 -0
- package/dist/types/dto/productPricing.dto.js.map +1 -0
- package/dist/types/dto/productVariants.dto.d.ts +19 -0
- package/dist/types/dto/productVariants.dto.js +95 -0
- package/dist/types/dto/productVariants.dto.js.map +1 -0
- package/dist/types/dto/program-seasons.dto.d.ts +202 -0
- package/dist/types/dto/program-seasons.dto.js +877 -0
- package/dist/types/dto/program-seasons.dto.js.map +1 -0
- package/dist/types/dto/program.dto.d.ts +47 -0
- package/dist/types/dto/program.dto.js +193 -0
- package/dist/types/dto/program.dto.js.map +1 -0
- package/dist/types/dto/purchase.dto.d.ts +82 -0
- package/dist/types/dto/purchase.dto.js +355 -0
- package/dist/types/dto/purchase.dto.js.map +1 -0
- package/dist/types/dto/registration.d.ts +41 -0
- package/dist/types/dto/registration.js +170 -0
- package/dist/types/dto/registration.js.map +1 -0
- package/dist/types/dto/rental.dto.d.ts +8 -0
- package/dist/types/dto/rental.dto.js +41 -0
- package/dist/types/dto/rental.dto.js.map +1 -0
- package/dist/types/dto/resource.dto.d.ts +5 -0
- package/dist/types/dto/resource.dto.js +29 -0
- package/dist/types/dto/resource.dto.js.map +1 -0
- package/dist/types/dto/space.dto.d.ts +59 -0
- package/dist/types/dto/space.dto.js +264 -0
- package/dist/types/dto/space.dto.js.map +1 -0
- package/dist/types/dto/stripe.dto.d.ts +10 -0
- package/dist/types/dto/stripe.dto.js +44 -0
- package/dist/types/dto/stripe.dto.js.map +1 -0
- package/dist/types/dto/user.dto.d.ts +9 -0
- package/dist/types/dto/user.dto.js +40 -0
- package/dist/types/dto/user.dto.js.map +1 -0
- package/dist/types/entity/ActivityLogRecord.d.ts +15 -0
- package/dist/types/entity/ActivityLogRecord.js +67 -0
- package/dist/types/entity/ActivityLogRecord.js.map +1 -0
- package/dist/types/entity/ActivityTimes.d.ts +18 -0
- package/dist/types/entity/ActivityTimes.js +77 -0
- package/dist/types/entity/ActivityTimes.js.map +1 -0
- package/dist/types/entity/Address.d.ts +12 -0
- package/dist/types/entity/Address.js +62 -0
- package/dist/types/entity/Address.js.map +1 -0
- package/dist/types/entity/Answer.d.ts +17 -0
- package/dist/types/entity/Answer.js +71 -0
- package/dist/types/entity/Answer.js.map +1 -0
- package/dist/types/entity/AnswerTitle.d.ts +9 -0
- package/dist/types/entity/AnswerTitle.js +41 -0
- package/dist/types/entity/AnswerTitle.js.map +1 -0
- package/dist/types/entity/Athlete.d.ts +7 -0
- package/dist/types/entity/Athlete.js +35 -0
- package/dist/types/entity/Athlete.js.map +1 -0
- package/dist/types/entity/AthleteSports.d.ts +7 -0
- package/dist/types/entity/AthleteSports.js +35 -0
- package/dist/types/entity/AthleteSports.js.map +1 -0
- package/dist/types/entity/BlockedDate.d.ts +10 -0
- package/dist/types/entity/BlockedDate.js +47 -0
- package/dist/types/entity/BlockedDate.js.map +1 -0
- package/dist/types/entity/BondBaseEntity.d.ts +6 -0
- package/dist/types/entity/BondBaseEntity.js +29 -0
- package/dist/types/entity/BondBaseEntity.js.map +1 -0
- package/dist/types/entity/BookedSessions.d.ts +21 -0
- package/dist/types/entity/BookedSessions.js +103 -0
- package/dist/types/entity/BookedSessions.js.map +1 -0
- package/dist/types/entity/BookingTypeSetting.d.ts +12 -0
- package/dist/types/entity/BookingTypeSetting.js +55 -0
- package/dist/types/entity/BookingTypeSetting.js.map +1 -0
- package/dist/types/entity/Configuration.d.ts +6 -0
- package/dist/types/entity/Configuration.js +34 -0
- package/dist/types/entity/Configuration.js.map +1 -0
- package/dist/types/entity/Connection.d.ts +13 -0
- package/dist/types/entity/Connection.js +70 -0
- package/dist/types/entity/Connection.js.map +1 -0
- package/dist/types/entity/CreditNote.d.ts +9 -0
- package/dist/types/entity/CreditNote.js +53 -0
- package/dist/types/entity/CreditNote.js.map +1 -0
- package/dist/types/entity/Customer.d.ts +41 -0
- package/dist/types/entity/Customer.js +166 -0
- package/dist/types/entity/Customer.js.map +1 -0
- package/dist/types/entity/CustomerCreditTransaction.d.ts +16 -0
- package/dist/types/entity/CustomerCreditTransaction.js +75 -0
- package/dist/types/entity/CustomerCreditTransaction.js.map +1 -0
- package/dist/types/entity/CustomerNotes.d.ts +8 -0
- package/dist/types/entity/CustomerNotes.js +47 -0
- package/dist/types/entity/CustomerNotes.js.map +1 -0
- package/dist/types/entity/Division.d.ts +10 -0
- package/dist/types/entity/Division.js +58 -0
- package/dist/types/entity/Division.js.map +1 -0
- package/dist/types/entity/EmergencyContact.d.ts +8 -0
- package/dist/types/entity/EmergencyContact.js +40 -0
- package/dist/types/entity/EmergencyContact.js.map +1 -0
- package/dist/types/entity/EntitlementGroup.d.ts +4 -0
- package/dist/types/entity/EntitlementGroup.js +26 -0
- package/dist/types/entity/EntitlementGroup.js.map +1 -0
- package/dist/types/entity/EntitlementTerms.d.ts +6 -0
- package/dist/types/entity/EntitlementTerms.js +30 -0
- package/dist/types/entity/EntitlementTerms.js.map +1 -0
- package/dist/types/entity/EventAttendees.d.ts +20 -0
- package/dist/types/entity/EventAttendees.js +85 -0
- package/dist/types/entity/EventAttendees.js.map +1 -0
- package/dist/types/entity/Events.d.ts +68 -0
- package/dist/types/entity/Events.js +308 -0
- package/dist/types/entity/Events.js.map +1 -0
- package/dist/types/entity/Facility.d.ts +30 -0
- package/dist/types/entity/Facility.js +136 -0
- package/dist/types/entity/Facility.js.map +1 -0
- package/dist/types/entity/FacilityToResource.d.ts +5 -0
- package/dist/types/entity/FacilityToResource.js +30 -0
- package/dist/types/entity/FacilityToResource.js.map +1 -0
- package/dist/types/entity/FamilyAccount.d.ts +6 -0
- package/dist/types/entity/FamilyAccount.js +31 -0
- package/dist/types/entity/FamilyAccount.js.map +1 -0
- package/dist/types/entity/FutureInstallment.d.ts +14 -0
- package/dist/types/entity/FutureInstallment.js +67 -0
- package/dist/types/entity/FutureInstallment.js.map +1 -0
- package/dist/types/entity/GlCodes.d.ts +4 -0
- package/dist/types/entity/GlCodes.js +26 -0
- package/dist/types/entity/GlCodes.js.map +1 -0
- package/dist/types/entity/Group.d.ts +20 -0
- package/dist/types/entity/Group.js +91 -0
- package/dist/types/entity/Group.js.map +1 -0
- package/dist/types/entity/GroupItemsPricing.d.ts +17 -0
- package/dist/types/entity/GroupItemsPricing.js +83 -0
- package/dist/types/entity/GroupItemsPricing.js.map +1 -0
- package/dist/types/entity/GroupsInDivisions.d.ts +6 -0
- package/dist/types/entity/GroupsInDivisions.js +34 -0
- package/dist/types/entity/GroupsInDivisions.js.map +1 -0
- package/dist/types/entity/Invoice.d.ts +32 -0
- package/dist/types/entity/Invoice.js +131 -0
- package/dist/types/entity/Invoice.js.map +1 -0
- package/dist/types/entity/InvoiceMails.d.ts +13 -0
- package/dist/types/entity/InvoiceMails.js +58 -0
- package/dist/types/entity/InvoiceMails.js.map +1 -0
- package/dist/types/entity/InvoiceNote.d.ts +12 -0
- package/dist/types/entity/InvoiceNote.js +54 -0
- package/dist/types/entity/InvoiceNote.js.map +1 -0
- package/dist/types/entity/InvoiceToPayment.d.ts +12 -0
- package/dist/types/entity/InvoiceToPayment.js +58 -0
- package/dist/types/entity/InvoiceToPayment.js.map +1 -0
- package/dist/types/entity/League.d.ts +29 -0
- package/dist/types/entity/League.js +155 -0
- package/dist/types/entity/League.js.map +1 -0
- package/dist/types/entity/LeagueSeason.d.ts +50 -0
- package/dist/types/entity/LeagueSeason.js +225 -0
- package/dist/types/entity/LeagueSeason.js.map +1 -0
- package/dist/types/entity/LineItemHistory.d.ts +14 -0
- package/dist/types/entity/LineItemHistory.js +61 -0
- package/dist/types/entity/LineItemHistory.js.map +1 -0
- package/dist/types/entity/LineItems.d.ts +68 -0
- package/dist/types/entity/LineItems.js +223 -0
- package/dist/types/entity/LineItems.js.map +1 -0
- package/dist/types/entity/LinkedAccounts.d.ts +18 -0
- package/dist/types/entity/LinkedAccounts.js +98 -0
- package/dist/types/entity/LinkedAccounts.js.map +1 -0
- package/dist/types/entity/Media.d.ts +23 -0
- package/dist/types/entity/Media.js +113 -0
- package/dist/types/entity/Media.js.map +1 -0
- package/dist/types/entity/Membership.d.ts +34 -0
- package/dist/types/entity/Membership.js +123 -0
- package/dist/types/entity/Membership.js.map +1 -0
- package/dist/types/entity/MembershipMember.d.ts +26 -0
- package/dist/types/entity/MembershipMember.js +127 -0
- package/dist/types/entity/MembershipMember.js.map +1 -0
- package/dist/types/entity/NotificationSubscriptions.d.ts +8 -0
- package/dist/types/entity/NotificationSubscriptions.js +47 -0
- package/dist/types/entity/NotificationSubscriptions.js.map +1 -0
- package/dist/types/entity/OpeningTime.d.ts +13 -0
- package/dist/types/entity/OpeningTime.js +60 -0
- package/dist/types/entity/OpeningTime.js.map +1 -0
- package/dist/types/entity/OrganizationConnectionBaseEntity.d.ts +4 -0
- package/dist/types/entity/OrganizationConnectionBaseEntity.js +22 -0
- package/dist/types/entity/OrganizationConnectionBaseEntity.js.map +1 -0
- package/dist/types/entity/PackageV1.d.ts +18 -0
- package/dist/types/entity/PackageV1.js +90 -0
- package/dist/types/entity/PackageV1.js.map +1 -0
- package/dist/types/entity/PasswordReset.d.ts +7 -0
- package/dist/types/entity/PasswordReset.js +38 -0
- package/dist/types/entity/PasswordReset.js.map +1 -0
- package/dist/types/entity/Payment.d.ts +32 -0
- package/dist/types/entity/Payment.js +152 -0
- package/dist/types/entity/Payment.js.map +1 -0
- package/dist/types/entity/PaymentFailConfig.d.ts +5 -0
- package/dist/types/entity/PaymentFailConfig.js +29 -0
- package/dist/types/entity/PaymentFailConfig.js.map +1 -0
- package/dist/types/entity/PaymentFailures.d.ts +8 -0
- package/dist/types/entity/PaymentFailures.js +38 -0
- package/dist/types/entity/PaymentFailures.js.map +1 -0
- package/dist/types/entity/PaymentNote.d.ts +12 -0
- package/dist/types/entity/PaymentNote.js +54 -0
- package/dist/types/entity/PaymentNote.js.map +1 -0
- package/dist/types/entity/PaymentPlanSchedule.d.ts +8 -0
- package/dist/types/entity/PaymentPlanSchedule.js +41 -0
- package/dist/types/entity/PaymentPlanSchedule.js.map +1 -0
- package/dist/types/entity/Payments_Deprecated.d.ts +19 -0
- package/dist/types/entity/Payments_Deprecated.js +106 -0
- package/dist/types/entity/Payments_Deprecated.js.map +1 -0
- package/dist/types/entity/Price.d.ts +20 -0
- package/dist/types/entity/Price.js +83 -0
- package/dist/types/entity/Price.js.map +1 -0
- package/dist/types/entity/Product.d.ts +68 -0
- package/dist/types/entity/Product.js +233 -0
- package/dist/types/entity/Product.js.map +1 -0
- package/dist/types/entity/ProductPackage.d.ts +19 -0
- package/dist/types/entity/ProductPackage.js +86 -0
- package/dist/types/entity/ProductPackage.js.map +1 -0
- package/dist/types/entity/ProductPaymentPlan.d.ts +12 -0
- package/dist/types/entity/ProductPaymentPlan.js +53 -0
- package/dist/types/entity/ProductPaymentPlan.js.map +1 -0
- package/dist/types/entity/ProductResource.d.ts +17 -0
- package/dist/types/entity/ProductResource.js +63 -0
- package/dist/types/entity/ProductResource.js.map +1 -0
- package/dist/types/entity/ProductToVariantTitles.d.ts +5 -0
- package/dist/types/entity/ProductToVariantTitles.js +31 -0
- package/dist/types/entity/ProductToVariantTitles.js.map +1 -0
- package/dist/types/entity/ProductToVariants.d.ts +5 -0
- package/dist/types/entity/ProductToVariants.js +31 -0
- package/dist/types/entity/ProductToVariants.js.map +1 -0
- package/dist/types/entity/ProductsReservedForCustomers.d.ts +10 -0
- package/dist/types/entity/ProductsReservedForCustomers.js +46 -0
- package/dist/types/entity/ProductsReservedForCustomers.js.map +1 -0
- package/dist/types/entity/ProductsUsers.d.ts +25 -0
- package/dist/types/entity/ProductsUsers.js +90 -0
- package/dist/types/entity/ProductsUsers.js.map +1 -0
- package/dist/types/entity/Program.d.ts +29 -0
- package/dist/types/entity/Program.js +108 -0
- package/dist/types/entity/Program.js.map +1 -0
- package/dist/types/entity/ProgramHighlights.d.ts +11 -0
- package/dist/types/entity/ProgramHighlights.js +50 -0
- package/dist/types/entity/ProgramHighlights.js.map +1 -0
- package/dist/types/entity/ProgramSeason.d.ts +72 -0
- package/dist/types/entity/ProgramSeason.js +229 -0
- package/dist/types/entity/ProgramSeason.js.map +1 -0
- package/dist/types/entity/PurchasedResources.d.ts +36 -0
- package/dist/types/entity/PurchasedResources.js +127 -0
- package/dist/types/entity/PurchasedResources.js.map +1 -0
- package/dist/types/entity/Questionnaires.d.ts +6 -0
- package/dist/types/entity/Questionnaires.js +31 -0
- package/dist/types/entity/Questionnaires.js.map +1 -0
- package/dist/types/entity/Questions.d.ts +15 -0
- package/dist/types/entity/Questions.js +78 -0
- package/dist/types/entity/Questions.js.map +1 -0
- package/dist/types/entity/RefundReason.d.ts +6 -0
- package/dist/types/entity/RefundReason.js +34 -0
- package/dist/types/entity/RefundReason.js.map +1 -0
- package/dist/types/entity/RegistrationConstraint.d.ts +13 -0
- package/dist/types/entity/RegistrationConstraint.js +64 -0
- package/dist/types/entity/RegistrationConstraint.js.map +1 -0
- package/dist/types/entity/Reservations.d.ts +35 -0
- package/dist/types/entity/Reservations.js +171 -0
- package/dist/types/entity/Reservations.js.map +1 -0
- package/dist/types/entity/Resource.d.ts +36 -0
- package/dist/types/entity/Resource.js +150 -0
- package/dist/types/entity/Resource.js.map +1 -0
- package/dist/types/entity/ResourceGroup.d.ts +8 -0
- package/dist/types/entity/ResourceGroup.js +41 -0
- package/dist/types/entity/ResourceGroup.js.map +1 -0
- package/dist/types/entity/School.d.ts +9 -0
- package/dist/types/entity/School.js +46 -0
- package/dist/types/entity/School.js.map +1 -0
- package/dist/types/entity/SeasonAttendees.d.ts +20 -0
- package/dist/types/entity/SeasonAttendees.js +78 -0
- package/dist/types/entity/SeasonAttendees.js.map +1 -0
- package/dist/types/entity/SeasonDivisions.d.ts +7 -0
- package/dist/types/entity/SeasonDivisions.js +38 -0
- package/dist/types/entity/SeasonDivisions.js.map +1 -0
- package/dist/types/entity/SeasonPool.d.ts +19 -0
- package/dist/types/entity/SeasonPool.js +82 -0
- package/dist/types/entity/SeasonPool.js.map +1 -0
- package/dist/types/entity/SeasonTeam.d.ts +12 -0
- package/dist/types/entity/SeasonTeam.js +56 -0
- package/dist/types/entity/SeasonTeam.js.map +1 -0
- package/dist/types/entity/SpacesDependency.d.ts +5 -0
- package/dist/types/entity/SpacesDependency.js +30 -0
- package/dist/types/entity/SpacesDependency.js.map +1 -0
- package/dist/types/entity/Station.d.ts +15 -0
- package/dist/types/entity/Station.js +68 -0
- package/dist/types/entity/Station.js.map +1 -0
- package/dist/types/entity/StationToSubcategory.d.ts +12 -0
- package/dist/types/entity/StationToSubcategory.js +51 -0
- package/dist/types/entity/StationToSubcategory.js.map +1 -0
- package/dist/types/entity/Subcategory.d.ts +12 -0
- package/dist/types/entity/Subcategory.js +60 -0
- package/dist/types/entity/Subcategory.js.map +1 -0
- package/dist/types/entity/Team.d.ts +37 -0
- package/dist/types/entity/Team.js +199 -0
- package/dist/types/entity/Team.js.map +1 -0
- package/dist/types/entity/TeamInvite.d.ts +10 -0
- package/dist/types/entity/TeamInvite.js +50 -0
- package/dist/types/entity/TeamInvite.js.map +1 -0
- package/dist/types/entity/TeamMember.d.ts +12 -0
- package/dist/types/entity/TeamMember.js +53 -0
- package/dist/types/entity/TeamMember.js.map +1 -0
- package/dist/types/entity/UberOrganization.d.ts +7 -0
- package/dist/types/entity/UberOrganization.js +35 -0
- package/dist/types/entity/UberOrganization.js.map +1 -0
- package/dist/types/entity/User.d.ts +51 -0
- package/dist/types/entity/User.js +238 -0
- package/dist/types/entity/User.js.map +1 -0
- package/dist/types/entity/UserAuthorizations.d.ts +9 -0
- package/dist/types/entity/UserAuthorizations.js +41 -0
- package/dist/types/entity/UserAuthorizations.js.map +1 -0
- package/dist/types/entity/UserInFamilyAccount.d.ts +11 -0
- package/dist/types/entity/UserInFamilyAccount.js +48 -0
- package/dist/types/entity/UserInFamilyAccount.js.map +1 -0
- package/dist/types/entity/UserPaymentMethods.d.ts +10 -0
- package/dist/types/entity/UserPaymentMethods.js +47 -0
- package/dist/types/entity/UserPaymentMethods.js.map +1 -0
- package/dist/types/entity/UsersInGroup.d.ts +6 -0
- package/dist/types/entity/UsersInGroup.js +34 -0
- package/dist/types/entity/UsersInGroup.js.map +1 -0
- package/dist/types/entity/VariantTitles.d.ts +6 -0
- package/dist/types/entity/VariantTitles.js +32 -0
- package/dist/types/entity/VariantTitles.js.map +1 -0
- package/dist/types/entity/Variants.d.ts +8 -0
- package/dist/types/entity/Variants.js +40 -0
- package/dist/types/entity/Variants.js.map +1 -0
- package/dist/types/entity/WebflowOrganizationConfiguration.d.ts +9 -0
- package/dist/types/entity/WebflowOrganizationConfiguration.js +46 -0
- package/dist/types/entity/WebflowOrganizationConfiguration.js.map +1 -0
- package/dist/types/entity/decorators/column.numeric.transformer.d.ts +5 -0
- package/dist/types/entity/decorators/column.numeric.transformer.js +21 -0
- package/dist/types/entity/decorators/column.numeric.transformer.js.map +1 -0
- package/dist/types/entity/decorators/index.d.ts +1 -0
- package/dist/types/entity/decorators/index.js +18 -0
- package/dist/types/entity/decorators/index.js.map +1 -0
- package/dist/types/entity/index.d.ts +96 -0
- package/dist/types/entity/index.js +113 -0
- package/dist/types/entity/index.js.map +1 -0
- package/dist/types/import/dto/customer.dto.d.ts +16 -0
- package/dist/types/import/dto/customer.dto.js +85 -0
- package/dist/types/import/dto/customer.dto.js.map +1 -0
- package/dist/types/import/dto/index.d.ts +5 -0
- package/dist/types/import/dto/index.js +22 -0
- package/dist/types/import/dto/index.js.map +1 -0
- package/dist/types/import/dto/invoices.dto.d.ts +37 -0
- package/dist/types/import/dto/invoices.dto.js +113 -0
- package/dist/types/import/dto/invoices.dto.js.map +1 -0
- package/dist/types/import/dto/product.dto.d.ts +11 -0
- package/dist/types/import/dto/product.dto.js +26 -0
- package/dist/types/import/dto/product.dto.js.map +1 -0
- package/dist/types/import/dto/punch-pass.dto.d.ts +7 -0
- package/dist/types/import/dto/punch-pass.dto.js +43 -0
- package/dist/types/import/dto/punch-pass.dto.js.map +1 -0
- package/dist/types/import/dto/reservation.dto.d.ts +53 -0
- package/dist/types/import/dto/reservation.dto.js +154 -0
- package/dist/types/import/dto/reservation.dto.js.map +1 -0
- package/dist/types/import/index.d.ts +1 -0
- package/dist/types/import/index.js +18 -0
- package/dist/types/import/index.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.js +33 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/league/entities/GameSlots.d.ts +5 -0
- package/dist/types/league/entities/GameSlots.js +34 -0
- package/dist/types/league/entities/GameSlots.js.map +1 -0
- package/dist/types/league/entities/MatchParticipants.d.ts +10 -0
- package/dist/types/league/entities/MatchParticipants.js +50 -0
- package/dist/types/league/entities/MatchParticipants.js.map +1 -0
- package/dist/types/league/entities/Matches.d.ts +6 -0
- package/dist/types/league/entities/Matches.js +34 -0
- package/dist/types/league/entities/Matches.js.map +1 -0
- package/dist/types/league/entities/RoundEvents.d.ts +8 -0
- package/dist/types/league/entities/RoundEvents.js +44 -0
- package/dist/types/league/entities/RoundEvents.js.map +1 -0
- package/dist/types/league/entities/SeasonRounds.d.ts +7 -0
- package/dist/types/league/entities/SeasonRounds.js +38 -0
- package/dist/types/league/entities/SeasonRounds.js.map +1 -0
- package/dist/types/league/entities/TeamEvents.d.ts +6 -0
- package/dist/types/league/entities/TeamEvents.js +34 -0
- package/dist/types/league/entities/TeamEvents.js.map +1 -0
- package/dist/types/league/entities/index.d.ts +6 -0
- package/dist/types/league/entities/index.js +23 -0
- package/dist/types/league/entities/index.js.map +1 -0
- package/dist/types/league/index.d.ts +1 -0
- package/dist/types/league/index.js +18 -0
- package/dist/types/league/index.js.map +1 -0
- package/dist/types/locks/entities/Lock.d.ts +5 -0
- package/dist/types/locks/entities/Lock.js +29 -0
- package/dist/types/locks/entities/Lock.js.map +1 -0
- package/dist/types/locks/entities/index.d.ts +1 -0
- package/dist/types/locks/entities/index.js +18 -0
- package/dist/types/locks/entities/index.js.map +1 -0
- package/dist/types/locks/index.d.ts +1 -0
- package/dist/types/locks/index.js +18 -0
- package/dist/types/locks/index.js.map +1 -0
- package/dist/types/models/ExitCode.d.ts +6 -0
- package/dist/types/models/ExitCode.js +10 -0
- package/dist/types/models/ExitCode.js.map +1 -0
- package/dist/types/models/index.d.ts +2 -0
- package/dist/types/models/index.js +19 -0
- package/dist/types/models/index.js.map +1 -0
- package/dist/types/models/interfaces/date-util.d.ts +9 -0
- package/dist/types/models/interfaces/date-util.js +3 -0
- package/dist/types/models/interfaces/date-util.js.map +1 -0
- package/dist/types/models/interfaces/index.d.ts +2 -0
- package/dist/types/models/interfaces/index.js +19 -0
- package/dist/types/models/interfaces/index.js.map +1 -0
- package/dist/types/models/interfaces/payment.d.ts +13 -0
- package/dist/types/models/interfaces/payment.js +3 -0
- package/dist/types/models/interfaces/payment.js.map +1 -0
- package/dist/types/monitor-config/dto/create-monitor-config.dto.d.ts +6 -0
- package/dist/types/monitor-config/dto/create-monitor-config.dto.js +37 -0
- package/dist/types/monitor-config/dto/create-monitor-config.dto.js.map +1 -0
- package/dist/types/monitor-config/dto/index.d.ts +2 -0
- package/dist/types/monitor-config/dto/index.js +19 -0
- package/dist/types/monitor-config/dto/index.js.map +1 -0
- package/dist/types/monitor-config/dto/update-monitor-config.dto.d.ts +5 -0
- package/dist/types/monitor-config/dto/update-monitor-config.dto.js +9 -0
- package/dist/types/monitor-config/dto/update-monitor-config.dto.js.map +1 -0
- package/dist/types/monitor-config/entities/index.d.ts +1 -0
- package/dist/types/monitor-config/entities/index.js +18 -0
- package/dist/types/monitor-config/entities/index.js.map +1 -0
- package/dist/types/monitor-config/entities/monitor-config.entity.d.ts +6 -0
- package/dist/types/monitor-config/entities/monitor-config.entity.js +33 -0
- package/dist/types/monitor-config/entities/monitor-config.entity.js.map +1 -0
- package/dist/types/monitor-config/index.d.ts +2 -0
- package/dist/types/monitor-config/index.js +19 -0
- package/dist/types/monitor-config/index.js.map +1 -0
- package/dist/types/notifyTracker/entities/index.d.ts +1 -0
- package/dist/types/notifyTracker/entities/index.js +18 -0
- package/dist/types/notifyTracker/entities/index.js.map +1 -0
- package/dist/types/notifyTracker/entities/notifyTracker.d.ts +9 -0
- package/dist/types/notifyTracker/entities/notifyTracker.js +43 -0
- package/dist/types/notifyTracker/entities/notifyTracker.js.map +1 -0
- package/dist/types/notifyTracker/index.d.ts +1 -0
- package/dist/types/notifyTracker/index.js +18 -0
- package/dist/types/notifyTracker/index.js.map +1 -0
- package/dist/types/organization/dto/index.d.ts +1 -0
- package/dist/types/organization/dto/index.js +18 -0
- package/dist/types/organization/dto/index.js.map +1 -0
- package/dist/types/organization/dto/organization.dto.d.ts +25 -0
- package/dist/types/organization/dto/organization.dto.js +123 -0
- package/dist/types/organization/dto/organization.dto.js.map +1 -0
- package/dist/types/organization/entities/Organization.d.ts +57 -0
- package/dist/types/organization/entities/Organization.js +333 -0
- package/dist/types/organization/entities/Organization.js.map +1 -0
- package/dist/types/organization/entities/OrganizationBranding.d.ts +8 -0
- package/dist/types/organization/entities/OrganizationBranding.js +40 -0
- package/dist/types/organization/entities/OrganizationBranding.js.map +1 -0
- package/dist/types/organization/entities/OrganizationSettings.d.ts +4 -0
- package/dist/types/organization/entities/OrganizationSettings.js +26 -0
- package/dist/types/organization/entities/OrganizationSettings.js.map +1 -0
- package/dist/types/organization/entities/OrganizationUsers.d.ts +5 -0
- package/dist/types/organization/entities/OrganizationUsers.js +30 -0
- package/dist/types/organization/entities/OrganizationUsers.js.map +1 -0
- package/dist/types/organization/entities/index.d.ts +4 -0
- package/dist/types/organization/entities/index.js +21 -0
- package/dist/types/organization/entities/index.js.map +1 -0
- package/dist/types/organization/index.d.ts +3 -0
- package/dist/types/organization/index.js +20 -0
- package/dist/types/organization/index.js.map +1 -0
- package/dist/types/organization/interfaces/index.d.ts +1 -0
- package/dist/types/organization/interfaces/index.js +18 -0
- package/dist/types/organization/interfaces/index.js.map +1 -0
- package/dist/types/organization/interfaces/organization.d.ts +26 -0
- package/dist/types/organization/interfaces/organization.js +3 -0
- package/dist/types/organization/interfaces/organization.js.map +1 -0
- package/dist/types/payment/dto/index.d.ts +3 -0
- package/dist/types/payment/dto/index.js +20 -0
- package/dist/types/payment/dto/index.js.map +1 -0
- package/dist/types/payment/dto/payment.dto.d.ts +131 -0
- package/dist/types/payment/dto/payment.dto.js +446 -0
- package/dist/types/payment/dto/payment.dto.js.map +1 -0
- package/dist/types/payment/dto/refund.dto.d.ts +24 -0
- package/dist/types/payment/dto/refund.dto.js +100 -0
- package/dist/types/payment/dto/refund.dto.js.map +1 -0
- package/dist/types/payment/dto/void.dto.d.ts +11 -0
- package/dist/types/payment/dto/void.dto.js +53 -0
- package/dist/types/payment/dto/void.dto.js.map +1 -0
- package/dist/types/payment/index.d.ts +3 -0
- package/dist/types/payment/index.js +20 -0
- package/dist/types/payment/index.js.map +1 -0
- package/dist/types/payment/interfaces/index.d.ts +3 -0
- package/dist/types/payment/interfaces/index.js +20 -0
- package/dist/types/payment/interfaces/index.js.map +1 -0
- package/dist/types/payment/interfaces/payment.d.ts +27 -0
- package/dist/types/payment/interfaces/payment.js +3 -0
- package/dist/types/payment/interfaces/payment.js.map +1 -0
- package/dist/types/payment/interfaces/refund.d.ts +13 -0
- package/dist/types/payment/interfaces/refund.js +3 -0
- package/dist/types/payment/interfaces/refund.js.map +1 -0
- package/dist/types/payment/interfaces/void.d.ts +11 -0
- package/dist/types/payment/interfaces/void.js +3 -0
- package/dist/types/payment/interfaces/void.js.map +1 -0
- package/dist/types/payment/stripe/index.d.ts +1 -0
- package/dist/types/payment/stripe/index.js +18 -0
- package/dist/types/payment/stripe/index.js.map +1 -0
- package/dist/types/payment/stripe/stripe.types.d.ts +41 -0
- package/dist/types/payment/stripe/stripe.types.js +3 -0
- package/dist/types/payment/stripe/stripe.types.js.map +1 -0
- package/dist/types/reservations/dto/addon.dto.d.ts +29 -0
- package/dist/types/reservations/dto/addon.dto.js +97 -0
- package/dist/types/reservations/dto/addon.dto.js.map +1 -0
- package/dist/types/reservations/dto/index.d.ts +10 -0
- package/dist/types/reservations/dto/index.js +27 -0
- package/dist/types/reservations/dto/index.js.map +1 -0
- package/dist/types/reservations/dto/invoice.dto.d.ts +42 -0
- package/dist/types/reservations/dto/invoice.dto.js +159 -0
- package/dist/types/reservations/dto/invoice.dto.js.map +1 -0
- package/dist/types/reservations/dto/lineItem.dto.d.ts +30 -0
- package/dist/types/reservations/dto/lineItem.dto.js +128 -0
- package/dist/types/reservations/dto/lineItem.dto.js.map +1 -0
- package/dist/types/reservations/dto/maintenance.dto.d.ts +8 -0
- package/dist/types/reservations/dto/maintenance.dto.js +47 -0
- package/dist/types/reservations/dto/maintenance.dto.js.map +1 -0
- package/dist/types/reservations/dto/purcased-resource.dto.d.ts +9 -0
- package/dist/types/reservations/dto/purcased-resource.dto.js +55 -0
- package/dist/types/reservations/dto/purcased-resource.dto.js.map +1 -0
- package/dist/types/reservations/dto/reservation.dto.d.ts +164 -0
- package/dist/types/reservations/dto/reservation.dto.js +694 -0
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -0
- package/dist/types/reservations/dto/segment.dto.d.ts +13 -0
- package/dist/types/reservations/dto/segment.dto.js +83 -0
- package/dist/types/reservations/dto/segment.dto.js.map +1 -0
- package/dist/types/reservations/dto/series.dto.d.ts +20 -0
- package/dist/types/reservations/dto/series.dto.js +112 -0
- package/dist/types/reservations/dto/series.dto.js.map +1 -0
- package/dist/types/reservations/dto/slot.dto.d.ts +67 -0
- package/dist/types/reservations/dto/slot.dto.js +312 -0
- package/dist/types/reservations/dto/slot.dto.js.map +1 -0
- package/dist/types/reservations/dto/v1.reservation.dto.d.ts +36 -0
- package/dist/types/reservations/dto/v1.reservation.dto.js +167 -0
- package/dist/types/reservations/dto/v1.reservation.dto.js.map +1 -0
- package/dist/types/reservations/entities/Addon.d.ts +26 -0
- package/dist/types/reservations/entities/Addon.js +128 -0
- package/dist/types/reservations/entities/Addon.js.map +1 -0
- package/dist/types/reservations/entities/InvoicedSlots.d.ts +7 -0
- package/dist/types/reservations/entities/InvoicedSlots.js +38 -0
- package/dist/types/reservations/entities/InvoicedSlots.js.map +1 -0
- package/dist/types/reservations/entities/Reservations.d.ts +40 -0
- package/dist/types/reservations/entities/Reservations.js +191 -0
- package/dist/types/reservations/entities/Reservations.js.map +1 -0
- package/dist/types/reservations/entities/Segments.d.ts +18 -0
- package/dist/types/reservations/entities/Segments.js +86 -0
- package/dist/types/reservations/entities/Segments.js.map +1 -0
- package/dist/types/reservations/entities/Series.d.ts +23 -0
- package/dist/types/reservations/entities/Series.js +108 -0
- package/dist/types/reservations/entities/Series.js.map +1 -0
- package/dist/types/reservations/entities/Slots.d.ts +76 -0
- package/dist/types/reservations/entities/Slots.js +319 -0
- package/dist/types/reservations/entities/Slots.js.map +1 -0
- package/dist/types/reservations/entities/index.d.ts +6 -0
- package/dist/types/reservations/entities/index.js +23 -0
- package/dist/types/reservations/entities/index.js.map +1 -0
- package/dist/types/reservations/index.d.ts +3 -0
- package/dist/types/reservations/index.js +20 -0
- package/dist/types/reservations/index.js.map +1 -0
- package/dist/types/reservations/interfaces/index.d.ts +2 -0
- package/dist/types/reservations/interfaces/index.js +19 -0
- package/dist/types/reservations/interfaces/index.js.map +1 -0
- package/dist/types/reservations/interfaces/invoice.d.ts +63 -0
- package/dist/types/reservations/interfaces/invoice.js +13 -0
- package/dist/types/reservations/interfaces/invoice.js.map +1 -0
- package/dist/types/reservations/interfaces/reservation.d.ts +240 -0
- package/dist/types/reservations/interfaces/reservation.js +11 -0
- package/dist/types/reservations/interfaces/reservation.js.map +1 -0
- package/dist/types/roles/dto/change-permissions.dto.d.ts +3 -0
- package/dist/types/roles/dto/change-permissions.dto.js +23 -0
- package/dist/types/roles/dto/change-permissions.dto.js.map +1 -0
- package/dist/types/roles/dto/create-role.dto.d.ts +3 -0
- package/dist/types/roles/dto/create-role.dto.js +23 -0
- package/dist/types/roles/dto/create-role.dto.js.map +1 -0
- package/dist/types/roles/dto/index.d.ts +3 -0
- package/dist/types/roles/dto/index.js +20 -0
- package/dist/types/roles/dto/index.js.map +1 -0
- package/dist/types/roles/dto/update-role.dto.d.ts +5 -0
- package/dist/types/roles/dto/update-role.dto.js +9 -0
- package/dist/types/roles/dto/update-role.dto.js.map +1 -0
- package/dist/types/roles/entities/Permission.d.ts +5 -0
- package/dist/types/roles/entities/Permission.js +29 -0
- package/dist/types/roles/entities/Permission.js.map +1 -0
- package/dist/types/roles/entities/Role.d.ts +9 -0
- package/dist/types/roles/entities/Role.js +51 -0
- package/dist/types/roles/entities/Role.js.map +1 -0
- package/dist/types/roles/entities/UserRole.d.ts +10 -0
- package/dist/types/roles/entities/UserRole.js +46 -0
- package/dist/types/roles/entities/UserRole.js.map +1 -0
- package/dist/types/roles/entities/index.d.ts +3 -0
- package/dist/types/roles/entities/index.js +20 -0
- package/dist/types/roles/entities/index.js.map +1 -0
- package/dist/types/roles/index.d.ts +2 -0
- package/dist/types/roles/index.js +19 -0
- package/dist/types/roles/index.js.map +1 -0
- package/dist/types/services/enums.service.d.ts +569 -0
- package/dist/types/services/enums.service.js +654 -0
- package/dist/types/services/enums.service.js.map +1 -0
- package/dist/types/services/index.d.ts +2 -0
- package/dist/types/services/index.js +19 -0
- package/dist/types/services/index.js.map +1 -0
- package/dist/types/services/interfaces.service.d.ts +383 -0
- package/dist/types/services/interfaces.service.js +21 -0
- package/dist/types/services/interfaces.service.js.map +1 -0
- package/dist/types/shifts/dto/close-shift.dto.d.ts +3 -0
- package/dist/types/shifts/dto/close-shift.dto.js +23 -0
- package/dist/types/shifts/dto/close-shift.dto.js.map +1 -0
- package/dist/types/shifts/dto/find-shifts-by-ids.dto.d.ts +3 -0
- package/dist/types/shifts/dto/find-shifts-by-ids.dto.js +23 -0
- package/dist/types/shifts/dto/find-shifts-by-ids.dto.js.map +1 -0
- package/dist/types/shifts/dto/find-shifts-filters.dto.d.ts +20 -0
- package/dist/types/shifts/dto/find-shifts-filters.dto.js +69 -0
- package/dist/types/shifts/dto/find-shifts-filters.dto.js.map +1 -0
- package/dist/types/shifts/dto/index.d.ts +5 -0
- package/dist/types/shifts/dto/index.js +22 -0
- package/dist/types/shifts/dto/index.js.map +1 -0
- package/dist/types/shifts/dto/management-closing-shifts.dto.d.ts +7 -0
- package/dist/types/shifts/dto/management-closing-shifts.dto.js +37 -0
- package/dist/types/shifts/dto/management-closing-shifts.dto.js.map +1 -0
- package/dist/types/shifts/dto/open-shift.dto.d.ts +4 -0
- package/dist/types/shifts/dto/open-shift.dto.js +28 -0
- package/dist/types/shifts/dto/open-shift.dto.js.map +1 -0
- package/dist/types/shifts/entities/index.d.ts +1 -0
- package/dist/types/shifts/entities/index.js +18 -0
- package/dist/types/shifts/entities/index.js.map +1 -0
- package/dist/types/shifts/entities/shift.entity.d.ts +33 -0
- package/dist/types/shifts/entities/shift.entity.js +134 -0
- package/dist/types/shifts/entities/shift.entity.js.map +1 -0
- package/dist/types/shifts/index.d.ts +2 -0
- package/dist/types/shifts/index.js +19 -0
- package/dist/types/shifts/index.js.map +1 -0
- package/dist/types/util/dto.util.d.ts +7 -0
- package/dist/types/util/dto.util.js +22 -0
- package/dist/types/util/dto.util.js.map +1 -0
- package/dist/types/util/index.d.ts +4 -0
- package/dist/types/util/index.js +21 -0
- package/dist/types/util/index.js.map +1 -0
- package/dist/types/util/string.util.d.ts +4 -0
- package/dist/types/util/string.util.js +12 -0
- package/dist/types/util/string.util.js.map +1 -0
- package/dist/types/util/transformer.util.d.ts +6 -0
- package/dist/types/util/transformer.util.js +43 -0
- package/dist/types/util/transformer.util.js.map +1 -0
- package/dist/types/util/typesScript.util.d.ts +4 -0
- package/dist/types/util/typesScript.util.js +22 -0
- package/dist/types/util/typesScript.util.js.map +1 -0
- package/dist/types/webflow/index.d.ts +1 -0
- package/dist/types/webflow/index.js +18 -0
- package/dist/types/webflow/index.js.map +1 -0
- package/dist/types/webflow/interfaces/iWebflowProgram.interfaces.d.ts +13 -0
- package/dist/types/webflow/interfaces/iWebflowProgram.interfaces.js +3 -0
- package/dist/types/webflow/interfaces/iWebflowProgram.interfaces.js.map +1 -0
- package/dist/types/webflow/interfaces/index.d.ts +1 -0
- package/dist/types/webflow/interfaces/index.js +18 -0
- package/dist/types/webflow/interfaces/index.js.map +1 -0
- package/package.json +56 -49
- package/build/index.d.ts +0 -4568
- package/build/index.es.js +0 -2
- package/build/index.es.js.map +0 -1
- package/build/index.js +0 -2
- package/build/index.js.map +0 -1
- package/build/provider.d.ts +0 -4
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Price = void 0;
|
|
13
|
+
const Product_1 = require("./Product");
|
|
14
|
+
const enums_service_1 = require("./../services/enums.service");
|
|
15
|
+
const OrganizationConnectionBaseEntity_1 = require("./OrganizationConnectionBaseEntity");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const column_numeric_transformer_1 = require("./decorators/column.numeric.transformer");
|
|
18
|
+
let Price = class Price extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Index)('Prices_productId_fk_idx'),
|
|
22
|
+
(0, typeorm_1.Column)('integer', { name: 'productId', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Price.prototype, "productId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => Product_1.Product, product => product.prices),
|
|
27
|
+
(0, typeorm_1.JoinColumn)([{ name: 'productId', referencedColumnName: 'id' }]),
|
|
28
|
+
__metadata("design:type", Product_1.Product)
|
|
29
|
+
], Price.prototype, "product", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)('varchar', { name: 'name', nullable: true, length: 255 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Price.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)('decimal', {
|
|
36
|
+
name: 'price',
|
|
37
|
+
nullable: false,
|
|
38
|
+
precision: 7,
|
|
39
|
+
scale: 2,
|
|
40
|
+
transformer: new column_numeric_transformer_1.ColumnNumericTransformer(),
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], Price.prototype, "price", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)('varchar', { name: 'currency', nullable: false, default: 'USD' }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Price.prototype, "currency", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)('varchar', { name: 'paymentProcessorId', nullable: true, length: 255 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], Price.prototype, "paymentProcessorId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)('date', { name: 'startDate', nullable: true }),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], Price.prototype, "startDate", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)('date', { name: 'endDate', nullable: true }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], Price.prototype, "endDate", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deletedAt' }),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], Price.prototype, "deletedAt", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)('varchar', { name: 'discountMethod', nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Price.prototype, "discountMethod", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)('decimal', {
|
|
70
|
+
name: 'discountValue',
|
|
71
|
+
nullable: true,
|
|
72
|
+
precision: 7,
|
|
73
|
+
scale: 2,
|
|
74
|
+
transformer: new column_numeric_transformer_1.ColumnNumericTransformer(),
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], Price.prototype, "discountValue", void 0);
|
|
78
|
+
Price = __decorate([
|
|
79
|
+
(0, typeorm_1.Index)('Prices_pkey', ['id'], { unique: true }),
|
|
80
|
+
(0, typeorm_1.Entity)('Prices', { schema: 'public' })
|
|
81
|
+
], Price);
|
|
82
|
+
exports.Price = Price;
|
|
83
|
+
//# sourceMappingURL=Price.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../src/types/entity/Price.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoC;AACpC,+DAAgF;AAChF,yFAAsF;AACtF,qCAAyF;AACzF,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C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,IAAI;sCAAC;AAOd;IAAC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;wCAAC;AAEjB;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACzB;AACrC;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI,qDAAwB,EAAE;KAC3C,CAAC;;4CACqB;AAlDX,KAAK;IAFjB,IAAA,eAAK,EAAC,aAAa,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,gBAAM,EAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;GAC1B,KAAK,CAqDjB;AArDY,sBAAK"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { GroupItemsPricing } from './GroupItemsPricing';
|
|
2
|
+
import { LineItems } from './LineItems';
|
|
3
|
+
import { ProductTypesEnum, ProductSubTypesEnum, AddonTimePeriodEnum } from './../services/enums.service';
|
|
4
|
+
import { Price } from './Price';
|
|
5
|
+
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
6
|
+
import { IResourcesAvailability, IChildProduct } from './../services/interfaces.service';
|
|
7
|
+
import { Variant } from './Variants';
|
|
8
|
+
import { VariantTitle } from './VariantTitles';
|
|
9
|
+
import { ProductsUsers } from './ProductsUsers';
|
|
10
|
+
import { ProductPaymentPlan } from './ProductPaymentPlan';
|
|
11
|
+
import { ProductResource } from './ProductResource';
|
|
12
|
+
import { ProductPackage } from './ProductPackage';
|
|
13
|
+
import { Customer } from './Customer';
|
|
14
|
+
import { Membership } from './Membership';
|
|
15
|
+
import { ActivityTimes } from './ActivityTimes';
|
|
16
|
+
import { ProductsReservedForCustomers } from './ProductsReservedForCustomers';
|
|
17
|
+
import { PurchasedResource } from './PurchasedResources';
|
|
18
|
+
export declare class Product extends OrganizationConnectionBaseEntity {
|
|
19
|
+
name: string;
|
|
20
|
+
quantity: number;
|
|
21
|
+
isAll: boolean;
|
|
22
|
+
paymentProcessorId?: string;
|
|
23
|
+
startDate?: Date;
|
|
24
|
+
endDate?: Date;
|
|
25
|
+
isPublic: boolean;
|
|
26
|
+
productType?: ProductTypesEnum;
|
|
27
|
+
GL?: string;
|
|
28
|
+
downpayment?: number;
|
|
29
|
+
description?: string;
|
|
30
|
+
prices: Price[];
|
|
31
|
+
currPrice: Price;
|
|
32
|
+
productSubType?: ProductSubTypesEnum;
|
|
33
|
+
punchCard: boolean;
|
|
34
|
+
requiredProductIds?: number[];
|
|
35
|
+
lineItems: LineItems[];
|
|
36
|
+
resources: IResourcesAvailability[];
|
|
37
|
+
variantParentId?: number;
|
|
38
|
+
isAddon: boolean;
|
|
39
|
+
isArchive: boolean;
|
|
40
|
+
productVariants: Product[];
|
|
41
|
+
variantParentProduct: Product;
|
|
42
|
+
variantsObj: Variant[];
|
|
43
|
+
variantTitlesObj: VariantTitle[];
|
|
44
|
+
timePeriod?: AddonTimePeriodEnum;
|
|
45
|
+
deletedAt?: Date;
|
|
46
|
+
productsUsers: ProductsUsers[];
|
|
47
|
+
isProRated: boolean;
|
|
48
|
+
entitledPrices?: GroupItemsPricing[];
|
|
49
|
+
defaultPriceId?: number;
|
|
50
|
+
tax: number;
|
|
51
|
+
isTaxInclusive: boolean;
|
|
52
|
+
defaultPrice?: Price;
|
|
53
|
+
addOns?: IChildProduct[];
|
|
54
|
+
productPaymentPlan?: ProductPaymentPlan;
|
|
55
|
+
productResources: ProductResource[];
|
|
56
|
+
parentProductPackages: ProductPackage[];
|
|
57
|
+
childProductPackages: ProductPackage[];
|
|
58
|
+
sports?: number[] | null;
|
|
59
|
+
durationMinutes?: number;
|
|
60
|
+
durationDays?: number;
|
|
61
|
+
forms?: number[] | null;
|
|
62
|
+
isForAllCustomers?: boolean;
|
|
63
|
+
productsReservedForCustomers: ProductsReservedForCustomers[];
|
|
64
|
+
reservedForCustomers: Customer[];
|
|
65
|
+
reservedForMemberships: Membership[];
|
|
66
|
+
activityTimes: ActivityTimes[];
|
|
67
|
+
purchasedResources: PurchasedResource[];
|
|
68
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var Product_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Product = void 0;
|
|
14
|
+
const LineItems_1 = require("./LineItems");
|
|
15
|
+
const enums_service_1 = require("./../services/enums.service");
|
|
16
|
+
const Price_1 = require("./Price");
|
|
17
|
+
const OrganizationConnectionBaseEntity_1 = require("./OrganizationConnectionBaseEntity");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
19
|
+
const Variants_1 = require("./Variants");
|
|
20
|
+
const VariantTitles_1 = require("./VariantTitles");
|
|
21
|
+
const ProductsUsers_1 = require("./ProductsUsers");
|
|
22
|
+
const ProductPaymentPlan_1 = require("./ProductPaymentPlan");
|
|
23
|
+
const column_numeric_transformer_1 = require("./decorators/column.numeric.transformer");
|
|
24
|
+
const ProductResource_1 = require("./ProductResource");
|
|
25
|
+
const ProductPackage_1 = require("./ProductPackage");
|
|
26
|
+
const ActivityTimes_1 = require("./ActivityTimes");
|
|
27
|
+
const ProductsReservedForCustomers_1 = require("./ProductsReservedForCustomers");
|
|
28
|
+
const PurchasedResources_1 = require("./PurchasedResources");
|
|
29
|
+
let Product = Product_1 = class Product extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)('varchar', { name: 'name', nullable: false, length: 255 }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Product.prototype, "name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)('integer', { name: 'quantity', nullable: false, default: 1 }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], Product.prototype, "quantity", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)('bool', { name: 'isAll', nullable: false, default: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], Product.prototype, "isAll", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)('varchar', { name: 'paymentProcessorId', nullable: true, length: 255 }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Product.prototype, "paymentProcessorId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)('date', { name: 'startDate', nullable: true }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], Product.prototype, "startDate", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)('date', { name: 'endDate', nullable: true }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], Product.prototype, "endDate", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)('bool', { name: 'isPublic', nullable: false, default: false }),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], Product.prototype, "isPublic", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)('varchar', { name: 'productType', nullable: true, length: 255 }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], Product.prototype, "productType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)('varchar', { name: 'GL', nullable: true, length: 255 }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], Product.prototype, "GL", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)('integer', { name: 'downpayment', nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], Product.prototype, "downpayment", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)('varchar', { name: 'description', nullable: true, length: 255 }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Product.prototype, "description", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.OneToMany)(() => Price_1.Price, price => price.product),
|
|
77
|
+
__metadata("design:type", Array)
|
|
78
|
+
], Product.prototype, "prices", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)('varchar', { name: 'productSubType', nullable: true, length: 255 }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Product.prototype, "productSubType", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)('bool', { name: 'punchCard', nullable: false, default: false }),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], Product.prototype, "punchCard", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)('integer', { name: 'requiredProductIds', nullable: true, array: true }),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], Product.prototype, "requiredProductIds", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.OneToMany)(() => LineItems_1.LineItems, lineItem => lineItem.product),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], Product.prototype, "lineItems", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Index)('Products_variantParentId_idx'),
|
|
97
|
+
(0, typeorm_1.Column)('integer', { name: 'variantParentId', nullable: true }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], Product.prototype, "variantParentId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)('bool', { name: 'isAddon', nullable: false, default: false }),
|
|
102
|
+
__metadata("design:type", Boolean)
|
|
103
|
+
], Product.prototype, "isAddon", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)('bool', { name: 'isArchive', nullable: false, default: false }),
|
|
106
|
+
__metadata("design:type", Boolean)
|
|
107
|
+
], Product.prototype, "isArchive", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.OneToMany)(() => Product_1, productVariant => productVariant.variantParentProduct),
|
|
110
|
+
__metadata("design:type", Array)
|
|
111
|
+
], Product.prototype, "productVariants", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.ManyToOne)(() => Product_1, variantParentProduct => variantParentProduct.productVariants),
|
|
114
|
+
(0, typeorm_1.JoinColumn)([{ name: 'variantParentId' }]),
|
|
115
|
+
__metadata("design:type", Product)
|
|
116
|
+
], Product.prototype, "variantParentProduct", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.ManyToMany)(() => Variants_1.Variant),
|
|
119
|
+
(0, typeorm_1.JoinTable)({
|
|
120
|
+
name: 'ProductToVariants',
|
|
121
|
+
joinColumn: {
|
|
122
|
+
name: 'productId',
|
|
123
|
+
referencedColumnName: 'id',
|
|
124
|
+
},
|
|
125
|
+
inverseJoinColumn: {
|
|
126
|
+
name: 'variantId',
|
|
127
|
+
referencedColumnName: 'id',
|
|
128
|
+
},
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", Array)
|
|
131
|
+
], Product.prototype, "variantsObj", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.ManyToMany)(() => VariantTitles_1.VariantTitle),
|
|
134
|
+
(0, typeorm_1.JoinTable)({
|
|
135
|
+
name: 'ProductToVariantTitles',
|
|
136
|
+
joinColumn: {
|
|
137
|
+
name: 'productId',
|
|
138
|
+
referencedColumnName: 'id',
|
|
139
|
+
},
|
|
140
|
+
inverseJoinColumn: {
|
|
141
|
+
name: 'variantTitleId',
|
|
142
|
+
referencedColumnName: 'id',
|
|
143
|
+
},
|
|
144
|
+
}),
|
|
145
|
+
__metadata("design:type", Array)
|
|
146
|
+
], Product.prototype, "variantTitlesObj", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deletedAt' }),
|
|
149
|
+
__metadata("design:type", Date)
|
|
150
|
+
], Product.prototype, "deletedAt", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.OneToMany)(() => ProductsUsers_1.ProductsUsers, productsUsers => productsUsers.product),
|
|
153
|
+
__metadata("design:type", Array)
|
|
154
|
+
], Product.prototype, "productsUsers", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)('boolean', { name: 'isProRated', nullable: false, default: false }),
|
|
157
|
+
__metadata("design:type", Boolean)
|
|
158
|
+
], Product.prototype, "isProRated", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)('integer', { name: 'defaultPriceId', nullable: true }),
|
|
161
|
+
__metadata("design:type", Number)
|
|
162
|
+
], Product.prototype, "defaultPriceId", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)('decimal', {
|
|
165
|
+
name: 'tax',
|
|
166
|
+
nullable: false,
|
|
167
|
+
precision: 7,
|
|
168
|
+
scale: 2,
|
|
169
|
+
transformer: new column_numeric_transformer_1.ColumnNumericTransformer(),
|
|
170
|
+
default: 0,
|
|
171
|
+
}),
|
|
172
|
+
__metadata("design:type", Number)
|
|
173
|
+
], Product.prototype, "tax", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, typeorm_1.Column)('bool', { name: 'isTaxInclusive', nullable: false, default: true }),
|
|
176
|
+
__metadata("design:type", Boolean)
|
|
177
|
+
], Product.prototype, "isTaxInclusive", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, typeorm_1.OneToOne)(() => ProductPaymentPlan_1.ProductPaymentPlan),
|
|
180
|
+
(0, typeorm_1.JoinColumn)([{ name: 'id', referencedColumnName: 'productId' }]),
|
|
181
|
+
__metadata("design:type", ProductPaymentPlan_1.ProductPaymentPlan)
|
|
182
|
+
], Product.prototype, "productPaymentPlan", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, typeorm_1.OneToMany)(() => ProductResource_1.ProductResource, productResource => productResource.product),
|
|
185
|
+
(0, typeorm_1.JoinColumn)([{ name: 'id', referencedColumnName: 'productId' }]),
|
|
186
|
+
__metadata("design:type", Array)
|
|
187
|
+
], Product.prototype, "productResources", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.OneToMany)(() => ProductPackage_1.ProductPackage, productPackages => productPackages.childProduct),
|
|
190
|
+
(0, typeorm_1.JoinColumn)([{ name: 'id', referencedColumnName: 'childProductId' }]),
|
|
191
|
+
__metadata("design:type", Array)
|
|
192
|
+
], Product.prototype, "parentProductPackages", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.OneToMany)(() => ProductPackage_1.ProductPackage, productPackages => productPackages.parentProduct),
|
|
195
|
+
(0, typeorm_1.JoinColumn)([{ name: 'id', referencedColumnName: 'parentProductId' }]),
|
|
196
|
+
__metadata("design:type", Array)
|
|
197
|
+
], Product.prototype, "childProductPackages", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, typeorm_1.Column)('integer', { name: 'sports', nullable: true, array: true }),
|
|
200
|
+
__metadata("design:type", Array)
|
|
201
|
+
], Product.prototype, "sports", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, typeorm_1.Column)('integer', { name: 'durationMinutes', nullable: true }),
|
|
204
|
+
__metadata("design:type", Number)
|
|
205
|
+
], Product.prototype, "durationMinutes", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, typeorm_1.Column)('integer', { name: 'durationDays', nullable: true }),
|
|
208
|
+
__metadata("design:type", Number)
|
|
209
|
+
], Product.prototype, "durationDays", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, typeorm_1.Column)('integer', { name: 'forms', nullable: true, array: true }),
|
|
212
|
+
__metadata("design:type", Array)
|
|
213
|
+
], Product.prototype, "forms", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, typeorm_1.OneToMany)(() => ProductsReservedForCustomers_1.ProductsReservedForCustomers, reservedForClients => reservedForClients.product),
|
|
216
|
+
(0, typeorm_1.JoinColumn)([{ name: 'id', referencedColumnName: 'productId' }]),
|
|
217
|
+
__metadata("design:type", Array)
|
|
218
|
+
], Product.prototype, "productsReservedForCustomers", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, typeorm_1.OneToMany)(() => ActivityTimes_1.ActivityTimes, activityTime => activityTime.proudct),
|
|
221
|
+
(0, typeorm_1.JoinColumn)([{ name: 'id', referencedColumnName: 'parentId' }]),
|
|
222
|
+
__metadata("design:type", Array)
|
|
223
|
+
], Product.prototype, "activityTimes", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, typeorm_1.OneToMany)(() => PurchasedResources_1.PurchasedResource, purchasedResource => purchasedResource.programSeason),
|
|
226
|
+
__metadata("design:type", Array)
|
|
227
|
+
], Product.prototype, "purchasedResources", void 0);
|
|
228
|
+
Product = Product_1 = __decorate([
|
|
229
|
+
(0, typeorm_1.Index)('Products_pkey', ['id'], { unique: true }),
|
|
230
|
+
(0, typeorm_1.Entity)('Products', { schema: 'public' })
|
|
231
|
+
], Product);
|
|
232
|
+
exports.Product = Product;
|
|
233
|
+
//# sourceMappingURL=Product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../src/types/entity/Product.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,2CAAwC;AACxC,+DAAyG;AACzG,mCAAgC;AAChC,yFAAsF;AACtF,qCAWiB;AAEjB,yCAAqC;AACrC,mDAA+C;AAC/C,mDAAgD;AAChD,6DAA0D;AAC1D,wFAAmF;AACnF,uDAAoD;AACpD,qDAAkD;AAGlD,mDAAgD;AAChD,iFAA8E;AAE9E,6DAAyD;AAIlD,IAAM,OAAO,eAAb,MAAM,OAAQ,SAAQ,mEAAgC;CAwL5D,CAAA;AAvLA;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qCACrD;AAEb;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACpD;AAEjB;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sCACpD;AAEf;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDACnD;AAE5B;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,Q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,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;sCAC1C;AAIxB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2DAA4B,EAAE,kBAAkB,CAAC,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;IAC/F,IAAA,oBAAU,EAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC,CAAC;;6DACH;AAO7D;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAa,EAAE,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;IACpE,IAAA,oBAAU,EAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,UAAU,EAAE,CAAC,CAAC;;8CAChC;AAE/B;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,aAAa,CAAC;;mDACjD;AAvL5B,OAAO;IAFnB,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAChD,IAAA,gBAAM,EAAC,UAAU,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;GAC5B,OAAO,CAwLnB;AAxLY,0BAAO"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, ProductPackageLevelEnum } from './../services/enums.service';
|
|
2
|
+
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
3
|
+
import { ProductResource } from './ProductResource';
|
|
4
|
+
import { Product } from './Product';
|
|
5
|
+
export declare class ProductPackage extends OrganizationConnectionBaseEntity {
|
|
6
|
+
parentProductId: number;
|
|
7
|
+
childProductId: number;
|
|
8
|
+
relationType: PackageProductsRelationTypeEnum;
|
|
9
|
+
timePeriod: AddonTimePeriodEnum;
|
|
10
|
+
deletedAt?: Date;
|
|
11
|
+
productResource: ProductResource;
|
|
12
|
+
childProduct: Product;
|
|
13
|
+
parentProduct: Product;
|
|
14
|
+
price: number;
|
|
15
|
+
isFlatPrice: boolean;
|
|
16
|
+
durationMinutes?: number;
|
|
17
|
+
durationDays?: number;
|
|
18
|
+
level?: ProductPackageLevelEnum;
|
|
19
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProductPackage = void 0;
|
|
13
|
+
const enums_service_1 = require("./../services/enums.service");
|
|
14
|
+
const OrganizationConnectionBaseEntity_1 = require("./OrganizationConnectionBaseEntity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const ProductResource_1 = require("./ProductResource");
|
|
17
|
+
const Product_1 = require("./Product");
|
|
18
|
+
const column_numeric_transformer_1 = require("./decorators/column.numeric.transformer");
|
|
19
|
+
let ProductPackage = class ProductPackage extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)('integer', { name: 'parentProductId', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ProductPackage.prototype, "parentProductId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)('integer', { name: 'childProductId', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ProductPackage.prototype, "childProductId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)('varchar', { name: 'relationType', nullable: false, length: 255 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ProductPackage.prototype, "relationType", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)('varchar', { name: 'timePeriod', nullable: true, length: 255 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ProductPackage.prototype, "timePeriod", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deletedAt' }),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], ProductPackage.prototype, "deletedAt", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => ProductResource_1.ProductResource, productResource => productResource.productPackages),
|
|
43
|
+
(0, typeorm_1.JoinColumn)([{ name: 'parentProductId', referencedColumnName: 'productId' }]),
|
|
44
|
+
__metadata("design:type", ProductResource_1.ProductResource)
|
|
45
|
+
], ProductPackage.prototype, "productResource", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => Product_1.Product, product => product.parentProductPackages),
|
|
48
|
+
__metadata("design:type", Product_1.Product)
|
|
49
|
+
], ProductPackage.prototype, "childProduct", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => Product_1.Product, product => product.childProductPackages),
|
|
52
|
+
(0, typeorm_1.JoinColumn)([{ name: 'parentProductId', referencedColumnName: 'id' }]),
|
|
53
|
+
__metadata("design:type", Product_1.Product)
|
|
54
|
+
], ProductPackage.prototype, "parentProduct", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)('decimal', {
|
|
57
|
+
name: 'price',
|
|
58
|
+
nullable: false,
|
|
59
|
+
precision: 7,
|
|
60
|
+
scale: 2,
|
|
61
|
+
transformer: new column_numeric_transformer_1.ColumnNumericTransformer(),
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], ProductPackage.prototype, "price", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)('bool', { name: 'isFlatPrice', nullable: true }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], ProductPackage.prototype, "isFlatPrice", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)('integer', { name: 'durationMinutes', nullable: true }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], ProductPackage.prototype, "durationMinutes", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)('integer', { name: 'durationDays', nullable: true }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], ProductPackage.prototype, "durationDays", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)('varchar', { name: 'level', nullable: true, length: 255 }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], ProductPackage.prototype, "level", void 0);
|
|
81
|
+
ProductPackage = __decorate([
|
|
82
|
+
(0, typeorm_1.Index)('ProductPackages_pkey', ['id'], { unique: true }),
|
|
83
|
+
(0, typeorm_1.Entity)('ProductPackages', { schema: 'public' })
|
|
84
|
+
], ProductPackage);
|
|
85
|
+
exports.ProductPackage = ProductPackage;
|
|
86
|
+
//# sourceMappingURL=ProductPackage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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} from './OrganizationConnectionBaseEntity';
|
|
3
|
+
import { Product } from './Product';
|
|
4
|
+
export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
|
|
5
|
+
productId: number;
|
|
6
|
+
maxMonths?: number;
|
|
7
|
+
dayOfMonth?: number;
|
|
8
|
+
name: string;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
schedule: PaymentPlanSchedule[];
|
|
11
|
+
product?: Product;
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProductPaymentPlan = void 0;
|
|
13
|
+
const PaymentPlanSchedule_1 = require("./PaymentPlanSchedule");
|
|
14
|
+
const OrganizationConnectionBaseEntity_1 = require("./OrganizationConnectionBaseEntity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const Product_1 = require("./Product");
|
|
17
|
+
let ProductPaymentPlan = class ProductPaymentPlan extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Index)('ProductPaymentPlans_productId_fk_idx'),
|
|
21
|
+
(0, typeorm_1.Column)('integer', { name: 'productId', nullable: false }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductPaymentPlan.prototype, "productId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)('integer', { name: 'maxMonths', nullable: true }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ProductPaymentPlan.prototype, "maxMonths", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('integer', { name: 'dayOfMonth', nullable: true }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ProductPaymentPlan.prototype, "dayOfMonth", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)('varchar', { name: 'name', nullable: false, length: 255 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ProductPaymentPlan.prototype, "name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deletedAt' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], ProductPaymentPlan.prototype, "deletedAt", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.OneToMany)(() => PaymentPlanSchedule_1.PaymentPlanSchedule, schedule => schedule.paymentPlan, { cascade: true }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], ProductPaymentPlan.prototype, "schedule", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.OneToOne)(() => Product_1.Product),
|
|
46
|
+
__metadata("design:type", Product_1.Product)
|
|
47
|
+
], ProductPaymentPlan.prototype, "product", void 0);
|
|
48
|
+
ProductPaymentPlan = __decorate([
|
|
49
|
+
(0, typeorm_1.Index)('ProductPaymentPlans_pkey', ['id'], { unique: true }),
|
|
50
|
+
(0, typeorm_1.Entity)('ProductPaymentPlans', { schema: 'public' })
|
|
51
|
+
], ProductPaymentPlan);
|
|
52
|
+
exports.ProductPaymentPlan = ProductPaymentPlan;
|
|
53
|
+
//# sourceMappingURL=ProductPaymentPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductPaymentPlan.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPaymentPlan.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAC5D,yFAAsF;AACtF,qCAAuF;AACvF,uCAAoC;AAK7B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,mEAAgC;CAsBvE,CAAA;AArBA;IAAC,IAAA,eAAK,EAAC,sCAAsC,CAAC;IAC7C,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qDACxC;AAElB;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACtC;AAEnB;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACtC;AAEpB;IAAC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;gDACrD;AAEb;IAAC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC5B,IAAI;qDAAC;AAEjB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAmB,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDAC1D;AAEhC;IAAC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACd,iBAAO;mDAAC;AArBN,kBAAkB;IAF9B,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,gBAAM,EAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;GACvC,kBAAkB,CAsB9B;AAtBY,gDAAkB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Product } from './Product';
|
|
2
|
+
import { ResourceNameTypeEnum } from '../services/enums.service';
|
|
3
|
+
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
|
4
|
+
import { ProgramSeason } from './ProgramSeason';
|
|
5
|
+
import { Event } from './Events';
|
|
6
|
+
import { ProductPackage } from './ProductPackage';
|
|
7
|
+
export declare class ProductResource extends OrganizationConnectionBaseEntity {
|
|
8
|
+
productId: number;
|
|
9
|
+
resourceId: number;
|
|
10
|
+
resourceType: ResourceNameTypeEnum;
|
|
11
|
+
deletedAt?: Date;
|
|
12
|
+
programSeason: ProgramSeason;
|
|
13
|
+
event: Event;
|
|
14
|
+
product: Product;
|
|
15
|
+
productPackages: ProductPackage[];
|
|
16
|
+
resourceName?: string;
|
|
17
|
+
}
|