@deallony/shared 1.0.81 → 1.0.84
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 +24 -0
- package/dist/cjs/abstract/baseService.js +6 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +42 -0
- package/dist/{types/AdType.d.ts → cjs/types/ad/Ad.d.ts} +17 -19
- package/dist/cjs/types/ad/Ad.js +25 -0
- package/dist/cjs/types/ad/AdLocation.js +2 -0
- package/dist/{types/AdPromotionType.d.ts → cjs/types/ad/AdPromotion.d.ts} +3 -3
- package/dist/cjs/types/ad/AdPromotion.js +2 -0
- package/dist/cjs/types/ad/index.d.ts +3 -0
- package/dist/cjs/types/ad/index.js +19 -0
- package/dist/cjs/types/ad-common/Feature.d.ts +7 -0
- package/dist/cjs/types/ad-common/Feature.js +2 -0
- package/dist/cjs/types/ad-common/OfferType.d.ts +5 -0
- package/dist/cjs/types/ad-common/OfferType.js +2 -0
- package/dist/{types/PriceTypeType.d.ts → cjs/types/ad-common/PriceType.d.ts} +2 -2
- package/dist/cjs/types/ad-common/PriceType.js +2 -0
- package/dist/cjs/types/ad-common/PublisherType.d.ts +5 -0
- package/dist/cjs/types/ad-common/PublisherType.js +2 -0
- package/dist/cjs/types/ad-common/UsedProductAge.d.ts +7 -0
- package/dist/cjs/types/ad-common/UsedProductAge.js +2 -0
- package/dist/cjs/types/ad-common/UsedProductCondition.d.ts +7 -0
- package/dist/cjs/types/ad-common/UsedProductCondition.js +2 -0
- package/dist/cjs/types/ad-common/index.d.ts +6 -0
- package/dist/cjs/types/ad-common/index.js +25 -0
- package/dist/{types → cjs/types}/analysis/AnalysisDailySnapshot.d.ts +0 -3
- package/dist/cjs/types/analysis/AnalysisDailySnapshot.js +2 -0
- package/dist/cjs/types/analysis/index.d.ts +1 -0
- package/dist/cjs/types/analysis/index.js +2 -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 +17 -0
- package/dist/cjs/types/attributes/Category.js +2 -0
- package/dist/{types/CategoryWorkTypeType.d.ts → cjs/types/attributes/CategoryWorkType.d.ts} +3 -3
- package/dist/cjs/types/attributes/CategoryWorkType.js +2 -0
- package/dist/cjs/types/attributes/Color.d.ts +5 -0
- package/dist/cjs/types/attributes/Color.js +2 -0
- package/dist/{types/CurrencyType.d.ts → cjs/types/attributes/Currency.d.ts} +1 -2
- package/dist/cjs/types/attributes/Currency.js +2 -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/{types/UnitType.d.ts → cjs/types/attributes/Unit.d.ts} +1 -1
- 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/{types/WorkTypeType.d.ts → cjs/types/attributes/WorkType.d.ts} +1 -1
- package/dist/cjs/types/attributes/WorkType.js +2 -0
- package/dist/cjs/types/attributes/index.d.ts +4 -0
- package/dist/cjs/types/attributes/index.js +20 -0
- package/dist/cjs/types/common/AccessType.js +2 -0
- package/dist/cjs/types/common/Config.js +2 -0
- package/dist/{types/LocalizedNameType.d.ts → cjs/types/common/LocalizedName.d.ts} +2 -2
- package/dist/cjs/types/common/LocalizedName.js +5 -0
- package/dist/{types/ResponseType.d.ts → cjs/types/common/Response.d.ts} +1 -1
- package/dist/cjs/types/common/Response.js +2 -0
- package/dist/{types/StatusType.d.ts → cjs/types/common/Status.d.ts} +3 -3
- package/dist/cjs/types/common/Status.js +2 -0
- package/dist/{types/SubjectType.d.ts → cjs/types/common/Subject.d.ts} +4 -5
- package/dist/cjs/types/common/Subject.js +16 -0
- package/dist/cjs/types/common/index.d.ts +5 -0
- package/dist/cjs/types/common/index.js +21 -0
- package/dist/{types/AppStartScreenType.d.ts → cjs/types/communication/AppStartScreen.d.ts} +2 -2
- package/dist/cjs/types/communication/AppStartScreen.js +2 -0
- package/dist/{types/ChatType.d.ts → cjs/types/communication/Chat.d.ts} +7 -7
- package/dist/cjs/types/communication/Chat.js +8 -0
- package/dist/{types/DeviceType.d.ts → cjs/types/communication/Device.d.ts} +1 -1
- package/dist/cjs/types/communication/Device.js +2 -0
- package/dist/{types/MessageTemplateType.d.ts → cjs/types/communication/MessageTemplate.d.ts} +1 -1
- package/dist/cjs/types/communication/MessageTemplate.js +2 -0
- package/dist/{types/NotificationTokenType.d.ts → cjs/types/communication/NotificationToken.d.ts} +1 -1
- package/dist/cjs/types/communication/NotificationToken.js +2 -0
- package/dist/cjs/types/communication/index.d.ts +5 -0
- package/dist/cjs/types/communication/index.js +21 -0
- package/dist/{types/AdminBoundaryType.d.ts → cjs/types/geo/AdminBoundary.d.ts} +2 -2
- package/dist/cjs/types/geo/AdminBoundary.js +2 -0
- package/dist/cjs/types/geo/City.d.ts +10 -0
- package/dist/cjs/types/geo/City.js +2 -0
- package/dist/{types/DistrictType.d.ts → cjs/types/geo/District.d.ts} +2 -2
- package/dist/cjs/types/geo/District.js +2 -0
- package/dist/cjs/types/geo/index.d.ts +3 -0
- package/dist/cjs/types/geo/index.js +19 -0
- package/dist/cjs/types/index.d.ts +53 -0
- package/dist/cjs/types/index.js +99 -0
- package/dist/cjs/types/integrations/Google.js +2 -0
- package/dist/cjs/types/integrations/index.d.ts +1 -0
- package/dist/cjs/types/integrations/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/{types/MotorType.d.ts → cjs/types/listings/Motor.d.ts} +3 -4
- 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/{types/PropertyType.d.ts → cjs/types/listings/Property.d.ts} +17 -18
- 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/{types/UsedProductType.d.ts → cjs/types/listings/UsedProduct.d.ts} +2 -3
- 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/{types/ImageType.d.ts → cjs/types/media/Image.d.ts} +1 -1
- package/dist/cjs/types/media/Image.js +2 -0
- package/dist/cjs/types/media/Media.js +2 -0
- package/dist/{types/SocialMediaPlatformType.d.ts → cjs/types/media/SocialMediaPlatform.d.ts} +2 -2
- package/dist/cjs/types/media/SocialMediaPlatform.js +2 -0
- package/dist/{types/SocialMediaProfileType.d.ts → cjs/types/media/SocialMediaProfile.d.ts} +1 -1
- package/dist/cjs/types/media/SocialMediaProfile.js +2 -0
- package/dist/cjs/types/media/index.d.ts +4 -0
- package/dist/cjs/types/media/index.js +20 -0
- package/dist/cjs/types/motor/CarBody.d.ts +5 -0
- package/dist/cjs/types/motor/CarBody.js +2 -0
- package/dist/cjs/types/motor/FuelType.d.ts +5 -0
- package/dist/cjs/types/motor/FuelType.js +2 -0
- package/dist/cjs/types/motor/Motor.d.ts +24 -0
- package/dist/cjs/types/motor/Motor.js +17 -0
- package/dist/cjs/types/motor/MotorTrim.d.ts +6 -0
- package/dist/cjs/types/motor/MotorTrim.js +2 -0
- package/dist/cjs/types/motor/RegionalSpec.d.ts +5 -0
- package/dist/cjs/types/motor/RegionalSpec.js +2 -0
- package/dist/cjs/types/motor/Transmission.d.ts +5 -0
- package/dist/cjs/types/motor/Transmission.js +2 -0
- package/dist/cjs/types/motor/index.d.ts +6 -0
- package/dist/cjs/types/motor/index.js +22 -0
- package/dist/cjs/types/property/Facility.d.ts +6 -0
- package/dist/cjs/types/property/Facility.js +2 -0
- package/dist/cjs/types/property/LicenseType.d.ts +5 -0
- package/dist/cjs/types/property/LicenseType.js +2 -0
- package/dist/cjs/types/property/Property.d.ts +37 -0
- package/dist/cjs/types/property/Property.js +14 -0
- package/dist/cjs/types/property/PropertyStatus.d.ts +5 -0
- package/dist/cjs/types/property/PropertyStatus.js +2 -0
- package/dist/cjs/types/property/PropertySubType.d.ts +6 -0
- package/dist/cjs/types/property/PropertySubType.js +2 -0
- package/dist/cjs/types/property/index.d.ts +5 -0
- package/dist/cjs/types/property/index.js +21 -0
- package/dist/cjs/types/service/AccessType.d.ts +5 -0
- package/dist/cjs/types/service/AccessType.js +2 -0
- package/dist/cjs/types/service/Service.d.ts +14 -0
- package/dist/cjs/types/service/Service.js +9 -0
- package/dist/cjs/types/service/Unit.d.ts +5 -0
- package/dist/cjs/types/service/Unit.js +2 -0
- package/dist/cjs/types/service/WorkType.d.ts +6 -0
- package/dist/cjs/types/service/WorkType.js +2 -0
- package/dist/cjs/types/service/index.d.ts +4 -0
- package/dist/cjs/types/service/index.js +20 -0
- package/dist/cjs/types/used-product/UsedProduct.d.ts +8 -0
- package/dist/cjs/types/used-product/UsedProduct.js +7 -0
- package/dist/cjs/types/used-product/index.d.ts +1 -0
- package/dist/cjs/types/used-product/index.js +17 -0
- package/dist/cjs/types/user/Permission.d.ts +6 -0
- package/dist/cjs/types/user/Permission.js +6 -0
- package/dist/{types/PotentialUserType.d.ts → cjs/types/user/PotentialUser.d.ts} +3 -3
- package/dist/cjs/types/user/PotentialUser.js +2 -0
- package/dist/{types/RoleType.d.ts → cjs/types/user/Role.d.ts} +1 -1
- package/dist/cjs/types/user/Role.js +2 -0
- package/dist/cjs/types/user/User.d.ts +33 -0
- package/dist/cjs/types/user/User.js +2 -0
- package/dist/{types/WalletType.d.ts → cjs/types/user/Wallet.d.ts} +1 -1
- package/dist/cjs/types/user/Wallet.js +2 -0
- package/dist/cjs/types/user/index.d.ts +5 -0
- package/dist/cjs/types/user/index.js +21 -0
- package/dist/cjs/utils/converter.js +10 -0
- package/dist/cjs/utils/translation.d.ts +6 -0
- package/dist/cjs/utils/translation.js +11 -0
- package/dist/cjs/validation/ad/save-ad.js +55 -0
- package/dist/esm/abstract/baseService.js +2 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/types/ad/Ad.js +22 -0
- package/dist/esm/types/ad/index.js +3 -0
- package/dist/esm/types/ad-common/index.js +9 -0
- package/dist/esm/types/attributes/index.js +4 -0
- package/dist/{types/LocalizedNameType.js → esm/types/common/LocalizedName.js} +0 -1
- package/dist/{types/SubjectType.js → esm/types/common/Subject.js} +4 -4
- package/dist/esm/types/common/index.js +5 -0
- package/dist/esm/types/communication/Chat.js +5 -0
- package/dist/esm/types/communication/index.js +5 -0
- package/dist/esm/types/geo/index.js +3 -0
- package/dist/esm/types/index.js +62 -0
- package/dist/esm/types/integrations/index.js +1 -0
- package/dist/{types/AdType.js → esm/types/listings/Ad.js} +8 -5
- package/dist/{types/UsedProductType.js → esm/types/listings/UsedProduct.js} +0 -1
- package/dist/esm/types/listings/index.js +5 -0
- package/dist/esm/types/media/SocialMediaPlatform.js +1 -0
- package/dist/esm/types/media/SocialMediaProfile.js +1 -0
- package/dist/esm/types/media/index.js +4 -0
- package/dist/esm/types/motor/CarBody.js +1 -0
- package/dist/esm/types/motor/FuelType.js +1 -0
- package/dist/esm/types/motor/Motor.js +14 -0
- package/dist/esm/types/motor/MotorTrim.js +1 -0
- package/dist/esm/types/motor/RegionalSpec.js +1 -0
- package/dist/esm/types/motor/Transmission.js +1 -0
- package/dist/esm/types/motor/index.js +6 -0
- package/dist/esm/types/property/Facility.js +1 -0
- package/dist/esm/types/property/LicenseType.js +1 -0
- package/dist/esm/types/property/Property.js +11 -0
- package/dist/esm/types/property/PropertyStatus.js +1 -0
- package/dist/esm/types/property/PropertySubType.js +1 -0
- package/dist/esm/types/property/index.js +5 -0
- package/dist/esm/types/service/AccessType.js +1 -0
- package/dist/esm/types/service/Service.js +6 -0
- package/dist/esm/types/service/Unit.js +1 -0
- package/dist/esm/types/service/WorkType.js +1 -0
- package/dist/esm/types/service/index.js +4 -0
- package/dist/esm/types/used-product/UsedProduct.js +4 -0
- package/dist/esm/types/used-product/index.js +1 -0
- package/dist/esm/types/user/PotentialUser.js +1 -0
- package/dist/esm/types/user/Role.js +1 -0
- package/dist/esm/types/user/User.js +1 -0
- package/dist/esm/types/user/Wallet.js +1 -0
- package/dist/esm/types/user/index.js +5 -0
- package/package.json +15 -5
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -2
- package/dist/types/BaseService.d.ts +0 -7
- package/dist/types/CarBodyType.d.ts +0 -5
- package/dist/types/CategoryType.d.ts +0 -17
- package/dist/types/ChatType.js +0 -5
- package/dist/types/CityType.d.ts +0 -11
- package/dist/types/ColorType.d.ts +0 -5
- package/dist/types/FacilityType.d.ts +0 -6
- package/dist/types/FeatureType.d.ts +0 -7
- package/dist/types/FuelTypeType.d.ts +0 -5
- package/dist/types/LicenseTypeType.d.ts +0 -5
- package/dist/types/MotorTrimType.d.ts +0 -6
- package/dist/types/OfferTypeType.d.ts +0 -5
- package/dist/types/PermissionType.d.ts +0 -6
- package/dist/types/PropertyStatusType.d.ts +0 -5
- package/dist/types/PropertyTypeType.d.ts +0 -6
- package/dist/types/PublisherTypeType.d.ts +0 -5
- package/dist/types/RegionalSpecType.d.ts +0 -5
- package/dist/types/ResponseType.js +0 -2
- package/dist/types/ServiceType.d.ts +0 -10
- package/dist/types/ServicesLocationsType.d.ts +0 -6
- package/dist/types/TransmissionType.d.ts +0 -5
- package/dist/types/UsedProductAge.d.ts +0 -7
- package/dist/types/UsedProductCondation.d.ts +0 -7
- package/dist/types/UsedProductCondition.d.ts +0 -7
- package/dist/types/UserType.d.ts +0 -34
- package/dist/types/__index__.d.ts +0 -56
- package/dist/types/__index__.js +0 -57
- package/dist/types/analysis/__index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.js +0 -5
- package/dist/types/product/ProductCategoryType.d.ts +0 -15
- package/dist/types/product/ProductCategoryType.js +0 -1
- package/dist/types/product/UsedProductAge.d.ts +0 -7
- package/dist/types/product/UsedProductAge.js +0 -1
- package/dist/types/product/UsedProductCondation.d.ts +0 -7
- package/dist/types/product/UsedProductCondation.js +0 -1
- package/dist/types/product/UsedProductType.d.ts +0 -6
- package/dist/types/product/UsedProductType.js +0 -2
- package/dist/utils/translation.d.ts +0 -6
- /package/dist/{types/AdLocationType.d.ts → cjs/types/ad/AdLocation.d.ts} +0 -0
- /package/dist/{types/AccessTypeType.d.ts → cjs/types/common/AccessType.d.ts} +0 -0
- /package/dist/{types/ConfigType.d.ts → cjs/types/common/Config.d.ts} +0 -0
- /package/dist/{types/GoogleType.d.ts → cjs/types/integrations/Google.d.ts} +0 -0
- /package/dist/{types/MediaType.d.ts → cjs/types/media/Media.d.ts} +0 -0
- /package/dist/{utils → cjs/utils}/converter.d.ts +0 -0
- /package/dist/{validation → cjs/validation}/ad/save-ad.d.ts +0 -0
- /package/dist/{types/AppStartScreenType.js → esm/types/ad/AdLocation.js} +0 -0
- /package/dist/{types/BaseService.js → esm/types/ad/AdPromotion.js} +0 -0
- /package/dist/{types/AccessTypeType.js → esm/types/ad-common/Feature.js} +0 -0
- /package/dist/{types/AdLocationType.js → esm/types/ad-common/OfferType.js} +0 -0
- /package/dist/{types/AdPromotionType.js → esm/types/ad-common/PriceType.js} +0 -0
- /package/dist/{types/AdminBoundaryType.js → esm/types/ad-common/PublisherType.js} +0 -0
- /package/dist/{types → esm/types/ad-common}/UsedProductAge.js +0 -0
- /package/dist/{types → esm/types/ad-common}/UsedProductCondition.js +0 -0
- /package/dist/{types → esm/types}/analysis/AnalysisDailySnapshot.js +0 -0
- /package/dist/{types/CarBodyType.js → esm/types/analysis/index.js} +0 -0
- /package/dist/{types/CategoryType.js → esm/types/attributes/CarBody.js} +0 -0
- /package/dist/{types/CategoryWorkTypeType.js → esm/types/attributes/Category.js} +0 -0
- /package/dist/{types/CityType.js → esm/types/attributes/CategoryWorkType.js} +0 -0
- /package/dist/{types/ColorType.js → esm/types/attributes/Color.js} +0 -0
- /package/dist/{types/ConfigType.js → esm/types/attributes/Currency.js} +0 -0
- /package/dist/{types/CurrencyType.js → esm/types/attributes/Facility.js} +0 -0
- /package/dist/{types/DeviceType.js → esm/types/attributes/Feature.js} +0 -0
- /package/dist/{types/DistrictType.js → esm/types/attributes/FuelType.js} +0 -0
- /package/dist/{types/FacilityType.js → esm/types/attributes/LicenseType.js} +0 -0
- /package/dist/{types/FeatureType.js → esm/types/attributes/OfferType.js} +0 -0
- /package/dist/{types/FuelTypeType.js → esm/types/attributes/PriceType.js} +0 -0
- /package/dist/{types/GoogleType.js → esm/types/attributes/PropertyStatus.js} +0 -0
- /package/dist/{types/ImageType.js → esm/types/attributes/PublisherType.js} +0 -0
- /package/dist/{types/LicenseTypeType.js → esm/types/attributes/RegionalSpec.js} +0 -0
- /package/dist/{types/MediaType.js → esm/types/attributes/Transmission.js} +0 -0
- /package/dist/{types/MessageTemplateType.js → esm/types/attributes/Unit.js} +0 -0
- /package/dist/{types/MotorTrimType.js → esm/types/attributes/UsedProductAge.js} +0 -0
- /package/dist/{types/NotificationTokenType.js → esm/types/attributes/UsedProductCondition.js} +0 -0
- /package/dist/{types/OfferTypeType.js → esm/types/attributes/WorkType.js} +0 -0
- /package/dist/{types/PotentialUserType.js → esm/types/common/AccessType.js} +0 -0
- /package/dist/{types/PriceTypeType.js → esm/types/common/Config.js} +0 -0
- /package/dist/{types/PropertyStatusType.js → esm/types/common/Response.js} +0 -0
- /package/dist/{types/PropertyTypeType.js → esm/types/common/Status.js} +0 -0
- /package/dist/{types/PublisherTypeType.js → esm/types/communication/AppStartScreen.js} +0 -0
- /package/dist/{types/RegionalSpecType.js → esm/types/communication/Device.js} +0 -0
- /package/dist/{types/RoleType.js → esm/types/communication/MessageTemplate.js} +0 -0
- /package/dist/{types/ServicesLocationsType.js → esm/types/communication/NotificationToken.js} +0 -0
- /package/dist/{types/SocialMediaPlatformType.js → esm/types/geo/AdminBoundary.js} +0 -0
- /package/dist/{types/SocialMediaProfileType.js → esm/types/geo/City.js} +0 -0
- /package/dist/{types/StatusType.js → esm/types/geo/District.js} +0 -0
- /package/dist/{types/TransmissionType.js → esm/types/integrations/Google.js} +0 -0
- /package/dist/{types/UnitType.js → esm/types/listings/AdLocation.js} +0 -0
- /package/dist/{types/UsedProductCondation.js → esm/types/listings/AdPromotion.js} +0 -0
- /package/dist/{types/MotorType.js → esm/types/listings/Motor.js} +0 -0
- /package/dist/{types/UserType.js → esm/types/listings/MotorTrim.js} +0 -0
- /package/dist/{types/PropertyType.js → esm/types/listings/Property.js} +0 -0
- /package/dist/{types/WalletType.js → esm/types/listings/PropertySubType.js} +0 -0
- /package/dist/{types/ServiceType.js → esm/types/listings/Service.js} +0 -0
- /package/dist/{types/WorkTypeType.js → esm/types/media/Image.js} +0 -0
- /package/dist/{types/analysis/__index.js → esm/types/media/Media.js} +0 -0
- /package/dist/{types/PermissionType.js → esm/types/user/Permission.js} +0 -0
- /package/dist/{utils → esm/utils}/converter.js +0 -0
- /package/dist/{utils → esm/utils}/translation.js +0 -0
- /package/dist/{validation → esm/validation}/ad/save-ad.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { LocalizedName } from "./LocalizedName";
|
|
2
|
+
export type IStatus = {
|
|
3
3
|
id?: number;
|
|
4
|
-
name:
|
|
4
|
+
name: LocalizedName;
|
|
5
5
|
is_default: boolean;
|
|
6
6
|
show: boolean;
|
|
7
7
|
color?: string | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type SubjectTable = "properties" | "services" | "motors" | "used_products";
|
|
2
2
|
export declare enum SubjectTableEnum {
|
|
3
3
|
PROPERTIES = "properties",
|
|
4
4
|
SERVICES = "services",
|
|
5
5
|
MOTORS = "motors",
|
|
6
6
|
USED_PRODUCTS = "used_products"
|
|
7
7
|
}
|
|
8
|
-
export type
|
|
9
|
-
value:
|
|
8
|
+
export type ISubjectTypeOption = {
|
|
9
|
+
value: SubjectTable;
|
|
10
10
|
label: string;
|
|
11
11
|
isCategory?: boolean;
|
|
12
12
|
isAge?: boolean;
|
|
@@ -14,5 +14,4 @@ export type SubjectTypeOption = {
|
|
|
14
14
|
color?: string;
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
};
|
|
17
|
-
export declare const SubjectTypeOptions:
|
|
18
|
-
export type SubjectType = SubjectTableType;
|
|
17
|
+
export declare const SubjectTypeOptions: ISubjectTypeOption[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubjectTypeOptions = exports.SubjectTableEnum = void 0;
|
|
4
|
+
var SubjectTableEnum;
|
|
5
|
+
(function (SubjectTableEnum) {
|
|
6
|
+
SubjectTableEnum["PROPERTIES"] = "properties";
|
|
7
|
+
SubjectTableEnum["SERVICES"] = "services";
|
|
8
|
+
SubjectTableEnum["MOTORS"] = "motors";
|
|
9
|
+
SubjectTableEnum["USED_PRODUCTS"] = "used_products";
|
|
10
|
+
})(SubjectTableEnum || (exports.SubjectTableEnum = SubjectTableEnum = {}));
|
|
11
|
+
exports.SubjectTypeOptions = [
|
|
12
|
+
{ value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
|
|
13
|
+
{ value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
|
|
14
|
+
{ value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
|
|
15
|
+
{ value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
|
|
16
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./LocalizedName"), exports);
|
|
18
|
+
__exportStar(require("./Response"), exports);
|
|
19
|
+
__exportStar(require("./Subject"), exports);
|
|
20
|
+
__exportStar(require("./Status"), exports);
|
|
21
|
+
__exportStar(require("./Config"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type IChatRoom = {
|
|
2
2
|
id: number;
|
|
3
3
|
requester_id: number;
|
|
4
4
|
provider_id: number;
|
|
@@ -20,14 +20,14 @@ export type ChatRoomType = {
|
|
|
20
20
|
id: number;
|
|
21
21
|
title: string;
|
|
22
22
|
} | null;
|
|
23
|
-
chats?:
|
|
23
|
+
chats?: IChatMessage[];
|
|
24
24
|
lastMessage?: string;
|
|
25
25
|
lastMessageAt?: Date;
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
27
|
+
export type IChatMessage = {
|
|
28
28
|
id: number;
|
|
29
29
|
message: string;
|
|
30
|
-
message_type:
|
|
30
|
+
message_type: MessageTypeEnum;
|
|
31
31
|
payload?: Record<string, any> | null;
|
|
32
32
|
created_at: Date;
|
|
33
33
|
chat_room_id: number;
|
|
@@ -38,17 +38,17 @@ export type ChatMessageType = {
|
|
|
38
38
|
phone: string;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
export declare enum
|
|
41
|
+
export declare enum MessageTypeEnum {
|
|
42
42
|
TEXT = 1,
|
|
43
43
|
PRICE_OFFER = 2
|
|
44
44
|
}
|
|
45
|
-
export type
|
|
45
|
+
export type SendMessageDto = {
|
|
46
46
|
chat_room_id: number;
|
|
47
47
|
requester_id: number;
|
|
48
48
|
provider_id: number;
|
|
49
49
|
sender_id: number;
|
|
50
50
|
message: string;
|
|
51
|
-
message_type?:
|
|
51
|
+
message_type?: MessageTypeEnum;
|
|
52
52
|
payload?: Record<string, any> | null;
|
|
53
53
|
ad_id?: number | null;
|
|
54
54
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageTypeEnum = void 0;
|
|
4
|
+
var MessageTypeEnum;
|
|
5
|
+
(function (MessageTypeEnum) {
|
|
6
|
+
MessageTypeEnum[MessageTypeEnum["TEXT"] = 1] = "TEXT";
|
|
7
|
+
MessageTypeEnum[MessageTypeEnum["PRICE_OFFER"] = 2] = "PRICE_OFFER";
|
|
8
|
+
})(MessageTypeEnum || (exports.MessageTypeEnum = MessageTypeEnum = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AppStartScreen"), exports);
|
|
18
|
+
__exportStar(require("./Chat"), exports);
|
|
19
|
+
__exportStar(require("./Device"), exports);
|
|
20
|
+
__exportStar(require("./MessageTemplate"), exports);
|
|
21
|
+
__exportStar(require("./NotificationToken"), exports);
|
|
@@ -4,7 +4,7 @@ type Point = {
|
|
|
4
4
|
};
|
|
5
5
|
export type GeoJSONPosition = [number, number];
|
|
6
6
|
export type GeoJSONPolygonGeometry = {
|
|
7
|
-
type:
|
|
7
|
+
type: "Polygon";
|
|
8
8
|
coordinates: GeoJSONPosition[][];
|
|
9
9
|
};
|
|
10
10
|
export type IAdminBoundary = {
|
|
@@ -38,6 +38,6 @@ export type BoundaryMatch = {
|
|
|
38
38
|
export type PointTreeResponse = {
|
|
39
39
|
point: Point;
|
|
40
40
|
matches: BoundaryMatch[];
|
|
41
|
-
bestByAdminLevel: Omit<BoundaryMatch,
|
|
41
|
+
bestByAdminLevel: Omit<BoundaryMatch, "area">[];
|
|
42
42
|
};
|
|
43
43
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AdminBoundary"), exports);
|
|
18
|
+
__exportStar(require("./City"), exports);
|
|
19
|
+
__exportStar(require("./District"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * as LocalizedName from "./common/LocalizedName";
|
|
2
|
+
export * as Response from "./common/Response";
|
|
3
|
+
export * as Subject from "./common/Subject";
|
|
4
|
+
export * as Status from "./common/Status";
|
|
5
|
+
export * as AccessType from "./service/AccessType";
|
|
6
|
+
export * as Config from "./common/Config";
|
|
7
|
+
export * as Ad from "./ad/Ad";
|
|
8
|
+
export * as AdLocation from "./ad/AdLocation";
|
|
9
|
+
export * as AdPromotion from "./ad/AdPromotion";
|
|
10
|
+
export * as Motor from "./motor/Motor";
|
|
11
|
+
export * as MotorTrim from "./motor/MotorTrim";
|
|
12
|
+
export * as Property from "./property/Property";
|
|
13
|
+
export * as PropertySubType from "./property/PropertySubType";
|
|
14
|
+
export * as Service from "./service/Service";
|
|
15
|
+
export * as UsedProduct from "./used-product/UsedProduct";
|
|
16
|
+
export * as CarBody from "./motor/CarBody";
|
|
17
|
+
export * as Category from "./attributes/Category";
|
|
18
|
+
export * as CategoryWorkType from "./attributes/CategoryWorkType";
|
|
19
|
+
export * as Color from "./attributes/Color";
|
|
20
|
+
export * as Currency from "./attributes/Currency";
|
|
21
|
+
export * as Facility from "./property/Facility";
|
|
22
|
+
export * as Feature from "./ad-common/Feature";
|
|
23
|
+
export * as FuelType from "./motor/FuelType";
|
|
24
|
+
export * as LicenseType from "./property/LicenseType";
|
|
25
|
+
export * as OfferType from "./ad-common/OfferType";
|
|
26
|
+
export * as PriceType from "./ad-common/PriceType";
|
|
27
|
+
export * as PropertyStatus from "./property/PropertyStatus";
|
|
28
|
+
export * as PublisherType from "./ad-common/PublisherType";
|
|
29
|
+
export * as RegionalSpec from "./motor/RegionalSpec";
|
|
30
|
+
export * as Transmission from "./motor/Transmission";
|
|
31
|
+
export * as Unit from "./service/Unit";
|
|
32
|
+
export * as UsedProductAge from "./ad-common/UsedProductAge";
|
|
33
|
+
export * as UsedProductCondition from "./ad-common/UsedProductCondition";
|
|
34
|
+
export * as WorkType from "./service/WorkType";
|
|
35
|
+
export * as AdminBoundary from "./geo/AdminBoundary";
|
|
36
|
+
export * as City from "./geo/City";
|
|
37
|
+
export * as District from "./geo/District";
|
|
38
|
+
export * as User from "./user/User";
|
|
39
|
+
export * as Role from "./user/Role";
|
|
40
|
+
export * as Permission from "./user/Permission";
|
|
41
|
+
export * as Wallet from "./user/Wallet";
|
|
42
|
+
export * as PotentialUser from "./user/PotentialUser";
|
|
43
|
+
export * as AppStartScreen from "./communication/AppStartScreen";
|
|
44
|
+
export * as Chat from "./communication/Chat";
|
|
45
|
+
export * as Device from "./communication/Device";
|
|
46
|
+
export * as MessageTemplate from "./communication/MessageTemplate";
|
|
47
|
+
export * as NotificationToken from "./communication/NotificationToken";
|
|
48
|
+
export * as Media from "./media/Media";
|
|
49
|
+
export * as Image from "./media/Image";
|
|
50
|
+
export * as SocialMediaPlatform from "./media/SocialMediaPlatform";
|
|
51
|
+
export * as SocialMediaProfile from "./media/SocialMediaProfile";
|
|
52
|
+
export * as Google from "./integrations/Google";
|
|
53
|
+
export * as Analysis from "./analysis/AnalysisDailySnapshot";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.SocialMediaPlatform = exports.Image = exports.Media = exports.NotificationToken = exports.MessageTemplate = exports.Device = exports.Chat = exports.AppStartScreen = exports.PotentialUser = exports.Wallet = exports.Permission = exports.Role = exports.User = exports.District = exports.City = exports.AdminBoundary = exports.WorkType = exports.UsedProductCondition = exports.UsedProductAge = exports.Unit = exports.Transmission = exports.RegionalSpec = exports.PublisherType = exports.PropertyStatus = exports.PriceType = exports.OfferType = exports.LicenseType = exports.FuelType = exports.Feature = exports.Facility = exports.Currency = exports.Color = exports.CategoryWorkType = exports.Category = exports.CarBody = exports.UsedProduct = exports.Service = exports.PropertySubType = exports.Property = exports.MotorTrim = exports.Motor = exports.AdPromotion = exports.AdLocation = exports.Ad = exports.Config = exports.AccessType = exports.Status = exports.Subject = exports.Response = exports.LocalizedName = void 0;
|
|
37
|
+
exports.Analysis = exports.Google = exports.SocialMediaProfile = void 0;
|
|
38
|
+
// common
|
|
39
|
+
exports.LocalizedName = __importStar(require("./common/LocalizedName"));
|
|
40
|
+
exports.Response = __importStar(require("./common/Response"));
|
|
41
|
+
exports.Subject = __importStar(require("./common/Subject"));
|
|
42
|
+
exports.Status = __importStar(require("./common/Status"));
|
|
43
|
+
exports.AccessType = __importStar(require("./service/AccessType"));
|
|
44
|
+
exports.Config = __importStar(require("./common/Config"));
|
|
45
|
+
// listings
|
|
46
|
+
exports.Ad = __importStar(require("./ad/Ad"));
|
|
47
|
+
exports.AdLocation = __importStar(require("./ad/AdLocation"));
|
|
48
|
+
exports.AdPromotion = __importStar(require("./ad/AdPromotion"));
|
|
49
|
+
exports.Motor = __importStar(require("./motor/Motor"));
|
|
50
|
+
exports.MotorTrim = __importStar(require("./motor/MotorTrim"));
|
|
51
|
+
exports.Property = __importStar(require("./property/Property"));
|
|
52
|
+
exports.PropertySubType = __importStar(require("./property/PropertySubType"));
|
|
53
|
+
exports.Service = __importStar(require("./service/Service"));
|
|
54
|
+
exports.UsedProduct = __importStar(require("./used-product/UsedProduct"));
|
|
55
|
+
// attributes
|
|
56
|
+
exports.CarBody = __importStar(require("./motor/CarBody"));
|
|
57
|
+
exports.Category = __importStar(require("./attributes/Category"));
|
|
58
|
+
exports.CategoryWorkType = __importStar(require("./attributes/CategoryWorkType"));
|
|
59
|
+
exports.Color = __importStar(require("./attributes/Color"));
|
|
60
|
+
exports.Currency = __importStar(require("./attributes/Currency"));
|
|
61
|
+
exports.Facility = __importStar(require("./property/Facility"));
|
|
62
|
+
exports.Feature = __importStar(require("./ad-common/Feature"));
|
|
63
|
+
exports.FuelType = __importStar(require("./motor/FuelType"));
|
|
64
|
+
exports.LicenseType = __importStar(require("./property/LicenseType"));
|
|
65
|
+
exports.OfferType = __importStar(require("./ad-common/OfferType"));
|
|
66
|
+
exports.PriceType = __importStar(require("./ad-common/PriceType"));
|
|
67
|
+
exports.PropertyStatus = __importStar(require("./property/PropertyStatus"));
|
|
68
|
+
exports.PublisherType = __importStar(require("./ad-common/PublisherType"));
|
|
69
|
+
exports.RegionalSpec = __importStar(require("./motor/RegionalSpec"));
|
|
70
|
+
exports.Transmission = __importStar(require("./motor/Transmission"));
|
|
71
|
+
exports.Unit = __importStar(require("./service/Unit"));
|
|
72
|
+
exports.UsedProductAge = __importStar(require("./ad-common/UsedProductAge"));
|
|
73
|
+
exports.UsedProductCondition = __importStar(require("./ad-common/UsedProductCondition"));
|
|
74
|
+
exports.WorkType = __importStar(require("./service/WorkType"));
|
|
75
|
+
// geo
|
|
76
|
+
exports.AdminBoundary = __importStar(require("./geo/AdminBoundary"));
|
|
77
|
+
exports.City = __importStar(require("./geo/City"));
|
|
78
|
+
exports.District = __importStar(require("./geo/District"));
|
|
79
|
+
// user
|
|
80
|
+
exports.User = __importStar(require("./user/User"));
|
|
81
|
+
exports.Role = __importStar(require("./user/Role"));
|
|
82
|
+
exports.Permission = __importStar(require("./user/Permission"));
|
|
83
|
+
exports.Wallet = __importStar(require("./user/Wallet"));
|
|
84
|
+
exports.PotentialUser = __importStar(require("./user/PotentialUser"));
|
|
85
|
+
// communication
|
|
86
|
+
exports.AppStartScreen = __importStar(require("./communication/AppStartScreen"));
|
|
87
|
+
exports.Chat = __importStar(require("./communication/Chat"));
|
|
88
|
+
exports.Device = __importStar(require("./communication/Device"));
|
|
89
|
+
exports.MessageTemplate = __importStar(require("./communication/MessageTemplate"));
|
|
90
|
+
exports.NotificationToken = __importStar(require("./communication/NotificationToken"));
|
|
91
|
+
// media
|
|
92
|
+
exports.Media = __importStar(require("./media/Media"));
|
|
93
|
+
exports.Image = __importStar(require("./media/Image"));
|
|
94
|
+
exports.SocialMediaPlatform = __importStar(require("./media/SocialMediaPlatform"));
|
|
95
|
+
exports.SocialMediaProfile = __importStar(require("./media/SocialMediaProfile"));
|
|
96
|
+
// integrations
|
|
97
|
+
exports.Google = __importStar(require("./integrations/Google"));
|
|
98
|
+
// analysis
|
|
99
|
+
exports.Analysis = __importStar(require("./analysis/AnalysisDailySnapshot"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Google";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Google"), exports);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { IMedia } from "../media/Media";
|
|
2
|
+
import { IUser } from "../user/User";
|
|
3
|
+
import { IAdLocations } from "./AdLocation";
|
|
4
|
+
import { IAdPromotion } from "./AdPromotion";
|
|
5
|
+
import { IMotor } from "./Motor";
|
|
6
|
+
import { IProperty } from "./Property";
|
|
7
|
+
import { IService } from "./Service";
|
|
8
|
+
import { IUsedProduct } from "./UsedProduct";
|
|
9
|
+
import { SubjectTable } from "../common/Subject";
|
|
10
|
+
export type IAd = {
|
|
11
|
+
id?: number;
|
|
12
|
+
user_id?: number;
|
|
13
|
+
status_id?: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
category_id?: number;
|
|
17
|
+
price?: number;
|
|
18
|
+
base_price?: number;
|
|
19
|
+
currency_id?: number;
|
|
20
|
+
negotiable?: boolean;
|
|
21
|
+
views?: number;
|
|
22
|
+
city_id?: number;
|
|
23
|
+
latitude: number;
|
|
24
|
+
longitude: number;
|
|
25
|
+
baseAdminBoundaryId: number;
|
|
26
|
+
adLocations?: IAdLocations;
|
|
27
|
+
subject_id?: number;
|
|
28
|
+
contact_methods: {
|
|
29
|
+
by_message?: boolean;
|
|
30
|
+
by_whatsapp?: boolean;
|
|
31
|
+
by_call?: boolean;
|
|
32
|
+
} | null;
|
|
33
|
+
selected_phone: string | null;
|
|
34
|
+
user?: IUser;
|
|
35
|
+
media: IMedia[];
|
|
36
|
+
subject_type?: SubjectTable;
|
|
37
|
+
promotions?: IAdPromotion[];
|
|
38
|
+
property?: IProperty;
|
|
39
|
+
motor?: IMotor;
|
|
40
|
+
service?: IService;
|
|
41
|
+
product?: IUsedProduct;
|
|
42
|
+
created_at?: string;
|
|
43
|
+
updated_at?: string;
|
|
44
|
+
};
|
|
45
|
+
export type SaveAdDto = Partial<Omit<IAd, "created_at" | "updated_at" | "views" | "user" | "promotions">> & {
|
|
46
|
+
id?: number;
|
|
47
|
+
latitude?: number;
|
|
48
|
+
longitude?: number;
|
|
49
|
+
baseAdminBoundaryId?: number;
|
|
50
|
+
adLocations?: IAdLocations;
|
|
51
|
+
};
|
|
52
|
+
export type GetAdsFilterDto = {
|
|
53
|
+
ids?: number[];
|
|
54
|
+
city_id?: number;
|
|
55
|
+
district_ids?: number[];
|
|
56
|
+
boundary_ids?: number[];
|
|
57
|
+
category_id?: number;
|
|
58
|
+
user_id?: number;
|
|
59
|
+
subject_type?: SubjectTable;
|
|
60
|
+
search?: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
page?: number;
|
|
63
|
+
limit?: number;
|
|
64
|
+
currency_id?: number;
|
|
65
|
+
min_price?: number;
|
|
66
|
+
max_price?: number;
|
|
67
|
+
parent_category_id?: number;
|
|
68
|
+
property?: {
|
|
69
|
+
property_type_id?: number;
|
|
70
|
+
offer_type_id?: number;
|
|
71
|
+
bedrooms?: number[];
|
|
72
|
+
bathrooms?: number[];
|
|
73
|
+
};
|
|
74
|
+
service?: {
|
|
75
|
+
access_type_id?: number;
|
|
76
|
+
district_ids?: number[];
|
|
77
|
+
};
|
|
78
|
+
product?: {
|
|
79
|
+
condition_id?: number;
|
|
80
|
+
age_id?: number;
|
|
81
|
+
};
|
|
82
|
+
motor?: {
|
|
83
|
+
transmission_ids?: number[];
|
|
84
|
+
fuel_type_ids?: number[];
|
|
85
|
+
offer_type_ids?: number[];
|
|
86
|
+
color_ids?: number[];
|
|
87
|
+
min_year?: number;
|
|
88
|
+
max_year?: number;
|
|
89
|
+
min_mileage?: number;
|
|
90
|
+
max_mileage?: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export declare const emptyAd: IAd;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyAd = void 0;
|
|
4
|
+
const Motor_1 = require("./Motor");
|
|
5
|
+
const Property_1 = require("./Property");
|
|
6
|
+
const Service_1 = require("./Service");
|
|
7
|
+
const UsedProduct_1 = require("./UsedProduct");
|
|
8
|
+
exports.emptyAd = {
|
|
9
|
+
id: 0,
|
|
10
|
+
user_id: 0,
|
|
11
|
+
status_id: 0,
|
|
12
|
+
title: "",
|
|
13
|
+
description: "",
|
|
14
|
+
negotiable: false,
|
|
15
|
+
latitude: 0,
|
|
16
|
+
longitude: 0,
|
|
17
|
+
baseAdminBoundaryId: 0,
|
|
18
|
+
contact_methods: null,
|
|
19
|
+
selected_phone: null,
|
|
20
|
+
media: [],
|
|
21
|
+
property: Property_1.emptyProperty,
|
|
22
|
+
motor: Motor_1.emptyMotor,
|
|
23
|
+
service: Service_1.emptyService,
|
|
24
|
+
product: UsedProduct_1.emptyUsedProduct,
|
|
25
|
+
};
|