@deallony/shared 1.0.80 → 1.0.82

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.
Files changed (341) hide show
  1. package/dist/cjs/abstract/baseService.d.ts +19 -0
  2. package/dist/cjs/abstract/baseService.js +6 -0
  3. package/dist/cjs/index.d.ts +3 -0
  4. package/dist/cjs/index.js +42 -0
  5. package/dist/{types/AdType.d.ts → cjs/types/ad/Ad.d.ts} +17 -19
  6. package/dist/cjs/types/ad/Ad.js +25 -0
  7. package/dist/cjs/types/ad/AdLocation.js +2 -0
  8. package/dist/{types/AdPromotionType.d.ts → cjs/types/ad/AdPromotion.d.ts} +3 -3
  9. package/dist/cjs/types/ad/AdPromotion.js +2 -0
  10. package/dist/cjs/types/ad/index.d.ts +3 -0
  11. package/dist/cjs/types/ad/index.js +19 -0
  12. package/dist/cjs/types/ad-common/Feature.d.ts +7 -0
  13. package/dist/cjs/types/ad-common/Feature.js +2 -0
  14. package/dist/cjs/types/ad-common/OfferType.d.ts +5 -0
  15. package/dist/cjs/types/ad-common/OfferType.js +2 -0
  16. package/dist/cjs/types/ad-common/PriceType.d.ts +7 -0
  17. package/dist/cjs/types/ad-common/PriceType.js +2 -0
  18. package/dist/cjs/types/ad-common/PublisherType.d.ts +5 -0
  19. package/dist/cjs/types/ad-common/PublisherType.js +2 -0
  20. package/dist/cjs/types/ad-common/UsedProductAge.d.ts +7 -0
  21. package/dist/cjs/types/ad-common/UsedProductAge.js +2 -0
  22. package/dist/cjs/types/ad-common/UsedProductCondition.d.ts +7 -0
  23. package/dist/cjs/types/ad-common/UsedProductCondition.js +2 -0
  24. package/dist/cjs/types/ad-common/index.d.ts +6 -0
  25. package/dist/cjs/types/ad-common/index.js +25 -0
  26. package/dist/cjs/types/analysis/AnalysisDailySnapshot.d.ts +39 -0
  27. package/dist/cjs/types/analysis/AnalysisDailySnapshot.js +2 -0
  28. package/dist/cjs/types/analysis/index.d.ts +1 -0
  29. package/dist/cjs/types/analysis/index.js +2 -0
  30. package/dist/cjs/types/attributes/CarBody.d.ts +5 -0
  31. package/dist/cjs/types/attributes/CarBody.js +2 -0
  32. package/dist/cjs/types/attributes/Category.d.ts +17 -0
  33. package/dist/cjs/types/attributes/Category.js +2 -0
  34. package/dist/cjs/types/attributes/CategoryWorkType.d.ts +10 -0
  35. package/dist/cjs/types/attributes/CategoryWorkType.js +2 -0
  36. package/dist/cjs/types/attributes/Color.d.ts +5 -0
  37. package/dist/cjs/types/attributes/Color.js +2 -0
  38. package/dist/{types/CurrencyType.d.ts → cjs/types/attributes/Currency.d.ts} +1 -1
  39. package/dist/cjs/types/attributes/Currency.js +2 -0
  40. package/dist/cjs/types/attributes/Facility.d.ts +6 -0
  41. package/dist/cjs/types/attributes/Facility.js +2 -0
  42. package/dist/cjs/types/attributes/Feature.d.ts +7 -0
  43. package/dist/cjs/types/attributes/Feature.js +2 -0
  44. package/dist/cjs/types/attributes/FuelType.d.ts +5 -0
  45. package/dist/cjs/types/attributes/FuelType.js +2 -0
  46. package/dist/cjs/types/attributes/LicenseType.d.ts +5 -0
  47. package/dist/cjs/types/attributes/LicenseType.js +2 -0
  48. package/dist/cjs/types/attributes/OfferType.d.ts +5 -0
  49. package/dist/cjs/types/attributes/OfferType.js +2 -0
  50. package/dist/cjs/types/attributes/PriceType.d.ts +7 -0
  51. package/dist/cjs/types/attributes/PriceType.js +2 -0
  52. package/dist/cjs/types/attributes/PropertyStatus.d.ts +5 -0
  53. package/dist/cjs/types/attributes/PropertyStatus.js +2 -0
  54. package/dist/cjs/types/attributes/PublisherType.d.ts +5 -0
  55. package/dist/cjs/types/attributes/PublisherType.js +2 -0
  56. package/dist/cjs/types/attributes/RegionalSpec.d.ts +5 -0
  57. package/dist/cjs/types/attributes/RegionalSpec.js +2 -0
  58. package/dist/cjs/types/attributes/Transmission.d.ts +5 -0
  59. package/dist/cjs/types/attributes/Transmission.js +2 -0
  60. package/dist/{types/UnitType.d.ts → cjs/types/attributes/Unit.d.ts} +1 -1
  61. package/dist/cjs/types/attributes/Unit.js +2 -0
  62. package/dist/cjs/types/attributes/UsedProductAge.d.ts +7 -0
  63. package/dist/cjs/types/attributes/UsedProductAge.js +2 -0
  64. package/dist/cjs/types/attributes/UsedProductCondition.d.ts +7 -0
  65. package/dist/cjs/types/attributes/UsedProductCondition.js +2 -0
  66. package/dist/cjs/types/attributes/WorkType.d.ts +6 -0
  67. package/dist/cjs/types/attributes/WorkType.js +2 -0
  68. package/dist/cjs/types/attributes/index.d.ts +4 -0
  69. package/dist/cjs/types/attributes/index.js +20 -0
  70. package/dist/{types/AccessTypeType.d.ts → cjs/types/common/AccessType.d.ts} +1 -1
  71. package/dist/cjs/types/common/AccessType.js +2 -0
  72. package/dist/cjs/types/common/Config.js +2 -0
  73. package/dist/{types/LocalizedNameType.d.ts → cjs/types/common/LocalizedName.d.ts} +2 -2
  74. package/dist/cjs/types/common/LocalizedName.js +5 -0
  75. package/dist/{types/ResponseType.d.ts → cjs/types/common/Response.d.ts} +1 -1
  76. package/dist/cjs/types/common/Response.js +2 -0
  77. package/dist/{types/StatusType.d.ts → cjs/types/common/Status.d.ts} +3 -3
  78. package/dist/cjs/types/common/Status.js +2 -0
  79. package/dist/{types/SubjectType.d.ts → cjs/types/common/Subject.d.ts} +4 -5
  80. package/dist/cjs/types/common/Subject.js +16 -0
  81. package/dist/cjs/types/common/index.d.ts +5 -0
  82. package/dist/cjs/types/common/index.js +21 -0
  83. package/dist/{types/AppStartScreenType.d.ts → cjs/types/communication/AppStartScreen.d.ts} +2 -2
  84. package/dist/cjs/types/communication/AppStartScreen.js +2 -0
  85. package/dist/{types/ChatType.d.ts → cjs/types/communication/Chat.d.ts} +7 -7
  86. package/dist/cjs/types/communication/Chat.js +8 -0
  87. package/dist/{types/DeviceType.d.ts → cjs/types/communication/Device.d.ts} +1 -1
  88. package/dist/cjs/types/communication/Device.js +2 -0
  89. package/dist/{types/MessageTemplateType.d.ts → cjs/types/communication/MessageTemplate.d.ts} +1 -1
  90. package/dist/cjs/types/communication/MessageTemplate.js +2 -0
  91. package/dist/{types/NotificationTokenType.d.ts → cjs/types/communication/NotificationToken.d.ts} +1 -1
  92. package/dist/cjs/types/communication/NotificationToken.js +2 -0
  93. package/dist/cjs/types/communication/index.d.ts +5 -0
  94. package/dist/cjs/types/communication/index.js +21 -0
  95. package/dist/{types/AdminBoundaryType.d.ts → cjs/types/geo/AdminBoundary.d.ts} +2 -2
  96. package/dist/cjs/types/geo/AdminBoundary.js +2 -0
  97. package/dist/{types/CityType.d.ts → cjs/types/geo/City.d.ts} +3 -3
  98. package/dist/cjs/types/geo/City.js +2 -0
  99. package/dist/cjs/types/geo/District.d.ts +18 -0
  100. package/dist/cjs/types/geo/District.js +2 -0
  101. package/dist/cjs/types/geo/index.d.ts +3 -0
  102. package/dist/cjs/types/geo/index.js +19 -0
  103. package/dist/cjs/types/index.d.ts +53 -0
  104. package/dist/cjs/types/index.js +99 -0
  105. package/dist/cjs/types/integrations/Google.js +2 -0
  106. package/dist/cjs/types/integrations/index.d.ts +1 -0
  107. package/dist/cjs/types/integrations/index.js +17 -0
  108. package/dist/cjs/types/listings/Ad.d.ts +93 -0
  109. package/dist/cjs/types/listings/Ad.js +25 -0
  110. package/dist/cjs/types/listings/AdLocation.d.ts +5 -0
  111. package/dist/cjs/types/listings/AdLocation.js +2 -0
  112. package/dist/cjs/types/listings/AdPromotion.d.ts +12 -0
  113. package/dist/cjs/types/listings/AdPromotion.js +2 -0
  114. package/dist/{types/MotorType.d.ts → cjs/types/listings/Motor.d.ts} +3 -4
  115. package/dist/cjs/types/listings/Motor.js +17 -0
  116. package/dist/cjs/types/listings/MotorTrim.d.ts +6 -0
  117. package/dist/cjs/types/listings/MotorTrim.js +2 -0
  118. package/dist/{types/PropertyType.d.ts → cjs/types/listings/Property.d.ts} +17 -18
  119. package/dist/cjs/types/listings/Property.js +14 -0
  120. package/dist/cjs/types/listings/PropertySubType.d.ts +6 -0
  121. package/dist/cjs/types/listings/PropertySubType.js +2 -0
  122. package/dist/cjs/types/listings/Service.d.ts +14 -0
  123. package/dist/cjs/types/listings/Service.js +9 -0
  124. package/dist/{types/UsedProductType.d.ts → cjs/types/listings/UsedProduct.d.ts} +2 -3
  125. package/dist/cjs/types/listings/UsedProduct.js +7 -0
  126. package/dist/cjs/types/listings/index.d.ts +5 -0
  127. package/dist/cjs/types/listings/index.js +21 -0
  128. package/dist/{types/ImageType.d.ts → cjs/types/media/Image.d.ts} +1 -1
  129. package/dist/cjs/types/media/Image.js +2 -0
  130. package/dist/cjs/types/media/Media.js +2 -0
  131. package/dist/{types/SocialMediaPlatformType.d.ts → cjs/types/media/SocialMediaPlatform.d.ts} +2 -2
  132. package/dist/cjs/types/media/SocialMediaPlatform.js +2 -0
  133. package/dist/{types/SocialMediaProfileType.d.ts → cjs/types/media/SocialMediaProfile.d.ts} +1 -1
  134. package/dist/cjs/types/media/SocialMediaProfile.js +2 -0
  135. package/dist/cjs/types/media/index.d.ts +4 -0
  136. package/dist/cjs/types/media/index.js +20 -0
  137. package/dist/cjs/types/motor/CarBody.d.ts +5 -0
  138. package/dist/cjs/types/motor/CarBody.js +2 -0
  139. package/dist/cjs/types/motor/FuelType.d.ts +5 -0
  140. package/dist/cjs/types/motor/FuelType.js +2 -0
  141. package/dist/cjs/types/motor/Motor.d.ts +24 -0
  142. package/dist/cjs/types/motor/Motor.js +17 -0
  143. package/dist/cjs/types/motor/MotorTrim.d.ts +6 -0
  144. package/dist/cjs/types/motor/MotorTrim.js +2 -0
  145. package/dist/cjs/types/motor/RegionalSpec.d.ts +5 -0
  146. package/dist/cjs/types/motor/RegionalSpec.js +2 -0
  147. package/dist/cjs/types/motor/Transmission.d.ts +5 -0
  148. package/dist/cjs/types/motor/Transmission.js +2 -0
  149. package/dist/cjs/types/motor/index.d.ts +6 -0
  150. package/dist/cjs/types/motor/index.js +22 -0
  151. package/dist/cjs/types/property/Facility.d.ts +6 -0
  152. package/dist/cjs/types/property/Facility.js +2 -0
  153. package/dist/cjs/types/property/LicenseType.d.ts +5 -0
  154. package/dist/cjs/types/property/LicenseType.js +2 -0
  155. package/dist/cjs/types/property/Property.d.ts +37 -0
  156. package/dist/cjs/types/property/Property.js +14 -0
  157. package/dist/cjs/types/property/PropertyStatus.d.ts +5 -0
  158. package/dist/cjs/types/property/PropertyStatus.js +2 -0
  159. package/dist/cjs/types/property/PropertySubType.d.ts +6 -0
  160. package/dist/cjs/types/property/PropertySubType.js +2 -0
  161. package/dist/cjs/types/property/index.d.ts +5 -0
  162. package/dist/cjs/types/property/index.js +21 -0
  163. package/dist/cjs/types/service/AccessType.d.ts +5 -0
  164. package/dist/cjs/types/service/AccessType.js +2 -0
  165. package/dist/cjs/types/service/Service.d.ts +14 -0
  166. package/dist/cjs/types/service/Service.js +9 -0
  167. package/dist/cjs/types/service/Unit.d.ts +5 -0
  168. package/dist/cjs/types/service/Unit.js +2 -0
  169. package/dist/cjs/types/service/WorkType.d.ts +6 -0
  170. package/dist/cjs/types/service/WorkType.js +2 -0
  171. package/dist/cjs/types/service/index.d.ts +4 -0
  172. package/dist/cjs/types/service/index.js +20 -0
  173. package/dist/cjs/types/used-product/UsedProduct.d.ts +8 -0
  174. package/dist/cjs/types/used-product/UsedProduct.js +7 -0
  175. package/dist/cjs/types/used-product/index.d.ts +1 -0
  176. package/dist/cjs/types/used-product/index.js +17 -0
  177. package/dist/cjs/types/user/Permission.d.ts +6 -0
  178. package/dist/cjs/types/user/Permission.js +6 -0
  179. package/dist/{types/PotentialUserType.d.ts → cjs/types/user/PotentialUser.d.ts} +3 -3
  180. package/dist/cjs/types/user/PotentialUser.js +2 -0
  181. package/dist/{types/RoleType.d.ts → cjs/types/user/Role.d.ts} +1 -1
  182. package/dist/cjs/types/user/Role.js +2 -0
  183. package/dist/cjs/types/user/User.d.ts +33 -0
  184. package/dist/cjs/types/user/User.js +2 -0
  185. package/dist/{types/WalletType.d.ts → cjs/types/user/Wallet.d.ts} +1 -1
  186. package/dist/cjs/types/user/Wallet.js +2 -0
  187. package/dist/cjs/types/user/index.d.ts +5 -0
  188. package/dist/cjs/types/user/index.js +21 -0
  189. package/dist/cjs/utils/converter.js +10 -0
  190. package/dist/cjs/utils/translation.d.ts +6 -0
  191. package/dist/cjs/utils/translation.js +11 -0
  192. package/dist/cjs/validation/ad/save-ad.js +55 -0
  193. package/dist/esm/abstract/baseService.js +2 -0
  194. package/dist/esm/index.js +3 -0
  195. package/dist/esm/types/ad/Ad.js +22 -0
  196. package/dist/esm/types/ad/index.js +3 -0
  197. package/dist/esm/types/ad-common/index.js +9 -0
  198. package/dist/esm/types/attributes/index.js +4 -0
  199. package/dist/{types/LocalizedNameType.js → esm/types/common/LocalizedName.js} +0 -1
  200. package/dist/{types/SubjectType.js → esm/types/common/Subject.js} +4 -4
  201. package/dist/esm/types/common/index.js +5 -0
  202. package/dist/esm/types/communication/Chat.js +5 -0
  203. package/dist/esm/types/communication/index.js +5 -0
  204. package/dist/esm/types/geo/index.js +3 -0
  205. package/dist/esm/types/index.js +62 -0
  206. package/dist/esm/types/integrations/index.js +1 -0
  207. package/dist/{types/AdType.js → esm/types/listings/Ad.js} +8 -5
  208. package/dist/esm/types/listings/MotorTrim.js +1 -0
  209. package/dist/esm/types/listings/PropertySubType.js +1 -0
  210. package/dist/{types/UsedProductType.js → esm/types/listings/UsedProduct.js} +0 -1
  211. package/dist/esm/types/listings/index.js +5 -0
  212. package/dist/esm/types/media/Image.js +1 -0
  213. package/dist/esm/types/media/Media.js +1 -0
  214. package/dist/esm/types/media/SocialMediaPlatform.js +1 -0
  215. package/dist/esm/types/media/SocialMediaProfile.js +1 -0
  216. package/dist/esm/types/media/index.js +4 -0
  217. package/dist/esm/types/motor/CarBody.js +1 -0
  218. package/dist/esm/types/motor/FuelType.js +1 -0
  219. package/dist/esm/types/motor/Motor.js +14 -0
  220. package/dist/esm/types/motor/MotorTrim.js +1 -0
  221. package/dist/esm/types/motor/RegionalSpec.js +1 -0
  222. package/dist/esm/types/motor/Transmission.js +1 -0
  223. package/dist/esm/types/motor/index.js +6 -0
  224. package/dist/esm/types/property/Facility.js +1 -0
  225. package/dist/esm/types/property/LicenseType.js +1 -0
  226. package/dist/esm/types/property/Property.js +11 -0
  227. package/dist/esm/types/property/PropertyStatus.js +1 -0
  228. package/dist/esm/types/property/PropertySubType.js +1 -0
  229. package/dist/esm/types/property/index.js +5 -0
  230. package/dist/esm/types/service/AccessType.js +1 -0
  231. package/dist/esm/types/service/Service.js +6 -0
  232. package/dist/esm/types/service/Unit.js +1 -0
  233. package/dist/esm/types/service/WorkType.js +1 -0
  234. package/dist/esm/types/service/index.js +4 -0
  235. package/dist/esm/types/used-product/UsedProduct.js +4 -0
  236. package/dist/esm/types/used-product/index.js +1 -0
  237. package/dist/esm/types/user/PotentialUser.js +1 -0
  238. package/dist/esm/types/user/Role.js +1 -0
  239. package/dist/esm/types/user/User.js +1 -0
  240. package/dist/esm/types/user/Wallet.js +1 -0
  241. package/dist/esm/types/user/index.js +5 -0
  242. package/package.json +16 -6
  243. package/dist/index.d.ts +0 -3
  244. package/dist/index.js +0 -2
  245. package/dist/types/BaseService.d.ts +0 -7
  246. package/dist/types/CarBodyType.d.ts +0 -5
  247. package/dist/types/CategoryType.d.ts +0 -17
  248. package/dist/types/CategoryType.js +0 -2
  249. package/dist/types/CategoryWorkTypeType.d.ts +0 -10
  250. package/dist/types/ChatType.js +0 -5
  251. package/dist/types/ColorType.d.ts +0 -5
  252. package/dist/types/DistrictType.d.ts +0 -12
  253. package/dist/types/FacilityType.d.ts +0 -6
  254. package/dist/types/FeatureType.d.ts +0 -7
  255. package/dist/types/FuelTypeType.d.ts +0 -5
  256. package/dist/types/LicenseTypeType.d.ts +0 -5
  257. package/dist/types/MotorTrimType.d.ts +0 -6
  258. package/dist/types/OfferTypeType.d.ts +0 -5
  259. package/dist/types/PermissionType.d.ts +0 -6
  260. package/dist/types/PriceTypeType.d.ts +0 -7
  261. package/dist/types/PropertyStatusType.d.ts +0 -5
  262. package/dist/types/PropertyTypeType.d.ts +0 -6
  263. package/dist/types/PublisherTypeType.d.ts +0 -5
  264. package/dist/types/RegionalSpecType.d.ts +0 -5
  265. package/dist/types/ResponseType.js +0 -2
  266. package/dist/types/ServiceType.d.ts +0 -10
  267. package/dist/types/ServicesLocationsType.d.ts +0 -6
  268. package/dist/types/TransmissionType.d.ts +0 -5
  269. package/dist/types/UsedProductAge.d.ts +0 -7
  270. package/dist/types/UsedProductCondation.d.ts +0 -7
  271. package/dist/types/UserType.d.ts +0 -34
  272. package/dist/types/WorkTypeType.d.ts +0 -6
  273. package/dist/types/__index__.d.ts +0 -15
  274. package/dist/types/__index__.js +0 -15
  275. package/dist/types/index.d.ts +0 -5
  276. package/dist/types/index.js +0 -5
  277. package/dist/types/product/ProductCategoryType.d.ts +0 -15
  278. package/dist/types/product/ProductCategoryType.js +0 -1
  279. package/dist/types/product/UsedProductAge.d.ts +0 -7
  280. package/dist/types/product/UsedProductAge.js +0 -1
  281. package/dist/types/product/UsedProductCondation.d.ts +0 -7
  282. package/dist/types/product/UsedProductCondation.js +0 -1
  283. package/dist/types/product/UsedProductType.d.ts +0 -6
  284. package/dist/types/product/UsedProductType.js +0 -2
  285. package/dist/utils/translation.d.ts +0 -6
  286. /package/dist/{types/AdLocationType.d.ts → cjs/types/ad/AdLocation.d.ts} +0 -0
  287. /package/dist/{types/ConfigType.d.ts → cjs/types/common/Config.d.ts} +0 -0
  288. /package/dist/{types/GoogleType.d.ts → cjs/types/integrations/Google.d.ts} +0 -0
  289. /package/dist/{types/MediaType.d.ts → cjs/types/media/Media.d.ts} +0 -0
  290. /package/dist/{utils → cjs/utils}/converter.d.ts +0 -0
  291. /package/dist/{validation → cjs/validation}/ad/save-ad.d.ts +0 -0
  292. /package/dist/{types/BaseService.js → esm/types/ad/AdLocation.js} +0 -0
  293. /package/dist/{types/CarBodyType.js → esm/types/ad/AdPromotion.js} +0 -0
  294. /package/dist/{types/AccessTypeType.js → esm/types/ad-common/Feature.js} +0 -0
  295. /package/dist/{types/AdLocationType.js → esm/types/ad-common/OfferType.js} +0 -0
  296. /package/dist/{types/AdPromotionType.js → esm/types/ad-common/PriceType.js} +0 -0
  297. /package/dist/{types/AdminBoundaryType.js → esm/types/ad-common/PublisherType.js} +0 -0
  298. /package/dist/{types → esm/types/ad-common}/UsedProductAge.js +0 -0
  299. /package/dist/{types/AppStartScreenType.js → esm/types/ad-common/UsedProductCondition.js} +0 -0
  300. /package/dist/{types/CategoryWorkTypeType.js → esm/types/analysis/AnalysisDailySnapshot.js} +0 -0
  301. /package/dist/{types/CityType.js → esm/types/analysis/index.js} +0 -0
  302. /package/dist/{types/ColorType.js → esm/types/attributes/CarBody.js} +0 -0
  303. /package/dist/{types/ConfigType.js → esm/types/attributes/Category.js} +0 -0
  304. /package/dist/{types/CurrencyType.js → esm/types/attributes/CategoryWorkType.js} +0 -0
  305. /package/dist/{types/DeviceType.js → esm/types/attributes/Color.js} +0 -0
  306. /package/dist/{types/DistrictType.js → esm/types/attributes/Currency.js} +0 -0
  307. /package/dist/{types/FacilityType.js → esm/types/attributes/Facility.js} +0 -0
  308. /package/dist/{types/FeatureType.js → esm/types/attributes/Feature.js} +0 -0
  309. /package/dist/{types/FuelTypeType.js → esm/types/attributes/FuelType.js} +0 -0
  310. /package/dist/{types/GoogleType.js → esm/types/attributes/LicenseType.js} +0 -0
  311. /package/dist/{types/ImageType.js → esm/types/attributes/OfferType.js} +0 -0
  312. /package/dist/{types/LicenseTypeType.js → esm/types/attributes/PriceType.js} +0 -0
  313. /package/dist/{types/MediaType.js → esm/types/attributes/PropertyStatus.js} +0 -0
  314. /package/dist/{types/MessageTemplateType.js → esm/types/attributes/PublisherType.js} +0 -0
  315. /package/dist/{types/MotorTrimType.js → esm/types/attributes/RegionalSpec.js} +0 -0
  316. /package/dist/{types/NotificationTokenType.js → esm/types/attributes/Transmission.js} +0 -0
  317. /package/dist/{types/OfferTypeType.js → esm/types/attributes/Unit.js} +0 -0
  318. /package/dist/{types/PotentialUserType.js → esm/types/attributes/UsedProductAge.js} +0 -0
  319. /package/dist/{types/PriceTypeType.js → esm/types/attributes/UsedProductCondition.js} +0 -0
  320. /package/dist/{types/PropertyStatusType.js → esm/types/attributes/WorkType.js} +0 -0
  321. /package/dist/{types/PropertyTypeType.js → esm/types/common/AccessType.js} +0 -0
  322. /package/dist/{types/PublisherTypeType.js → esm/types/common/Config.js} +0 -0
  323. /package/dist/{types/RegionalSpecType.js → esm/types/common/Response.js} +0 -0
  324. /package/dist/{types/RoleType.js → esm/types/common/Status.js} +0 -0
  325. /package/dist/{types/ServicesLocationsType.js → esm/types/communication/AppStartScreen.js} +0 -0
  326. /package/dist/{types/SocialMediaPlatformType.js → esm/types/communication/Device.js} +0 -0
  327. /package/dist/{types/SocialMediaProfileType.js → esm/types/communication/MessageTemplate.js} +0 -0
  328. /package/dist/{types/StatusType.js → esm/types/communication/NotificationToken.js} +0 -0
  329. /package/dist/{types/TransmissionType.js → esm/types/geo/AdminBoundary.js} +0 -0
  330. /package/dist/{types/UnitType.js → esm/types/geo/City.js} +0 -0
  331. /package/dist/{types/UsedProductCondation.js → esm/types/geo/District.js} +0 -0
  332. /package/dist/{types/UserType.js → esm/types/integrations/Google.js} +0 -0
  333. /package/dist/{types/WalletType.js → esm/types/listings/AdLocation.js} +0 -0
  334. /package/dist/{types/WorkTypeType.js → esm/types/listings/AdPromotion.js} +0 -0
  335. /package/dist/{types/MotorType.js → esm/types/listings/Motor.js} +0 -0
  336. /package/dist/{types/PropertyType.js → esm/types/listings/Property.js} +0 -0
  337. /package/dist/{types/ServiceType.js → esm/types/listings/Service.js} +0 -0
  338. /package/dist/{types/PermissionType.js → esm/types/user/Permission.js} +0 -0
  339. /package/dist/{utils → esm/utils}/converter.js +0 -0
  340. /package/dist/{utils → esm/utils}/translation.js +0 -0
  341. /package/dist/{validation → esm/validation}/ad/save-ad.js +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from "./Facility";
2
+ export * from "./LicenseType";
3
+ export * from "./Property";
4
+ export * from "./PropertyStatus";
5
+ export * from "./PropertySubType";
@@ -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("./Facility"), exports);
18
+ __exportStar(require("./LicenseType"), exports);
19
+ __exportStar(require("./Property"), exports);
20
+ __exportStar(require("./PropertyStatus"), exports);
21
+ __exportStar(require("./PropertySubType"), exports);
@@ -0,0 +1,5 @@
1
+ export type IAccessType = {
2
+ id?: string;
3
+ name: string;
4
+ description: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export type IServiceLocation = {
2
+ id?: number;
3
+ service_id?: number;
4
+ district_id?: number;
5
+ city_id: number;
6
+ };
7
+ export type IService = {
8
+ id?: number;
9
+ unit_id: number | null;
10
+ access_type_id: number | null;
11
+ work_type_id: number | null;
12
+ locations: IServiceLocation[];
13
+ };
14
+ export declare const emptyService: IService;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emptyService = void 0;
4
+ exports.emptyService = {
5
+ unit_id: null,
6
+ access_type_id: null,
7
+ work_type_id: null,
8
+ locations: [],
9
+ };
@@ -0,0 +1,5 @@
1
+ export type IUnit = {
2
+ id?: number;
3
+ name: string;
4
+ should_validate: boolean;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ICategoryWorkType } from "../attributes/CategoryWorkType";
2
+ export type IWorkType = {
3
+ id?: number;
4
+ name: string;
5
+ categoryWorkTypes?: ICategoryWorkType[];
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from "./AccessType";
2
+ export * from "./Service";
3
+ export * from "./Unit";
4
+ export * from "./WorkType";
@@ -0,0 +1,20 @@
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("./AccessType"), exports);
18
+ __exportStar(require("./Service"), exports);
19
+ __exportStar(require("./Unit"), exports);
20
+ __exportStar(require("./WorkType"), exports);
@@ -0,0 +1,8 @@
1
+ export type IUsedProduct = {
2
+ id?: number;
3
+ condition_id?: number;
4
+ age_id?: number;
5
+ isDeliveryAvailable: undefined;
6
+ product_type_id: undefined;
7
+ };
8
+ export declare const emptyUsedProduct: IUsedProduct;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emptyUsedProduct = void 0;
4
+ exports.emptyUsedProduct = {
5
+ isDeliveryAvailable: undefined,
6
+ product_type_id: undefined,
7
+ };
@@ -0,0 +1 @@
1
+ export * from "./UsedProduct";
@@ -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("./UsedProduct"), exports);
@@ -0,0 +1,6 @@
1
+ export type IPermission = {
2
+ id?: number;
3
+ key: string;
4
+ description?: string | null;
5
+ };
6
+ export declare const AvailablePermissions: IPermission[];
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvailablePermissions = void 0;
4
+ exports.AvailablePermissions = [
5
+ { key: "City_Delete", description: "Permission to delete cities" },
6
+ ];
@@ -1,4 +1,4 @@
1
- export type PotentialUserType = {
1
+ export type IPotentialUser = {
2
2
  id: number;
3
3
  name?: string;
4
4
  phone_number: string;
@@ -21,14 +21,14 @@ export type PotentialUserType = {
21
21
  created_at?: string;
22
22
  subject_type?: string;
23
23
  };
24
- export type CreatePotentialUserPayload = {
24
+ export type CreatePotentialUserDto = {
25
25
  name?: string;
26
26
  phone_number: string;
27
27
  note?: string;
28
28
  user_id?: string;
29
29
  last_message_at?: Date | string;
30
30
  };
31
- export type UpdatePotentialUserPayload = {
31
+ export type UpdatePotentialUserDto = {
32
32
  id: number;
33
33
  name?: string;
34
34
  phone_number?: string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- export type RoleType = {
1
+ export type IRole = {
2
2
  id: number;
3
3
  name: string;
4
4
  isEnterDashboard?: boolean;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { IAd } from "../ad/Ad";
2
+ import { INotificationToken } from "../communication/NotificationToken";
3
+ import { ISocialMediaProfile } from "../media/SocialMediaProfile";
4
+ import { IWallet } from "./Wallet";
5
+ import { IRole } from "./Role";
6
+ export type IUser = {
7
+ id?: number;
8
+ name: string;
9
+ token: string;
10
+ phone: string;
11
+ referral_id?: number | null;
12
+ referral_code?: string | null;
13
+ role_id: number;
14
+ role: IRole;
15
+ phone_numbers?: Array<{
16
+ number: string;
17
+ name: string;
18
+ is_primary: boolean;
19
+ }>;
20
+ ads?: IAd[];
21
+ notificationTokens?: INotificationToken[];
22
+ socialMediaProfiles?: ISocialMediaProfile[];
23
+ referredUsers?: Array<{
24
+ id: number;
25
+ name: string;
26
+ phone: string;
27
+ }>;
28
+ wallet?: IWallet;
29
+ created_at?: string;
30
+ updated_at?: string;
31
+ blocked_at?: string | null;
32
+ };
33
+ export type UserOrNull = IUser | null;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- export type WalletType = {
1
+ export type IWallet = {
2
2
  id: number;
3
3
  user_id: number;
4
4
  balance: string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from "./User";
2
+ export * from "./Role";
3
+ export * from "./Permission";
4
+ export * from "./Wallet";
5
+ export * from "./PotentialUser";
@@ -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("./User"), exports);
18
+ __exportStar(require("./Role"), exports);
19
+ __exportStar(require("./Permission"), exports);
20
+ __exportStar(require("./Wallet"), exports);
21
+ __exportStar(require("./PotentialUser"), exports);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Converter = void 0;
4
+ const toNumber = (value) => {
5
+ const num = Number(value);
6
+ return isNaN(num) ? 0 : num;
7
+ };
8
+ exports.Converter = {
9
+ toNumber
10
+ };
@@ -0,0 +1,6 @@
1
+ import { LocalizedName } from "../types/common/LocalizedName";
2
+ declare const tn: (props: {
3
+ name: LocalizedName;
4
+ language: "en" | "ar";
5
+ }) => string;
6
+ export { tn };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tn = void 0;
4
+ const tn = (props) => {
5
+ const { name, language } = props;
6
+ return ((name === null || name === void 0 ? void 0 : name[language]) ||
7
+ (name === null || name === void 0 ? void 0 : name.en) ||
8
+ (name === null || name === void 0 ? void 0 : name.ar) ||
9
+ (typeof name === "string" ? name : ""));
10
+ };
11
+ exports.tn = tn;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateAdSchema = exports.createAdSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const baseAdCommon = zod_1.z.object({
6
+ title: zod_1.z.string().trim().optional(),
7
+ status_id: zod_1.z.coerce.number().int().positive().optional(),
8
+ description: zod_1.z.string().trim().optional().nullable(),
9
+ category_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
10
+ price: zod_1.z.coerce.number().min(0).optional().nullable(),
11
+ currency_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
12
+ negotiable: zod_1.z.coerce.boolean().optional().nullable(),
13
+ city_id: zod_1.z.coerce.number().int().positive().optional().nullable(),
14
+ latitude: zod_1.z.coerce.number().optional().nullable(),
15
+ longitude: zod_1.z.coerce.number().optional().nullable(),
16
+ media: zod_1.z.array(zod_1.z.any()).optional().nullable(),
17
+ // subject_type: SubjectTypeSchema.optional(),
18
+ base_price: zod_1.z.coerce.number().optional().nullable(),
19
+ contact_methods: zod_1.z.object({
20
+ by_message: zod_1.z.boolean().optional(),
21
+ by_whatsapp: zod_1.z.boolean().optional(),
22
+ by_call: zod_1.z.boolean().optional(),
23
+ }).optional().nullable(),
24
+ selected_phone: zod_1.z.string().trim().optional().nullable(),
25
+ });
26
+ exports.createAdSchema = zod_1.z.object({
27
+ user_id: zod_1.z.coerce.number().int().positive(),
28
+ id: zod_1.z.never().optional(), // disallow id on create
29
+ ...baseAdCommon.shape,
30
+ // motor: createMotorSchema
31
+ // .extend({ ad_id: z.coerce.number().optional() })
32
+ // .optional()
33
+ // .nullable(),
34
+ // // Make nested ad_id optional/nullable without changing original schemas
35
+ // property: createPropertySchema
36
+ // .extend({ ad_id: z.coerce.number().optional() })
37
+ // .optional()
38
+ // .nullable(),
39
+ // product: createUsedProductSchema
40
+ // .extend({ ad_id: z.coerce.number().optional() })
41
+ // .optional()
42
+ // .nullable(),
43
+ // service: createServiceSchema
44
+ // .extend({ ad_id: z.coerce.number().optional() })
45
+ // .optional()
46
+ // .nullable(),
47
+ });
48
+ exports.updateAdSchema = zod_1.z.object({
49
+ ...exports.createAdSchema.shape,
50
+ id: zod_1.z.coerce.number().int().positive(),
51
+ // motor: updateMotorSchema.optional().nullable(),
52
+ // property: updatePropertySchema.optional().nullable(),
53
+ // product: updateUsedProductSchema.optional().nullable(),
54
+ // service: updateServiceSchema.optional().nullable(),
55
+ });
@@ -0,0 +1,2 @@
1
+ export class ClassService {
2
+ }
@@ -0,0 +1,3 @@
1
+ export { ClassService } from './abstract/baseService';
2
+ export { Converter, Converter as con } from './utils/converter';
3
+ export * as TYPES from './types/index';
@@ -0,0 +1,22 @@
1
+ import { emptyMotor } from "../motor/Motor";
2
+ import { emptyProperty } from "../property/Property";
3
+ import { emptyService } from "../service/Service";
4
+ import { emptyUsedProduct } from "../used-product/UsedProduct";
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,3 @@
1
+ export * from "./Ad";
2
+ export * from "./AdLocation";
3
+ export * from "./AdPromotion";
@@ -0,0 +1,9 @@
1
+ // ==========================================================================================
2
+ // these types are shared between different ad types, so they are placed in a common folder
3
+ // ==========================================================================================
4
+ export * from "./Feature";
5
+ export * from "./OfferType";
6
+ export * from "./PriceType";
7
+ export * from "./PublisherType";
8
+ export * from "./UsedProductAge";
9
+ export * from "./UsedProductCondition";
@@ -0,0 +1,4 @@
1
+ export * from "./Category";
2
+ export * from "./CategoryWorkType";
3
+ export * from "./Color";
4
+ export * from "./Currency";
@@ -1,2 +1 @@
1
- // Utility to create an empty localized name object
2
1
  export const createEmptyLocalizedName = () => ({ en: "", ar: "" });
@@ -6,8 +6,8 @@ export var SubjectTableEnum;
6
6
  SubjectTableEnum["USED_PRODUCTS"] = "used_products";
7
7
  })(SubjectTableEnum || (SubjectTableEnum = {}));
8
8
  export const SubjectTypeOptions = [
9
- { value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: '#3B82F6', isAge: false, isCondition: false, isFeature: false },
10
- { value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: '#125b40ff', isAge: false, isCondition: false, isFeature: true },
11
- { value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: '#6b5212ff', isAge: true, isCondition: true, isFeature: false },
12
- { value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: '#6c4fc3ff', isAge: true, isCondition: true, isFeature: true },
9
+ { value: SubjectTableEnum.SERVICES, label: "Services", isCategory: true, color: "#3B82F6", isAge: false, isCondition: false, isFeature: false },
10
+ { value: SubjectTableEnum.MOTORS, label: "Motors", isCategory: true, color: "#125b40ff", isAge: false, isCondition: false, isFeature: true },
11
+ { value: SubjectTableEnum.USED_PRODUCTS, label: "Used Products", isCategory: true, color: "#6b5212ff", isAge: true, isCondition: true, isFeature: false },
12
+ { value: SubjectTableEnum.PROPERTIES, label: "properties", isCategory: false, color: "#6c4fc3ff", isAge: true, isCondition: true, isFeature: true },
13
13
  ];
@@ -0,0 +1,5 @@
1
+ export * from "./LocalizedName";
2
+ export * from "./Response";
3
+ export * from "./Subject";
4
+ export * from "./Status";
5
+ export * from "./Config";
@@ -0,0 +1,5 @@
1
+ export var MessageTypeEnum;
2
+ (function (MessageTypeEnum) {
3
+ MessageTypeEnum[MessageTypeEnum["TEXT"] = 1] = "TEXT";
4
+ MessageTypeEnum[MessageTypeEnum["PRICE_OFFER"] = 2] = "PRICE_OFFER";
5
+ })(MessageTypeEnum || (MessageTypeEnum = {}));
@@ -0,0 +1,5 @@
1
+ export * from "./AppStartScreen";
2
+ export * from "./Chat";
3
+ export * from "./Device";
4
+ export * from "./MessageTemplate";
5
+ export * from "./NotificationToken";
@@ -0,0 +1,3 @@
1
+ export * from "./AdminBoundary";
2
+ export * from "./City";
3
+ export * from "./District";
@@ -0,0 +1,62 @@
1
+ // common
2
+ export * as LocalizedName from "./common/LocalizedName";
3
+ export * as Response from "./common/Response";
4
+ export * as Subject from "./common/Subject";
5
+ export * as Status from "./common/Status";
6
+ export * as AccessType from "./service/AccessType";
7
+ export * as Config from "./common/Config";
8
+ // listings
9
+ export * as Ad from "./ad/Ad";
10
+ export * as AdLocation from "./ad/AdLocation";
11
+ export * as AdPromotion from "./ad/AdPromotion";
12
+ export * as Motor from "./motor/Motor";
13
+ export * as MotorTrim from "./motor/MotorTrim";
14
+ export * as Property from "./property/Property";
15
+ export * as PropertySubType from "./property/PropertySubType";
16
+ export * as Service from "./service/Service";
17
+ export * as UsedProduct from "./used-product/UsedProduct";
18
+ // attributes
19
+ export * as CarBody from "./motor/CarBody";
20
+ export * as Category from "./attributes/Category";
21
+ export * as CategoryWorkType from "./attributes/CategoryWorkType";
22
+ export * as Color from "./attributes/Color";
23
+ export * as Currency from "./attributes/Currency";
24
+ export * as Facility from "./property/Facility";
25
+ export * as Feature from "./ad-common/Feature";
26
+ export * as FuelType from "./motor/FuelType";
27
+ export * as LicenseType from "./property/LicenseType";
28
+ export * as OfferType from "./ad-common/OfferType";
29
+ export * as PriceType from "./ad-common/PriceType";
30
+ export * as PropertyStatus from "./property/PropertyStatus";
31
+ export * as PublisherType from "./ad-common/PublisherType";
32
+ export * as RegionalSpec from "./motor/RegionalSpec";
33
+ export * as Transmission from "./motor/Transmission";
34
+ export * as Unit from "./service/Unit";
35
+ export * as UsedProductAge from "./ad-common/UsedProductAge";
36
+ export * as UsedProductCondition from "./ad-common/UsedProductCondition";
37
+ export * as WorkType from "./service/WorkType";
38
+ // geo
39
+ export * as AdminBoundary from "./geo/AdminBoundary";
40
+ export * as City from "./geo/City";
41
+ export * as District from "./geo/District";
42
+ // user
43
+ export * as User from "./user/User";
44
+ export * as Role from "./user/Role";
45
+ export * as Permission from "./user/Permission";
46
+ export * as Wallet from "./user/Wallet";
47
+ export * as PotentialUser from "./user/PotentialUser";
48
+ // communication
49
+ export * as AppStartScreen from "./communication/AppStartScreen";
50
+ export * as Chat from "./communication/Chat";
51
+ export * as Device from "./communication/Device";
52
+ export * as MessageTemplate from "./communication/MessageTemplate";
53
+ export * as NotificationToken from "./communication/NotificationToken";
54
+ // media
55
+ export * as Media from "./media/Media";
56
+ export * as Image from "./media/Image";
57
+ export * as SocialMediaPlatform from "./media/SocialMediaPlatform";
58
+ export * as SocialMediaProfile from "./media/SocialMediaProfile";
59
+ // integrations
60
+ export * as Google from "./integrations/Google";
61
+ // analysis
62
+ export * as Analysis from "./analysis/AnalysisDailySnapshot";
@@ -0,0 +1 @@
1
+ export * from "./Google";
@@ -1,8 +1,11 @@
1
- import { emptyMotor } from "./MotorType";
2
- import { emptyUsedProduct } from "./UsedProductType";
3
- import { emptyProperty } from "./PropertyType";
4
- import { emptyService } from "./ServiceType";
5
- export const emptyValues = {
1
+ import { emptyMotor } from "./Motor";
2
+ import { emptyProperty } from "./Property";
3
+ import { emptyService } from "./Service";
4
+ import { emptyUsedProduct } from "./UsedProduct";
5
+ export const emptyAd = {
6
+ id: 0,
7
+ user_id: 0,
8
+ status_id: 0,
6
9
  title: "",
7
10
  description: "",
8
11
  negotiable: false,
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,3 @@
1
- // import { IMedia } from "../MediaType";
2
1
  export const emptyUsedProduct = {
3
2
  isDeliveryAvailable: undefined,
4
3
  product_type_id: undefined,
@@ -0,0 +1,5 @@
1
+ export * from "../ad";
2
+ export * from "../motor";
3
+ export * from "../property";
4
+ export * from "../service";
5
+ export * from "../used-product";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./Media";
2
+ export * from "./Image";
3
+ export * from "./SocialMediaPlatform";
4
+ export * from "./SocialMediaProfile";
@@ -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 {};