@deallony/shared 1.2.25 → 1.2.27
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/cjs/abstract/baseService.d.ts +0 -0
- package/dist/cjs/abstract/baseService.js +0 -0
- package/dist/cjs/abstract/index.d.ts +0 -0
- package/dist/cjs/abstract/index.js +0 -0
- package/dist/cjs/constants/ad/Ad.d.ts +0 -0
- package/dist/cjs/constants/ad/Ad.js +0 -0
- package/dist/cjs/constants/ad/index.d.ts +0 -0
- package/dist/cjs/constants/ad/index.js +0 -0
- package/dist/cjs/constants/common/MetaData.d.ts +0 -0
- package/dist/cjs/constants/common/MetaData.js +0 -0
- package/dist/cjs/constants/common/Role.d.ts +0 -0
- package/dist/cjs/constants/common/Role.js +0 -0
- package/dist/cjs/constants/common/Subject.d.ts +0 -0
- package/dist/cjs/constants/common/Subject.js +0 -0
- package/dist/cjs/constants/common/index.d.ts +0 -0
- package/dist/cjs/constants/common/index.js +0 -0
- package/dist/cjs/constants/company/Company.d.ts +0 -0
- package/dist/cjs/constants/company/Company.js +0 -0
- package/dist/cjs/constants/company/index.d.ts +0 -0
- package/dist/cjs/constants/company/index.js +0 -0
- package/dist/cjs/constants/events/Event.d.ts +0 -0
- package/dist/cjs/constants/events/Event.js +0 -0
- package/dist/cjs/constants/events/EventInvitationScanType.d.ts +0 -0
- package/dist/cjs/constants/events/EventInvitationScanType.js +0 -0
- package/dist/cjs/constants/events/EventTemplate.d.ts +0 -0
- package/dist/cjs/constants/events/EventTemplate.js +0 -0
- package/dist/cjs/constants/events/EventTimeline.d.ts +0 -0
- package/dist/cjs/constants/events/EventTimeline.js +0 -0
- package/dist/cjs/constants/events/EventType.d.ts +0 -0
- package/dist/cjs/constants/events/EventType.js +0 -0
- package/dist/cjs/constants/events/EventWedding.d.ts +0 -0
- package/dist/cjs/constants/events/EventWedding.js +0 -0
- package/dist/cjs/constants/events/index.d.ts +0 -0
- package/dist/cjs/constants/events/index.js +0 -0
- package/dist/cjs/constants/index.d.ts +0 -0
- package/dist/cjs/constants/index.js +0 -0
- package/dist/cjs/constants/motor/Motor.d.ts +0 -0
- package/dist/cjs/constants/motor/Motor.js +0 -0
- package/dist/cjs/constants/motor/index.d.ts +0 -0
- package/dist/cjs/constants/motor/index.js +0 -0
- package/dist/cjs/constants/property/Property.d.ts +0 -0
- package/dist/cjs/constants/property/Property.js +0 -0
- package/dist/cjs/constants/property/index.d.ts +0 -0
- package/dist/cjs/constants/property/index.js +0 -0
- package/dist/cjs/constants/routes/app.d.ts +0 -0
- package/dist/cjs/constants/routes/app.js +0 -0
- package/dist/cjs/constants/routes/index.d.ts +0 -0
- package/dist/cjs/constants/routes/index.js +0 -0
- package/dist/cjs/constants/service/Service.d.ts +0 -0
- package/dist/cjs/constants/service/Service.js +0 -0
- package/dist/cjs/constants/service/index.d.ts +0 -0
- package/dist/cjs/constants/service/index.js +0 -0
- package/dist/cjs/constants/used-product/UsedProduct.d.ts +0 -0
- package/dist/cjs/constants/used-product/UsedProduct.js +0 -0
- package/dist/cjs/constants/used-product/index.d.ts +0 -0
- package/dist/cjs/constants/used-product/index.js +0 -0
- package/dist/cjs/dto/ad/Ad.dto.d.ts +0 -0
- package/dist/cjs/dto/ad/Ad.dto.js +0 -0
- package/dist/cjs/dto/ai/Ai.dto.d.ts +0 -0
- package/dist/cjs/dto/ai/Ai.dto.js +0 -0
- package/dist/cjs/dto/common/localizedName.dto.d.ts +0 -0
- package/dist/cjs/dto/common/localizedName.dto.js +0 -0
- package/dist/cjs/dto/events/Event.d.ts +2 -0
- package/dist/cjs/dto/events/Event.dto.d.ts +0 -0
- package/dist/cjs/dto/events/Event.dto.js +0 -0
- package/dist/cjs/dto/events/Event.js +5 -0
- package/dist/cjs/dto/events/EventRsvp.dto.d.ts +0 -0
- package/dist/cjs/dto/events/EventRsvp.dto.js +0 -0
- package/dist/cjs/dto/events/EventTemplate.d.ts +14 -0
- package/dist/cjs/dto/events/EventTemplate.dto.d.ts +18 -0
- package/dist/cjs/dto/events/EventTemplate.dto.js +11 -0
- package/dist/cjs/dto/events/EventTemplate.js +14 -0
- package/dist/cjs/dto/events/EventTimeline.dto.d.ts +0 -0
- package/dist/cjs/dto/events/EventTimeline.dto.js +0 -0
- package/dist/cjs/dto/events/EventType.d.ts +2 -0
- package/dist/cjs/dto/events/EventType.dto.d.ts +16 -0
- package/dist/cjs/dto/events/EventType.dto.js +10 -0
- package/dist/cjs/dto/events/EventType.js +5 -0
- package/dist/cjs/dto/events/EventVenue.dto.d.ts +0 -0
- package/dist/cjs/dto/events/EventVenue.dto.js +0 -0
- package/dist/cjs/dto/events/EventWedding.d.ts +11 -0
- package/dist/cjs/dto/events/EventWedding.dto.d.ts +0 -0
- package/dist/cjs/dto/events/EventWedding.dto.js +0 -0
- package/dist/cjs/dto/events/EventWedding.js +9 -0
- package/dist/cjs/dto/events/common.d.ts +5 -0
- package/dist/cjs/dto/events/common.js +8 -0
- package/dist/cjs/dto/events/index.d.ts +0 -0
- package/dist/cjs/dto/events/index.js +0 -0
- package/dist/cjs/dto/index.d.ts +0 -0
- package/dist/cjs/dto/index.js +0 -0
- package/dist/cjs/index.d.ts +0 -0
- package/dist/cjs/index.js +0 -0
- package/dist/cjs/schema/ad/index.d.ts +0 -0
- package/dist/cjs/schema/ad/index.js +0 -0
- package/dist/cjs/schema/ad/save-ad.schema.d.ts +8 -8
- package/dist/cjs/schema/ad/save-ad.schema.js +13 -1
- package/dist/cjs/schema/ai/ai-fill-ad-form.schema.d.ts +0 -0
- package/dist/cjs/schema/ai/ai-fill-ad-form.schema.js +0 -0
- package/dist/cjs/schema/ai/ai-fill-form.schema.d.ts +0 -0
- package/dist/cjs/schema/ai/ai-fill-form.schema.js +0 -0
- package/dist/cjs/schema/ai/index.d.ts +0 -0
- package/dist/cjs/schema/ai/index.js +0 -0
- package/dist/cjs/schema/common/Phone.schema.d.ts +0 -0
- package/dist/cjs/schema/common/Phone.schema.js +0 -0
- package/dist/cjs/schema/common/index.d.ts +0 -0
- package/dist/cjs/schema/common/index.js +0 -0
- package/dist/cjs/schema/common/localizedName.schema.d.ts +0 -0
- package/dist/cjs/schema/common/localizedName.schema.js +0 -0
- package/dist/cjs/schema/events/Event.schema.d.ts +0 -0
- package/dist/cjs/schema/events/Event.schema.js +0 -0
- package/dist/cjs/schema/events/EventRsvp.schema.d.ts +0 -0
- package/dist/cjs/schema/events/EventRsvp.schema.js +0 -0
- package/dist/cjs/schema/events/EventTimeline.schema.d.ts +0 -0
- package/dist/cjs/schema/events/EventTimeline.schema.js +0 -0
- package/dist/cjs/schema/events/EventVenue.schema.d.ts +3 -1
- package/dist/cjs/schema/events/EventVenue.schema.js +10 -2
- package/dist/cjs/schema/events/EventWedding.schema.d.ts +0 -0
- package/dist/cjs/schema/events/EventWedding.schema.js +0 -0
- package/dist/cjs/schema/events/index.d.ts +0 -0
- package/dist/cjs/schema/events/index.js +0 -0
- package/dist/cjs/schema/index.d.ts +0 -0
- package/dist/cjs/schema/index.js +0 -0
- package/dist/cjs/types/ad/Ad.d.ts +2 -0
- package/dist/cjs/types/ad/Ad.js +0 -0
- package/dist/cjs/types/ad/AdLocation.d.ts +0 -0
- package/dist/cjs/types/ad/AdLocation.js +0 -0
- package/dist/cjs/types/ad/AdPromotion.d.ts +0 -0
- package/dist/cjs/types/ad/AdPromotion.js +0 -0
- package/dist/cjs/types/ad/index.d.ts +0 -0
- package/dist/cjs/types/ad/index.js +0 -0
- package/dist/cjs/types/ad-common/Feature.d.ts +0 -0
- package/dist/cjs/types/ad-common/Feature.js +0 -0
- package/dist/cjs/types/ad-common/OfferType.d.ts +0 -0
- package/dist/cjs/types/ad-common/OfferType.js +0 -0
- package/dist/cjs/types/ad-common/PriceType.d.ts +0 -0
- package/dist/cjs/types/ad-common/PriceType.js +0 -0
- package/dist/cjs/types/ad-common/PublisherType.d.ts +0 -0
- package/dist/cjs/types/ad-common/PublisherType.js +0 -0
- package/dist/cjs/types/ad-common/UsedProductAge.d.ts +0 -0
- package/dist/cjs/types/ad-common/UsedProductAge.js +0 -0
- package/dist/cjs/types/ad-common/UsedProductCondition.d.ts +0 -0
- package/dist/cjs/types/ad-common/UsedProductCondition.js +0 -0
- package/dist/cjs/types/ad-common/index.d.ts +0 -0
- package/dist/cjs/types/ad-common/index.js +0 -0
- package/dist/cjs/types/analysis/AnalysisDailySnapshot.d.ts +0 -0
- package/dist/cjs/types/analysis/AnalysisDailySnapshot.js +0 -0
- package/dist/cjs/types/analysis/index.d.ts +0 -0
- package/dist/cjs/types/analysis/index.js +0 -0
- package/dist/cjs/types/attributes/CarBody.d.ts +5 -0
- package/dist/cjs/types/attributes/CarBody.js +2 -0
- package/dist/cjs/types/attributes/Category.d.ts +0 -0
- package/dist/cjs/types/attributes/Category.js +0 -0
- package/dist/cjs/types/attributes/CategoryWorkType.d.ts +0 -0
- package/dist/cjs/types/attributes/CategoryWorkType.js +0 -0
- package/dist/cjs/types/attributes/Color.d.ts +0 -0
- package/dist/cjs/types/attributes/Color.js +0 -0
- package/dist/cjs/types/attributes/Currency.d.ts +0 -0
- package/dist/cjs/types/attributes/Currency.js +0 -0
- package/dist/cjs/types/attributes/Facility.d.ts +6 -0
- package/dist/cjs/types/attributes/Facility.js +2 -0
- package/dist/cjs/types/attributes/Feature.d.ts +7 -0
- package/dist/cjs/types/attributes/Feature.js +2 -0
- package/dist/cjs/types/attributes/FuelType.d.ts +5 -0
- package/dist/cjs/types/attributes/FuelType.js +2 -0
- package/dist/cjs/types/attributes/LicenseType.d.ts +5 -0
- package/dist/cjs/types/attributes/LicenseType.js +2 -0
- package/dist/cjs/types/attributes/OfferType.d.ts +5 -0
- package/dist/cjs/types/attributes/OfferType.js +2 -0
- package/dist/cjs/types/attributes/PriceType.d.ts +7 -0
- package/dist/cjs/types/attributes/PriceType.js +2 -0
- package/dist/cjs/types/attributes/PropertyStatus.d.ts +5 -0
- package/dist/cjs/types/attributes/PropertyStatus.js +2 -0
- package/dist/cjs/types/attributes/PublisherType.d.ts +5 -0
- package/dist/cjs/types/attributes/PublisherType.js +2 -0
- package/dist/cjs/types/attributes/RegionalSpec.d.ts +5 -0
- package/dist/cjs/types/attributes/RegionalSpec.js +2 -0
- package/dist/cjs/types/attributes/Transmission.d.ts +5 -0
- package/dist/cjs/types/attributes/Transmission.js +2 -0
- package/dist/cjs/types/attributes/Unit.d.ts +5 -0
- package/dist/cjs/types/attributes/Unit.js +2 -0
- package/dist/cjs/types/attributes/UsedProductAge.d.ts +7 -0
- package/dist/cjs/types/attributes/UsedProductAge.js +2 -0
- package/dist/cjs/types/attributes/UsedProductCondition.d.ts +7 -0
- package/dist/cjs/types/attributes/UsedProductCondition.js +2 -0
- package/dist/cjs/types/attributes/WorkType.d.ts +6 -0
- package/dist/cjs/types/attributes/WorkType.js +2 -0
- package/dist/cjs/types/attributes/index.d.ts +0 -0
- package/dist/cjs/types/attributes/index.js +0 -0
- package/dist/cjs/types/common/AccessType.d.ts +5 -0
- package/dist/cjs/types/common/AccessType.js +2 -0
- package/dist/cjs/types/common/Config.d.ts +0 -0
- package/dist/cjs/types/common/Config.js +0 -0
- package/dist/cjs/types/common/FilterParams.d.ts +0 -0
- package/dist/cjs/types/common/FilterParams.js +0 -0
- package/dist/cjs/types/common/LocalizedName.d.ts +0 -0
- package/dist/cjs/types/common/LocalizedName.js +0 -0
- package/dist/cjs/types/common/MetaData.d.ts +0 -0
- package/dist/cjs/types/common/MetaData.js +0 -0
- package/dist/cjs/types/common/Response.d.ts +0 -0
- package/dist/cjs/types/common/Response.js +0 -0
- package/dist/cjs/types/common/Status.d.ts +0 -0
- package/dist/cjs/types/common/Status.js +0 -0
- package/dist/cjs/types/common/Subject.d.ts +0 -0
- package/dist/cjs/types/common/Subject.js +0 -0
- package/dist/cjs/types/common/index.d.ts +0 -0
- package/dist/cjs/types/common/index.js +0 -0
- package/dist/cjs/types/communication/AppStartScreen.d.ts +0 -0
- package/dist/cjs/types/communication/AppStartScreen.js +0 -0
- package/dist/cjs/types/communication/Chat.d.ts +0 -0
- package/dist/cjs/types/communication/Chat.js +0 -0
- package/dist/cjs/types/communication/Device.d.ts +0 -0
- package/dist/cjs/types/communication/Device.js +0 -0
- package/dist/cjs/types/communication/MessageTemplate.d.ts +0 -0
- package/dist/cjs/types/communication/MessageTemplate.js +0 -0
- package/dist/cjs/types/communication/NotificationToken.d.ts +0 -0
- package/dist/cjs/types/communication/NotificationToken.js +0 -0
- package/dist/cjs/types/communication/index.d.ts +0 -0
- package/dist/cjs/types/communication/index.js +0 -0
- package/dist/cjs/types/company/Company.d.ts +0 -0
- package/dist/cjs/types/company/Company.js +0 -0
- package/dist/cjs/types/events/Event.d.ts +0 -0
- package/dist/cjs/types/events/Event.js +0 -0
- package/dist/cjs/types/events/EventRsvp.d.ts +0 -0
- package/dist/cjs/types/events/EventRsvp.js +0 -0
- package/dist/cjs/types/events/EventTemplate.d.ts +14 -0
- package/dist/cjs/types/events/EventTemplate.js +14 -0
- package/dist/cjs/types/events/EventTimeline.d.ts +0 -0
- package/dist/cjs/types/events/EventTimeline.js +0 -0
- package/dist/cjs/types/events/EventType.d.ts +10 -0
- package/dist/cjs/types/events/EventType.js +11 -0
- package/dist/cjs/types/events/EventVenue.d.ts +2 -1
- package/dist/cjs/types/events/EventVenue.js +0 -0
- package/dist/cjs/types/events/EventWedding.d.ts +0 -0
- package/dist/cjs/types/events/EventWedding.js +0 -0
- package/dist/cjs/types/events/index.d.ts +0 -0
- package/dist/cjs/types/events/index.js +0 -0
- package/dist/cjs/types/geo/AdminBoundary.d.ts +0 -0
- package/dist/cjs/types/geo/AdminBoundary.js +0 -0
- package/dist/cjs/types/geo/City.d.ts +0 -0
- package/dist/cjs/types/geo/City.js +0 -0
- package/dist/cjs/types/geo/District.d.ts +0 -0
- package/dist/cjs/types/geo/District.js +0 -0
- package/dist/cjs/types/geo/index.d.ts +0 -0
- package/dist/cjs/types/geo/index.js +0 -0
- package/dist/cjs/types/index.d.ts +0 -0
- package/dist/cjs/types/index.js +0 -0
- package/dist/cjs/types/integrations/Google.d.ts +0 -0
- package/dist/cjs/types/integrations/Google.js +0 -0
- package/dist/cjs/types/integrations/index.d.ts +0 -0
- package/dist/cjs/types/integrations/index.js +0 -0
- package/dist/cjs/types/listings/Ad.d.ts +93 -0
- package/dist/cjs/types/listings/Ad.js +25 -0
- package/dist/cjs/types/listings/AdLocation.d.ts +5 -0
- package/dist/cjs/types/listings/AdLocation.js +2 -0
- package/dist/cjs/types/listings/AdPromotion.d.ts +12 -0
- package/dist/cjs/types/listings/AdPromotion.js +2 -0
- package/dist/cjs/types/listings/Motor.d.ts +24 -0
- package/dist/cjs/types/listings/Motor.js +17 -0
- package/dist/cjs/types/listings/MotorTrim.d.ts +6 -0
- package/dist/cjs/types/listings/MotorTrim.js +2 -0
- package/dist/cjs/types/listings/Property.d.ts +37 -0
- package/dist/cjs/types/listings/Property.js +14 -0
- package/dist/cjs/types/listings/PropertySubType.d.ts +6 -0
- package/dist/cjs/types/listings/PropertySubType.js +2 -0
- package/dist/cjs/types/listings/Service.d.ts +14 -0
- package/dist/cjs/types/listings/Service.js +9 -0
- package/dist/cjs/types/listings/UsedProduct.d.ts +8 -0
- package/dist/cjs/types/listings/UsedProduct.js +7 -0
- package/dist/cjs/types/listings/index.d.ts +5 -0
- package/dist/cjs/types/listings/index.js +21 -0
- package/dist/cjs/types/media/File.d.ts +0 -0
- package/dist/cjs/types/media/File.js +0 -0
- package/dist/cjs/types/media/Image.d.ts +0 -0
- package/dist/cjs/types/media/Image.js +0 -0
- package/dist/cjs/types/media/Media.d.ts +0 -0
- package/dist/cjs/types/media/Media.js +0 -0
- package/dist/cjs/types/media/SocialMediaPlatform.d.ts +0 -0
- package/dist/cjs/types/media/SocialMediaPlatform.js +0 -0
- package/dist/cjs/types/media/SocialMediaProfile.d.ts +0 -0
- package/dist/cjs/types/media/SocialMediaProfile.js +0 -0
- package/dist/cjs/types/media/index.d.ts +0 -0
- package/dist/cjs/types/media/index.js +0 -0
- package/dist/cjs/types/motor/CarBody.d.ts +0 -0
- package/dist/cjs/types/motor/CarBody.js +0 -0
- package/dist/cjs/types/motor/FuelType.d.ts +0 -0
- package/dist/cjs/types/motor/FuelType.js +0 -0
- package/dist/cjs/types/motor/Motor.d.ts +0 -0
- package/dist/cjs/types/motor/Motor.js +0 -0
- package/dist/cjs/types/motor/MotorTrim.d.ts +0 -0
- package/dist/cjs/types/motor/MotorTrim.js +0 -0
- package/dist/cjs/types/motor/RegionalSpec.d.ts +0 -0
- package/dist/cjs/types/motor/RegionalSpec.js +0 -0
- package/dist/cjs/types/motor/Transmission.d.ts +0 -0
- package/dist/cjs/types/motor/Transmission.js +0 -0
- package/dist/cjs/types/motor/index.d.ts +0 -0
- package/dist/cjs/types/motor/index.js +0 -0
- package/dist/cjs/types/property/Facility.d.ts +0 -0
- package/dist/cjs/types/property/Facility.js +0 -0
- package/dist/cjs/types/property/LicenseType.d.ts +0 -0
- package/dist/cjs/types/property/LicenseType.js +0 -0
- package/dist/cjs/types/property/Property.d.ts +0 -0
- package/dist/cjs/types/property/Property.js +0 -0
- package/dist/cjs/types/property/PropertyStatus.d.ts +0 -0
- package/dist/cjs/types/property/PropertyStatus.js +0 -0
- package/dist/cjs/types/property/PropertySubType.d.ts +0 -0
- package/dist/cjs/types/property/PropertySubType.js +0 -0
- package/dist/cjs/types/property/index.d.ts +0 -0
- package/dist/cjs/types/property/index.js +0 -0
- package/dist/cjs/types/service/AccessType.d.ts +0 -0
- package/dist/cjs/types/service/AccessType.js +0 -0
- package/dist/cjs/types/service/Service.d.ts +0 -0
- package/dist/cjs/types/service/Service.js +0 -0
- package/dist/cjs/types/service/Unit.d.ts +0 -0
- package/dist/cjs/types/service/Unit.js +0 -0
- package/dist/cjs/types/service/WorkType.d.ts +0 -0
- package/dist/cjs/types/service/WorkType.js +0 -0
- package/dist/cjs/types/service/index.d.ts +0 -0
- package/dist/cjs/types/service/index.js +0 -0
- package/dist/cjs/types/used-product/UsedProduct.d.ts +0 -0
- package/dist/cjs/types/used-product/UsedProduct.js +0 -0
- package/dist/cjs/types/used-product/index.d.ts +0 -0
- package/dist/cjs/types/used-product/index.js +0 -0
- package/dist/cjs/types/user/Favorite.d.ts +0 -0
- package/dist/cjs/types/user/Favorite.js +0 -0
- package/dist/cjs/types/user/Loyalty.d.ts +0 -0
- package/dist/cjs/types/user/Loyalty.js +0 -0
- package/dist/cjs/types/user/Permission.d.ts +0 -0
- package/dist/cjs/types/user/Permission.js +0 -0
- package/dist/cjs/types/user/PotentialUser.d.ts +0 -0
- package/dist/cjs/types/user/PotentialUser.js +0 -0
- package/dist/cjs/types/user/Role.d.ts +0 -0
- package/dist/cjs/types/user/Role.js +0 -0
- package/dist/cjs/types/user/User.d.ts +0 -0
- package/dist/cjs/types/user/User.js +0 -0
- package/dist/cjs/types/user/Wallet.d.ts +0 -0
- package/dist/cjs/types/user/Wallet.js +0 -0
- package/dist/cjs/types/user/index.d.ts +0 -0
- package/dist/cjs/types/user/index.js +0 -0
- package/dist/cjs/utils/converter.d.ts +0 -0
- package/dist/cjs/utils/converter.js +0 -0
- package/dist/cjs/utils/index.d.ts +0 -0
- package/dist/cjs/utils/index.js +0 -0
- package/dist/cjs/utils/routes.d.ts +0 -0
- package/dist/cjs/utils/routes.js +0 -0
- package/dist/cjs/utils/translation.d.ts +0 -0
- package/dist/cjs/utils/translation.js +0 -0
- package/dist/cjs/validation/ad/save-ad.d.ts +45 -0
- package/dist/cjs/validation/ad/save-ad.js +55 -0
- package/dist/esm/abstract/baseService.js +0 -0
- package/dist/esm/abstract/index.js +0 -0
- package/dist/esm/constants/ad/Ad.js +0 -0
- package/dist/esm/constants/ad/index.js +0 -0
- package/dist/esm/constants/common/MetaData.js +0 -0
- package/dist/esm/constants/common/Role.js +0 -0
- package/dist/esm/constants/common/Subject.js +0 -0
- package/dist/esm/constants/common/index.js +0 -0
- package/dist/esm/constants/company/Company.js +0 -0
- package/dist/esm/constants/company/index.js +0 -0
- package/dist/esm/constants/events/Event.js +0 -0
- package/dist/esm/constants/events/EventInvitationScanType.js +0 -0
- package/dist/esm/constants/events/EventTemplate.js +0 -0
- package/dist/esm/constants/events/EventTimeline.js +0 -0
- package/dist/esm/constants/events/EventType.js +0 -0
- package/dist/esm/constants/events/EventWedding.js +0 -0
- package/dist/esm/constants/events/index.js +0 -0
- package/dist/esm/constants/index.js +0 -0
- package/dist/esm/constants/motor/Motor.js +0 -0
- package/dist/esm/constants/motor/index.js +0 -0
- package/dist/esm/constants/property/Property.js +0 -0
- package/dist/esm/constants/property/index.js +0 -0
- package/dist/esm/constants/routes/app.js +0 -0
- package/dist/esm/constants/routes/index.js +0 -0
- package/dist/esm/constants/service/Service.js +0 -0
- package/dist/esm/constants/service/index.js +0 -0
- package/dist/esm/constants/used-product/UsedProduct.js +0 -0
- package/dist/esm/constants/used-product/index.js +0 -0
- package/dist/esm/dto/ad/Ad.dto.js +0 -0
- package/dist/esm/dto/ai/Ai.dto.js +0 -0
- package/dist/esm/dto/common/localizedName.dto.js +0 -0
- package/dist/esm/dto/events/Event.dto.js +0 -0
- package/dist/esm/dto/events/Event.js +1 -0
- package/dist/esm/dto/events/EventRsvp.dto.js +0 -0
- package/dist/esm/dto/events/EventTemplate.dto.js +8 -0
- package/dist/esm/dto/events/EventTemplate.js +11 -0
- package/dist/esm/dto/events/EventTimeline.dto.js +0 -0
- package/dist/esm/dto/events/EventType.dto.js +7 -0
- package/dist/esm/dto/events/EventType.js +1 -0
- package/dist/esm/dto/events/EventVenue.dto.js +0 -0
- package/dist/esm/dto/events/EventWedding.dto.js +0 -0
- package/dist/esm/dto/events/EventWedding.js +6 -0
- package/dist/esm/dto/events/common.js +5 -0
- package/dist/esm/dto/events/index.js +0 -0
- package/dist/esm/dto/index.js +0 -0
- package/dist/esm/index.js +0 -0
- package/dist/esm/schema/ad/index.js +0 -0
- package/dist/esm/schema/ad/save-ad.schema.js +13 -1
- package/dist/esm/schema/ai/ai-fill-ad-form.schema.js +0 -0
- package/dist/esm/schema/ai/ai-fill-form.schema.js +0 -0
- package/dist/esm/schema/ai/index.js +0 -0
- package/dist/esm/schema/common/Phone.schema.js +0 -0
- package/dist/esm/schema/common/index.js +0 -0
- package/dist/esm/schema/common/localizedName.schema.js +0 -0
- package/dist/esm/schema/events/Event.schema.js +0 -0
- package/dist/esm/schema/events/EventRsvp.schema.js +0 -0
- package/dist/esm/schema/events/EventTimeline.schema.js +0 -0
- package/dist/esm/schema/events/EventVenue.schema.js +11 -3
- package/dist/esm/schema/events/EventWedding.schema.js +0 -0
- package/dist/esm/schema/events/index.js +0 -0
- package/dist/esm/schema/index.js +0 -0
- package/dist/esm/types/ad/Ad.js +0 -0
- package/dist/esm/types/ad/AdLocation.js +0 -0
- package/dist/esm/types/ad/AdPromotion.js +0 -0
- package/dist/esm/types/ad/index.js +0 -0
- package/dist/esm/types/ad-common/Feature.js +0 -0
- package/dist/esm/types/ad-common/OfferType.js +0 -0
- package/dist/esm/types/ad-common/PriceType.js +0 -0
- package/dist/esm/types/ad-common/PublisherType.js +0 -0
- package/dist/esm/types/ad-common/UsedProductAge.js +0 -0
- package/dist/esm/types/ad-common/UsedProductCondition.js +0 -0
- package/dist/esm/types/ad-common/index.js +0 -0
- package/dist/esm/types/analysis/AnalysisDailySnapshot.js +0 -0
- package/dist/esm/types/analysis/index.js +0 -0
- package/dist/esm/types/attributes/CarBody.js +1 -0
- package/dist/esm/types/attributes/Category.js +0 -0
- package/dist/esm/types/attributes/CategoryWorkType.js +0 -0
- package/dist/esm/types/attributes/Color.js +0 -0
- package/dist/esm/types/attributes/Currency.js +0 -0
- package/dist/esm/types/attributes/Facility.js +1 -0
- package/dist/esm/types/attributes/Feature.js +1 -0
- package/dist/esm/types/attributes/FuelType.js +1 -0
- package/dist/esm/types/attributes/LicenseType.js +1 -0
- package/dist/esm/types/attributes/OfferType.js +1 -0
- package/dist/esm/types/attributes/PriceType.js +1 -0
- package/dist/esm/types/attributes/PropertyStatus.js +1 -0
- package/dist/esm/types/attributes/PublisherType.js +1 -0
- package/dist/esm/types/attributes/RegionalSpec.js +1 -0
- package/dist/esm/types/attributes/Transmission.js +1 -0
- package/dist/esm/types/attributes/Unit.js +1 -0
- package/dist/esm/types/attributes/UsedProductAge.js +1 -0
- package/dist/esm/types/attributes/UsedProductCondition.js +1 -0
- package/dist/esm/types/attributes/WorkType.js +1 -0
- package/dist/esm/types/attributes/index.js +0 -0
- package/dist/esm/types/common/AccessType.js +1 -0
- package/dist/esm/types/common/Config.js +0 -0
- package/dist/esm/types/common/FilterParams.js +0 -0
- package/dist/esm/types/common/LocalizedName.js +0 -0
- package/dist/esm/types/common/MetaData.js +0 -0
- package/dist/esm/types/common/Response.js +0 -0
- package/dist/esm/types/common/Status.js +0 -0
- package/dist/esm/types/common/Subject.js +0 -0
- package/dist/esm/types/common/index.js +0 -0
- package/dist/esm/types/communication/AppStartScreen.js +0 -0
- package/dist/esm/types/communication/Chat.js +0 -0
- package/dist/esm/types/communication/Device.js +0 -0
- package/dist/esm/types/communication/MessageTemplate.js +0 -0
- package/dist/esm/types/communication/NotificationToken.js +0 -0
- package/dist/esm/types/communication/index.js +0 -0
- package/dist/esm/types/company/Company.js +0 -0
- package/dist/esm/types/events/Event.js +0 -0
- package/dist/esm/types/events/EventRsvp.js +0 -0
- package/dist/esm/types/events/EventTemplate.js +11 -0
- package/dist/esm/types/events/EventTimeline.js +0 -0
- package/dist/esm/types/events/EventType.js +8 -0
- package/dist/esm/types/events/EventVenue.js +0 -0
- package/dist/esm/types/events/EventWedding.js +0 -0
- package/dist/esm/types/events/index.js +0 -0
- package/dist/esm/types/geo/AdminBoundary.js +0 -0
- package/dist/esm/types/geo/City.js +0 -0
- package/dist/esm/types/geo/District.js +0 -0
- package/dist/esm/types/geo/index.js +0 -0
- package/dist/esm/types/index.js +0 -0
- package/dist/esm/types/integrations/Google.js +0 -0
- package/dist/esm/types/integrations/index.js +0 -0
- package/dist/esm/types/listings/Ad.js +22 -0
- package/dist/esm/types/listings/AdLocation.js +1 -0
- package/dist/esm/types/listings/AdPromotion.js +1 -0
- package/dist/esm/types/listings/Motor.js +14 -0
- package/dist/esm/types/listings/MotorTrim.js +1 -0
- package/dist/esm/types/listings/Property.js +11 -0
- package/dist/esm/types/listings/PropertySubType.js +1 -0
- package/dist/esm/types/listings/Service.js +6 -0
- package/dist/esm/types/listings/UsedProduct.js +4 -0
- package/dist/esm/types/listings/index.js +5 -0
- package/dist/esm/types/media/File.js +0 -0
- package/dist/esm/types/media/Image.js +0 -0
- package/dist/esm/types/media/Media.js +0 -0
- package/dist/esm/types/media/SocialMediaPlatform.js +0 -0
- package/dist/esm/types/media/SocialMediaProfile.js +0 -0
- package/dist/esm/types/media/index.js +0 -0
- package/dist/esm/types/motor/CarBody.js +0 -0
- package/dist/esm/types/motor/FuelType.js +0 -0
- package/dist/esm/types/motor/Motor.js +0 -0
- package/dist/esm/types/motor/MotorTrim.js +0 -0
- package/dist/esm/types/motor/RegionalSpec.js +0 -0
- package/dist/esm/types/motor/Transmission.js +0 -0
- package/dist/esm/types/motor/index.js +0 -0
- package/dist/esm/types/property/Facility.js +0 -0
- package/dist/esm/types/property/LicenseType.js +0 -0
- package/dist/esm/types/property/Property.js +0 -0
- package/dist/esm/types/property/PropertyStatus.js +0 -0
- package/dist/esm/types/property/PropertySubType.js +0 -0
- package/dist/esm/types/property/index.js +0 -0
- package/dist/esm/types/service/AccessType.js +0 -0
- package/dist/esm/types/service/Service.js +0 -0
- package/dist/esm/types/service/Unit.js +0 -0
- package/dist/esm/types/service/WorkType.js +0 -0
- package/dist/esm/types/service/index.js +0 -0
- package/dist/esm/types/used-product/UsedProduct.js +0 -0
- package/dist/esm/types/used-product/index.js +0 -0
- package/dist/esm/types/user/Favorite.js +0 -0
- package/dist/esm/types/user/Loyalty.js +0 -0
- package/dist/esm/types/user/Permission.js +0 -0
- package/dist/esm/types/user/PotentialUser.js +0 -0
- package/dist/esm/types/user/Role.js +0 -0
- package/dist/esm/types/user/User.js +0 -0
- package/dist/esm/types/user/Wallet.js +0 -0
- package/dist/esm/types/user/index.js +0 -0
- package/dist/esm/utils/converter.js +0 -0
- package/dist/esm/utils/index.js +0 -0
- package/dist/esm/utils/routes.js +0 -0
- package/dist/esm/utils/translation.js +0 -0
- package/dist/esm/validation/ad/save-ad.js +52 -0
- package/package.json +1 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEvent = void 0;
|
|
4
|
+
var Event_dto_1 = require("./Event.dto");
|
|
5
|
+
Object.defineProperty(exports, "emptyEvent", { enumerable: true, get: function () { return Event_dto_1.emptyEvent; } });
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type LocalizedName } from '../../types/common/LocalizedName';
|
|
2
|
+
import type { IEventType } from './EventType';
|
|
3
|
+
import type { IEventWedding } from './EventWedding';
|
|
4
|
+
export type IEventTemplate = {
|
|
5
|
+
id?: number;
|
|
6
|
+
code: string;
|
|
7
|
+
name: LocalizedName;
|
|
8
|
+
active: boolean;
|
|
9
|
+
religion: string | null;
|
|
10
|
+
event_type_id: number;
|
|
11
|
+
eventType?: IEventType;
|
|
12
|
+
weddings?: IEventWedding[];
|
|
13
|
+
};
|
|
14
|
+
export declare const emptyEventTemplate: IEventTemplate;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const EventTemplate: {
|
|
2
|
+
WEDDING: {
|
|
3
|
+
value: string;
|
|
4
|
+
name: {
|
|
5
|
+
en: string;
|
|
6
|
+
ar: string;
|
|
7
|
+
};
|
|
8
|
+
event_types: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const EventTemplateOptions: {
|
|
12
|
+
value: string;
|
|
13
|
+
name: {
|
|
14
|
+
en: string;
|
|
15
|
+
ar: string;
|
|
16
|
+
};
|
|
17
|
+
event_types: string[];
|
|
18
|
+
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTemplateOptions = exports.EventTemplate = void 0;
|
|
4
|
+
exports.EventTemplate = {
|
|
5
|
+
WEDDING: { value: 'wedding-1', name: { en: 'Wedding', ar: 'زفاف' }, event_types: ['wedding'] },
|
|
6
|
+
};
|
|
7
|
+
exports.EventTemplateOptions = Object.values(exports.EventTemplate).map((type) => ({
|
|
8
|
+
value: type.value,
|
|
9
|
+
name: type.name,
|
|
10
|
+
event_types: type.event_types,
|
|
11
|
+
}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventTemplate = void 0;
|
|
4
|
+
const LocalizedName_1 = require("../../types/common/LocalizedName");
|
|
5
|
+
exports.emptyEventTemplate = {
|
|
6
|
+
id: 0,
|
|
7
|
+
code: '',
|
|
8
|
+
name: (0, LocalizedName_1.createEmptyLocalizedName)(),
|
|
9
|
+
active: true,
|
|
10
|
+
religion: null,
|
|
11
|
+
event_type_id: 0,
|
|
12
|
+
eventType: undefined,
|
|
13
|
+
weddings: [],
|
|
14
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTypeOptions = exports.EventTypes = void 0;
|
|
4
|
+
exports.EventTypes = {
|
|
5
|
+
WEDDING: { value: 'wedding', name: { en: 'Wedding', ar: 'زفاف' } },
|
|
6
|
+
};
|
|
7
|
+
exports.EventTypeOptions = Object.values(exports.EventTypes).map((type) => ({
|
|
8
|
+
value: type.value,
|
|
9
|
+
name: type.name,
|
|
10
|
+
}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyEventType = void 0;
|
|
4
|
+
var EventType_dto_1 = require("./EventType.dto");
|
|
5
|
+
Object.defineProperty(exports, "emptyEventType", { enumerable: true, get: function () { return EventType_dto_1.emptyEventType; } });
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IEvent } from './Event';
|
|
2
|
+
import type { IEventTemplate } from './EventTemplate';
|
|
3
|
+
export type IEventWedding = {
|
|
4
|
+
id?: number;
|
|
5
|
+
event_id: number;
|
|
6
|
+
event_template_id: number;
|
|
7
|
+
cover: Record<string, any> | null;
|
|
8
|
+
event?: IEvent;
|
|
9
|
+
eventTemplate?: IEventTemplate;
|
|
10
|
+
};
|
|
11
|
+
export declare const emptyEventWedding: IEventWedding;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.localizedNameSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.localizedNameSchema = zod_1.z.object({
|
|
6
|
+
en: zod_1.z.string().trim().min(1),
|
|
7
|
+
ar: zod_1.z.string().trim().min(1),
|
|
8
|
+
});
|
|
File without changes
|
|
File without changes
|
package/dist/cjs/dto/index.d.ts
CHANGED
|
File without changes
|
package/dist/cjs/dto/index.js
CHANGED
|
File without changes
|
package/dist/cjs/index.d.ts
CHANGED
|
File without changes
|
package/dist/cjs/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -43,11 +43,11 @@ export declare const createAdSchema: z.ZodObject<{
|
|
|
43
43
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
44
44
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
45
45
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
46
|
-
property_facilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
property_facilities: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
47
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
48
48
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
49
49
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
50
|
-
}, z.core.$strip
|
|
50
|
+
}, z.core.$strip>>>>;
|
|
51
51
|
}, z.core.$strip>>>;
|
|
52
52
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
53
53
|
ad_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -140,11 +140,11 @@ export declare const updateAdSchema: z.ZodObject<{
|
|
|
140
140
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
141
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
142
142
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
143
|
-
property_facilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
property_facilities: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
144
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
145
145
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
146
146
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
147
|
-
}, z.core.$strip
|
|
147
|
+
}, z.core.$strip>>>>;
|
|
148
148
|
id: z.ZodCoercedNumber<unknown>;
|
|
149
149
|
}, z.core.$strip>>>;
|
|
150
150
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -233,11 +233,11 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
233
233
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
234
234
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
235
235
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
236
|
-
property_facilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
property_facilities: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
237
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
238
238
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
239
239
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
240
|
-
}, z.core.$strip
|
|
240
|
+
}, z.core.$strip>>>>;
|
|
241
241
|
}, z.core.$strip>>>;
|
|
242
242
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
243
243
|
ad_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -329,11 +329,11 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
329
329
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
330
330
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
331
331
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
332
|
-
property_facilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
332
|
+
property_facilities: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
333
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
334
334
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
335
335
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
336
|
-
}, z.core.$strip
|
|
336
|
+
}, z.core.$strip>>>>;
|
|
337
337
|
id: z.ZodCoercedNumber<unknown>;
|
|
338
338
|
}, z.core.$strip>>>;
|
|
339
339
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -52,7 +52,19 @@ const createPropertySchema = zod_1.z.object({
|
|
|
52
52
|
total_floors: zod_1.z.coerce.number().int().min(0).optional(),
|
|
53
53
|
feature_ids: zod_1.z.array(zod_1.z.coerce.number().int().positive()).optional(),
|
|
54
54
|
facility_ids: zod_1.z.array(zod_1.z.coerce.number().int().positive()).optional(),
|
|
55
|
-
property_facilities: zod_1.z.
|
|
55
|
+
property_facilities: zod_1.z.preprocess((val) => {
|
|
56
|
+
if (!Array.isArray(val))
|
|
57
|
+
return val;
|
|
58
|
+
return val
|
|
59
|
+
.filter((item) => item && item.facility_id !== null && item.facility_id !== undefined) // Keep only items with a valid facility_id
|
|
60
|
+
.map((item) => ({
|
|
61
|
+
...item,
|
|
62
|
+
// If property_id is null, undefined, or <= 0, convert it to undefined so Zod drops it
|
|
63
|
+
property_id: item.property_id === null || item.property_id === undefined || Number(item.property_id) <= 0
|
|
64
|
+
? undefined
|
|
65
|
+
: item.property_id,
|
|
66
|
+
}));
|
|
67
|
+
}, zod_1.z.array(propertyFacilityRelationSchema).optional()),
|
|
56
68
|
// condition_id: z.coerce.number().int().min(0).optional().transform((val) => (val === 0 ? null : val)),
|
|
57
69
|
// age_id: z.coerce.number().int().min(0).optional().transform((val) => (val === 0 ? null : val)),
|
|
58
70
|
// property_status_id: z.coerce.number().int().min(0).optional().transform((val) => (val === 0 ? null : val)),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const createEventVenueSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
company_id: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -9,6 +9,7 @@ export declare const createEventVenueSchema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$loose>>>>;
|
|
10
10
|
supported_event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
11
|
social_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
12
|
+
location_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
13
|
}, z.core.$strip>;
|
|
13
14
|
export declare const updateEventVenueSchema: z.ZodObject<{
|
|
14
15
|
id: z.ZodCoercedNumber<unknown>;
|
|
@@ -21,6 +22,7 @@ export declare const updateEventVenueSchema: z.ZodObject<{
|
|
|
21
22
|
}, z.core.$loose>>>>;
|
|
22
23
|
supported_event_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
24
|
social_links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
25
|
+
location_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
26
|
}, z.core.$strip>;
|
|
25
27
|
export declare const getEventVenueFilterSchema: z.ZodObject<{
|
|
26
28
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -7,9 +7,13 @@ exports.createEventVenueSchema = zod_1.z.object({
|
|
|
7
7
|
company_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
8
8
|
lat: zod_1.z.coerce.number().nullable().optional(),
|
|
9
9
|
long: zod_1.z.coerce.number().nullable().optional(),
|
|
10
|
-
images: zod_1.z
|
|
10
|
+
images: zod_1.z
|
|
11
|
+
.array(zod_1.z.object({ url: zod_1.z.string().url() }).passthrough())
|
|
12
|
+
.nullable()
|
|
13
|
+
.optional(),
|
|
11
14
|
supported_event_types: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
12
15
|
social_links: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable().optional(),
|
|
16
|
+
location_label: zod_1.z.string().trim().max(500).nullable().optional(),
|
|
13
17
|
});
|
|
14
18
|
exports.updateEventVenueSchema = zod_1.z.object({
|
|
15
19
|
id: zod_1.z.coerce.number().int().positive(),
|
|
@@ -17,9 +21,13 @@ exports.updateEventVenueSchema = zod_1.z.object({
|
|
|
17
21
|
company_id: zod_1.z.coerce.number().int().positive().nullable().optional(),
|
|
18
22
|
lat: zod_1.z.coerce.number().nullable().optional(),
|
|
19
23
|
long: zod_1.z.coerce.number().nullable().optional(),
|
|
20
|
-
images: zod_1.z
|
|
24
|
+
images: zod_1.z
|
|
25
|
+
.array(zod_1.z.object({ url: zod_1.z.string().url() }).passthrough())
|
|
26
|
+
.nullable()
|
|
27
|
+
.optional(),
|
|
21
28
|
supported_event_types: zod_1.z.array(zod_1.z.string()).nullable().optional(),
|
|
22
29
|
social_links: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable().optional(),
|
|
30
|
+
location_label: zod_1.z.string().trim().max(500).nullable().optional(),
|
|
23
31
|
});
|
|
24
32
|
exports.getEventVenueFilterSchema = zod_1.z.object({
|
|
25
33
|
search: zod_1.z.string().trim().optional(),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/cjs/schema/index.js
CHANGED
|
File without changes
|
|
@@ -7,6 +7,7 @@ import { IProperty } from "../property/Property";
|
|
|
7
7
|
import { IService } from "../service/Service";
|
|
8
8
|
import { IUsedProduct } from "../used-product/UsedProduct";
|
|
9
9
|
import { Category, Currency } from "..";
|
|
10
|
+
import { IAdminBoundary } from "../geo";
|
|
10
11
|
export type IAd = {
|
|
11
12
|
id?: number;
|
|
12
13
|
user_id?: number;
|
|
@@ -41,6 +42,7 @@ export type IAd = {
|
|
|
41
42
|
motor?: IMotor | null;
|
|
42
43
|
service?: IService | null;
|
|
43
44
|
product?: IUsedProduct | null;
|
|
45
|
+
adminBoundary?: IAdminBoundary | null;
|
|
44
46
|
created_at?: string | Date;
|
|
45
47
|
updated_at?: string | Date;
|
|
46
48
|
};
|
package/dist/cjs/types/ad/Ad.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|