@stamhoofd/models 2.118.1 → 2.120.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/dist/factories/AddressFactory.d.ts.map +1 -0
- package/dist/factories/AddressFactory.js +38 -0
- package/dist/factories/AddressFactory.js.map +1 -0
- package/dist/factories/BalanceItemFactory.d.ts +29 -0
- package/dist/factories/BalanceItemFactory.d.ts.map +1 -0
- package/dist/factories/BalanceItemFactory.js +56 -0
- package/dist/factories/BalanceItemFactory.js.map +1 -0
- package/dist/factories/DocumentTemplateFactory.d.ts +22 -0
- package/dist/factories/DocumentTemplateFactory.d.ts.map +1 -0
- package/dist/factories/DocumentTemplateFactory.js +145 -0
- package/dist/factories/DocumentTemplateFactory.js.map +1 -0
- package/dist/factories/EmailTemplateFactory.d.ts +18 -0
- package/dist/factories/EmailTemplateFactory.d.ts.map +1 -0
- package/dist/factories/EmailTemplateFactory.js +39 -0
- package/dist/factories/EmailTemplateFactory.js.map +1 -0
- package/dist/factories/EmergencyContactFactory.d.ts.map +1 -0
- package/dist/factories/EmergencyContactFactory.js +38 -0
- package/dist/factories/EmergencyContactFactory.js.map +1 -0
- package/dist/factories/EventFactory.d.ts +19 -0
- package/dist/factories/EventFactory.d.ts.map +1 -0
- package/dist/factories/EventFactory.js +31 -0
- package/dist/factories/EventFactory.js.map +1 -0
- package/dist/factories/EventNotificationFactory.d.ts +23 -0
- package/dist/factories/EventNotificationFactory.d.ts.map +1 -0
- package/dist/factories/EventNotificationFactory.js +40 -0
- package/dist/factories/EventNotificationFactory.js.map +1 -0
- package/dist/factories/EventNotificationTypeFactory.d.ts +12 -0
- package/dist/factories/EventNotificationTypeFactory.d.ts.map +1 -0
- package/dist/factories/EventNotificationTypeFactory.js +21 -0
- package/dist/factories/EventNotificationTypeFactory.js.map +1 -0
- package/dist/factories/GroupFactory.d.ts +27 -0
- package/dist/factories/GroupFactory.d.ts.map +1 -0
- package/dist/factories/GroupFactory.js +88 -0
- package/dist/factories/GroupFactory.js.map +1 -0
- package/dist/factories/MemberFactory.d.ts +26 -0
- package/dist/factories/MemberFactory.d.ts.map +1 -0
- package/dist/factories/MemberFactory.js +131 -0
- package/dist/factories/MemberFactory.js.map +1 -0
- package/dist/factories/MemberResponsibilityRecordFactory.d.ts +15 -0
- package/dist/factories/MemberResponsibilityRecordFactory.d.ts.map +1 -0
- package/dist/factories/MemberResponsibilityRecordFactory.js +30 -0
- package/dist/factories/MemberResponsibilityRecordFactory.js.map +1 -0
- package/dist/factories/OrganizationFactory.d.ts +20 -0
- package/dist/factories/OrganizationFactory.d.ts.map +1 -0
- package/dist/factories/OrganizationFactory.js +61 -0
- package/dist/factories/OrganizationFactory.js.map +1 -0
- package/dist/factories/OrganizationRegistrationPeriodFactory.d.ts +13 -0
- package/dist/factories/OrganizationRegistrationPeriodFactory.d.ts.map +1 -0
- package/dist/factories/OrganizationRegistrationPeriodFactory.js +16 -0
- package/dist/factories/OrganizationRegistrationPeriodFactory.js.map +1 -0
- package/dist/factories/OrganizationTagFactory.d.ts.map +1 -0
- package/dist/factories/OrganizationTagFactory.js +19 -0
- package/dist/factories/OrganizationTagFactory.js.map +1 -0
- package/dist/factories/ParentFactory.d.ts.map +1 -0
- package/dist/factories/ParentFactory.js +39 -0
- package/dist/factories/ParentFactory.js.map +1 -0
- package/dist/factories/PlatformEventTypeFactory.d.ts.map +1 -0
- package/dist/factories/PlatformEventTypeFactory.js +23 -0
- package/dist/factories/PlatformEventTypeFactory.js.map +1 -0
- package/dist/factories/PlatformResponsibilityFactory.d.ts.map +1 -0
- package/dist/factories/PlatformResponsibilityFactory.js +21 -0
- package/dist/factories/PlatformResponsibilityFactory.js.map +1 -0
- package/dist/factories/RecordAnswerFactory.d.ts +18 -0
- package/dist/factories/RecordAnswerFactory.d.ts.map +1 -0
- package/dist/factories/RecordAnswerFactory.js +91 -0
- package/dist/factories/RecordAnswerFactory.js.map +1 -0
- package/dist/factories/RecordCategoryFactory.d.ts +11 -0
- package/dist/factories/RecordCategoryFactory.d.ts.map +1 -0
- package/dist/factories/RecordCategoryFactory.js +19 -0
- package/dist/factories/RecordCategoryFactory.js.map +1 -0
- package/dist/factories/RecordFactory.d.ts.map +1 -0
- package/dist/factories/RecordFactory.js +16 -0
- package/dist/factories/RecordFactory.js.map +1 -0
- package/dist/factories/RegisterCodeFactory.d.ts.map +1 -0
- package/dist/factories/RegisterCodeFactory.js +14 -0
- package/dist/factories/RegisterCodeFactory.js.map +1 -0
- package/dist/factories/RegistrationFactory.d.ts +21 -0
- package/dist/factories/RegistrationFactory.d.ts.map +1 -0
- package/dist/factories/RegistrationFactory.js +21 -0
- package/dist/factories/RegistrationFactory.js.map +1 -0
- package/dist/factories/RegistrationPeriodFactory.d.ts +16 -0
- package/dist/factories/RegistrationPeriodFactory.d.ts.map +1 -0
- package/dist/factories/RegistrationPeriodFactory.js +30 -0
- package/dist/factories/RegistrationPeriodFactory.js.map +1 -0
- package/dist/factories/STPackageFactory.d.ts +15 -0
- package/dist/factories/STPackageFactory.d.ts.map +1 -0
- package/dist/factories/STPackageFactory.js +34 -0
- package/dist/factories/STPackageFactory.js.map +1 -0
- package/dist/factories/UserFactory.d.ts +22 -0
- package/dist/factories/UserFactory.d.ts.map +1 -0
- package/dist/factories/UserFactory.js +63 -0
- package/dist/factories/UserFactory.js.map +1 -0
- package/dist/factories/WebshopFactory.d.ts +17 -0
- package/dist/factories/WebshopFactory.d.ts.map +1 -0
- package/dist/factories/WebshopFactory.js +35 -0
- package/dist/factories/WebshopFactory.js.map +1 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/factories/index.js +27 -0
- package/dist/factories/index.js.map +1 -0
- package/dist/helpers/DNSValidator.d.ts +6 -0
- package/dist/helpers/DNSValidator.d.ts.map +1 -0
- package/dist/helpers/DNSValidator.js +142 -0
- package/dist/helpers/DNSValidator.js.map +1 -0
- package/dist/helpers/EmailBuilder.d.ts +88 -0
- package/dist/helpers/EmailBuilder.d.ts.map +1 -0
- package/dist/helpers/EmailBuilder.js +603 -0
- package/dist/helpers/EmailBuilder.js.map +1 -0
- package/dist/helpers/Handlebars.d.ts.map +1 -0
- package/dist/helpers/Handlebars.js +244 -0
- package/dist/helpers/Handlebars.js.map +1 -0
- package/dist/helpers/MemberMerger.d.ts.map +1 -0
- package/dist/helpers/MemberMerger.js +364 -0
- package/dist/helpers/MemberMerger.js.map +1 -0
- package/dist/helpers/RateLimiter.d.ts.map +1 -0
- package/dist/helpers/RateLimiter.js +64 -0
- package/dist/helpers/RateLimiter.js.map +1 -0
- package/dist/helpers/WebshopCounter.d.ts +8 -0
- package/dist/helpers/WebshopCounter.d.ts.map +1 -0
- package/dist/helpers/WebshopCounter.js +46 -0
- package/dist/helpers/WebshopCounter.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/1605262045-import-postcodes.d.ts.map +1 -0
- package/dist/migrations/1605262045-import-postcodes.js +117 -0
- package/dist/migrations/1605262045-import-postcodes.js.map +1 -0
- package/dist/migrations/1605262046-import-postcodes-nl.d.ts.map +1 -0
- package/dist/migrations/1605262046-import-postcodes-nl.js +80 -0
- package/dist/migrations/1605262046-import-postcodes-nl.js.map +1 -0
- package/dist/migrations/1720080976-convert-charset-leads.d.ts +10 -0
- package/dist/migrations/1720080976-convert-charset-leads.d.ts.map +1 -0
- package/dist/migrations/1720080976-convert-charset-leads.js +41 -0
- package/dist/migrations/1720080976-convert-charset-leads.js.map +1 -0
- package/dist/models/AuditLog.d.ts.map +1 -0
- package/dist/models/AuditLog.js +94 -0
- package/dist/models/AuditLog.js.map +1 -0
- package/dist/models/BalanceItem.d.ts +218 -0
- package/dist/models/BalanceItem.d.ts.map +1 -0
- package/dist/models/BalanceItem.js +626 -0
- package/dist/models/BalanceItem.js.map +1 -0
- package/dist/models/BalanceItemPayment.d.ts +24 -0
- package/dist/models/BalanceItemPayment.d.ts.map +1 -0
- package/dist/models/BalanceItemPayment.js +65 -0
- package/dist/models/BalanceItemPayment.js.map +1 -0
- package/dist/models/BuckarooPayment.d.ts.map +1 -0
- package/dist/models/BuckarooPayment.js +24 -0
- package/dist/models/BuckarooPayment.js.map +1 -0
- package/dist/models/CachedBalance.d.ts +51 -0
- package/dist/models/CachedBalance.d.ts.map +1 -0
- package/dist/models/CachedBalance.js +390 -0
- package/dist/models/CachedBalance.js.map +1 -0
- package/dist/models/Document.d.ts +41 -0
- package/dist/models/Document.d.ts.map +1 -0
- package/dist/models/Document.js +251 -0
- package/dist/models/Document.js.map +1 -0
- package/dist/models/DocumentTemplate.d.ts +56 -0
- package/dist/models/DocumentTemplate.d.ts.map +1 -0
- package/dist/models/DocumentTemplate.js +719 -0
- package/dist/models/DocumentTemplate.js.map +1 -0
- package/dist/models/Email.d.ts +141 -0
- package/dist/models/Email.d.ts.map +1 -0
- package/dist/models/Email.js +1341 -0
- package/dist/models/Email.js.map +1 -0
- package/dist/models/EmailRecipient.d.ts.map +1 -0
- package/dist/models/EmailRecipient.js +194 -0
- package/dist/models/EmailRecipient.js.map +1 -0
- package/dist/models/EmailTemplate.d.ts +24 -0
- package/dist/models/EmailTemplate.d.ts.map +1 -0
- package/dist/models/EmailTemplate.js +79 -0
- package/dist/models/EmailTemplate.js.map +1 -0
- package/dist/models/EmailVerificationCode.d.ts +61 -0
- package/dist/models/EmailVerificationCode.d.ts.map +1 -0
- package/dist/models/EmailVerificationCode.js +339 -0
- package/dist/models/EmailVerificationCode.js.map +1 -0
- package/dist/models/Event.d.ts.map +1 -0
- package/dist/models/Event.js +132 -0
- package/dist/models/Event.js.map +1 -0
- package/dist/models/EventNotification.d.ts +32 -0
- package/dist/models/EventNotification.d.ts.map +1 -0
- package/dist/models/EventNotification.js +98 -0
- package/dist/models/EventNotification.js.map +1 -0
- package/dist/models/Group.d.ts +46 -0
- package/dist/models/Group.d.ts.map +1 -0
- package/dist/models/Group.js +213 -0
- package/dist/models/Group.js.map +1 -0
- package/dist/models/Image.d.ts +17 -0
- package/dist/models/Image.d.ts.map +1 -0
- package/dist/models/Image.js +169 -0
- package/dist/models/Image.js.map +1 -0
- package/dist/models/Invoice.d.ts.map +1 -0
- package/dist/models/Invoice.js +186 -0
- package/dist/models/Invoice.js.map +1 -0
- package/dist/models/InvoicedBalanceItem.d.ts +66 -0
- package/dist/models/InvoicedBalanceItem.d.ts.map +1 -0
- package/dist/models/InvoicedBalanceItem.js +130 -0
- package/dist/models/InvoicedBalanceItem.js.map +1 -0
- package/dist/models/Member.d.ts +114 -0
- package/dist/models/Member.d.ts.map +1 -0
- package/dist/models/Member.js +415 -0
- package/dist/models/Member.js.map +1 -0
- package/dist/models/MemberPlatformMembership.d.ts +48 -0
- package/dist/models/MemberPlatformMembership.d.ts.map +1 -0
- package/dist/models/MemberPlatformMembership.js +377 -0
- package/dist/models/MemberPlatformMembership.js.map +1 -0
- package/dist/models/MemberResponsibilityRecord.d.ts +17 -0
- package/dist/models/MemberResponsibilityRecord.d.ts.map +1 -0
- package/dist/models/MemberResponsibilityRecord.js +65 -0
- package/dist/models/MemberResponsibilityRecord.js.map +1 -0
- package/dist/models/MemberUser.d.ts.map +1 -0
- package/dist/models/MemberUser.js +22 -0
- package/dist/models/MemberUser.js.map +1 -0
- package/dist/models/MergedMember.d.ts +23 -0
- package/dist/models/MergedMember.d.ts.map +1 -0
- package/dist/models/MergedMember.js +123 -0
- package/dist/models/MergedMember.js.map +1 -0
- package/dist/models/MolliePayment.d.ts.map +1 -0
- package/dist/models/MolliePayment.js +24 -0
- package/dist/models/MolliePayment.js.map +1 -0
- package/dist/models/MollieToken.d.ts +45 -0
- package/dist/models/MollieToken.d.ts.map +1 -0
- package/dist/models/MollieToken.js +330 -0
- package/dist/models/MollieToken.js.map +1 -0
- package/dist/models/OneTimeToken.d.ts +38 -0
- package/dist/models/OneTimeToken.d.ts.map +1 -0
- package/dist/models/OneTimeToken.js +125 -0
- package/dist/models/OneTimeToken.js.map +1 -0
- package/dist/models/Order.d.ts +115 -0
- package/dist/models/Order.d.ts.map +1 -0
- package/dist/models/Order.js +908 -0
- package/dist/models/Order.js.map +1 -0
- package/dist/models/Organization.d.ts +128 -0
- package/dist/models/Organization.d.ts.map +1 -0
- package/dist/models/Organization.js +846 -0
- package/dist/models/Organization.js.map +1 -0
- package/dist/models/OrganizationRegistrationPeriod.d.ts +22 -0
- package/dist/models/OrganizationRegistrationPeriod.d.ts.map +1 -0
- package/dist/models/OrganizationRegistrationPeriod.js +129 -0
- package/dist/models/OrganizationRegistrationPeriod.js.map +1 -0
- package/dist/models/PasswordToken.d.ts +31 -0
- package/dist/models/PasswordToken.d.ts.map +1 -0
- package/dist/models/PasswordToken.js +129 -0
- package/dist/models/PasswordToken.js.map +1 -0
- package/dist/models/PayconiqPayment.d.ts +24 -0
- package/dist/models/PayconiqPayment.d.ts.map +1 -0
- package/dist/models/PayconiqPayment.js +272 -0
- package/dist/models/PayconiqPayment.js.map +1 -0
- package/dist/models/Payment.d.ts +120 -0
- package/dist/models/Payment.d.ts.map +1 -0
- package/dist/models/Payment.js +289 -0
- package/dist/models/Payment.js.map +1 -0
- package/dist/models/Platform.d.ts.map +1 -0
- package/dist/models/Platform.js +178 -0
- package/dist/models/Platform.js.map +1 -0
- package/dist/models/RegisterCode.d.ts.map +1 -0
- package/dist/models/RegisterCode.js +76 -0
- package/dist/models/RegisterCode.js.map +1 -0
- package/dist/models/Registration.d.ts +85 -0
- package/dist/models/Registration.d.ts.map +1 -0
- package/dist/models/Registration.js +190 -0
- package/dist/models/Registration.js.map +1 -0
- package/dist/models/RegistrationPeriod.d.ts.map +1 -0
- package/dist/models/RegistrationPeriod.js +140 -0
- package/dist/models/RegistrationPeriod.js.map +1 -0
- package/dist/models/STCredit.d.ts.map +1 -0
- package/dist/models/STCredit.js +61 -0
- package/dist/models/STCredit.js.map +1 -0
- package/dist/models/STInvoice.d.ts +37 -0
- package/dist/models/STInvoice.d.ts.map +1 -0
- package/dist/models/STInvoice.js +139 -0
- package/dist/models/STInvoice.js.map +1 -0
- package/dist/models/STPackage.d.ts.map +1 -0
- package/dist/models/STPackage.js +276 -0
- package/dist/models/STPackage.js.map +1 -0
- package/dist/models/STPendingInvoice.d.ts +26 -0
- package/dist/models/STPendingInvoice.d.ts.map +1 -0
- package/dist/models/STPendingInvoice.js +68 -0
- package/dist/models/STPendingInvoice.js.map +1 -0
- package/dist/models/StripeAccount.d.ts.map +1 -0
- package/dist/models/StripeAccount.js +81 -0
- package/dist/models/StripeAccount.js.map +1 -0
- package/dist/models/StripeCheckoutSession.d.ts.map +1 -0
- package/dist/models/StripeCheckoutSession.js +35 -0
- package/dist/models/StripeCheckoutSession.js.map +1 -0
- package/dist/models/StripePaymentIntent.d.ts.map +1 -0
- package/dist/models/StripePaymentIntent.js +35 -0
- package/dist/models/StripePaymentIntent.js.map +1 -0
- package/dist/models/Ticket.d.ts +65 -0
- package/dist/models/Ticket.d.ts.map +1 -0
- package/dist/models/Ticket.js +157 -0
- package/dist/models/Ticket.js.map +1 -0
- package/dist/models/Token.d.ts +48 -0
- package/dist/models/Token.d.ts.map +1 -0
- package/dist/models/Token.js +208 -0
- package/dist/models/Token.js.map +1 -0
- package/dist/models/UitpasClientCredential.d.ts.map +1 -0
- package/dist/models/UitpasClientCredential.js +62 -0
- package/dist/models/UitpasClientCredential.js.map +1 -0
- package/dist/models/UsedRegisterCode.d.ts.map +1 -0
- package/dist/models/UsedRegisterCode.js +58 -0
- package/dist/models/UsedRegisterCode.js.map +1 -0
- package/dist/models/User.d.ts +76 -0
- package/dist/models/User.d.ts.map +1 -0
- package/dist/models/User.js +484 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/UserPermissions.d.ts +16 -0
- package/dist/models/UserPermissions.d.ts.map +1 -0
- package/dist/models/UserPermissions.js +56 -0
- package/dist/models/UserPermissions.js.map +1 -0
- package/dist/models/Webshop.d.ts +45 -0
- package/dist/models/Webshop.d.ts.map +1 -0
- package/dist/models/Webshop.js +187 -0
- package/dist/models/Webshop.js.map +1 -0
- package/dist/models/WebshopDiscountCode.d.ts.map +1 -0
- package/dist/models/WebshopDiscountCode.js +89 -0
- package/dist/models/WebshopDiscountCode.js.map +1 -0
- package/dist/models/WebshopUitpasNumber.d.ts.map +1 -0
- package/dist/models/WebshopUitpasNumber.js +91 -0
- package/dist/models/WebshopUitpasNumber.js.map +1 -0
- package/dist/models/_relations.d.ts +8 -0
- package/dist/models/_relations.d.ts.map +1 -0
- package/dist/models/_relations.js +110 -0
- package/dist/models/_relations.js.map +1 -0
- package/dist/models/addresses/City.d.ts +15 -0
- package/dist/models/addresses/City.d.ts.map +1 -0
- package/dist/models/addresses/City.js +35 -0
- package/dist/models/addresses/City.js.map +1 -0
- package/dist/models/addresses/PostalCode.d.ts +21 -0
- package/dist/models/addresses/PostalCode.d.ts.map +1 -0
- package/dist/models/addresses/PostalCode.js +139 -0
- package/dist/models/addresses/PostalCode.js.map +1 -0
- package/dist/models/addresses/Province.d.ts +9 -0
- package/dist/models/addresses/Province.d.ts.map +1 -0
- package/dist/models/addresses/Province.js +24 -0
- package/dist/models/addresses/Province.js.map +1 -0
- package/dist/models/addresses/Street.d.ts.map +1 -0
- package/dist/models/addresses/Street.js +26 -0
- package/dist/models/addresses/Street.js.map +1 -0
- package/dist/models/index.d.ts +55 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +55 -0
- package/dist/models/index.js.map +1 -0
- package/dist/structures/OrganizationServerMetaData.d.ts.map +1 -0
- package/dist/structures/OrganizationServerMetaData.js +130 -0
- package/dist/structures/OrganizationServerMetaData.js.map +1 -0
- package/package.json +13 -10
- package/src/factories/AddressFactory.ts +3 -2
- package/src/factories/BalanceItemFactory.ts +2 -1
- package/src/factories/DocumentTemplateFactory.ts +2 -1
- package/src/factories/EmailTemplateFactory.ts +3 -2
- package/src/factories/EmergencyContactFactory.ts +1 -1
- package/src/factories/EventFactory.ts +2 -2
- package/src/factories/EventNotificationFactory.ts +6 -4
- package/src/factories/EventNotificationTypeFactory.ts +3 -2
- package/src/factories/GroupFactory.ts +4 -3
- package/src/factories/MemberFactory.ts +6 -5
- package/src/factories/MemberResponsibilityRecordFactory.ts +3 -2
- package/src/factories/OrganizationFactory.ts +4 -2
- package/src/factories/OrganizationRegistrationPeriodFactory.ts +2 -2
- package/src/factories/ParentFactory.ts +1 -1
- package/src/factories/RecordAnswerFactory.ts +2 -1
- package/src/factories/RecordCategoryFactory.ts +4 -2
- package/src/factories/RegistrationFactory.ts +5 -4
- package/src/factories/RegistrationPeriodFactory.ts +2 -1
- package/src/factories/STPackageFactory.ts +1 -1
- package/src/factories/UserFactory.ts +3 -2
- package/src/factories/WebshopFactory.ts +3 -2
- package/src/helpers/DNSValidator.ts +10 -9
- package/src/helpers/EmailBuilder.ts +21 -12
- package/src/helpers/Handlebars.ts +3 -3
- package/src/helpers/MemberMerger.test.ts +1 -1
- package/src/helpers/MemberMerger.ts +5 -4
- package/src/helpers/WebshopCounter.ts +1 -1
- package/src/migrations/1605262045-import-postcodes.ts +1 -1
- package/src/migrations/1605262046-import-postcodes-nl.ts +2 -2
- package/src/migrations/1720080976-convert-charset-leads.ts +53 -0
- package/src/models/AuditLog.ts +2 -1
- package/src/models/BalanceItem.ts +4 -3
- package/src/models/BalanceItemPayment.ts +9 -6
- package/src/models/CachedBalance.test.ts +331 -0
- package/src/models/CachedBalance.ts +3 -2
- package/src/models/Document.ts +2 -2
- package/src/models/DocumentTemplate.ts +5 -3
- package/src/models/Email.test.ts +40 -39
- package/src/models/Email.ts +27 -24
- package/src/models/EmailTemplate.ts +2 -1
- package/src/models/EmailVerificationCode.ts +9 -7
- package/src/models/EventNotification.ts +3 -2
- package/src/models/Group.ts +5 -15
- package/src/models/Image.ts +3 -2
- package/src/models/InvoicedBalanceItem.ts +9 -8
- package/src/models/Member.ts +8 -4
- package/src/models/MemberPlatformMembership.ts +6 -6
- package/src/models/MemberResponsibilityRecord.ts +2 -1
- package/src/models/MergedMember.ts +1 -1
- package/src/models/MollieToken.ts +4 -4
- package/src/models/OneTimeToken.ts +1 -1
- package/src/models/Order.ts +20 -12
- package/src/models/Organization.ts +45 -17
- package/src/models/OrganizationRegistrationPeriod.ts +2 -2
- package/src/models/PasswordToken.ts +7 -5
- package/src/models/PayconiqPayment.ts +8 -5
- package/src/models/Payment.ts +8 -5
- package/src/models/Platform.ts +1 -1
- package/src/models/Registration.ts +9 -97
- package/src/models/STInvoice.ts +1 -4
- package/src/models/STPackage.ts +2 -2
- package/src/models/STPendingInvoice.ts +5 -4
- package/src/models/Ticket.ts +11 -9
- package/src/models/Token.test.ts +2 -2
- package/src/models/Token.ts +6 -6
- package/src/models/User.ts +9 -10
- package/src/models/UserPermissions.ts +7 -6
- package/src/models/Webshop.ts +5 -5
- package/src/models/_relations.ts +133 -0
- package/src/models/addresses/City.ts +1 -1
- package/src/models/addresses/PostalCode.test.ts +1 -1
- package/src/models/addresses/PostalCode.ts +2 -2
- package/src/models/addresses/Province.ts +1 -1
- package/src/models/index.ts +22 -20
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/dist/src/factories/AddressFactory.d.ts.map +0 -1
- package/dist/src/factories/AddressFactory.js +0 -42
- package/dist/src/factories/AddressFactory.js.map +0 -1
- package/dist/src/factories/BalanceItemFactory.d.ts +0 -28
- package/dist/src/factories/BalanceItemFactory.d.ts.map +0 -1
- package/dist/src/factories/BalanceItemFactory.js +0 -60
- package/dist/src/factories/BalanceItemFactory.js.map +0 -1
- package/dist/src/factories/DocumentTemplateFactory.d.ts +0 -21
- package/dist/src/factories/DocumentTemplateFactory.d.ts.map +0 -1
- package/dist/src/factories/DocumentTemplateFactory.js +0 -149
- package/dist/src/factories/DocumentTemplateFactory.js.map +0 -1
- package/dist/src/factories/EmailTemplateFactory.d.ts +0 -18
- package/dist/src/factories/EmailTemplateFactory.d.ts.map +0 -1
- package/dist/src/factories/EmailTemplateFactory.js +0 -43
- package/dist/src/factories/EmailTemplateFactory.js.map +0 -1
- package/dist/src/factories/EmergencyContactFactory.d.ts.map +0 -1
- package/dist/src/factories/EmergencyContactFactory.js +0 -42
- package/dist/src/factories/EmergencyContactFactory.js.map +0 -1
- package/dist/src/factories/EventFactory.d.ts +0 -19
- package/dist/src/factories/EventFactory.d.ts.map +0 -1
- package/dist/src/factories/EventFactory.js +0 -35
- package/dist/src/factories/EventFactory.js.map +0 -1
- package/dist/src/factories/EventNotificationFactory.d.ts +0 -21
- package/dist/src/factories/EventNotificationFactory.d.ts.map +0 -1
- package/dist/src/factories/EventNotificationFactory.js +0 -44
- package/dist/src/factories/EventNotificationFactory.js.map +0 -1
- package/dist/src/factories/EventNotificationTypeFactory.d.ts +0 -11
- package/dist/src/factories/EventNotificationTypeFactory.d.ts.map +0 -1
- package/dist/src/factories/EventNotificationTypeFactory.js +0 -25
- package/dist/src/factories/EventNotificationTypeFactory.js.map +0 -1
- package/dist/src/factories/GroupFactory.d.ts +0 -26
- package/dist/src/factories/GroupFactory.d.ts.map +0 -1
- package/dist/src/factories/GroupFactory.js +0 -92
- package/dist/src/factories/GroupFactory.js.map +0 -1
- package/dist/src/factories/MemberFactory.d.ts +0 -26
- package/dist/src/factories/MemberFactory.d.ts.map +0 -1
- package/dist/src/factories/MemberFactory.js +0 -135
- package/dist/src/factories/MemberFactory.js.map +0 -1
- package/dist/src/factories/MemberResponsibilityRecordFactory.d.ts +0 -14
- package/dist/src/factories/MemberResponsibilityRecordFactory.d.ts.map +0 -1
- package/dist/src/factories/MemberResponsibilityRecordFactory.js +0 -34
- package/dist/src/factories/MemberResponsibilityRecordFactory.js.map +0 -1
- package/dist/src/factories/OrganizationFactory.d.ts +0 -19
- package/dist/src/factories/OrganizationFactory.d.ts.map +0 -1
- package/dist/src/factories/OrganizationFactory.js +0 -64
- package/dist/src/factories/OrganizationFactory.js.map +0 -1
- package/dist/src/factories/OrganizationRegistrationPeriodFactory.d.ts +0 -13
- package/dist/src/factories/OrganizationRegistrationPeriodFactory.d.ts.map +0 -1
- package/dist/src/factories/OrganizationRegistrationPeriodFactory.js +0 -20
- package/dist/src/factories/OrganizationRegistrationPeriodFactory.js.map +0 -1
- package/dist/src/factories/OrganizationTagFactory.d.ts.map +0 -1
- package/dist/src/factories/OrganizationTagFactory.js +0 -23
- package/dist/src/factories/OrganizationTagFactory.js.map +0 -1
- package/dist/src/factories/ParentFactory.d.ts.map +0 -1
- package/dist/src/factories/ParentFactory.js +0 -43
- package/dist/src/factories/ParentFactory.js.map +0 -1
- package/dist/src/factories/PlatformEventTypeFactory.d.ts.map +0 -1
- package/dist/src/factories/PlatformEventTypeFactory.js +0 -27
- package/dist/src/factories/PlatformEventTypeFactory.js.map +0 -1
- package/dist/src/factories/PlatformResponsibilityFactory.d.ts.map +0 -1
- package/dist/src/factories/PlatformResponsibilityFactory.js +0 -25
- package/dist/src/factories/PlatformResponsibilityFactory.js.map +0 -1
- package/dist/src/factories/RecordAnswerFactory.d.ts +0 -17
- package/dist/src/factories/RecordAnswerFactory.d.ts.map +0 -1
- package/dist/src/factories/RecordAnswerFactory.js +0 -95
- package/dist/src/factories/RecordAnswerFactory.js.map +0 -1
- package/dist/src/factories/RecordCategoryFactory.d.ts +0 -11
- package/dist/src/factories/RecordCategoryFactory.d.ts.map +0 -1
- package/dist/src/factories/RecordCategoryFactory.js +0 -23
- package/dist/src/factories/RecordCategoryFactory.js.map +0 -1
- package/dist/src/factories/RecordFactory.d.ts.map +0 -1
- package/dist/src/factories/RecordFactory.js +0 -21
- package/dist/src/factories/RecordFactory.js.map +0 -1
- package/dist/src/factories/RegisterCodeFactory.d.ts.map +0 -1
- package/dist/src/factories/RegisterCodeFactory.js +0 -18
- package/dist/src/factories/RegisterCodeFactory.js.map +0 -1
- package/dist/src/factories/RegistrationFactory.d.ts +0 -21
- package/dist/src/factories/RegistrationFactory.d.ts.map +0 -1
- package/dist/src/factories/RegistrationFactory.js +0 -25
- package/dist/src/factories/RegistrationFactory.js.map +0 -1
- package/dist/src/factories/RegistrationPeriodFactory.d.ts +0 -15
- package/dist/src/factories/RegistrationPeriodFactory.d.ts.map +0 -1
- package/dist/src/factories/RegistrationPeriodFactory.js +0 -34
- package/dist/src/factories/RegistrationPeriodFactory.js.map +0 -1
- package/dist/src/factories/STPackageFactory.d.ts +0 -15
- package/dist/src/factories/STPackageFactory.d.ts.map +0 -1
- package/dist/src/factories/STPackageFactory.js +0 -38
- package/dist/src/factories/STPackageFactory.js.map +0 -1
- package/dist/src/factories/UserFactory.d.ts +0 -22
- package/dist/src/factories/UserFactory.d.ts.map +0 -1
- package/dist/src/factories/UserFactory.js +0 -67
- package/dist/src/factories/UserFactory.js.map +0 -1
- package/dist/src/factories/WebshopFactory.d.ts +0 -16
- package/dist/src/factories/WebshopFactory.d.ts.map +0 -1
- package/dist/src/factories/WebshopFactory.js +0 -39
- package/dist/src/factories/WebshopFactory.js.map +0 -1
- package/dist/src/factories/index.d.ts.map +0 -1
- package/dist/src/factories/index.js +0 -30
- package/dist/src/factories/index.js.map +0 -1
- package/dist/src/helpers/DNSValidator.d.ts +0 -6
- package/dist/src/helpers/DNSValidator.d.ts.map +0 -1
- package/dist/src/helpers/DNSValidator.js +0 -145
- package/dist/src/helpers/DNSValidator.js.map +0 -1
- package/dist/src/helpers/EmailBuilder.d.ts +0 -83
- package/dist/src/helpers/EmailBuilder.d.ts.map +0 -1
- package/dist/src/helpers/EmailBuilder.js +0 -646
- package/dist/src/helpers/EmailBuilder.js.map +0 -1
- package/dist/src/helpers/Handlebars.d.ts.map +0 -1
- package/dist/src/helpers/Handlebars.js +0 -248
- package/dist/src/helpers/Handlebars.js.map +0 -1
- package/dist/src/helpers/MemberMerger.d.ts.map +0 -1
- package/dist/src/helpers/MemberMerger.js +0 -371
- package/dist/src/helpers/MemberMerger.js.map +0 -1
- package/dist/src/helpers/MemberMerger.test.d.ts +0 -2
- package/dist/src/helpers/MemberMerger.test.d.ts.map +0 -1
- package/dist/src/helpers/MemberMerger.test.js +0 -644
- package/dist/src/helpers/MemberMerger.test.js.map +0 -1
- package/dist/src/helpers/RateLimiter.d.ts.map +0 -1
- package/dist/src/helpers/RateLimiter.js +0 -69
- package/dist/src/helpers/RateLimiter.js.map +0 -1
- package/dist/src/helpers/WebshopCounter.d.ts +0 -8
- package/dist/src/helpers/WebshopCounter.d.ts.map +0 -1
- package/dist/src/helpers/WebshopCounter.js +0 -50
- package/dist/src/helpers/WebshopCounter.js.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -14
- package/dist/src/index.js.map +0 -1
- package/dist/src/migrations/1605262045-import-postcodes.js +0 -121
- package/dist/src/migrations/1605262046-import-postcodes-nl.js +0 -83
- package/dist/src/models/AuditLog.d.ts.map +0 -1
- package/dist/src/models/AuditLog.js +0 -98
- package/dist/src/models/AuditLog.js.map +0 -1
- package/dist/src/models/BalanceItem.d.ts +0 -217
- package/dist/src/models/BalanceItem.d.ts.map +0 -1
- package/dist/src/models/BalanceItem.js +0 -630
- package/dist/src/models/BalanceItem.js.map +0 -1
- package/dist/src/models/BalanceItemPayment.d.ts +0 -23
- package/dist/src/models/BalanceItemPayment.d.ts.map +0 -1
- package/dist/src/models/BalanceItemPayment.js +0 -70
- package/dist/src/models/BalanceItemPayment.js.map +0 -1
- package/dist/src/models/BuckarooPayment.d.ts.map +0 -1
- package/dist/src/models/BuckarooPayment.js +0 -28
- package/dist/src/models/BuckarooPayment.js.map +0 -1
- package/dist/src/models/CachedBalance.d.ts +0 -50
- package/dist/src/models/CachedBalance.d.ts.map +0 -1
- package/dist/src/models/CachedBalance.js +0 -394
- package/dist/src/models/CachedBalance.js.map +0 -1
- package/dist/src/models/Document.d.ts +0 -41
- package/dist/src/models/Document.d.ts.map +0 -1
- package/dist/src/models/Document.js +0 -255
- package/dist/src/models/Document.js.map +0 -1
- package/dist/src/models/DocumentTemplate.d.ts +0 -55
- package/dist/src/models/DocumentTemplate.d.ts.map +0 -1
- package/dist/src/models/DocumentTemplate.js +0 -723
- package/dist/src/models/DocumentTemplate.js.map +0 -1
- package/dist/src/models/DocumentTemplate.test.d.ts +0 -2
- package/dist/src/models/DocumentTemplate.test.d.ts.map +0 -1
- package/dist/src/models/DocumentTemplate.test.js +0 -57
- package/dist/src/models/DocumentTemplate.test.js.map +0 -1
- package/dist/src/models/Email.d.ts +0 -140
- package/dist/src/models/Email.d.ts.map +0 -1
- package/dist/src/models/Email.js +0 -1345
- package/dist/src/models/Email.js.map +0 -1
- package/dist/src/models/Email.test.d.ts +0 -2
- package/dist/src/models/Email.test.d.ts.map +0 -1
- package/dist/src/models/Email.test.js +0 -1036
- package/dist/src/models/Email.test.js.map +0 -1
- package/dist/src/models/EmailRecipient.d.ts.map +0 -1
- package/dist/src/models/EmailRecipient.js +0 -198
- package/dist/src/models/EmailRecipient.js.map +0 -1
- package/dist/src/models/EmailTemplate.d.ts +0 -23
- package/dist/src/models/EmailTemplate.d.ts.map +0 -1
- package/dist/src/models/EmailTemplate.js +0 -83
- package/dist/src/models/EmailTemplate.js.map +0 -1
- package/dist/src/models/EmailVerificationCode.d.ts +0 -59
- package/dist/src/models/EmailVerificationCode.d.ts.map +0 -1
- package/dist/src/models/EmailVerificationCode.js +0 -343
- package/dist/src/models/EmailVerificationCode.js.map +0 -1
- package/dist/src/models/Event.d.ts.map +0 -1
- package/dist/src/models/Event.js +0 -136
- package/dist/src/models/Event.js.map +0 -1
- package/dist/src/models/EventNotification.d.ts +0 -31
- package/dist/src/models/EventNotification.d.ts.map +0 -1
- package/dist/src/models/EventNotification.js +0 -102
- package/dist/src/models/EventNotification.js.map +0 -1
- package/dist/src/models/Group.d.ts +0 -45
- package/dist/src/models/Group.d.ts.map +0 -1
- package/dist/src/models/Group.js +0 -228
- package/dist/src/models/Group.js.map +0 -1
- package/dist/src/models/Image.d.ts +0 -16
- package/dist/src/models/Image.d.ts.map +0 -1
- package/dist/src/models/Image.js +0 -173
- package/dist/src/models/Image.js.map +0 -1
- package/dist/src/models/Invoice.d.ts.map +0 -1
- package/dist/src/models/Invoice.js +0 -190
- package/dist/src/models/Invoice.js.map +0 -1
- package/dist/src/models/InvoicedBalanceItem.d.ts +0 -66
- package/dist/src/models/InvoicedBalanceItem.d.ts.map +0 -1
- package/dist/src/models/InvoicedBalanceItem.js +0 -136
- package/dist/src/models/InvoicedBalanceItem.js.map +0 -1
- package/dist/src/models/Member.d.ts +0 -112
- package/dist/src/models/Member.d.ts.map +0 -1
- package/dist/src/models/Member.js +0 -415
- package/dist/src/models/Member.js.map +0 -1
- package/dist/src/models/MemberPlatformMembership.d.ts +0 -48
- package/dist/src/models/MemberPlatformMembership.d.ts.map +0 -1
- package/dist/src/models/MemberPlatformMembership.js +0 -381
- package/dist/src/models/MemberPlatformMembership.js.map +0 -1
- package/dist/src/models/MemberResponsibilityRecord.d.ts +0 -16
- package/dist/src/models/MemberResponsibilityRecord.d.ts.map +0 -1
- package/dist/src/models/MemberResponsibilityRecord.js +0 -69
- package/dist/src/models/MemberResponsibilityRecord.js.map +0 -1
- package/dist/src/models/MemberUser.d.ts.map +0 -1
- package/dist/src/models/MemberUser.js +0 -26
- package/dist/src/models/MemberUser.js.map +0 -1
- package/dist/src/models/MergedMember.d.ts +0 -23
- package/dist/src/models/MergedMember.d.ts.map +0 -1
- package/dist/src/models/MergedMember.js +0 -127
- package/dist/src/models/MergedMember.js.map +0 -1
- package/dist/src/models/MolliePayment.d.ts.map +0 -1
- package/dist/src/models/MolliePayment.js +0 -28
- package/dist/src/models/MolliePayment.js.map +0 -1
- package/dist/src/models/MollieToken.d.ts +0 -45
- package/dist/src/models/MollieToken.d.ts.map +0 -1
- package/dist/src/models/MollieToken.js +0 -334
- package/dist/src/models/MollieToken.js.map +0 -1
- package/dist/src/models/OneTimeToken.d.ts +0 -38
- package/dist/src/models/OneTimeToken.d.ts.map +0 -1
- package/dist/src/models/OneTimeToken.js +0 -129
- package/dist/src/models/OneTimeToken.js.map +0 -1
- package/dist/src/models/Order.d.ts +0 -112
- package/dist/src/models/Order.d.ts.map +0 -1
- package/dist/src/models/Order.js +0 -906
- package/dist/src/models/Order.js.map +0 -1
- package/dist/src/models/Organization.d.ts +0 -120
- package/dist/src/models/Organization.d.ts.map +0 -1
- package/dist/src/models/Organization.js +0 -828
- package/dist/src/models/Organization.js.map +0 -1
- package/dist/src/models/OrganizationRegistrationPeriod.d.ts +0 -22
- package/dist/src/models/OrganizationRegistrationPeriod.d.ts.map +0 -1
- package/dist/src/models/OrganizationRegistrationPeriod.js +0 -133
- package/dist/src/models/OrganizationRegistrationPeriod.js.map +0 -1
- package/dist/src/models/PasswordToken.d.ts +0 -30
- package/dist/src/models/PasswordToken.d.ts.map +0 -1
- package/dist/src/models/PasswordToken.js +0 -133
- package/dist/src/models/PasswordToken.js.map +0 -1
- package/dist/src/models/PayconiqPayment.d.ts +0 -22
- package/dist/src/models/PayconiqPayment.d.ts.map +0 -1
- package/dist/src/models/PayconiqPayment.js +0 -276
- package/dist/src/models/PayconiqPayment.js.map +0 -1
- package/dist/src/models/Payment.d.ts +0 -117
- package/dist/src/models/Payment.d.ts.map +0 -1
- package/dist/src/models/Payment.js +0 -293
- package/dist/src/models/Payment.js.map +0 -1
- package/dist/src/models/Platform.d.ts.map +0 -1
- package/dist/src/models/Platform.js +0 -182
- package/dist/src/models/Platform.js.map +0 -1
- package/dist/src/models/Platform.test.d.ts +0 -2
- package/dist/src/models/Platform.test.d.ts.map +0 -1
- package/dist/src/models/Platform.test.js +0 -90
- package/dist/src/models/Platform.test.js.map +0 -1
- package/dist/src/models/RegisterCode.d.ts.map +0 -1
- package/dist/src/models/RegisterCode.js +0 -80
- package/dist/src/models/RegisterCode.js.map +0 -1
- package/dist/src/models/Registration.d.ts +0 -93
- package/dist/src/models/Registration.d.ts.map +0 -1
- package/dist/src/models/Registration.js +0 -267
- package/dist/src/models/Registration.js.map +0 -1
- package/dist/src/models/RegistrationPeriod.d.ts.map +0 -1
- package/dist/src/models/RegistrationPeriod.js +0 -144
- package/dist/src/models/RegistrationPeriod.js.map +0 -1
- package/dist/src/models/STCredit.d.ts.map +0 -1
- package/dist/src/models/STCredit.js +0 -65
- package/dist/src/models/STCredit.js.map +0 -1
- package/dist/src/models/STInvoice.d.ts +0 -37
- package/dist/src/models/STInvoice.d.ts.map +0 -1
- package/dist/src/models/STInvoice.js +0 -145
- package/dist/src/models/STInvoice.js.map +0 -1
- package/dist/src/models/STPackage.d.ts.map +0 -1
- package/dist/src/models/STPackage.js +0 -280
- package/dist/src/models/STPackage.js.map +0 -1
- package/dist/src/models/STPendingInvoice.d.ts +0 -26
- package/dist/src/models/STPendingInvoice.d.ts.map +0 -1
- package/dist/src/models/STPendingInvoice.js +0 -73
- package/dist/src/models/STPendingInvoice.js.map +0 -1
- package/dist/src/models/StripeAccount.d.ts.map +0 -1
- package/dist/src/models/StripeAccount.js +0 -85
- package/dist/src/models/StripeAccount.js.map +0 -1
- package/dist/src/models/StripeCheckoutSession.d.ts.map +0 -1
- package/dist/src/models/StripeCheckoutSession.js +0 -39
- package/dist/src/models/StripeCheckoutSession.js.map +0 -1
- package/dist/src/models/StripePaymentIntent.d.ts.map +0 -1
- package/dist/src/models/StripePaymentIntent.js +0 -39
- package/dist/src/models/StripePaymentIntent.js.map +0 -1
- package/dist/src/models/Ticket.d.ts +0 -63
- package/dist/src/models/Ticket.d.ts.map +0 -1
- package/dist/src/models/Ticket.js +0 -162
- package/dist/src/models/Ticket.js.map +0 -1
- package/dist/src/models/Token.d.ts +0 -48
- package/dist/src/models/Token.d.ts.map +0 -1
- package/dist/src/models/Token.js +0 -212
- package/dist/src/models/Token.js.map +0 -1
- package/dist/src/models/Token.test.d.ts +0 -2
- package/dist/src/models/Token.test.d.ts.map +0 -1
- package/dist/src/models/Token.test.js +0 -60
- package/dist/src/models/Token.test.js.map +0 -1
- package/dist/src/models/UitpasClientCredential.d.ts.map +0 -1
- package/dist/src/models/UitpasClientCredential.js +0 -66
- package/dist/src/models/UitpasClientCredential.js.map +0 -1
- package/dist/src/models/UsedRegisterCode.d.ts.map +0 -1
- package/dist/src/models/UsedRegisterCode.js +0 -62
- package/dist/src/models/UsedRegisterCode.js.map +0 -1
- package/dist/src/models/User.d.ts +0 -77
- package/dist/src/models/User.d.ts.map +0 -1
- package/dist/src/models/User.js +0 -490
- package/dist/src/models/User.js.map +0 -1
- package/dist/src/models/UserPermissions.d.ts +0 -16
- package/dist/src/models/UserPermissions.d.ts.map +0 -1
- package/dist/src/models/UserPermissions.js +0 -61
- package/dist/src/models/UserPermissions.js.map +0 -1
- package/dist/src/models/Webshop.d.ts +0 -45
- package/dist/src/models/Webshop.d.ts.map +0 -1
- package/dist/src/models/Webshop.js +0 -192
- package/dist/src/models/Webshop.js.map +0 -1
- package/dist/src/models/WebshopDiscountCode.d.ts.map +0 -1
- package/dist/src/models/WebshopDiscountCode.js +0 -93
- package/dist/src/models/WebshopDiscountCode.js.map +0 -1
- package/dist/src/models/WebshopUitpasNumber.d.ts.map +0 -1
- package/dist/src/models/WebshopUitpasNumber.js +0 -95
- package/dist/src/models/WebshopUitpasNumber.js.map +0 -1
- package/dist/src/models/addresses/City.d.ts +0 -15
- package/dist/src/models/addresses/City.d.ts.map +0 -1
- package/dist/src/models/addresses/City.js +0 -39
- package/dist/src/models/addresses/City.js.map +0 -1
- package/dist/src/models/addresses/PostalCode.d.ts +0 -21
- package/dist/src/models/addresses/PostalCode.d.ts.map +0 -1
- package/dist/src/models/addresses/PostalCode.js +0 -143
- package/dist/src/models/addresses/PostalCode.js.map +0 -1
- package/dist/src/models/addresses/PostalCode.test.d.ts +0 -2
- package/dist/src/models/addresses/PostalCode.test.d.ts.map +0 -1
- package/dist/src/models/addresses/PostalCode.test.js +0 -98
- package/dist/src/models/addresses/PostalCode.test.js.map +0 -1
- package/dist/src/models/addresses/Province.d.ts +0 -9
- package/dist/src/models/addresses/Province.d.ts.map +0 -1
- package/dist/src/models/addresses/Province.js +0 -28
- package/dist/src/models/addresses/Province.js.map +0 -1
- package/dist/src/models/addresses/Street.d.ts.map +0 -1
- package/dist/src/models/addresses/Street.js +0 -30
- package/dist/src/models/addresses/Street.js.map +0 -1
- package/dist/src/models/index.d.ts +0 -54
- package/dist/src/models/index.d.ts.map +0 -1
- package/dist/src/models/index.js +0 -69
- package/dist/src/models/index.js.map +0 -1
- package/dist/src/structures/OrganizationServerMetaData.d.ts.map +0 -1
- package/dist/src/structures/OrganizationServerMetaData.js +0 -135
- package/dist/src/structures/OrganizationServerMetaData.js.map +0 -1
- package/dist/tests/jest.global.setup.d.ts +0 -3
- package/dist/tests/jest.global.setup.d.ts.map +0 -1
- package/dist/tests/jest.global.setup.js +0 -33
- package/dist/tests/jest.global.setup.js.map +0 -1
- package/dist/tests/jest.setup.d.ts +0 -2
- package/dist/tests/jest.setup.d.ts.map +0 -1
- package/dist/tests/jest.setup.js +0 -32
- package/dist/tests/jest.setup.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{src/assets → assets}/Metropolis-Black.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-BlackItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-Bold.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-BoldItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-ExtraBold.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-ExtraBoldItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-ExtraLight.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-ExtraLightItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-Light.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-LightItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-Medium.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-MediumItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-Regular.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-RegularItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-SemiBold.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-SemiBoldItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-Thin.woff2 +0 -0
- /package/dist/{src/assets → assets}/Metropolis-ThinItalic.woff2 +0 -0
- /package/dist/{src/assets → assets}/logo.png +0 -0
- /package/dist/{src/factories → factories}/AddressFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/EmergencyContactFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/OrganizationTagFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/ParentFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/PlatformEventTypeFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/PlatformResponsibilityFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/RecordFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/RegisterCodeFactory.d.ts +0 -0
- /package/dist/{src/factories → factories}/index.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/Handlebars.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/MemberMerger.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/RateLimiter.d.ts +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/migrations → migrations}/1593773929-create-initial-tables.sql +0 -0
- /package/dist/{src/migrations → migrations}/1605261999-gemeenten-tmp.sql +0 -0
- /package/dist/{src/migrations → migrations}/1605262045-import-postcodes.d.ts +0 -0
- /package/dist/{src/migrations → migrations}/1605262046-import-postcodes-nl.d.ts +0 -0
- /package/dist/{src/migrations → migrations}/1605279038-drop-gemeenten-tmp.sql +0 -0
- /package/dist/{src/migrations → migrations}/1708607340-tickets-deleted-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1710459176-register-code-invoices.sql +0 -0
- /package/dist/{src/migrations → migrations}/1712158247-discount-codes.sql +0 -0
- /package/dist/{src/migrations → migrations}/1713178665-drop-invites.sql +0 -0
- /package/dist/{src/migrations → migrations}/1713178666-drop-keychain.sql +0 -0
- /package/dist/{src/migrations → migrations}/1713178667-drop-challenges.sql +0 -0
- /package/dist/{src/migrations → migrations}/1713178668-drop-user-keys.sql +0 -0
- /package/dist/{src/migrations → migrations}/1713178669-drop-organization-key.sql +0 -0
- /package/dist/{src/migrations → migrations}/1714985451-user-nullable-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1714985452-email-verification-code-nullable-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1714985453-user-organization-permissions.sql +0 -0
- /package/dist/{src/migrations → migrations}/1714985454-user-organization-permissions.sql +0 -0
- /package/dist/{src/migrations → migrations}/1715079362-platform.sql +0 -0
- /package/dist/{src/migrations → migrations}/1715181649-registrations-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1715181650-registrations-organization-id-fill.sql +0 -0
- /package/dist/{src/migrations → migrations}/1715181651-registrations-organization-id-drop-null.sql +0 -0
- /package/dist/{src/migrations → migrations}/1716117067-members-nullable-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719567581-registration-periods.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719567582-organization-registration-periods.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719567881-organization-periodId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719567882-groups-periodId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719567883-platform-periodId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719568079-default-period.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719568080-set-default-period-platform.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719568081-set-default-period-organizations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719568082-set-default-period-groups.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719580828-registrations-periodId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719580829-set-default-period-registrations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1719931362-groups-default-age-group-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1720080975-convert-charset.sql +0 -0
- /package/dist/{src/migrations → migrations}/1720080976-responsibilities.sql +0 -0
- /package/dist/{src/migrations → migrations}/1720088136-member-membership-types.sql +0 -0
- /package/dist/{src/migrations → migrations}/1720088137-member-membership-types-expire-date.sql +0 -0
- /package/dist/{src/migrations → migrations}/1720444931-organization-active.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721050380-email-table.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721050381-email-recipients-table.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721342679-responsibility-groupId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721342680-responsibility-groupId-foreign-key.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721400546-users-memberId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721639159-membership-deleted-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721639160-membership-generated.sql +0 -0
- /package/dist/{src/migrations → migrations}/1721841819-group-type.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722090482-events.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722269236-group-waitinglist-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722525785-balance-item-paying-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722525787-depending-balance-item.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722845608-registration-stock-reservations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722845609-group-stock-reservations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722852362-stripe-intents-account-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722852363-stripe-checkout-sessions-account-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722959111-allow-multiple-registrations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1722963554-registration-group-price-and-options.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723202125-member-number.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723202126-member-number-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723218160-balance-item-unit-price.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723218161-balance-item-amount.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723218162-balance-item-type.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723218163-balance-item-type-defaults.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723218164-balance-item-relations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723652795-payments-paying-user-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723652796-payments-paying-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723652797-payments-paying-organization-id-fk.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723652798-payments-customer.sql +0 -0
- /package/dist/{src/migrations → migrations}/1723736282-merged-members.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724076162-setup-steps.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724156666-member-indexes.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724156667-organization-tag-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724256125-membership-balance-item-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724256126-membership-balance-item-fk.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724258844-membershipOrganizationId.sql +0 -0
- /package/dist/{src/migrations → migrations}/1724258845-membershipOrganizationId-fk.sql +0 -0
- /package/dist/{src/migrations → migrations}/1726054851-balance-item-price-pending.sql +0 -0
- /package/dist/{src/migrations → migrations}/1726054852-cached-outstanding-balances.sql +0 -0
- /package/dist/{src/migrations → migrations}/1726668114-maximum-free-amount.sql +0 -0
- /package/dist/{src/migrations → migrations}/1726668115-free-amount.sql +0 -0
- /package/dist/{src/migrations → migrations}/1726668116-price-without-discount.sql +0 -0
- /package/dist/{src/migrations → migrations}/1727947041-registration-record-answers.sql +0 -0
- /package/dist/{src/migrations → migrations}/1729251385-order-extra-filter-columns.sql +0 -0
- /package/dist/{src/migrations → migrations}/1732285080-audit-logs.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733129611-clear-audit-logs.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733129612-audit-logs-source.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733317908-added-missing-organization-fk-on-registrations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733317909-paying-organization-id-registrations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733317910-paying-organization-id-fk.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733410641-audit-log-external-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733418667-desc-audit-log-primary-key.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733909398-balance-items-due-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733909399-recalculate-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1733994454-balance-item-price-open.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734084689-payment-type.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734084690-move-payment-column-order.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734084691-fill-payment-type-refunds.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734084692-fill-payment-type-reallocations.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734429094-registration-trial-until.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734429095-membership-trial-until.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734535120-registration-period-previous-period-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734535121-platform-previous-period-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734626607-cached-balance-amount-open.sql +0 -0
- /package/dist/{src/migrations → migrations}/1734698906-cached-balance-amount-paid.sql +0 -0
- /package/dist/{src/migrations → migrations}/1735573520-emails-email-type.sql +0 -0
- /package/dist/{src/migrations → migrations}/1735573521-email-recipients-email-type.sql +0 -0
- /package/dist/{src/migrations → migrations}/1735573522-emails-indexes.sql +0 -0
- /package/dist/{src/migrations → migrations}/1735982691-cached-balance-email-reminder-counts.sql +0 -0
- /package/dist/{src/migrations → migrations}/1736850097-audit-logs-meta.sql +0 -0
- /package/dist/{src/migrations → migrations}/1736947931-platform-server-config.sql +0 -0
- /package/dist/{src/migrations → migrations}/1738922428-membership-locked.sql +0 -0
- /package/dist/{src/migrations → migrations}/1739017508-event-notifications.sql +0 -0
- /package/dist/{src/migrations → migrations}/1739017509-event-notifications-link.sql +0 -0
- /package/dist/{src/migrations → migrations}/1739282590-event-notifications-submitted-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1741954610-event-notifications-accepted-record-answers.sql +0 -0
- /package/dist/{src/migrations → migrations}/1742579832-audit-log-longer-object-size.sql +0 -0
- /package/dist/{src/migrations → migrations}/1747913433-registration-discounts.sql +0 -0
- /package/dist/{src/migrations → migrations}/1747996262-balance-items-paid-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1747996263-balance-items-paid-at-fill.sql +0 -0
- /package/dist/{src/migrations → migrations}/1751633220-create-uitpas-client-credentials.sql +0 -0
- /package/dist/{src/migrations → migrations}/1751970372-create-webshop-uitpas-numbers.sql +0 -0
- /package/dist/{src/migrations → migrations}/1752655335-events-webshop-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1752678047-confirmation-email.sql +0 -0
- /package/dist/{src/migrations → migrations}/1753363434-service-fees.sql +0 -0
- /package/dist/{src/migrations → migrations}/1753430415-update-webshop-uitpasnumbers.sql +0 -0
- /package/dist/{src/migrations → migrations}/1755529026-email-sender-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1755789797-email-counts-errors.sql +0 -0
- /package/dist/{src/migrations → migrations}/1755789798-email-recipient-errors.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756115313-email-recipient-ids-and-errors.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756115314-email-recipient-email-optional.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756115315-email-recipients-count.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756115316-email-cached-counts.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756115317-email-deleted-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756293494-registration-period-next-period-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756293495-platform-next-period-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756387016-registration-period-custom-name.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756391212-email-recipients-duplicate.sql +0 -0
- /package/dist/{src/migrations → migrations}/1756821154-email-send-as-email.sql +0 -0
- /package/dist/{src/migrations → migrations}/1758034021-email-recipient-previous-error.sql +0 -0
- /package/dist/{src/migrations → migrations}/1760535508-update-cached-balances-object-id-unique-constraint.sql +0 -0
- /package/dist/{src/migrations → migrations}/1761750780-renamed-invoice-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1761750781-rename-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1761750782-invoices-add-organization-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1761750783-invoices-organization-id-fk.sql +0 -0
- /package/dist/{src/migrations → migrations}/1762521336-did-send-peppol.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216321-multiply-balance-item-payments.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216322-multiply-balance-items.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216323-bigint-cached-balances.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216324-multiply-cached-balances.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216325-multiply-member-platform-memberships.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216326-multiply-payments.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216327-multiply-register-codes.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216328-multiply-credits.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216329-multiply-orders.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216330-multiply-uitpas-numbers.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216331-balance-item-vat-percentages.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216332-balance-item-price-total.sql +0 -0
- /package/dist/{src/migrations → migrations}/1763216333-balance-item-price-total-fill.sql +0 -0
- /package/dist/{src/migrations → migrations}/1765895470-document-year.sql +0 -0
- /package/dist/{src/migrations → migrations}/1766150401-document-published-at.sql +0 -0
- /package/dist/{src/migrations → migrations}/1766410598-registration-end-date.sql +0 -0
- /package/dist/{src/migrations → migrations}/1769087807-invoices-table.sql +0 -0
- /package/dist/{src/migrations → migrations}/1769087808-invoiced-balance-items-table.sql +0 -0
- /package/dist/{src/migrations → migrations}/1769087809-payments-invoice-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1769621227-payments-rounding-amount.sql +0 -0
- /package/dist/{src/migrations → migrations}/1770917406-create-cached-balances-global-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1770917407-create-member-name-ordering-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1770917408-create-member-name-ordering-index-desc.sql +0 -0
- /package/dist/{src/migrations → migrations}/1770917409-create-member-age-ordering-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1770917410-create-member-age-ordering-index-desc.sql +0 -0
- /package/dist/{src/migrations → migrations}/1770917411-drop-duplicate-member-indexes.sql +0 -0
- /package/dist/{src/migrations → migrations}/1771510518-events-index-organization-id-start-date.sql +0 -0
- /package/dist/{src/migrations → migrations}/1771918307-membership-active-filter-index.sql +0 -0
- /package/dist/{src/migrations → migrations}/1772033555-balance-item-package-id.sql +0 -0
- /package/dist/{src/migrations → migrations}/1772033715-balance-item-start-end-date.sql +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Drenthe +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Flevoland +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Friesland +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Gelderland +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Groningen +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Limburg +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Noord-Brabant +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Noord-Holland +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Overrijsel +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Utrecht +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Zeeland +0 -0
- /package/dist/{src/migrations → migrations}/data/postcodes/nl/Zuid-Holland +0 -0
- /package/dist/{src/models → models}/AuditLog.d.ts +0 -0
- /package/dist/{src/models → models}/BuckarooPayment.d.ts +0 -0
- /package/dist/{src/models → models}/EmailRecipient.d.ts +0 -0
- /package/dist/{src/models → models}/Event.d.ts +0 -0
- /package/dist/{src/models → models}/Invoice.d.ts +0 -0
- /package/dist/{src/models → models}/MemberUser.d.ts +0 -0
- /package/dist/{src/models → models}/MolliePayment.d.ts +0 -0
- /package/dist/{src/models → models}/Platform.d.ts +0 -0
- /package/dist/{src/models → models}/RegisterCode.d.ts +0 -0
- /package/dist/{src/models → models}/RegistrationPeriod.d.ts +0 -0
- /package/dist/{src/models → models}/STCredit.d.ts +0 -0
- /package/dist/{src/models → models}/STPackage.d.ts +0 -0
- /package/dist/{src/models → models}/StripeAccount.d.ts +0 -0
- /package/dist/{src/models → models}/StripeCheckoutSession.d.ts +0 -0
- /package/dist/{src/models → models}/StripePaymentIntent.d.ts +0 -0
- /package/dist/{src/models → models}/UitpasClientCredential.d.ts +0 -0
- /package/dist/{src/models → models}/UsedRegisterCode.d.ts +0 -0
- /package/dist/{src/models → models}/WebshopDiscountCode.d.ts +0 -0
- /package/dist/{src/models → models}/WebshopUitpasNumber.d.ts +0 -0
- /package/dist/{src/models → models}/addresses/Street.d.ts +0 -0
- /package/dist/{src/structures → structures}/OrganizationServerMetaData.d.ts +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemberResponsibilityRecordFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const index_js_1 = require("../models/index.js");
|
|
6
|
-
const PlatformResponsibilityFactory_js_1 = require("./PlatformResponsibilityFactory.js");
|
|
7
|
-
class Options {
|
|
8
|
-
name;
|
|
9
|
-
responsibility;
|
|
10
|
-
member;
|
|
11
|
-
organizationId;
|
|
12
|
-
}
|
|
13
|
-
class MemberResponsibilityRecordFactory extends simple_database_1.Factory {
|
|
14
|
-
async create() {
|
|
15
|
-
const record = new index_js_1.MemberResponsibilityRecord();
|
|
16
|
-
const responsibility = this.options.responsibility ?? (await new PlatformResponsibilityFactory_js_1.PlatformResponsibilityFactory({
|
|
17
|
-
organizationBased: !!this.options.organizationId,
|
|
18
|
-
}).create());
|
|
19
|
-
record.responsibilityId = this.options.responsibility?.id ?? responsibility.id;
|
|
20
|
-
record.memberId = this.options.member.id;
|
|
21
|
-
record.startDate = new Date();
|
|
22
|
-
record.endDate = null;
|
|
23
|
-
record.organizationId = this.options.organizationId ?? this.options.member.organizationId;
|
|
24
|
-
if (record.organizationId) {
|
|
25
|
-
if (responsibility.organizationBased) {
|
|
26
|
-
throw new Error('This responsibility is organization based. Please also provider the organizationId option when creating the record with MemberResponsibilityRecordFactory');
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
await record.save();
|
|
30
|
-
return record;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.MemberResponsibilityRecordFactory = MemberResponsibilityRecordFactory;
|
|
34
|
-
//# sourceMappingURL=MemberResponsibilityRecordFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MemberResponsibilityRecordFactory.js","sourceRoot":"","sources":["../../../src/factories/MemberResponsibilityRecordFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AAGtD,iDAAwE;AACxE,yFAAmF;AAEnF,MAAM,OAAO;IACT,IAAI,CAAU;IACd,cAAc,CAAwB;IACtC,MAAM,CAAS;IACf,cAAc,CAAU;CAC3B;AAED,MAAa,iCAAkC,SAAQ,yBAA4C;IAC/F,KAAK,CAAC,MAAM;QACR,MAAM,MAAM,GAAG,IAAI,qCAA0B,EAAE,CAAC;QAChD,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,IAAI,CAAC,MAAM,IAAI,gEAA6B,CAAC;YAC3F,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc;SACnD,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACb,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,IAAI,cAAc,CAAC,EAAE,CAAC;QAC/E,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAC9B,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;QACtB,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC;QAE1F,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,IAAI,cAAc,CAAC,iBAAiB,EAAE,CAAC;gBACnC,MAAM,IAAI,KAAK,CAAC,2JAA2J,CAAC,CAAC;YACjL,CAAC;QACL,CAAC;QAED,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AArBD,8EAqBC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@simonbackx/simple-database';
|
|
2
|
-
import { OrganizationMetaData, PermissionRoleDetailed } from '@stamhoofd/structures';
|
|
3
|
-
import { Organization } from '../models/Organization.js';
|
|
4
|
-
import { RegistrationPeriod } from '../models/RegistrationPeriod.js';
|
|
5
|
-
declare class Options {
|
|
6
|
-
uri?: string;
|
|
7
|
-
domain?: string;
|
|
8
|
-
meta?: OrganizationMetaData;
|
|
9
|
-
name?: string;
|
|
10
|
-
city?: string;
|
|
11
|
-
roles?: PermissionRoleDetailed[];
|
|
12
|
-
period?: RegistrationPeriod;
|
|
13
|
-
tags?: string[];
|
|
14
|
-
}
|
|
15
|
-
export declare class OrganizationFactory extends Factory<Options, Organization> {
|
|
16
|
-
create(): Promise<Organization>;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=OrganizationFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/OrganizationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAoB,oBAAoB,EAAoB,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAGzH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGrE,cAAM,OAAO;IACT,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC;IAC7D,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;CAkDxC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const utility_1 = require("@stamhoofd/utility");
|
|
7
|
-
const Organization_js_1 = require("../models/Organization.js");
|
|
8
|
-
const RegistrationPeriodFactory_js_1 = require("./RegistrationPeriodFactory.js");
|
|
9
|
-
class Options {
|
|
10
|
-
uri;
|
|
11
|
-
domain;
|
|
12
|
-
meta;
|
|
13
|
-
name;
|
|
14
|
-
city;
|
|
15
|
-
roles;
|
|
16
|
-
period;
|
|
17
|
-
tags;
|
|
18
|
-
}
|
|
19
|
-
class OrganizationFactory extends simple_database_1.Factory {
|
|
20
|
-
async create() {
|
|
21
|
-
const organization = new Organization_js_1.Organization();
|
|
22
|
-
organization.name = this.options.name ?? 'Organization ' + (new Date().getTime() + Math.floor(Math.random() * 999999));
|
|
23
|
-
organization.website = 'https://domain.com';
|
|
24
|
-
organization.registerDomain = this.options.domain ?? null;
|
|
25
|
-
organization.uri = this.options.uri ?? utility_1.Formatter.slug(organization.name);
|
|
26
|
-
organization.meta = this.options.meta ?? structures_1.OrganizationMetaData.create({
|
|
27
|
-
type: this.randomEnum(structures_1.OrganizationType),
|
|
28
|
-
umbrellaOrganization: null,
|
|
29
|
-
defaultEndDate: new Date(),
|
|
30
|
-
defaultStartDate: new Date(),
|
|
31
|
-
defaultPrices: [],
|
|
32
|
-
});
|
|
33
|
-
organization.address = structures_1.Address.create({
|
|
34
|
-
street: 'Demostraat',
|
|
35
|
-
number: '12',
|
|
36
|
-
city: this.options.city ?? 'Gent',
|
|
37
|
-
postalCode: '9000',
|
|
38
|
-
country: structures_1.Country.Belgium,
|
|
39
|
-
});
|
|
40
|
-
let period;
|
|
41
|
-
if (this.options.period) {
|
|
42
|
-
period = this.options.period;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
period = await new RegistrationPeriodFactory_js_1.RegistrationPeriodFactory({}).create();
|
|
46
|
-
}
|
|
47
|
-
organization.periodId = period.id;
|
|
48
|
-
if (this.options.roles) {
|
|
49
|
-
organization.privateMeta.roles = this.options.roles;
|
|
50
|
-
}
|
|
51
|
-
if (this.options.tags) {
|
|
52
|
-
organization.meta.tags = this.options.tags;
|
|
53
|
-
}
|
|
54
|
-
await organization.save();
|
|
55
|
-
if (!this.options.period && STAMHOOFD.userMode === 'organization') {
|
|
56
|
-
// should be saved after creation of organization
|
|
57
|
-
period.organizationId = organization.id;
|
|
58
|
-
await period.save();
|
|
59
|
-
}
|
|
60
|
-
return organization;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.OrganizationFactory = OrganizationFactory;
|
|
64
|
-
//# sourceMappingURL=OrganizationFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationFactory.js","sourceRoot":"","sources":["../../../src/factories/OrganizationFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAAyH;AACzH,gDAA+C;AAE/C,+DAAyD;AAEzD,iFAA2E;AAE3E,MAAM,OAAO;IACT,GAAG,CAAU;IACb,MAAM,CAAU;IAChB,IAAI,CAAwB;IAC5B,IAAI,CAAU;IACd,IAAI,CAAU;IACd,KAAK,CAA4B;IACjC,MAAM,CAAsB;IAC5B,IAAI,CAAY;CACnB;AAED,MAAa,mBAAoB,SAAQ,yBAA8B;IACnE,KAAK,CAAC,MAAM;QACR,MAAM,YAAY,GAAG,IAAI,8BAAY,EAAE,CAAC;QACxC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,eAAe,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;QACvH,YAAY,CAAC,OAAO,GAAG,oBAAoB,CAAC;QAC5C,YAAY,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC;QAC1D,YAAY,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,mBAAS,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACzE,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,iCAAoB,CAAC,MAAM,CAAC;YACjE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,6BAAgB,CAAC;YACvC,oBAAoB,EAAE,IAAI;YAC1B,cAAc,EAAE,IAAI,IAAI,EAAE;YAC1B,gBAAgB,EAAE,IAAI,IAAI,EAAE;YAC5B,aAAa,EAAE,EAAE;SACpB,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,GAAG,oBAAO,CAAC,MAAM,CAAC;YAClC,MAAM,EAAE,YAAY;YACpB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,MAAM;YACjC,UAAU,EAAE,MAAM;YAClB,OAAO,EAAE,oBAAO,CAAC,OAAO;SAC3B,CAAC,CAAC;QAEH,IAAI,MAA0B,CAAC;QAE/B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACtB,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACjC,CAAC;aACI,CAAC;YACF,MAAM,GAAG,MAAM,IAAI,wDAAyB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QAC9D,CAAC;QAED,YAAY,CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;QAElC,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACrB,YAAY,CAAC,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;QACxD,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACpB,YAAY,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/C,CAAC;QAED,MAAM,YAAY,CAAC,IAAI,EAAE,CAAC;QAE1B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,SAAS,CAAC,QAAQ,KAAK,cAAc,EAAE,CAAC;YAChE,iDAAiD;YACjD,MAAM,CAAC,cAAc,GAAG,YAAY,CAAC,EAAE,CAAC;YACxC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;QAED,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ;AAnDD,kDAmDC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@simonbackx/simple-database';
|
|
2
|
-
import { OrganizationRegistrationPeriod } from '../models/index.js';
|
|
3
|
-
import { Organization } from '../models/Organization.js';
|
|
4
|
-
import { RegistrationPeriod } from '../models/RegistrationPeriod.js';
|
|
5
|
-
declare class Options {
|
|
6
|
-
organization: Organization;
|
|
7
|
-
period: RegistrationPeriod;
|
|
8
|
-
}
|
|
9
|
-
export declare class OrganizationRegistrationPeriodFactory extends Factory<Options, OrganizationRegistrationPeriod> {
|
|
10
|
-
create(): Promise<OrganizationRegistrationPeriod>;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=OrganizationRegistrationPeriodFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationRegistrationPeriodFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/OrganizationRegistrationPeriodFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,cAAM,OAAO;IACT,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;CAC9B;AAED,qBAAa,qCAAsC,SAAQ,OAAO,CAAC,OAAO,EAAE,8BAA8B,CAAC;IACjG,MAAM,IAAI,OAAO,CAAC,8BAA8B,CAAC;CAS1D"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationRegistrationPeriodFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const index_js_1 = require("../models/index.js");
|
|
6
|
-
class Options {
|
|
7
|
-
organization;
|
|
8
|
-
period;
|
|
9
|
-
}
|
|
10
|
-
class OrganizationRegistrationPeriodFactory extends simple_database_1.Factory {
|
|
11
|
-
async create() {
|
|
12
|
-
const organizationRegistrationPeriod = new index_js_1.OrganizationRegistrationPeriod();
|
|
13
|
-
organizationRegistrationPeriod.organizationId = this.options.organization.id;
|
|
14
|
-
organizationRegistrationPeriod.periodId = this.options.period.id;
|
|
15
|
-
await organizationRegistrationPeriod.save();
|
|
16
|
-
return organizationRegistrationPeriod;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.OrganizationRegistrationPeriodFactory = OrganizationRegistrationPeriodFactory;
|
|
20
|
-
//# sourceMappingURL=OrganizationRegistrationPeriodFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationRegistrationPeriodFactory.js","sourceRoot":"","sources":["../../../src/factories/OrganizationRegistrationPeriodFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AAEtD,iDAAoE;AAIpE,MAAM,OAAO;IACT,YAAY,CAAe;IAC3B,MAAM,CAAqB;CAC9B;AAED,MAAa,qCAAsC,SAAQ,yBAAgD;IACvG,KAAK,CAAC,MAAM;QACR,MAAM,8BAA8B,GAAG,IAAI,yCAA8B,EAAE,CAAC;QAE5E,8BAA8B,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QAC7E,8BAA8B,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAEjE,MAAM,8BAA8B,CAAC,IAAI,EAAE,CAAC;QAC5C,OAAO,8BAA8B,CAAC;IAC1C,CAAC;CACJ;AAVD,sFAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationTagFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/OrganizationTagFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIxD,cAAM,OAAO;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC;IACnE,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;CAY3C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationTagFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const Platform_js_1 = require("../models/Platform.js");
|
|
7
|
-
class Options {
|
|
8
|
-
name;
|
|
9
|
-
}
|
|
10
|
-
class OrganizationTagFactory extends simple_database_1.Factory {
|
|
11
|
-
async create() {
|
|
12
|
-
const tag = structures_1.OrganizationTag.create({
|
|
13
|
-
name: 'tag ' + (new Date().getTime() + Math.floor(Math.random() * 999999)),
|
|
14
|
-
});
|
|
15
|
-
// Add to platform
|
|
16
|
-
const platform = await Platform_js_1.Platform.getForEditing();
|
|
17
|
-
platform.config.tags.push(tag);
|
|
18
|
-
await platform.save();
|
|
19
|
-
return tag;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.OrganizationTagFactory = OrganizationTagFactory;
|
|
23
|
-
//# sourceMappingURL=OrganizationTagFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationTagFactory.js","sourceRoot":"","sources":["../../../src/factories/OrganizationTagFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAAwD;AAExD,uDAAiD;AAEjD,MAAM,OAAO;IACT,IAAI,CAAU;CACjB;AAED,MAAa,sBAAuB,SAAQ,yBAAiC;IACzE,KAAK,CAAC,MAAM;QACR,MAAM,GAAG,GAAG,4BAAe,CAAC,MAAM,CAAC;YAC/B,IAAI,EAAE,MAAM,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;SAC7E,CAAC,CAAC;QAEH,kBAAkB;QAClB,MAAM,QAAQ,GAAG,MAAM,sBAAQ,CAAC,aAAa,EAAE,CAAC;QAChD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEtB,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AAbD,wDAaC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParentFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/ParentFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAU,MAAM,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKnE,UAAU,OAAO;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AAED,qBAAa,aAAc,SAAQ,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC;IACjD,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;CAqClC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ParentFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const utility_1 = require("@stamhoofd/utility");
|
|
7
|
-
const AddressFactory_js_1 = require("./AddressFactory.js");
|
|
8
|
-
class ParentFactory extends simple_database_1.Factory {
|
|
9
|
-
async create() {
|
|
10
|
-
const parent = new structures_1.Parent();
|
|
11
|
-
parent.type = this.options.type ?? this.randomArray([structures_1.ParentType.Mother, structures_1.ParentType.Father, structures_1.ParentType.Stepfather, structures_1.ParentType.Stepmother, structures_1.ParentType.Other]);
|
|
12
|
-
if (parent.type == structures_1.ParentType.Other) {
|
|
13
|
-
// Second spin
|
|
14
|
-
parent.type = this.options.type ?? this.randomArray([structures_1.ParentType.Mother, structures_1.ParentType.Father, structures_1.ParentType.Stepfather, structures_1.ParentType.Stepmother, structures_1.ParentType.Other]);
|
|
15
|
-
}
|
|
16
|
-
parent.firstName = this.randomFirstName(parent.type == structures_1.ParentType.Mother ? structures_1.Gender.Female : structures_1.Gender.Male);
|
|
17
|
-
parent.lastName = this.randomLastName();
|
|
18
|
-
parent.address = await new AddressFactory_js_1.AddressFactory({}).create();
|
|
19
|
-
parent.phone
|
|
20
|
-
= '+32 47'
|
|
21
|
-
+ Math.floor(Math.random() * 10)
|
|
22
|
-
+ ' '
|
|
23
|
-
+ Math.floor(Math.random() * 10)
|
|
24
|
-
+ Math.floor(Math.random() * 10)
|
|
25
|
-
+ ' '
|
|
26
|
-
+ Math.floor(Math.random() * 10)
|
|
27
|
-
+ Math.floor(Math.random() * 10)
|
|
28
|
-
+ ' '
|
|
29
|
-
+ Math.floor(Math.random() * 10)
|
|
30
|
-
+ Math.floor(Math.random() * 10);
|
|
31
|
-
parent.email
|
|
32
|
-
= utility_1.Formatter.slugEmail((Math.random() >= 0.5 ? parent.firstName.toLowerCase() : parent.firstName.toLowerCase()[0])
|
|
33
|
-
+ (Math.random() >= 0.5 ? '.' : Math.random() >= 0.5 ? '_' : '')
|
|
34
|
-
+ parent.lastName.toLowerCase().replace(' ', ''))
|
|
35
|
-
+ '@'
|
|
36
|
-
+ this.randomArray([
|
|
37
|
-
'geen-email.com',
|
|
38
|
-
]);
|
|
39
|
-
return parent;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.ParentFactory = ParentFactory;
|
|
43
|
-
//# sourceMappingURL=ParentFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParentFactory.js","sourceRoot":"","sources":["../../../src/factories/ParentFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAAmE;AACnE,gDAA+C;AAE/C,2DAAqD;AAMrD,MAAa,aAAc,SAAQ,yBAAwB;IACvD,KAAK,CAAC,MAAM;QACR,MAAM,MAAM,GAAG,IAAI,mBAAM,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,uBAAU,CAAC,MAAM,EAAE,uBAAU,CAAC,MAAM,EAAE,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAC5J,IAAI,MAAM,CAAC,IAAI,IAAI,uBAAU,CAAC,KAAK,EAAE,CAAC;YAClC,cAAc;YACd,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,uBAAU,CAAC,MAAM,EAAE,uBAAU,CAAC,MAAM,EAAE,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAChK,CAAC;QAED,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,IAAI,uBAAU,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAM,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAM,CAAC,IAAI,CAAC,CAAC;QACxG,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAExC,MAAM,CAAC,OAAO,GAAG,MAAM,IAAI,kCAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACvD,MAAM,CAAC,KAAK;cACN,QAAQ;kBACJ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;kBAC9B,GAAG;kBACH,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;kBAC9B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;kBAC9B,GAAG;kBACH,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;kBAC9B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;kBAC9B,GAAG;kBACH,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;kBAC9B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QAEzC,MAAM,CAAC,KAAK;cACN,mBAAS,CAAC,SAAS,CACjB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;kBACzF,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;kBAC9D,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CACnD;kBACC,GAAG;kBACH,IAAI,CAAC,WAAW,CAAC;oBACf,gBAAgB;iBACnB,CAAC,CAAC;QACP,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAtCD,sCAsCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformEventTypeFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/PlatformEventTypeFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1D,cAAM,OAAO;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,qBAAa,wBAAyB,SAAQ,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACvE,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAgB7C"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlatformEventTypeFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const Platform_js_1 = require("../models/Platform.js");
|
|
7
|
-
class Options {
|
|
8
|
-
name;
|
|
9
|
-
maximum;
|
|
10
|
-
}
|
|
11
|
-
class PlatformEventTypeFactory extends simple_database_1.Factory {
|
|
12
|
-
async create() {
|
|
13
|
-
const eventType = structures_1.PlatformEventType.create({
|
|
14
|
-
name: this.options.name ?? ('Responsibility ' + (new Date().getTime() + Math.floor(Math.random() * 999999))),
|
|
15
|
-
});
|
|
16
|
-
if (this.options.maximum !== undefined) {
|
|
17
|
-
eventType.maximum = this.options.maximum;
|
|
18
|
-
}
|
|
19
|
-
// Add to platform
|
|
20
|
-
const platform = await Platform_js_1.Platform.getForEditing();
|
|
21
|
-
platform.config.eventTypes.push(eventType);
|
|
22
|
-
await platform.save();
|
|
23
|
-
return eventType;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.PlatformEventTypeFactory = PlatformEventTypeFactory;
|
|
27
|
-
//# sourceMappingURL=PlatformEventTypeFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformEventTypeFactory.js","sourceRoot":"","sources":["../../../src/factories/PlatformEventTypeFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAA0D;AAE1D,uDAAiD;AAEjD,MAAM,OAAO;IACT,IAAI,CAAU;IACd,OAAO,CAAiB;CAC3B;AAED,MAAa,wBAAyB,SAAQ,yBAAmC;IAC7E,KAAK,CAAC,MAAM;QACR,MAAM,SAAS,GAAG,8BAAiB,CAAC,MAAM,CAAC;YACvC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;SAC/G,CAAC,CAAC;QAEH,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACrC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7C,CAAC;QAED,kBAAkB;QAClB,MAAM,QAAQ,GAAG,MAAM,sBAAQ,CAAC,aAAa,EAAE,CAAC;QAChD,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEtB,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAjBD,4DAiBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformResponsibilityFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/PlatformResponsibilityFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,cAAM,OAAO;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,OAAO,EAAE,oBAAoB,CAAC;IAC/E,MAAM,IAAI,OAAO,CAAC,oBAAoB,CAAC;CAahD"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlatformResponsibilityFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const Platform_js_1 = require("../models/Platform.js");
|
|
7
|
-
class Options {
|
|
8
|
-
name;
|
|
9
|
-
organizationBased;
|
|
10
|
-
}
|
|
11
|
-
class PlatformResponsibilityFactory extends simple_database_1.Factory {
|
|
12
|
-
async create() {
|
|
13
|
-
const responsibility = structures_1.MemberResponsibility.create({
|
|
14
|
-
name: this.options.name ?? ('Responsibility ' + (new Date().getTime() + Math.floor(Math.random() * 999999))),
|
|
15
|
-
organizationBased: this.options.organizationBased ?? true,
|
|
16
|
-
});
|
|
17
|
-
// Add to platform
|
|
18
|
-
const platform = await Platform_js_1.Platform.getForEditing();
|
|
19
|
-
platform.config.responsibilities.push(responsibility);
|
|
20
|
-
await platform.save();
|
|
21
|
-
return responsibility;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.PlatformResponsibilityFactory = PlatformResponsibilityFactory;
|
|
25
|
-
//# sourceMappingURL=PlatformResponsibilityFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformResponsibilityFactory.js","sourceRoot":"","sources":["../../../src/factories/PlatformResponsibilityFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAA6D;AAE7D,uDAAiD;AAEjD,MAAM,OAAO;IACT,IAAI,CAAU;IACd,iBAAiB,CAAW;CAC/B;AAED,MAAa,6BAA8B,SAAQ,yBAAsC;IACrF,KAAK,CAAC,MAAM;QACR,MAAM,cAAc,GAAG,iCAAoB,CAAC,MAAM,CAAC;YAC/C,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;YAC5G,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,IAAI;SAC5D,CAAC,CAAC;QAEH,kBAAkB;QAClB,MAAM,QAAQ,GAAG,MAAM,sBAAQ,CAAC,aAAa,EAAE,CAAC;QAChD,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACtD,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEtB,OAAO,cAAc,CAAC;IAC1B,CAAC;CACJ;AAdD,sEAcC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@simonbackx/simple-database';
|
|
2
|
-
import { RecordAnswer, RecordCategory, RecordSettings } from '@stamhoofd/structures';
|
|
3
|
-
type Options = ({
|
|
4
|
-
records: RecordSettings[];
|
|
5
|
-
} | {
|
|
6
|
-
recordCategories: RecordCategory[];
|
|
7
|
-
}) & {
|
|
8
|
-
/**
|
|
9
|
-
* Defaults to true
|
|
10
|
-
*/
|
|
11
|
-
complete?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare class RecordAnswerFactory extends Factory<Options, Map<string, RecordAnswer>> {
|
|
14
|
-
create(): Promise<Map<string, RecordAnswer>>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=RecordAnswerFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordAnswerFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/RecordAnswerFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAoC,YAAY,EAAE,cAAc,EAA0K,cAAc,EAAgC,MAAM,uBAAuB,CAAC;AAG7T,KAAK,OAAO,GAAG,CAAC;IACZ,OAAO,EAAE,cAAc,EAAE,CAAC;CAC7B,GAAG;IACA,gBAAgB,EAAE,cAAc,EAAE,CAAC;CACtC,CAAC,GAAG;IACD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC1E,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAgGrD"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecordAnswerFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const AddressFactory_js_1 = require("./AddressFactory.js");
|
|
7
|
-
class RecordAnswerFactory extends simple_database_1.Factory {
|
|
8
|
-
async create() {
|
|
9
|
-
const records = 'records' in this.options ? this.options.records : this.options.recordCategories.flatMap(c => c.getAllRecords());
|
|
10
|
-
const map = new Map();
|
|
11
|
-
for (const record of records) {
|
|
12
|
-
const answer = structures_1.RecordAnswer.createDefaultAnswer(record);
|
|
13
|
-
if (this.options.complete !== false) {
|
|
14
|
-
// Make sure it is filled in
|
|
15
|
-
answer.markReviewed();
|
|
16
|
-
switch (true) {
|
|
17
|
-
case answer instanceof structures_1.RecordCheckboxAnswer: {
|
|
18
|
-
// If it is a checkbox, set the first one to true
|
|
19
|
-
answer.selected = true;
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
case answer instanceof structures_1.RecordTextAnswer: {
|
|
23
|
-
answer.value = 'Test ' + Math.floor(Math.random() * 100000);
|
|
24
|
-
switch (record.type) {
|
|
25
|
-
case structures_1.RecordType.Phone: {
|
|
26
|
-
answer.value = '+32 477 77 77 77';
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
case structures_1.RecordType.Email: {
|
|
30
|
-
answer.value = 'example@example.domain';
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
case structures_1.RecordType.Textarea: {
|
|
34
|
-
answer.value = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.\nVivamus lacinia odio vitae vestibulum.';
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
case answer instanceof structures_1.RecordMultipleChoiceAnswer:
|
|
41
|
-
{
|
|
42
|
-
// If it is a multiple choice, select all
|
|
43
|
-
answer.selectedChoices = record.choices.map(c => c.clone());
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
;
|
|
47
|
-
case answer instanceof structures_1.RecordChooseOneAnswer:
|
|
48
|
-
{
|
|
49
|
-
// Select first
|
|
50
|
-
answer.selectedChoice = record.choices[0]?.clone() ?? null;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
;
|
|
54
|
-
case answer instanceof structures_1.RecordAddressAnswer: {
|
|
55
|
-
answer.address = await new AddressFactory_js_1.AddressFactory({}).create();
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
case answer instanceof structures_1.RecordDateAnswer: {
|
|
59
|
-
answer.dateValue = new Date();
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
case answer instanceof structures_1.RecordPriceAnswer: {
|
|
63
|
-
answer.value = 1234;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
case answer instanceof structures_1.RecordImageAnswer: {
|
|
67
|
-
answer.image = structures_1.Image.create({});
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
case answer instanceof structures_1.RecordIntegerAnswer: {
|
|
71
|
-
answer.value = 5;
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
case answer instanceof structures_1.RecordFileAnswer: {
|
|
75
|
-
answer.file = new structures_1.File({
|
|
76
|
-
id: 'example-id',
|
|
77
|
-
server: 'https://example.domain',
|
|
78
|
-
path: 'example/path/to/file',
|
|
79
|
-
size: 1234,
|
|
80
|
-
name: 'example.txt',
|
|
81
|
-
isPrivate: false,
|
|
82
|
-
signedUrl: null,
|
|
83
|
-
signature: null,
|
|
84
|
-
});
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
map.set(record.id, answer);
|
|
90
|
-
}
|
|
91
|
-
return map;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.RecordAnswerFactory = RecordAnswerFactory;
|
|
95
|
-
//# sourceMappingURL=RecordAnswerFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordAnswerFactory.js","sourceRoot":"","sources":["../../../src/factories/RecordAnswerFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAA6T;AAC7T,2DAAqD;AAarD,MAAa,mBAAoB,SAAQ,yBAA2C;IAChF,KAAK,CAAC,MAAM;QACR,MAAM,OAAO,GAAG,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC;QAEjI,MAAM,GAAG,GAA8B,IAAI,GAAG,EAAE,CAAC;QAEjD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,yBAAY,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;YAExD,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;gBAClC,4BAA4B;gBAC5B,MAAM,CAAC,YAAY,EAAE,CAAC;gBAEtB,QAAQ,IAAI,EAAE,CAAC;oBACX,KAAK,MAAM,YAAY,iCAAoB,CAAC,CAAC,CAAC;wBAC1C,iDAAiD;wBACjD,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;wBACvB,MAAM;oBACV,CAAC;oBACD,KAAK,MAAM,YAAY,6BAAgB,CAAC,CAAC,CAAC;wBACtC,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;wBAE5D,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;4BAClB,KAAK,uBAAU,CAAC,KAAK,CAAC,CAAA,CAAC;gCACnB,MAAM,CAAC,KAAK,GAAG,kBAAkB,CAAC;gCAClC,MAAM;4BACV,CAAC;4BACD,KAAK,uBAAU,CAAC,KAAK,CAAC,CAAC,CAAC;gCACpB,MAAM,CAAC,KAAK,GAAG,wBAAwB,CAAC;gCACxC,MAAM;4BACV,CAAC;4BACD,KAAK,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;gCACvB,MAAM,CAAC,KAAK,GAAG,kGAAkG,CAAC;gCAClH,MAAM;4BACV,CAAC;wBACL,CAAC;wBACD,MAAM;oBACV,CAAC;oBAED,KAAK,MAAM,YAAY,uCAA0B;wBAAE,CAAC;4BAChD,yCAAyC;4BACzC,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;4BAC5D,MAAM;wBACV,CAAC;wBAAA,CAAC;oBAEF,KAAK,MAAM,YAAY,kCAAqB;wBAAE,CAAC;4BAC3C,eAAe;4BACf,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,IAAI,CAAC;4BAC3D,MAAM;wBACV,CAAC;wBAAA,CAAC;oBAEF,KAAK,MAAM,YAAY,gCAAmB,CAAC,CAAC,CAAC;wBACzC,MAAM,CAAC,OAAO,GAAG,MAAM,IAAI,kCAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;wBACvD,MAAM;oBACV,CAAC;oBAED,KAAK,MAAM,YAAY,6BAAgB,CAAC,CAAC,CAAC;wBACtC,MAAM,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;wBAC9B,MAAM;oBACV,CAAC;oBAED,KAAK,MAAM,YAAY,8BAAiB,CAAC,CAAC,CAAC;wBACvC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;wBACpB,MAAM;oBACV,CAAC;oBAED,KAAK,MAAM,YAAY,8BAAiB,CAAC,CAAC,CAAC;wBACvC,MAAM,CAAC,KAAK,GAAG,kBAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;wBAChC,MAAM;oBACV,CAAC;oBAED,KAAK,MAAM,YAAY,gCAAmB,CAAC,CAAC,CAAC;wBACzC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;wBACjB,MAAM;oBACV,CAAC;oBAED,KAAK,MAAM,YAAY,6BAAgB,CAAC,CAAC,CAAC;wBACtC,MAAM,CAAC,IAAI,GAAG,IAAI,iBAAI,CAAC;4BACnB,EAAE,EAAE,YAAY;4BAChB,MAAM,EAAE,wBAAwB;4BAChC,IAAI,EAAE,sBAAsB;4BAC5B,IAAI,EAAE,IAAI;4BACV,IAAI,EAAE,aAAa;4BACnB,SAAS,EAAE,KAAK;4BAChB,SAAS,EAAE,IAAI;4BACf,SAAS,EAAE,IAAI;yBAClB,CAAC,CAAC;wBACH,MAAM;oBACV,CAAC;gBACL,CAAC;YACL,CAAC;YAED,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AAjGD,kDAiGC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@simonbackx/simple-database';
|
|
2
|
-
import { RecordCategory } from '@stamhoofd/structures';
|
|
3
|
-
import { RecordOptions } from './RecordFactory.js';
|
|
4
|
-
declare class Options {
|
|
5
|
-
records: RecordOptions[];
|
|
6
|
-
}
|
|
7
|
-
export declare class RecordCategoryFactory extends Factory<Options, RecordCategory> {
|
|
8
|
-
create(): Promise<RecordCategory>;
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=RecordCategoryFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordCategoryFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/RecordCategoryFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAoC,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAiB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAElE,cAAM,OAAO;IACT,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC;IACjE,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;CAa1C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecordCategoryFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
const RecordFactory_js_1 = require("./RecordFactory.js");
|
|
7
|
-
class Options {
|
|
8
|
-
records;
|
|
9
|
-
}
|
|
10
|
-
class RecordCategoryFactory extends simple_database_1.Factory {
|
|
11
|
-
async create() {
|
|
12
|
-
const records = [];
|
|
13
|
-
for (const record of this.options.records) {
|
|
14
|
-
records.push(await new RecordFactory_js_1.RecordFactory(record).create());
|
|
15
|
-
}
|
|
16
|
-
return structures_1.RecordCategory.create({
|
|
17
|
-
name: structures_1.TranslatedString.create('Record category ' + Math.floor(Math.random() * 10000)),
|
|
18
|
-
records,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.RecordCategoryFactory = RecordCategoryFactory;
|
|
23
|
-
//# sourceMappingURL=RecordCategoryFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordCategoryFactory.js","sourceRoot":"","sources":["../../../src/factories/RecordCategoryFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAAyF;AACzF,yDAAkE;AAElE,MAAM,OAAO;IACT,OAAO,CAAkB;CAC5B;AAED,MAAa,qBAAsB,SAAQ,yBAAgC;IACvE,KAAK,CAAC,MAAM;QACR,MAAM,OAAO,GAAqB,EAAE,CAAC;QACrC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACxC,OAAO,CAAC,IAAI,CACR,MAAM,IAAI,gCAAa,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAC3C,CAAC;QACN,CAAC;QAED,OAAO,2BAAc,CAAC,MAAM,CAAC;YACzB,IAAI,EAAE,6BAAgB,CAAC,MAAM,CAAC,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC;YACrF,OAAO;SACV,CAAC,CAAC;IACP,CAAC;CACJ;AAdD,sDAcC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/RecordFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAoB,MAAM,uBAAuB,CAAC;AAErF,qBAAa,aAAa;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,qBAAa,aAAc,SAAQ,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC;IACrE,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;CASpC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecordFactory = exports.RecordOptions = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const structures_1 = require("@stamhoofd/structures");
|
|
6
|
-
class RecordOptions {
|
|
7
|
-
type;
|
|
8
|
-
required;
|
|
9
|
-
}
|
|
10
|
-
exports.RecordOptions = RecordOptions;
|
|
11
|
-
class RecordFactory extends simple_database_1.Factory {
|
|
12
|
-
create() {
|
|
13
|
-
return Promise.resolve(structures_1.RecordSettings.create({
|
|
14
|
-
name: structures_1.TranslatedString.create('Record name ' + Math.floor(Math.random() * 10000)),
|
|
15
|
-
type: this.options.type,
|
|
16
|
-
required: this.options.required ?? (this.options.type !== structures_1.RecordType.Checkbox),
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.RecordFactory = RecordFactory;
|
|
21
|
-
//# sourceMappingURL=RecordFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecordFactory.js","sourceRoot":"","sources":["../../../src/factories/RecordFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AACtD,sDAAqF;AAErF,MAAa,aAAa;IACtB,IAAI,CAAa;IACjB,QAAQ,CAAW;CACtB;AAHD,sCAGC;AAED,MAAa,aAAc,SAAQ,yBAAsC;IACrE,MAAM;QACF,OAAO,OAAO,CAAC,OAAO,CAClB,2BAAc,CAAC,MAAM,CAAC;YAClB,IAAI,EAAE,6BAAgB,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC;YACjF,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,uBAAU,CAAC,QAAQ,CAAC;SACjF,CAAC,CACL,CAAC;IACN,CAAC;CACJ;AAVD,sCAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterCodeFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/RegisterCodeFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,KAAK,mBAAmB,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC;CAC1B,GAAG;IAAE,YAAY,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAErC,KAAK,OAAO,GAAG,mBAAmB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC;IAC7D,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;CAUxC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RegisterCodeFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const index_js_1 = require("../models/index.js");
|
|
6
|
-
class RegisterCodeFactory extends simple_database_1.Factory {
|
|
7
|
-
async create() {
|
|
8
|
-
const code = new index_js_1.RegisterCode();
|
|
9
|
-
code.organizationId = 'organizationId' in this.options ? this.options.organizationId : this.options.organization.id;
|
|
10
|
-
code.value = this.options.value ?? (25 * 100);
|
|
11
|
-
code.description = this.options.description ?? 'Test code';
|
|
12
|
-
await code.generateCode();
|
|
13
|
-
await code.save();
|
|
14
|
-
return code;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.RegisterCodeFactory = RegisterCodeFactory;
|
|
18
|
-
//# sourceMappingURL=RegisterCodeFactory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterCodeFactory.js","sourceRoot":"","sources":["../../../src/factories/RegisterCodeFactory.ts"],"names":[],"mappings":";;;AAAA,iEAAsD;AAEtD,iDAAkD;AAWlD,MAAa,mBAAoB,SAAQ,yBAA8B;IACnE,KAAK,CAAC,MAAM;QACR,MAAM,IAAI,GAAG,IAAI,uBAAY,EAAE,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,gBAAgB,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QACpH,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,WAAW,CAAC;QAE3D,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC1B,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAXD,kDAWC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@simonbackx/simple-database';
|
|
2
|
-
import { GroupPrice } from '@stamhoofd/structures';
|
|
3
|
-
import { Group } from '../models/Group.js';
|
|
4
|
-
import { Member } from '../models/Member.js';
|
|
5
|
-
import { Registration } from '../models/Registration.js';
|
|
6
|
-
import { Organization } from '../models/index.js';
|
|
7
|
-
type Options = ({
|
|
8
|
-
member: Member;
|
|
9
|
-
group: Group;
|
|
10
|
-
groupPrice?: GroupPrice;
|
|
11
|
-
} | {
|
|
12
|
-
member: Member;
|
|
13
|
-
organization: Organization;
|
|
14
|
-
}) & {
|
|
15
|
-
deactivatedAt?: Date;
|
|
16
|
-
};
|
|
17
|
-
export declare class RegistrationFactory extends Factory<Options, Registration> {
|
|
18
|
-
create(): Promise<Registration>;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=RegistrationFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegistrationFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/RegistrationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAkB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,KAAK,OAAO,GAAG,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,GAAG;IACA,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;CAC9B,CAAC,GAAG;IACD,aAAa,CAAC,EAAE,IAAI,CAAC;CACxB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC;IAC7D,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;CAsBxC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RegistrationFactory = void 0;
|
|
4
|
-
const simple_database_1 = require("@simonbackx/simple-database");
|
|
5
|
-
const Registration_js_1 = require("../models/Registration.js");
|
|
6
|
-
const GroupFactory_js_1 = require("./GroupFactory.js");
|
|
7
|
-
class RegistrationFactory extends simple_database_1.Factory {
|
|
8
|
-
async create() {
|
|
9
|
-
const registration = new Registration_js_1.Registration();
|
|
10
|
-
registration.memberId = this.options.member.id;
|
|
11
|
-
const group = 'group' in this.options ? this.options.group : await new GroupFactory_js_1.GroupFactory({ organization: this.options.organization }).create();
|
|
12
|
-
registration.groupId = group.id;
|
|
13
|
-
registration.periodId = group.periodId;
|
|
14
|
-
registration.organizationId = group.organizationId;
|
|
15
|
-
registration.registeredAt = new Date();
|
|
16
|
-
registration.registeredAt.setMilliseconds(0);
|
|
17
|
-
registration.groupPrice = 'groupPrice' in this.options && this.options.groupPrice ? this.options.groupPrice : group.settings.prices[0];
|
|
18
|
-
registration.deactivatedAt = this.options.deactivatedAt || null;
|
|
19
|
-
await registration.save();
|
|
20
|
-
// Create a balance item
|
|
21
|
-
return registration;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.RegistrationFactory = RegistrationFactory;
|
|
25
|
-
//# sourceMappingURL=RegistrationFactory.js.map
|