@deallony/shared 1.2.41 → 1.2.42
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/common/enum/AdPromotionAdminStatusEnum.d.ts +5 -0
- package/dist/cjs/common/enum/AdPromotionAdminStatusEnum.js +9 -0
- package/dist/cjs/common/enum/AdPromotionPaymentTypeEnum.d.ts +4 -0
- package/dist/cjs/common/enum/AdPromotionPaymentTypeEnum.js +8 -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/payments/PaymentGateway.d.ts +0 -0
- package/dist/cjs/constants/payments/PaymentGateway.js +0 -0
- package/dist/cjs/constants/payments/PaymentStatus.d.ts +0 -0
- package/dist/cjs/constants/payments/PaymentStatus.js +0 -0
- package/dist/cjs/constants/payments/index.d.ts +0 -0
- package/dist/cjs/constants/payments/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 +1 -1
- 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.dto.d.ts +0 -0
- package/dist/cjs/dto/events/Event.dto.js +0 -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/EventTimeline.dto.d.ts +0 -0
- package/dist/cjs/dto/events/EventTimeline.dto.js +0 -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.dto.d.ts +0 -0
- package/dist/cjs/dto/events/EventWedding.dto.js +0 -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/dto/payments/Payment.dto.d.ts +0 -0
- package/dist/cjs/dto/payments/Payment.dto.js +0 -0
- package/dist/cjs/dto/payments/index.d.ts +0 -0
- package/dist/cjs/dto/payments/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 +13 -17
- package/dist/cjs/schema/ad/save-ad.schema.js +17 -8
- 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 +0 -0
- package/dist/cjs/schema/events/EventVenue.schema.js +0 -0
- 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/schema/payments/Payment.schema.d.ts +0 -0
- package/dist/cjs/schema/payments/Payment.schema.js +0 -0
- package/dist/cjs/schema/payments/index.d.ts +0 -0
- package/dist/cjs/schema/payments/index.js +0 -0
- package/dist/cjs/types/ad/Ad.d.ts +0 -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/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/index.d.ts +0 -0
- package/dist/cjs/types/attributes/index.js +0 -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/EventTimeline.d.ts +0 -0
- package/dist/cjs/types/events/EventTimeline.js +0 -0
- package/dist/cjs/types/events/EventVenue.d.ts +0 -0
- 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/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/payments/Payment.d.ts +0 -0
- package/dist/cjs/types/payments/Payment.js +0 -0
- package/dist/cjs/types/payments/index.d.ts +0 -0
- package/dist/cjs/types/payments/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 +1 -1
- package/dist/cjs/types/used-product/UsedProduct.js +1 -1
- 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/esm/abstract/baseService.js +0 -0
- package/dist/esm/abstract/index.js +0 -0
- package/dist/esm/common/enum/AdPromotionAdminStatusEnum.js +6 -0
- package/dist/esm/common/enum/AdPromotionPaymentTypeEnum.js +5 -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/payments/PaymentGateway.js +0 -0
- package/dist/esm/constants/payments/PaymentStatus.js +0 -0
- package/dist/esm/constants/payments/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 +1 -1
- 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/EventRsvp.dto.js +0 -0
- package/dist/esm/dto/events/EventTimeline.dto.js +0 -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/index.js +0 -0
- package/dist/esm/dto/index.js +0 -0
- package/dist/esm/dto/payments/Payment.dto.js +0 -0
- package/dist/esm/dto/payments/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 +18 -9
- 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 +0 -0
- 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/schema/payments/Payment.schema.js +0 -0
- package/dist/esm/schema/payments/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/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/index.js +0 -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/EventTimeline.js +0 -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/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/payments/Payment.js +0 -0
- package/dist/esm/types/payments/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 +1 -1
- 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/package.json +1 -1
- package/dist/cjs/dto/events/Event.d.ts +0 -2
- package/dist/cjs/dto/events/Event.js +0 -5
- package/dist/cjs/dto/events/EventTemplate.d.ts +0 -14
- package/dist/cjs/dto/events/EventTemplate.dto.d.ts +0 -18
- package/dist/cjs/dto/events/EventTemplate.dto.js +0 -11
- package/dist/cjs/dto/events/EventTemplate.js +0 -14
- package/dist/cjs/dto/events/EventType.d.ts +0 -2
- package/dist/cjs/dto/events/EventType.dto.d.ts +0 -16
- package/dist/cjs/dto/events/EventType.dto.js +0 -10
- package/dist/cjs/dto/events/EventType.js +0 -5
- package/dist/cjs/dto/events/EventWedding.d.ts +0 -11
- package/dist/cjs/dto/events/EventWedding.js +0 -9
- package/dist/cjs/dto/events/common.d.ts +0 -5
- package/dist/cjs/dto/events/common.js +0 -8
- package/dist/cjs/types/attributes/CarBody.d.ts +0 -5
- package/dist/cjs/types/attributes/CarBody.js +0 -2
- package/dist/cjs/types/attributes/Facility.d.ts +0 -6
- package/dist/cjs/types/attributes/Facility.js +0 -2
- package/dist/cjs/types/attributes/Feature.d.ts +0 -7
- package/dist/cjs/types/attributes/Feature.js +0 -2
- package/dist/cjs/types/attributes/FuelType.d.ts +0 -5
- package/dist/cjs/types/attributes/FuelType.js +0 -2
- package/dist/cjs/types/attributes/LicenseType.d.ts +0 -5
- package/dist/cjs/types/attributes/LicenseType.js +0 -2
- package/dist/cjs/types/attributes/OfferType.d.ts +0 -5
- package/dist/cjs/types/attributes/OfferType.js +0 -2
- package/dist/cjs/types/attributes/PriceType.d.ts +0 -7
- package/dist/cjs/types/attributes/PriceType.js +0 -2
- package/dist/cjs/types/attributes/PropertyStatus.d.ts +0 -5
- package/dist/cjs/types/attributes/PropertyStatus.js +0 -2
- package/dist/cjs/types/attributes/PublisherType.d.ts +0 -5
- package/dist/cjs/types/attributes/PublisherType.js +0 -2
- package/dist/cjs/types/attributes/RegionalSpec.d.ts +0 -5
- package/dist/cjs/types/attributes/RegionalSpec.js +0 -2
- package/dist/cjs/types/attributes/Transmission.d.ts +0 -5
- package/dist/cjs/types/attributes/Transmission.js +0 -2
- package/dist/cjs/types/attributes/Unit.d.ts +0 -5
- package/dist/cjs/types/attributes/Unit.js +0 -2
- package/dist/cjs/types/attributes/UsedProductAge.d.ts +0 -7
- package/dist/cjs/types/attributes/UsedProductAge.js +0 -2
- package/dist/cjs/types/attributes/UsedProductCondition.d.ts +0 -7
- package/dist/cjs/types/attributes/UsedProductCondition.js +0 -2
- package/dist/cjs/types/attributes/WorkType.d.ts +0 -6
- package/dist/cjs/types/attributes/WorkType.js +0 -2
- package/dist/cjs/types/common/AccessType.d.ts +0 -5
- package/dist/cjs/types/common/AccessType.js +0 -2
- package/dist/cjs/types/events/EventTemplate.d.ts +0 -14
- package/dist/cjs/types/events/EventTemplate.js +0 -14
- package/dist/cjs/types/events/EventType.d.ts +0 -10
- package/dist/cjs/types/events/EventType.js +0 -11
- package/dist/cjs/types/listings/Ad.d.ts +0 -93
- package/dist/cjs/types/listings/Ad.js +0 -25
- package/dist/cjs/types/listings/AdLocation.d.ts +0 -5
- package/dist/cjs/types/listings/AdLocation.js +0 -2
- package/dist/cjs/types/listings/AdPromotion.d.ts +0 -12
- package/dist/cjs/types/listings/AdPromotion.js +0 -2
- package/dist/cjs/types/listings/Motor.d.ts +0 -24
- package/dist/cjs/types/listings/Motor.js +0 -17
- package/dist/cjs/types/listings/MotorTrim.d.ts +0 -6
- package/dist/cjs/types/listings/MotorTrim.js +0 -2
- package/dist/cjs/types/listings/Property.d.ts +0 -37
- package/dist/cjs/types/listings/Property.js +0 -14
- package/dist/cjs/types/listings/PropertySubType.d.ts +0 -6
- package/dist/cjs/types/listings/PropertySubType.js +0 -2
- package/dist/cjs/types/listings/Service.d.ts +0 -14
- package/dist/cjs/types/listings/Service.js +0 -9
- package/dist/cjs/types/listings/UsedProduct.d.ts +0 -8
- package/dist/cjs/types/listings/UsedProduct.js +0 -7
- package/dist/cjs/types/listings/index.d.ts +0 -5
- package/dist/cjs/types/listings/index.js +0 -21
- package/dist/cjs/validation/ad/save-ad.d.ts +0 -45
- package/dist/cjs/validation/ad/save-ad.js +0 -55
- package/dist/esm/dto/events/Event.js +0 -1
- package/dist/esm/dto/events/EventTemplate.dto.js +0 -8
- package/dist/esm/dto/events/EventTemplate.js +0 -11
- package/dist/esm/dto/events/EventType.dto.js +0 -7
- package/dist/esm/dto/events/EventType.js +0 -1
- package/dist/esm/dto/events/EventWedding.js +0 -6
- package/dist/esm/dto/events/common.js +0 -5
- package/dist/esm/types/attributes/CarBody.js +0 -1
- package/dist/esm/types/attributes/Facility.js +0 -1
- package/dist/esm/types/attributes/Feature.js +0 -1
- package/dist/esm/types/attributes/FuelType.js +0 -1
- package/dist/esm/types/attributes/LicenseType.js +0 -1
- package/dist/esm/types/attributes/OfferType.js +0 -1
- package/dist/esm/types/attributes/PriceType.js +0 -1
- package/dist/esm/types/attributes/PropertyStatus.js +0 -1
- package/dist/esm/types/attributes/PublisherType.js +0 -1
- package/dist/esm/types/attributes/RegionalSpec.js +0 -1
- package/dist/esm/types/attributes/Transmission.js +0 -1
- package/dist/esm/types/attributes/Unit.js +0 -1
- package/dist/esm/types/attributes/UsedProductAge.js +0 -1
- package/dist/esm/types/attributes/UsedProductCondition.js +0 -1
- package/dist/esm/types/attributes/WorkType.js +0 -1
- package/dist/esm/types/common/AccessType.js +0 -1
- package/dist/esm/types/events/EventTemplate.js +0 -11
- package/dist/esm/types/events/EventType.js +0 -8
- package/dist/esm/types/listings/Ad.js +0 -22
- package/dist/esm/types/listings/AdLocation.js +0 -1
- package/dist/esm/types/listings/AdPromotion.js +0 -1
- package/dist/esm/types/listings/Motor.js +0 -14
- package/dist/esm/types/listings/MotorTrim.js +0 -1
- package/dist/esm/types/listings/Property.js +0 -11
- package/dist/esm/types/listings/PropertySubType.js +0 -1
- package/dist/esm/types/listings/Service.js +0 -6
- package/dist/esm/types/listings/UsedProduct.js +0 -4
- package/dist/esm/types/listings/index.js +0 -5
- package/dist/esm/validation/ad/save-ad.js +0 -52
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdPromotionAdminStatusEnum = void 0;
|
|
4
|
+
var AdPromotionAdminStatusEnum;
|
|
5
|
+
(function (AdPromotionAdminStatusEnum) {
|
|
6
|
+
AdPromotionAdminStatusEnum["PENDING"] = "pending";
|
|
7
|
+
AdPromotionAdminStatusEnum["APPROVED"] = "approved";
|
|
8
|
+
AdPromotionAdminStatusEnum["REJECTED"] = "rejected";
|
|
9
|
+
})(AdPromotionAdminStatusEnum || (exports.AdPromotionAdminStatusEnum = AdPromotionAdminStatusEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdPromotionPaymentTypeEnum = void 0;
|
|
4
|
+
var AdPromotionPaymentTypeEnum;
|
|
5
|
+
(function (AdPromotionPaymentTypeEnum) {
|
|
6
|
+
AdPromotionPaymentTypeEnum["PAYMENT"] = "payment";
|
|
7
|
+
AdPromotionPaymentTypeEnum["LOYALTY_TRANSACTION"] = "loyalty_transaction";
|
|
8
|
+
})(AdPromotionPaymentTypeEnum || (exports.AdPromotionPaymentTypeEnum = AdPromotionPaymentTypeEnum = {}));
|
|
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
|
|
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
|
package/dist/cjs/dto/index.d.ts
CHANGED
|
File without changes
|
package/dist/cjs/dto/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const subjectTypeSchema: z.ZodEnum<{
|
|
3
3
|
properties: "properties";
|
|
4
4
|
services: "services";
|
|
@@ -32,7 +32,6 @@ export declare const createAdSchema: z.ZodObject<{
|
|
|
32
32
|
size_m2: z.ZodCoercedNumber<unknown>;
|
|
33
33
|
bedrooms: z.ZodCoercedNumber<unknown>;
|
|
34
34
|
offer_type_id: z.ZodCoercedNumber<unknown>;
|
|
35
|
-
district_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
36
35
|
property_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
37
36
|
price_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
38
37
|
publisher_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -43,7 +42,7 @@ export declare const createAdSchema: z.ZodObject<{
|
|
|
43
42
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
44
43
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
45
44
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
46
|
-
property_facilities: z.
|
|
45
|
+
property_facilities: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
46
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
48
47
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
49
48
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -51,8 +50,8 @@ export declare const createAdSchema: z.ZodObject<{
|
|
|
51
50
|
}, z.core.$strip>>>;
|
|
52
51
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
53
52
|
ad_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
54
|
-
condition_id: z.ZodCoercedNumber<unknown
|
|
55
|
-
age_id: z.ZodCoercedNumber<unknown
|
|
53
|
+
condition_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
54
|
+
age_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
56
55
|
isFree: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
57
56
|
isDeliveryAvailable: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
58
57
|
product_type_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -129,7 +128,6 @@ export declare const updateAdSchema: z.ZodObject<{
|
|
|
129
128
|
size_m2: z.ZodCoercedNumber<unknown>;
|
|
130
129
|
bedrooms: z.ZodCoercedNumber<unknown>;
|
|
131
130
|
offer_type_id: z.ZodCoercedNumber<unknown>;
|
|
132
|
-
district_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
133
131
|
property_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
134
132
|
price_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
135
133
|
publisher_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -140,7 +138,7 @@ export declare const updateAdSchema: z.ZodObject<{
|
|
|
140
138
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
139
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
142
140
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
143
|
-
property_facilities: z.
|
|
141
|
+
property_facilities: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
142
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
145
143
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
146
144
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -149,8 +147,8 @@ export declare const updateAdSchema: z.ZodObject<{
|
|
|
149
147
|
}, z.core.$strip>>>;
|
|
150
148
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
151
149
|
id: z.ZodCoercedNumber<unknown>;
|
|
152
|
-
condition_id: z.ZodCoercedNumber<unknown
|
|
153
|
-
age_id: z.ZodCoercedNumber<unknown
|
|
150
|
+
condition_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
151
|
+
age_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
154
152
|
isFree: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
155
153
|
isDeliveryAvailable: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
156
154
|
product_type_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -222,7 +220,6 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
222
220
|
size_m2: z.ZodCoercedNumber<unknown>;
|
|
223
221
|
bedrooms: z.ZodCoercedNumber<unknown>;
|
|
224
222
|
offer_type_id: z.ZodCoercedNumber<unknown>;
|
|
225
|
-
district_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
226
223
|
property_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
227
224
|
price_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
228
225
|
publisher_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -233,7 +230,7 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
233
230
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
234
231
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
235
232
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
236
|
-
property_facilities: z.
|
|
233
|
+
property_facilities: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
234
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
238
235
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
239
236
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -241,8 +238,8 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
241
238
|
}, z.core.$strip>>>;
|
|
242
239
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
243
240
|
ad_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
244
|
-
condition_id: z.ZodCoercedNumber<unknown
|
|
245
|
-
age_id: z.ZodCoercedNumber<unknown
|
|
241
|
+
condition_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
242
|
+
age_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
246
243
|
isFree: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
247
244
|
isDeliveryAvailable: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
248
245
|
product_type_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -318,7 +315,6 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
318
315
|
size_m2: z.ZodCoercedNumber<unknown>;
|
|
319
316
|
bedrooms: z.ZodCoercedNumber<unknown>;
|
|
320
317
|
offer_type_id: z.ZodCoercedNumber<unknown>;
|
|
321
|
-
district_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
322
318
|
property_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
323
319
|
price_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
324
320
|
publisher_type_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -329,7 +325,7 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
329
325
|
total_floors: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
330
326
|
feature_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
331
327
|
facility_ids: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
|
|
332
|
-
property_facilities: z.
|
|
328
|
+
property_facilities: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
329
|
property_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
334
330
|
facility_id: z.ZodCoercedNumber<unknown>;
|
|
335
331
|
distance_in_meters: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -338,8 +334,8 @@ export declare const saveAdSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
338
334
|
}, z.core.$strip>>>;
|
|
339
335
|
product: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
340
336
|
id: z.ZodCoercedNumber<unknown>;
|
|
341
|
-
condition_id: z.ZodCoercedNumber<unknown
|
|
342
|
-
age_id: z.ZodCoercedNumber<unknown
|
|
337
|
+
condition_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
338
|
+
age_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
343
339
|
isFree: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
344
340
|
isDeliveryAvailable: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
|
|
345
341
|
product_type_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.saveAdSchema = exports.updateAdSchema = exports.createAdSchema = exports.subjectTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.subjectTypeSchema = zod_1.z.enum([
|
|
5
|
+
exports.subjectTypeSchema = zod_1.z.enum([
|
|
6
|
+
"properties",
|
|
7
|
+
"services",
|
|
8
|
+
"motors",
|
|
9
|
+
"used_products",
|
|
10
|
+
]);
|
|
6
11
|
const adLocationSchema = zod_1.z.object({
|
|
7
12
|
ad_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
8
13
|
admin_boundary_id: zod_1.z.coerce.number().int().positive(),
|
|
@@ -31,7 +36,10 @@ const createMotorSchema = zod_1.z.object({
|
|
|
31
36
|
seats_count: zod_1.z.coerce.number().nullable().optional(),
|
|
32
37
|
engine_capacity_cc: zod_1.z.coerce.number().nullable().optional(),
|
|
33
38
|
cylinders_count: zod_1.z.coerce.number().nullable().optional(),
|
|
34
|
-
feature_ids: zod_1.z
|
|
39
|
+
feature_ids: zod_1.z
|
|
40
|
+
.array(zod_1.z.coerce.number().int().positive())
|
|
41
|
+
.nullable()
|
|
42
|
+
.optional(),
|
|
35
43
|
});
|
|
36
44
|
const updateMotorSchema = createMotorSchema.extend({
|
|
37
45
|
id: zod_1.z.coerce.number().int().positive(),
|
|
@@ -41,7 +49,6 @@ const createPropertySchema = zod_1.z.object({
|
|
|
41
49
|
size_m2: zod_1.z.coerce.number().min(0),
|
|
42
50
|
bedrooms: zod_1.z.coerce.number().int().min(0),
|
|
43
51
|
offer_type_id: zod_1.z.coerce.number().int().positive(),
|
|
44
|
-
district_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
45
52
|
property_type_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
46
53
|
price_type_id: zod_1.z.coerce.number().int().optional(),
|
|
47
54
|
publisher_type_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
@@ -60,7 +67,9 @@ const createPropertySchema = zod_1.z.object({
|
|
|
60
67
|
.map((item) => ({
|
|
61
68
|
...item,
|
|
62
69
|
// If property_id is null, undefined, or <= 0, convert it to undefined so Zod drops it
|
|
63
|
-
property_id: item.property_id === null ||
|
|
70
|
+
property_id: item.property_id === null ||
|
|
71
|
+
item.property_id === undefined ||
|
|
72
|
+
Number(item.property_id) <= 0
|
|
64
73
|
? undefined
|
|
65
74
|
: item.property_id,
|
|
66
75
|
}));
|
|
@@ -75,16 +84,16 @@ const updatePropertySchema = createPropertySchema.extend({
|
|
|
75
84
|
});
|
|
76
85
|
const createUsedProductSchema = zod_1.z.object({
|
|
77
86
|
ad_id: zod_1.z.coerce.number().int().positive().optional(),
|
|
78
|
-
condition_id: zod_1.z.coerce.number().int().positive(),
|
|
79
|
-
age_id: zod_1.z.coerce.number().int().positive(),
|
|
87
|
+
condition_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
|
|
88
|
+
age_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
|
|
80
89
|
isFree: zod_1.z.coerce.boolean().optional().nullable(),
|
|
81
90
|
isDeliveryAvailable: zod_1.z.coerce.boolean().optional().nullable(),
|
|
82
91
|
product_type_id: zod_1.z.coerce.number().optional().nullable(),
|
|
83
92
|
});
|
|
84
93
|
const updateUsedProductSchema = zod_1.z.object({
|
|
85
94
|
id: zod_1.z.coerce.number().int().positive(),
|
|
86
|
-
condition_id: zod_1.z.coerce.number().int().positive(),
|
|
87
|
-
age_id: zod_1.z.coerce.number().int().positive(),
|
|
95
|
+
condition_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
|
|
96
|
+
age_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
|
|
88
97
|
isFree: zod_1.z.coerce.boolean().optional().nullable(),
|
|
89
98
|
isDeliveryAvailable: zod_1.z.coerce.boolean().optional().nullable(),
|
|
90
99
|
product_type_id: zod_1.z.coerce.number().optional().nullable(),
|
|
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
|
package/dist/cjs/schema/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
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
|
|
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
|