@deallony/shared 1.2.42 → 1.2.51
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/README.md +44 -0
- 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/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 +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 +8 -3
- package/dist/cjs/dto/ad/Ad.dto.js +1 -3
- package/dist/cjs/dto/addresses/addresses.dto.d.ts +7 -0
- package/dist/cjs/dto/addresses/addresses.dto.js +2 -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 +2 -0
- package/dist/cjs/dto/index.js +3 -1
- 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 +2 -1
- package/dist/cjs/index.js +2 -1
- 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 +46 -40
- package/dist/cjs/schema/ad/save-ad.schema.js +46 -43
- package/dist/cjs/schema/addresses/addresses.schema.d.ts +19 -0
- package/dist/cjs/schema/addresses/addresses.schema.js +18 -0
- 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/communication/ai-conversation.schema.d.ts +65 -0
- package/dist/cjs/schema/communication/ai-conversation.schema.js +43 -0
- package/dist/cjs/schema/communication/index.d.ts +2 -0
- package/dist/cjs/schema/communication/index.js +18 -0
- package/dist/cjs/schema/communication/support-ticket.schema.d.ts +119 -0
- package/dist/cjs/schema/communication/support-ticket.schema.js +35 -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 +2 -0
- package/dist/cjs/schema/index.js +3 -1
- 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 +1 -0
- package/dist/cjs/types/ad/Ad.js +1 -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 +28 -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/addresses/Address.d.ts +14 -0
- package/dist/cjs/types/addresses/Address.js +2 -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 +8 -1
- package/dist/cjs/types/communication/Chat.js +1 -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 +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 +2 -0
- package/dist/cjs/types/index.js +5 -2
- 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/kyc/Kyc.d.ts +39 -0
- package/dist/cjs/types/kyc/Kyc.js +25 -0
- package/dist/cjs/types/kyc/index.d.ts +1 -0
- package/dist/cjs/types/kyc/index.js +17 -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/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 +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 +8 -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/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 +0 -0
- package/dist/esm/constants/used-product/index.js +0 -0
- package/dist/esm/dto/ad/Ad.dto.js +1 -3
- package/dist/esm/dto/addresses/addresses.dto.js +1 -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 +2 -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 +1 -0
- package/dist/esm/schema/ad/index.js +0 -0
- package/dist/esm/schema/ad/save-ad.schema.js +46 -43
- package/dist/esm/schema/addresses/addresses.schema.js +15 -0
- 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/communication/ai-conversation.schema.js +40 -0
- package/dist/esm/schema/communication/index.js +2 -0
- package/dist/esm/schema/communication/support-ticket.schema.js +32 -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 +2 -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 +1 -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/addresses/Address.js +1 -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 +1 -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 +3 -0
- package/dist/esm/types/integrations/Google.js +0 -0
- package/dist/esm/types/integrations/index.js +0 -0
- package/dist/esm/types/kyc/Kyc.js +22 -0
- package/dist/esm/types/kyc/index.js +1 -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/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 +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 +58 -44
- package/dist/cjs/common/enum/AdPromotionAdminStatusEnum.d.ts +0 -5
- package/dist/cjs/common/enum/AdPromotionAdminStatusEnum.js +0 -9
- package/dist/cjs/common/enum/AdPromotionPaymentTypeEnum.d.ts +0 -4
- package/dist/cjs/common/enum/AdPromotionPaymentTypeEnum.js +0 -8
- package/dist/esm/common/enum/AdPromotionAdminStatusEnum.js +0 -6
- package/dist/esm/common/enum/AdPromotionPaymentTypeEnum.js +0 -5
|
@@ -14,6 +14,7 @@ const propertyFacilityRelationSchema = z.object({
|
|
|
14
14
|
facility_id: z.coerce.number().int().positive(),
|
|
15
15
|
distance_in_meters: z.coerce.number().int().min(0).optional(),
|
|
16
16
|
});
|
|
17
|
+
const nullableArray = (schema) => z.preprocess((value) => (value === null ? undefined : value), schema.optional());
|
|
17
18
|
const createMotorSchema = z.object({
|
|
18
19
|
ad_id: z.coerce.number().int().positive().optional(),
|
|
19
20
|
trim_id: z.coerce.number().nullable().optional(),
|
|
@@ -54,16 +55,17 @@ const createPropertySchema = z.object({
|
|
|
54
55
|
parking: z.coerce.boolean().optional(),
|
|
55
56
|
floor: z.coerce.number().int().min(0).optional(),
|
|
56
57
|
total_floors: z.coerce.number().int().min(0).optional(),
|
|
57
|
-
feature_ids: z.array(z.coerce.number().int().positive())
|
|
58
|
-
facility_ids: z.array(z.coerce.number().int().positive())
|
|
59
|
-
property_facilities: z.preprocess((
|
|
60
|
-
if (
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
feature_ids: nullableArray(z.array(z.coerce.number().int().positive())),
|
|
59
|
+
facility_ids: nullableArray(z.array(z.coerce.number().int().positive())),
|
|
60
|
+
property_facilities: z.preprocess((value) => {
|
|
61
|
+
if (value === null || value === undefined)
|
|
62
|
+
return undefined;
|
|
63
|
+
if (!Array.isArray(value))
|
|
64
|
+
return value;
|
|
65
|
+
return value
|
|
66
|
+
.filter((item) => item && item.facility_id !== null && item.facility_id !== undefined)
|
|
64
67
|
.map((item) => ({
|
|
65
68
|
...item,
|
|
66
|
-
// If property_id is null, undefined, or <= 0, convert it to undefined so Zod drops it
|
|
67
69
|
property_id: item.property_id === null ||
|
|
68
70
|
item.property_id === undefined ||
|
|
69
71
|
Number(item.property_id) <= 0
|
|
@@ -71,10 +73,30 @@ const createPropertySchema = z.object({
|
|
|
71
73
|
: item.property_id,
|
|
72
74
|
}));
|
|
73
75
|
}, z.array(propertyFacilityRelationSchema).optional()),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
condition_id: z.coerce
|
|
77
|
+
.number()
|
|
78
|
+
.int()
|
|
79
|
+
.min(0)
|
|
80
|
+
.optional()
|
|
81
|
+
.transform((value) => (value === 0 ? null : value)),
|
|
82
|
+
age_id: z.coerce
|
|
83
|
+
.number()
|
|
84
|
+
.int()
|
|
85
|
+
.min(0)
|
|
86
|
+
.optional()
|
|
87
|
+
.transform((value) => (value === 0 ? null : value)),
|
|
88
|
+
property_status_id: z.coerce
|
|
89
|
+
.number()
|
|
90
|
+
.int()
|
|
91
|
+
.min(0)
|
|
92
|
+
.optional()
|
|
93
|
+
.transform((value) => (value === 0 ? null : value)),
|
|
94
|
+
license_type_id: z.coerce
|
|
95
|
+
.number()
|
|
96
|
+
.int()
|
|
97
|
+
.min(0)
|
|
98
|
+
.optional()
|
|
99
|
+
.transform((value) => (value === 0 ? null : value)),
|
|
78
100
|
});
|
|
79
101
|
const updatePropertySchema = createPropertySchema.extend({
|
|
80
102
|
id: z.coerce.number().int().positive(),
|
|
@@ -95,33 +117,15 @@ const updateUsedProductSchema = z.object({
|
|
|
95
117
|
isDeliveryAvailable: z.coerce.boolean().optional().nullable(),
|
|
96
118
|
product_type_id: z.coerce.number().optional().nullable(),
|
|
97
119
|
});
|
|
98
|
-
const
|
|
99
|
-
id: z.number().optional(),
|
|
100
|
-
service_id: z.number().optional(),
|
|
101
|
-
city_id: z.number(),
|
|
102
|
-
district_id: z.number().optional().nullable(),
|
|
103
|
-
});
|
|
104
|
-
const updateServiceLocationSchema = z.object({
|
|
105
|
-
city_id: z.number(),
|
|
106
|
-
// district_id: z.preprocess(
|
|
107
|
-
// (v) => (v === null || v === '' ? undefined : v),
|
|
108
|
-
// z.coerce.number().int().optional(),
|
|
109
|
-
// ),
|
|
110
|
-
});
|
|
111
|
-
const createServiceSchema = z.object({
|
|
120
|
+
const baseServiceSchema = z.object({
|
|
112
121
|
ad_id: z.coerce.number().int().positive().optional(),
|
|
113
122
|
access_type_id: z.coerce.number().int().positive(),
|
|
114
123
|
work_type_id: z.coerce.number().int().positive(),
|
|
115
124
|
unit_id: z.coerce.number().int().optional().nullable(),
|
|
116
|
-
locations: z.array(createServiceLocationSchema).optional().nullable(),
|
|
117
125
|
});
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
access_type_id: z.coerce.number().int().positive(),
|
|
122
|
-
work_type_id: z.coerce.number().int().positive(),
|
|
123
|
-
unit_id: z.coerce.number().int().optional().nullable(),
|
|
124
|
-
locations: z.array(updateServiceLocationSchema),
|
|
126
|
+
const createServiceSchema = baseServiceSchema;
|
|
127
|
+
const updateServiceSchema = baseServiceSchema.extend({
|
|
128
|
+
id: z.coerce.number().int().positive().optional(),
|
|
125
129
|
});
|
|
126
130
|
const baseAdCommon = z.object({
|
|
127
131
|
title: z.string().trim().optional(),
|
|
@@ -131,16 +135,14 @@ const baseAdCommon = z.object({
|
|
|
131
135
|
price: z.coerce.number().min(0).optional().nullable(),
|
|
132
136
|
currency_id: z.coerce.number().int().positive().optional().nullable(),
|
|
133
137
|
negotiable: z.coerce.boolean().optional().nullable(),
|
|
134
|
-
city_id: z.coerce.number().int().positive().optional().nullable(),
|
|
135
138
|
latitude: z.coerce.number().optional().nullable(),
|
|
136
139
|
longitude: z.coerce.number().optional().nullable(),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
// ),
|
|
140
|
+
saved_address_id: z.coerce.number().int().positive().optional().nullable(),
|
|
141
|
+
baseAdminBoundaryId: z.preprocess((value) => {
|
|
142
|
+
if (value === 0 || value === "0")
|
|
143
|
+
return undefined;
|
|
144
|
+
return value;
|
|
145
|
+
}, z.coerce.number().optional().nullable()),
|
|
144
146
|
media: z.array(z.any()).optional().nullable(),
|
|
145
147
|
subject_type: subjectTypeSchema.optional(),
|
|
146
148
|
base_price: z.coerce.number().optional().nullable(),
|
|
@@ -153,11 +155,12 @@ const baseAdCommon = z.object({
|
|
|
153
155
|
.optional()
|
|
154
156
|
.nullable(),
|
|
155
157
|
selected_phone: z.string().trim().optional().nullable(),
|
|
158
|
+
expires_at: z.iso.datetime().optional().nullable(),
|
|
156
159
|
adLocations: z.array(adLocationSchema).optional().nullable(),
|
|
157
160
|
});
|
|
158
161
|
export const createAdSchema = z.object({
|
|
159
162
|
user_id: z.coerce.number().int().positive(),
|
|
160
|
-
id: z.
|
|
163
|
+
id: z.null().optional(),
|
|
161
164
|
...baseAdCommon.shape,
|
|
162
165
|
motor: createMotorSchema.optional().nullable(),
|
|
163
166
|
property: createPropertySchema.optional().nullable(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const createAddressSchema = z.object({
|
|
3
|
+
label: z.string().trim().min(1).max(100),
|
|
4
|
+
location_description: z.string().trim().max(500).nullable().optional(),
|
|
5
|
+
formatted_address: z.string().trim().max(1000).nullable().optional(),
|
|
6
|
+
latitude: z.coerce.number().finite().min(-90).max(90),
|
|
7
|
+
longitude: z.coerce.number().finite().min(-180).max(180),
|
|
8
|
+
admin_boundary_id: z.coerce.number().int().positive(),
|
|
9
|
+
is_default: z.boolean().optional(),
|
|
10
|
+
});
|
|
11
|
+
export const updateAddressSchema = createAddressSchema
|
|
12
|
+
.partial()
|
|
13
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
14
|
+
message: "At least one field is required",
|
|
15
|
+
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const MarketingSubjectTypeSchema = z.enum([
|
|
3
|
+
'motors',
|
|
4
|
+
'properties',
|
|
5
|
+
'used_products',
|
|
6
|
+
'services',
|
|
7
|
+
]);
|
|
8
|
+
export const ConversationLanguageSchema = z.enum(['ar', 'en']);
|
|
9
|
+
export const StartAiConversationSchema = z.object({
|
|
10
|
+
request_id: z.string().min(1),
|
|
11
|
+
potential_user_id: z.number().int().positive(),
|
|
12
|
+
user_id: z.number().int().positive().nullable().optional(),
|
|
13
|
+
phone: z.string().min(5).max(30),
|
|
14
|
+
language: ConversationLanguageSchema.default('ar'),
|
|
15
|
+
purpose: z.literal('marketing'),
|
|
16
|
+
subject_type: MarketingSubjectTypeSchema,
|
|
17
|
+
initial_message: z.string().min(1),
|
|
18
|
+
context: z.object({
|
|
19
|
+
name: z.string().nullable().optional(),
|
|
20
|
+
reason: z.string().min(1),
|
|
21
|
+
note: z.string().nullable().optional(),
|
|
22
|
+
previous_contact_count: z.number().int().nonnegative().default(0),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
export const ConversationEventTypeSchema = z.enum([
|
|
26
|
+
'CONVERSATION_STARTED',
|
|
27
|
+
'MESSAGE_RECEIVED',
|
|
28
|
+
'INTERESTED',
|
|
29
|
+
'NOT_INTERESTED',
|
|
30
|
+
'REQUESTED_HUMAN',
|
|
31
|
+
'CONVERTED',
|
|
32
|
+
'OPTED_OUT',
|
|
33
|
+
'CONVERSATION_CLOSED',
|
|
34
|
+
]);
|
|
35
|
+
export const PotentialUserConversationEventSchema = z.object({
|
|
36
|
+
potential_user_id: z.number().int().positive(),
|
|
37
|
+
conversation_id: z.string().min(1),
|
|
38
|
+
event: ConversationEventTypeSchema,
|
|
39
|
+
summary: z.string().max(2000).nullable().optional(),
|
|
40
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const SupportTicketStatusSchema = z.enum(['open', 'assigned', 'in_progress', 'waiting_customer', 'resolved', 'closed', 'reopened']);
|
|
3
|
+
export const SupportTicketPrioritySchema = z.enum(['low', 'normal', 'high', 'urgent']);
|
|
4
|
+
export const SupportTicketCategorySchema = z.enum(['technical_issue', 'account', 'advertisement', 'payment', 'complaint', 'other']);
|
|
5
|
+
export const SupportTicketCreateSchema = z.object({
|
|
6
|
+
title: z.string().trim().min(4).max(180),
|
|
7
|
+
description: z.string().trim().min(5).max(5000),
|
|
8
|
+
category: SupportTicketCategorySchema.default('other'),
|
|
9
|
+
priority: SupportTicketPrioritySchema.default('normal'),
|
|
10
|
+
potential_user_id: z.number().int().positive().nullable().optional(),
|
|
11
|
+
user_id: z.number().int().positive().nullable().optional(),
|
|
12
|
+
contact_phone: z.string().trim().min(6).max(30).nullable().optional(),
|
|
13
|
+
conversation_id: z.string().min(1).max(80).nullable().optional(),
|
|
14
|
+
ad_id: z.number().int().positive().nullable().optional(),
|
|
15
|
+
payment_id: z.number().int().positive().nullable().optional(),
|
|
16
|
+
});
|
|
17
|
+
export const SupportTicketAiCreateSchema = SupportTicketCreateSchema.extend({
|
|
18
|
+
conversation_id: z.string().min(1).max(80),
|
|
19
|
+
dedupe_key: z.string().min(8).max(180),
|
|
20
|
+
ai_summary: z.string().max(2000).nullable().optional(),
|
|
21
|
+
});
|
|
22
|
+
export const SupportTicketIdSchema = z.object({ id: z.number().int().positive() });
|
|
23
|
+
export const SupportTicketListSchema = z.object({
|
|
24
|
+
page: z.number().int().positive().default(1),
|
|
25
|
+
limit: z.number().int().min(1).max(100).default(20),
|
|
26
|
+
status: SupportTicketStatusSchema.optional(),
|
|
27
|
+
priority: SupportTicketPrioritySchema.optional(),
|
|
28
|
+
search: z.string().trim().max(100).optional(),
|
|
29
|
+
});
|
|
30
|
+
export const SupportTicketStatusUpdateSchema = SupportTicketIdSchema.extend({ status: SupportTicketStatusSchema });
|
|
31
|
+
export const SupportTicketAssignmentSchema = SupportTicketIdSchema.extend({ assigned_to: z.number().int().positive() });
|
|
32
|
+
export const SupportTicketReplySchema = SupportTicketIdSchema.extend({ message: z.string().trim().min(1).max(4000) });
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/schema/index.js
CHANGED
|
@@ -3,3 +3,5 @@ export * as AI from './ai/index.js';
|
|
|
3
3
|
export * as COMMON from './common/index.js';
|
|
4
4
|
export * as EVENTS from './events/index.js';
|
|
5
5
|
export * as PAYMENTS from './payments/index.js';
|
|
6
|
+
export * as COMMUNICATION from './communication/index.js';
|
|
7
|
+
export * as ADDRESSES from './addresses/addresses.schema.js';
|
|
File without changes
|
|
File without changes
|
package/dist/esm/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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
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
|
|
@@ -2,5 +2,6 @@ export var MessageTypeEnum;
|
|
|
2
2
|
(function (MessageTypeEnum) {
|
|
3
3
|
MessageTypeEnum[MessageTypeEnum["TEXT"] = 1] = "TEXT";
|
|
4
4
|
MessageTypeEnum[MessageTypeEnum["PRICE_OFFER"] = 2] = "PRICE_OFFER";
|
|
5
|
+
MessageTypeEnum[MessageTypeEnum["CONTACT_INVITATION"] = 3] = "CONTACT_INVITATION";
|
|
5
6
|
})(MessageTypeEnum || (MessageTypeEnum = {}));
|
|
6
7
|
export { MessageTypeEnum as MessageTypeType };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createEmptyLocalizedName } from '../common/LocalizedName.js';
|
|
2
|
+
export const emptyEventTemplate = {
|
|
3
|
+
id: 0,
|
|
4
|
+
code: '',
|
|
5
|
+
name: createEmptyLocalizedName(),
|
|
6
|
+
active: true,
|
|
7
|
+
religion: null,
|
|
8
|
+
event_type_id: 0,
|
|
9
|
+
eventType: undefined,
|
|
10
|
+
weddings: [],
|
|
11
|
+
};
|
|
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/esm/types/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * as FilterParams from "./common/FilterParams.js";
|
|
|
11
11
|
// listings
|
|
12
12
|
export * as Ad from "./ad/Ad.js";
|
|
13
13
|
export * as AdLocation from "./ad/AdLocation.js";
|
|
14
|
+
export * as Addresses from "./addresses/Address.js";
|
|
14
15
|
export * as AdPromotion from "./ad/AdPromotion.js";
|
|
15
16
|
export * as Motor from "./motor/Motor.js";
|
|
16
17
|
export * as MotorTrim from "./motor/MotorTrim.js";
|
|
@@ -70,6 +71,8 @@ export * as Media from "./media/Media.js";
|
|
|
70
71
|
export * as Image from "./media/Image.js";
|
|
71
72
|
export * as SocialMediaPlatform from "./media/SocialMediaPlatform.js";
|
|
72
73
|
export * as SocialMediaProfile from "./media/SocialMediaProfile.js";
|
|
74
|
+
// KYC
|
|
75
|
+
export * as Kyc from "./kyc/Kyc.js";
|
|
73
76
|
// integrations
|
|
74
77
|
export * as Google from "./integrations/Google.js";
|
|
75
78
|
// analysis
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export var KycStatus;
|
|
2
|
+
(function (KycStatus) {
|
|
3
|
+
KycStatus["DRAFT"] = "DRAFT";
|
|
4
|
+
KycStatus["PENDING"] = "PENDING";
|
|
5
|
+
KycStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
6
|
+
KycStatus["APPROVED"] = "APPROVED";
|
|
7
|
+
KycStatus["REJECTED"] = "REJECTED";
|
|
8
|
+
KycStatus["REQUIRES_RESUBMISSION"] = "REQUIRES_RESUBMISSION";
|
|
9
|
+
})(KycStatus || (KycStatus = {}));
|
|
10
|
+
export var KycDocumentType;
|
|
11
|
+
(function (KycDocumentType) {
|
|
12
|
+
KycDocumentType["NATIONAL_ID"] = "NATIONAL_ID";
|
|
13
|
+
KycDocumentType["PASSPORT"] = "PASSPORT";
|
|
14
|
+
KycDocumentType["RESIDENCE_PERMIT"] = "RESIDENCE_PERMIT";
|
|
15
|
+
KycDocumentType["DRIVING_LICENSE"] = "DRIVING_LICENSE";
|
|
16
|
+
})(KycDocumentType || (KycDocumentType = {}));
|
|
17
|
+
export var KycMediaType;
|
|
18
|
+
(function (KycMediaType) {
|
|
19
|
+
KycMediaType["DOCUMENT_FRONT"] = "document_front";
|
|
20
|
+
KycMediaType["DOCUMENT_BACK"] = "document_back";
|
|
21
|
+
KycMediaType["SELFIE"] = "selfie";
|
|
22
|
+
})(KycMediaType || (KycMediaType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Kyc.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { emptyMotor } from "./Motor.js";
|
|
2
|
+
import { emptyProperty } from "./Property.js";
|
|
3
|
+
import { emptyService } from "./Service.js";
|
|
4
|
+
import { emptyUsedProduct } from "./UsedProduct.js";
|
|
5
|
+
export const emptyAd = {
|
|
6
|
+
id: 0,
|
|
7
|
+
user_id: 0,
|
|
8
|
+
status_id: 0,
|
|
9
|
+
title: "",
|
|
10
|
+
description: "",
|
|
11
|
+
negotiable: false,
|
|
12
|
+
latitude: 0,
|
|
13
|
+
longitude: 0,
|
|
14
|
+
baseAdminBoundaryId: 0,
|
|
15
|
+
contact_methods: null,
|
|
16
|
+
selected_phone: null,
|
|
17
|
+
media: [],
|
|
18
|
+
property: emptyProperty,
|
|
19
|
+
motor: emptyMotor,
|
|
20
|
+
service: emptyService,
|
|
21
|
+
product: emptyUsedProduct,
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const emptyMotor = {
|
|
2
|
+
id: 0,
|
|
3
|
+
body_type_id: 0,
|
|
4
|
+
regional_spec_id: 0,
|
|
5
|
+
transmission_id: 0,
|
|
6
|
+
fuel_type_id: 0,
|
|
7
|
+
interior_color_id: null,
|
|
8
|
+
mileage: 0,
|
|
9
|
+
offer_type_id: 0,
|
|
10
|
+
year: null,
|
|
11
|
+
created_at: "",
|
|
12
|
+
updated_at: "",
|
|
13
|
+
seats_count: null,
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|