@porulle/core 0.10.8 → 0.13.0

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 (360) hide show
  1. package/dist/auth/auth-schema-guard.d.ts +2444 -0
  2. package/dist/auth/auth-schema-guard.d.ts.map +1 -0
  3. package/dist/auth/auth-schema-guard.js +113 -0
  4. package/dist/auth/auth-schema.d.ts +228 -0
  5. package/dist/auth/auth-schema.d.ts.map +1 -1
  6. package/dist/auth/auth-schema.js +24 -2
  7. package/dist/auth/middleware.d.ts +1 -0
  8. package/dist/auth/middleware.d.ts.map +1 -1
  9. package/dist/auth/middleware.js +13 -5
  10. package/dist/auth/org.d.ts +8 -2
  11. package/dist/auth/org.d.ts.map +1 -1
  12. package/dist/auth/org.js +12 -4
  13. package/dist/auth/organization-guard.d.ts +5 -0
  14. package/dist/auth/organization-guard.d.ts.map +1 -0
  15. package/dist/auth/organization-guard.js +124 -0
  16. package/dist/auth/permissions.d.ts +10 -0
  17. package/dist/auth/permissions.d.ts.map +1 -1
  18. package/dist/auth/permissions.js +31 -7
  19. package/dist/auth/role-authority.d.ts +44 -0
  20. package/dist/auth/role-authority.d.ts.map +1 -0
  21. package/dist/auth/role-authority.js +85 -0
  22. package/dist/auth/setup.d.ts.map +1 -1
  23. package/dist/auth/setup.js +17 -0
  24. package/dist/auth/strict-org-resolution.d.ts.map +1 -1
  25. package/dist/auth/strict-org-resolution.js +9 -1
  26. package/dist/auth/types.d.ts +1 -1
  27. package/dist/auth/types.d.ts.map +1 -1
  28. package/dist/config/defaults.d.ts.map +1 -1
  29. package/dist/config/defaults.js +2 -0
  30. package/dist/config/types.d.ts +33 -4
  31. package/dist/config/types.d.ts.map +1 -1
  32. package/dist/hooks/checkout.d.ts.map +1 -1
  33. package/dist/hooks/checkout.js +10 -9
  34. package/dist/index.d.ts +9 -6
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +5 -3
  37. package/dist/interfaces/rest/audit-middleware.d.ts.map +1 -1
  38. package/dist/interfaces/rest/audit-middleware.js +2 -0
  39. package/dist/interfaces/rest/customer-portal.d.ts.map +1 -1
  40. package/dist/interfaces/rest/customer-portal.js +9 -8
  41. package/dist/interfaces/rest/index.d.ts.map +1 -1
  42. package/dist/interfaces/rest/index.js +4 -0
  43. package/dist/interfaces/rest/route-coverage.d.ts +14 -0
  44. package/dist/interfaces/rest/route-coverage.d.ts.map +1 -0
  45. package/dist/interfaces/rest/route-coverage.js +81 -0
  46. package/dist/interfaces/rest/router.d.ts +7 -2
  47. package/dist/interfaces/rest/router.d.ts.map +1 -1
  48. package/dist/interfaces/rest/router.js +8 -4
  49. package/dist/interfaces/rest/routes/admin/compensation-failures.d.ts.map +1 -1
  50. package/dist/interfaces/rest/routes/admin/compensation-failures.js +7 -5
  51. package/dist/interfaces/rest/routes/admin/custom-field-proposals.d.ts +5 -0
  52. package/dist/interfaces/rest/routes/admin/custom-field-proposals.d.ts.map +1 -0
  53. package/dist/interfaces/rest/routes/admin/custom-field-proposals.js +22 -0
  54. package/dist/interfaces/rest/routes/admin/entity-field-definitions.d.ts +5 -0
  55. package/dist/interfaces/rest/routes/admin/entity-field-definitions.d.ts.map +1 -0
  56. package/dist/interfaces/rest/routes/admin/entity-field-definitions.js +39 -0
  57. package/dist/interfaces/rest/routes/admin/permissions.d.ts +1 -1
  58. package/dist/interfaces/rest/routes/admin/permissions.d.ts.map +1 -1
  59. package/dist/interfaces/rest/routes/admin/permissions.js +2 -0
  60. package/dist/interfaces/rest/routes/admin/staff.d.ts.map +1 -1
  61. package/dist/interfaces/rest/routes/admin/staff.js +126 -66
  62. package/dist/interfaces/rest/routes/admin-jobs.js +3 -3
  63. package/dist/interfaces/rest/routes/audit.js +3 -3
  64. package/dist/interfaces/rest/routes/carts.d.ts.map +1 -1
  65. package/dist/interfaces/rest/routes/carts.js +13 -10
  66. package/dist/interfaces/rest/routes/catalog.d.ts.map +1 -1
  67. package/dist/interfaces/rest/routes/catalog.js +47 -4
  68. package/dist/interfaces/rest/routes/checkout.d.ts.map +1 -1
  69. package/dist/interfaces/rest/routes/checkout.js +30 -35
  70. package/dist/interfaces/rest/routes/documents.d.ts.map +1 -1
  71. package/dist/interfaces/rest/routes/documents.js +10 -5
  72. package/dist/interfaces/rest/routes/inventory.d.ts.map +1 -1
  73. package/dist/interfaces/rest/routes/inventory.js +2 -0
  74. package/dist/interfaces/rest/routes/media.d.ts.map +1 -1
  75. package/dist/interfaces/rest/routes/media.js +7 -3
  76. package/dist/interfaces/rest/routes/orders.d.ts.map +1 -1
  77. package/dist/interfaces/rest/routes/orders.js +26 -8
  78. package/dist/interfaces/rest/routes/pricing.js +2 -2
  79. package/dist/interfaces/rest/routes/promotions.d.ts.map +1 -1
  80. package/dist/interfaces/rest/routes/promotions.js +13 -10
  81. package/dist/interfaces/rest/routes/search.d.ts.map +1 -1
  82. package/dist/interfaces/rest/routes/search.js +14 -1
  83. package/dist/interfaces/rest/schemas/admin-custom-field-proposals.d.ts +134 -0
  84. package/dist/interfaces/rest/schemas/admin-custom-field-proposals.d.ts.map +1 -0
  85. package/dist/interfaces/rest/schemas/admin-custom-field-proposals.js +26 -0
  86. package/dist/interfaces/rest/schemas/admin-entity-field-definitions.d.ts +592 -0
  87. package/dist/interfaces/rest/schemas/admin-entity-field-definitions.d.ts.map +1 -0
  88. package/dist/interfaces/rest/schemas/admin-entity-field-definitions.js +109 -0
  89. package/dist/interfaces/rest/schemas/carts.d.ts +7 -0
  90. package/dist/interfaces/rest/schemas/carts.d.ts.map +1 -1
  91. package/dist/interfaces/rest/schemas/catalog.d.ts +1364 -401
  92. package/dist/interfaces/rest/schemas/catalog.d.ts.map +1 -1
  93. package/dist/interfaces/rest/schemas/catalog.js +86 -0
  94. package/dist/interfaces/rest/schemas/customer-portal.d.ts +35 -0
  95. package/dist/interfaces/rest/schemas/customer-portal.d.ts.map +1 -1
  96. package/dist/interfaces/rest/schemas/orders.d.ts +204 -0
  97. package/dist/interfaces/rest/schemas/orders.d.ts.map +1 -1
  98. package/dist/interfaces/rest/schemas/pricing.d.ts +1 -0
  99. package/dist/interfaces/rest/schemas/pricing.d.ts.map +1 -1
  100. package/dist/interfaces/rest/schemas/responses.d.ts +71 -0
  101. package/dist/interfaces/rest/schemas/responses.d.ts.map +1 -1
  102. package/dist/interfaces/rest/schemas/search.d.ts +1 -0
  103. package/dist/interfaces/rest/schemas/search.d.ts.map +1 -1
  104. package/dist/interfaces/rest/schemas/search.js +1 -0
  105. package/dist/interfaces/rest/utils.d.ts +15 -0
  106. package/dist/interfaces/rest/utils.d.ts.map +1 -1
  107. package/dist/interfaces/rest/utils.js +45 -2
  108. package/dist/kernel/compensation/executor.js +2 -2
  109. package/dist/kernel/database/tx-context.d.ts +8 -0
  110. package/dist/kernel/database/tx-context.d.ts.map +1 -1
  111. package/dist/kernel/database/tx-context.js +13 -0
  112. package/dist/kernel/hooks/create-context.d.ts +2 -0
  113. package/dist/kernel/hooks/create-context.d.ts.map +1 -1
  114. package/dist/kernel/hooks/create-context.js +1 -0
  115. package/dist/kernel/hooks/types.d.ts +2 -0
  116. package/dist/kernel/hooks/types.d.ts.map +1 -1
  117. package/dist/kernel/plugin/manifest.d.ts.map +1 -1
  118. package/dist/kernel/plugin/manifest.js +9 -5
  119. package/dist/modules/analytics/service.js +2 -2
  120. package/dist/modules/audit/service.js +3 -3
  121. package/dist/modules/cart/repository/index.d.ts +13 -7
  122. package/dist/modules/cart/repository/index.d.ts.map +1 -1
  123. package/dist/modules/cart/repository/index.js +16 -10
  124. package/dist/modules/cart/schema.d.ts +17 -0
  125. package/dist/modules/cart/schema.d.ts.map +1 -1
  126. package/dist/modules/cart/schema.js +4 -0
  127. package/dist/modules/cart/service.d.ts +22 -9
  128. package/dist/modules/cart/service.d.ts.map +1 -1
  129. package/dist/modules/cart/service.js +57 -33
  130. package/dist/modules/catalog/brand-service.js +7 -7
  131. package/dist/modules/catalog/category-service.js +7 -7
  132. package/dist/modules/catalog/entity-service.d.ts +19 -10
  133. package/dist/modules/catalog/entity-service.d.ts.map +1 -1
  134. package/dist/modules/catalog/entity-service.js +180 -51
  135. package/dist/modules/catalog/module.d.ts +6 -1
  136. package/dist/modules/catalog/module.d.ts.map +1 -1
  137. package/dist/modules/catalog/module.js +6 -1
  138. package/dist/modules/catalog/ownership.d.ts +5 -0
  139. package/dist/modules/catalog/ownership.d.ts.map +1 -0
  140. package/dist/modules/catalog/ownership.js +11 -0
  141. package/dist/modules/catalog/read-policy.d.ts +9 -0
  142. package/dist/modules/catalog/read-policy.d.ts.map +1 -0
  143. package/dist/modules/catalog/read-policy.js +8 -0
  144. package/dist/modules/catalog/repository/index.d.ts +55 -3
  145. package/dist/modules/catalog/repository/index.d.ts.map +1 -1
  146. package/dist/modules/catalog/repository/index.js +335 -6
  147. package/dist/modules/catalog/revision.d.ts +4 -0
  148. package/dist/modules/catalog/revision.d.ts.map +1 -0
  149. package/dist/modules/catalog/revision.js +33 -0
  150. package/dist/modules/catalog/schema.d.ts +979 -110
  151. package/dist/modules/catalog/schema.d.ts.map +1 -1
  152. package/dist/modules/catalog/schema.js +112 -2
  153. package/dist/modules/catalog/schemas.d.ts +2 -0
  154. package/dist/modules/catalog/schemas.d.ts.map +1 -1
  155. package/dist/modules/catalog/schemas.js +2 -0
  156. package/dist/modules/catalog/service.d.ts +80 -15
  157. package/dist/modules/catalog/service.d.ts.map +1 -1
  158. package/dist/modules/catalog/service.js +522 -14
  159. package/dist/modules/channels/adapter.d.ts +85 -0
  160. package/dist/modules/channels/adapter.d.ts.map +1 -1
  161. package/dist/modules/channels/adapter.js +9 -1
  162. package/dist/modules/customers/module.d.ts.map +1 -1
  163. package/dist/modules/customers/module.js +1 -0
  164. package/dist/modules/customers/service.d.ts +2 -0
  165. package/dist/modules/customers/service.d.ts.map +1 -1
  166. package/dist/modules/customers/service.js +21 -20
  167. package/dist/modules/documents/module.d.ts.map +1 -1
  168. package/dist/modules/documents/module.js +1 -0
  169. package/dist/modules/documents/service.d.ts +18 -4
  170. package/dist/modules/documents/service.d.ts.map +1 -1
  171. package/dist/modules/documents/service.js +54 -16
  172. package/dist/modules/fulfillment/module.d.ts.map +1 -1
  173. package/dist/modules/fulfillment/module.js +1 -0
  174. package/dist/modules/fulfillment/service.d.ts +2 -0
  175. package/dist/modules/fulfillment/service.d.ts.map +1 -1
  176. package/dist/modules/fulfillment/service.js +15 -6
  177. package/dist/modules/inventory/service.d.ts.map +1 -1
  178. package/dist/modules/inventory/service.js +15 -14
  179. package/dist/modules/media/module.d.ts +68 -0
  180. package/dist/modules/media/module.d.ts.map +1 -1
  181. package/dist/modules/media/module.js +2 -0
  182. package/dist/modules/media/schema.d.ts +70 -0
  183. package/dist/modules/media/schema.d.ts.map +1 -1
  184. package/dist/modules/media/schema.js +20 -2
  185. package/dist/modules/media/service.d.ts +8 -1
  186. package/dist/modules/media/service.d.ts.map +1 -1
  187. package/dist/modules/media/service.js +71 -23
  188. package/dist/modules/orders/guest-access.d.ts +27 -0
  189. package/dist/modules/orders/guest-access.d.ts.map +1 -0
  190. package/dist/modules/orders/guest-access.js +46 -0
  191. package/dist/modules/orders/module.d.ts.map +1 -1
  192. package/dist/modules/orders/module.js +1 -0
  193. package/dist/modules/orders/quote.d.ts.map +1 -1
  194. package/dist/modules/orders/quote.js +1 -0
  195. package/dist/modules/orders/repository/index.d.ts +1 -1
  196. package/dist/modules/orders/repository/index.d.ts.map +1 -1
  197. package/dist/modules/orders/repository/index.js +2 -2
  198. package/dist/modules/orders/schema.d.ts +17 -0
  199. package/dist/modules/orders/schema.d.ts.map +1 -1
  200. package/dist/modules/orders/schema.js +5 -3
  201. package/dist/modules/orders/service.d.ts +16 -7
  202. package/dist/modules/orders/service.d.ts.map +1 -1
  203. package/dist/modules/orders/service.js +184 -55
  204. package/dist/modules/pricing/module.d.ts.map +1 -1
  205. package/dist/modules/pricing/module.js +1 -0
  206. package/dist/modules/pricing/schema.d.ts +17 -0
  207. package/dist/modules/pricing/schema.d.ts.map +1 -1
  208. package/dist/modules/pricing/schema.js +1 -0
  209. package/dist/modules/pricing/schemas.d.ts +1 -0
  210. package/dist/modules/pricing/schemas.d.ts.map +1 -1
  211. package/dist/modules/pricing/schemas.js +1 -0
  212. package/dist/modules/pricing/service.d.ts +2 -0
  213. package/dist/modules/pricing/service.d.ts.map +1 -1
  214. package/dist/modules/pricing/service.js +18 -12
  215. package/dist/modules/promotions/module.d.ts.map +1 -1
  216. package/dist/modules/promotions/module.js +1 -0
  217. package/dist/modules/promotions/service.d.ts +3 -0
  218. package/dist/modules/promotions/service.d.ts.map +1 -1
  219. package/dist/modules/promotions/service.js +19 -11
  220. package/dist/modules/search/adapter.d.ts +8 -0
  221. package/dist/modules/search/adapter.d.ts.map +1 -1
  222. package/dist/modules/search/module.d.ts.map +1 -1
  223. package/dist/modules/search/module.js +3 -0
  224. package/dist/modules/search/service.d.ts +5 -0
  225. package/dist/modules/search/service.d.ts.map +1 -1
  226. package/dist/modules/search/service.js +131 -11
  227. package/dist/modules/settings/module.d.ts.map +1 -1
  228. package/dist/modules/settings/module.js +1 -0
  229. package/dist/modules/settings/service.d.ts +3 -0
  230. package/dist/modules/settings/service.d.ts.map +1 -1
  231. package/dist/modules/settings/service.js +6 -4
  232. package/dist/modules/shipping/service.js +9 -9
  233. package/dist/modules/tax/module.d.ts.map +1 -1
  234. package/dist/modules/tax/module.js +1 -0
  235. package/dist/modules/tax/service.d.ts +3 -0
  236. package/dist/modules/tax/service.d.ts.map +1 -1
  237. package/dist/modules/tax/service.js +11 -9
  238. package/dist/modules/webhooks/hook.js +2 -2
  239. package/dist/modules/webhooks/module.d.ts.map +1 -1
  240. package/dist/modules/webhooks/module.js +1 -0
  241. package/dist/modules/webhooks/service.d.ts +2 -0
  242. package/dist/modules/webhooks/service.d.ts.map +1 -1
  243. package/dist/modules/webhooks/service.js +4 -4
  244. package/dist/runtime/kernel-modules.d.ts +73 -0
  245. package/dist/runtime/kernel-modules.d.ts.map +1 -1
  246. package/dist/runtime/server.d.ts.map +1 -1
  247. package/dist/runtime/server.js +10 -2
  248. package/dist/test-utils/create-pglite-adapter.d.ts.map +1 -1
  249. package/dist/test-utils/create-pglite-adapter.js +35 -13
  250. package/dist/test-utils/create-test-config.d.ts.map +1 -1
  251. package/dist/test-utils/create-test-config.js +4 -0
  252. package/dist/test-utils/rest-api-test-utils.d.ts.map +1 -1
  253. package/dist/test-utils/rest-api-test-utils.js +2 -0
  254. package/dist/test-utils/test-actors.js +2 -2
  255. package/dist/utils/id.d.ts +2 -0
  256. package/dist/utils/id.d.ts.map +1 -1
  257. package/dist/utils/id.js +11 -0
  258. package/package.json +6 -5
  259. package/src/auth/auth-schema-guard.ts +143 -0
  260. package/src/auth/auth-schema.ts +50 -19
  261. package/src/auth/middleware.ts +17 -5
  262. package/src/auth/org.ts +15 -3
  263. package/src/auth/organization-guard.ts +158 -0
  264. package/src/auth/permissions.ts +31 -8
  265. package/src/auth/role-authority.ts +107 -0
  266. package/src/auth/setup.ts +17 -0
  267. package/src/auth/strict-org-resolution.ts +7 -1
  268. package/src/auth/types.ts +1 -1
  269. package/src/config/defaults.ts +2 -0
  270. package/src/config/types.ts +32 -4
  271. package/src/hooks/checkout.ts +19 -12
  272. package/src/index.ts +30 -6
  273. package/src/interfaces/rest/audit-middleware.ts +2 -0
  274. package/src/interfaces/rest/customer-portal.ts +31 -24
  275. package/src/interfaces/rest/index.ts +4 -0
  276. package/src/interfaces/rest/route-coverage.ts +103 -0
  277. package/src/interfaces/rest/router.ts +16 -10
  278. package/src/interfaces/rest/routes/admin/compensation-failures.ts +8 -5
  279. package/src/interfaces/rest/routes/admin/custom-field-proposals.ts +37 -0
  280. package/src/interfaces/rest/routes/admin/entity-field-definitions.ts +89 -0
  281. package/src/interfaces/rest/routes/admin/permissions.ts +3 -1
  282. package/src/interfaces/rest/routes/admin/staff.ts +161 -72
  283. package/src/interfaces/rest/routes/admin-jobs.ts +3 -3
  284. package/src/interfaces/rest/routes/audit.ts +3 -3
  285. package/src/interfaces/rest/routes/carts.ts +17 -7
  286. package/src/interfaces/rest/routes/catalog.ts +96 -0
  287. package/src/interfaces/rest/routes/checkout.ts +41 -38
  288. package/src/interfaces/rest/routes/documents.ts +15 -1
  289. package/src/interfaces/rest/routes/inventory.ts +2 -0
  290. package/src/interfaces/rest/routes/media.ts +8 -3
  291. package/src/interfaces/rest/routes/orders.ts +27 -8
  292. package/src/interfaces/rest/routes/pricing.ts +2 -2
  293. package/src/interfaces/rest/routes/promotions.ts +12 -9
  294. package/src/interfaces/rest/routes/search.ts +19 -1
  295. package/src/interfaces/rest/schemas/admin-custom-field-proposals.ts +29 -0
  296. package/src/interfaces/rest/schemas/admin-entity-field-definitions.ts +120 -0
  297. package/src/interfaces/rest/schemas/catalog.ts +92 -0
  298. package/src/interfaces/rest/schemas/search.ts +2 -0
  299. package/src/interfaces/rest/utils.ts +61 -2
  300. package/src/kernel/compensation/executor.ts +2 -2
  301. package/src/kernel/database/tx-context.ts +25 -0
  302. package/src/kernel/hooks/create-context.ts +3 -0
  303. package/src/kernel/hooks/types.ts +2 -0
  304. package/src/kernel/plugin/manifest.ts +9 -5
  305. package/src/modules/analytics/service.ts +2 -2
  306. package/src/modules/audit/service.ts +3 -3
  307. package/src/modules/cart/repository/index.ts +22 -8
  308. package/src/modules/cart/schema.ts +4 -0
  309. package/src/modules/cart/service.ts +62 -27
  310. package/src/modules/catalog/brand-service.ts +7 -7
  311. package/src/modules/catalog/category-service.ts +7 -7
  312. package/src/modules/catalog/entity-service.ts +188 -53
  313. package/src/modules/catalog/module.ts +15 -0
  314. package/src/modules/catalog/ownership.ts +17 -0
  315. package/src/modules/catalog/read-policy.ts +16 -0
  316. package/src/modules/catalog/repository/index.ts +566 -4
  317. package/src/modules/catalog/revision.ts +35 -0
  318. package/src/modules/catalog/schema.ts +169 -1
  319. package/src/modules/catalog/schemas.ts +2 -0
  320. package/src/modules/catalog/service.ts +766 -26
  321. package/src/modules/channels/adapter.ts +107 -1
  322. package/src/modules/customers/module.ts +2 -0
  323. package/src/modules/customers/service.ts +23 -22
  324. package/src/modules/documents/module.ts +2 -0
  325. package/src/modules/documents/service.ts +74 -11
  326. package/src/modules/fulfillment/module.ts +2 -0
  327. package/src/modules/fulfillment/service.ts +17 -6
  328. package/src/modules/inventory/service.ts +15 -24
  329. package/src/modules/media/module.ts +2 -0
  330. package/src/modules/media/schema.ts +23 -2
  331. package/src/modules/media/service.ts +89 -28
  332. package/src/modules/orders/guest-access.ts +55 -0
  333. package/src/modules/orders/module.ts +1 -0
  334. package/src/modules/orders/quote.ts +1 -0
  335. package/src/modules/orders/repository/index.ts +2 -0
  336. package/src/modules/orders/schema.ts +5 -3
  337. package/src/modules/orders/service.ts +302 -52
  338. package/src/modules/pricing/module.ts +2 -0
  339. package/src/modules/pricing/schema.ts +1 -0
  340. package/src/modules/pricing/schemas.ts +1 -0
  341. package/src/modules/pricing/service.ts +21 -18
  342. package/src/modules/promotions/module.ts +2 -0
  343. package/src/modules/promotions/service.ts +25 -16
  344. package/src/modules/search/adapter.ts +8 -0
  345. package/src/modules/search/module.ts +3 -0
  346. package/src/modules/search/service.ts +142 -12
  347. package/src/modules/settings/module.ts +2 -0
  348. package/src/modules/settings/service.ts +8 -4
  349. package/src/modules/shipping/service.ts +9 -9
  350. package/src/modules/tax/module.ts +1 -0
  351. package/src/modules/tax/service.ts +13 -9
  352. package/src/modules/webhooks/hook.ts +2 -2
  353. package/src/modules/webhooks/module.ts +2 -0
  354. package/src/modules/webhooks/service.ts +6 -4
  355. package/src/runtime/server.ts +16 -2
  356. package/src/test-utils/create-pglite-adapter.ts +34 -12
  357. package/src/test-utils/create-test-config.ts +10 -6
  358. package/src/test-utils/rest-api-test-utils.ts +2 -0
  359. package/src/test-utils/test-actors.ts +2 -2
  360. package/src/utils/id.ts +20 -0
@@ -0,0 +1,592 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ declare const CreateBody: z.ZodObject<{
3
+ entityType: z.ZodString;
4
+ name: z.ZodString;
5
+ type: z.ZodEnum<{
6
+ number: "number";
7
+ boolean: "boolean";
8
+ json: "json";
9
+ date: "date";
10
+ text: "text";
11
+ relation: "relation";
12
+ select: "select";
13
+ }>;
14
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ filterable: z.ZodOptional<z.ZodBoolean>;
18
+ localized: z.ZodOptional<z.ZodBoolean>;
19
+ sortOrder: z.ZodOptional<z.ZodNumber>;
20
+ }, z.core.$strip>;
21
+ declare const UpdateBody: z.ZodObject<{
22
+ entityType: z.ZodOptional<z.ZodString>;
23
+ name: z.ZodOptional<z.ZodString>;
24
+ type: z.ZodOptional<z.ZodEnum<{
25
+ number: "number";
26
+ boolean: "boolean";
27
+ json: "json";
28
+ date: "date";
29
+ text: "text";
30
+ relation: "relation";
31
+ select: "select";
32
+ }>>;
33
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
35
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ filterable: z.ZodOptional<z.ZodBoolean>;
37
+ localized: z.ZodOptional<z.ZodBoolean>;
38
+ sortOrder: z.ZodOptional<z.ZodNumber>;
39
+ }, z.core.$strip>;
40
+ export declare const createEntityFieldDefinitionRoute: {
41
+ method: "post";
42
+ path: "/entity-field-definitions";
43
+ tags: string[];
44
+ summary: string;
45
+ request: {
46
+ body: {
47
+ content: {
48
+ "application/json": {
49
+ schema: z.ZodObject<{
50
+ entityType: z.ZodString;
51
+ name: z.ZodString;
52
+ type: z.ZodEnum<{
53
+ number: "number";
54
+ boolean: "boolean";
55
+ json: "json";
56
+ date: "date";
57
+ text: "text";
58
+ relation: "relation";
59
+ select: "select";
60
+ }>;
61
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
63
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ filterable: z.ZodOptional<z.ZodBoolean>;
65
+ localized: z.ZodOptional<z.ZodBoolean>;
66
+ sortOrder: z.ZodOptional<z.ZodNumber>;
67
+ }, z.core.$strip>;
68
+ };
69
+ };
70
+ required: true;
71
+ };
72
+ };
73
+ responses: {
74
+ 400: {
75
+ readonly content: {
76
+ readonly "application/json": {
77
+ readonly schema: z.ZodObject<{
78
+ error: z.ZodObject<{
79
+ code: z.ZodString;
80
+ message: z.ZodString;
81
+ details: z.ZodOptional<z.ZodObject<{
82
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
+ path: z.ZodString;
84
+ message: z.ZodString;
85
+ code: z.ZodString;
86
+ }, z.core.$strip>>>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>;
89
+ }, z.core.$strip>;
90
+ };
91
+ };
92
+ readonly description: "Business logic error.";
93
+ };
94
+ 401: {
95
+ readonly content: {
96
+ readonly "application/json": {
97
+ readonly schema: z.ZodObject<{
98
+ error: z.ZodObject<{
99
+ code: z.ZodString;
100
+ message: z.ZodString;
101
+ details: z.ZodOptional<z.ZodObject<{
102
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ path: z.ZodString;
104
+ message: z.ZodString;
105
+ code: z.ZodString;
106
+ }, z.core.$strip>>>;
107
+ }, z.core.$strip>>;
108
+ }, z.core.$strip>;
109
+ }, z.core.$strip>;
110
+ };
111
+ };
112
+ readonly description: "Authentication required.";
113
+ };
114
+ 403: {
115
+ readonly content: {
116
+ readonly "application/json": {
117
+ readonly schema: z.ZodObject<{
118
+ error: z.ZodObject<{
119
+ code: z.ZodString;
120
+ message: z.ZodString;
121
+ details: z.ZodOptional<z.ZodObject<{
122
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
+ path: z.ZodString;
124
+ message: z.ZodString;
125
+ code: z.ZodString;
126
+ }, z.core.$strip>>>;
127
+ }, z.core.$strip>>;
128
+ }, z.core.$strip>;
129
+ }, z.core.$strip>;
130
+ };
131
+ };
132
+ readonly description: "Insufficient permissions.";
133
+ };
134
+ 404: {
135
+ readonly content: {
136
+ readonly "application/json": {
137
+ readonly schema: z.ZodObject<{
138
+ error: z.ZodObject<{
139
+ code: z.ZodString;
140
+ message: z.ZodString;
141
+ details: z.ZodOptional<z.ZodObject<{
142
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
+ path: z.ZodString;
144
+ message: z.ZodString;
145
+ code: z.ZodString;
146
+ }, z.core.$strip>>>;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>;
149
+ }, z.core.$strip>;
150
+ };
151
+ };
152
+ readonly description: "Resource not found.";
153
+ };
154
+ 422: {
155
+ readonly content: {
156
+ readonly "application/json": {
157
+ readonly schema: z.ZodObject<{
158
+ error: z.ZodObject<{
159
+ code: z.ZodString;
160
+ message: z.ZodString;
161
+ details: z.ZodOptional<z.ZodObject<{
162
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
163
+ path: z.ZodString;
164
+ message: z.ZodString;
165
+ code: z.ZodString;
166
+ }, z.core.$strip>>>;
167
+ }, z.core.$strip>>;
168
+ }, z.core.$strip>;
169
+ }, z.core.$strip>;
170
+ };
171
+ };
172
+ readonly description: "Validation error.";
173
+ };
174
+ 201: {
175
+ content: {
176
+ "application/json": {
177
+ schema: z.ZodObject<{
178
+ data: z.ZodAny;
179
+ }, z.core.$strip>;
180
+ };
181
+ };
182
+ description: string;
183
+ };
184
+ };
185
+ } & {
186
+ getRoutingPath(): "/entity-field-definitions";
187
+ };
188
+ export declare const listEntityFieldDefinitionsRoute: {
189
+ method: "get";
190
+ path: "/entity-field-definitions";
191
+ tags: string[];
192
+ summary: string;
193
+ request: {
194
+ query: z.ZodObject<{
195
+ entityType: z.ZodOptional<z.ZodString>;
196
+ }, z.core.$strip>;
197
+ };
198
+ responses: {
199
+ 400: {
200
+ readonly content: {
201
+ readonly "application/json": {
202
+ readonly schema: z.ZodObject<{
203
+ error: z.ZodObject<{
204
+ code: z.ZodString;
205
+ message: z.ZodString;
206
+ details: z.ZodOptional<z.ZodObject<{
207
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
208
+ path: z.ZodString;
209
+ message: z.ZodString;
210
+ code: z.ZodString;
211
+ }, z.core.$strip>>>;
212
+ }, z.core.$strip>>;
213
+ }, z.core.$strip>;
214
+ }, z.core.$strip>;
215
+ };
216
+ };
217
+ readonly description: "Business logic error.";
218
+ };
219
+ 401: {
220
+ readonly content: {
221
+ readonly "application/json": {
222
+ readonly schema: z.ZodObject<{
223
+ error: z.ZodObject<{
224
+ code: z.ZodString;
225
+ message: z.ZodString;
226
+ details: z.ZodOptional<z.ZodObject<{
227
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
228
+ path: z.ZodString;
229
+ message: z.ZodString;
230
+ code: z.ZodString;
231
+ }, z.core.$strip>>>;
232
+ }, z.core.$strip>>;
233
+ }, z.core.$strip>;
234
+ }, z.core.$strip>;
235
+ };
236
+ };
237
+ readonly description: "Authentication required.";
238
+ };
239
+ 403: {
240
+ readonly content: {
241
+ readonly "application/json": {
242
+ readonly schema: z.ZodObject<{
243
+ error: z.ZodObject<{
244
+ code: z.ZodString;
245
+ message: z.ZodString;
246
+ details: z.ZodOptional<z.ZodObject<{
247
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
248
+ path: z.ZodString;
249
+ message: z.ZodString;
250
+ code: z.ZodString;
251
+ }, z.core.$strip>>>;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>;
254
+ }, z.core.$strip>;
255
+ };
256
+ };
257
+ readonly description: "Insufficient permissions.";
258
+ };
259
+ 404: {
260
+ readonly content: {
261
+ readonly "application/json": {
262
+ readonly schema: z.ZodObject<{
263
+ error: z.ZodObject<{
264
+ code: z.ZodString;
265
+ message: z.ZodString;
266
+ details: z.ZodOptional<z.ZodObject<{
267
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
+ path: z.ZodString;
269
+ message: z.ZodString;
270
+ code: z.ZodString;
271
+ }, z.core.$strip>>>;
272
+ }, z.core.$strip>>;
273
+ }, z.core.$strip>;
274
+ }, z.core.$strip>;
275
+ };
276
+ };
277
+ readonly description: "Resource not found.";
278
+ };
279
+ 422: {
280
+ readonly content: {
281
+ readonly "application/json": {
282
+ readonly schema: z.ZodObject<{
283
+ error: z.ZodObject<{
284
+ code: z.ZodString;
285
+ message: z.ZodString;
286
+ details: z.ZodOptional<z.ZodObject<{
287
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
+ path: z.ZodString;
289
+ message: z.ZodString;
290
+ code: z.ZodString;
291
+ }, z.core.$strip>>>;
292
+ }, z.core.$strip>>;
293
+ }, z.core.$strip>;
294
+ }, z.core.$strip>;
295
+ };
296
+ };
297
+ readonly description: "Validation error.";
298
+ };
299
+ 200: {
300
+ content: {
301
+ "application/json": {
302
+ schema: z.ZodObject<{
303
+ data: z.ZodAny;
304
+ }, z.core.$strip>;
305
+ };
306
+ };
307
+ description: string;
308
+ };
309
+ };
310
+ } & {
311
+ getRoutingPath(): "/entity-field-definitions";
312
+ };
313
+ export declare const updateEntityFieldDefinitionRoute: {
314
+ method: "patch";
315
+ path: "/entity-field-definitions/{id}";
316
+ tags: string[];
317
+ summary: string;
318
+ request: {
319
+ params: z.ZodObject<{
320
+ id: z.ZodUUID;
321
+ }, z.core.$strip>;
322
+ body: {
323
+ content: {
324
+ "application/json": {
325
+ schema: z.ZodObject<{
326
+ entityType: z.ZodOptional<z.ZodString>;
327
+ name: z.ZodOptional<z.ZodString>;
328
+ type: z.ZodOptional<z.ZodEnum<{
329
+ number: "number";
330
+ boolean: "boolean";
331
+ json: "json";
332
+ date: "date";
333
+ text: "text";
334
+ relation: "relation";
335
+ select: "select";
336
+ }>>;
337
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
339
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ filterable: z.ZodOptional<z.ZodBoolean>;
341
+ localized: z.ZodOptional<z.ZodBoolean>;
342
+ sortOrder: z.ZodOptional<z.ZodNumber>;
343
+ }, z.core.$strip>;
344
+ };
345
+ };
346
+ required: true;
347
+ };
348
+ };
349
+ responses: {
350
+ 400: {
351
+ readonly content: {
352
+ readonly "application/json": {
353
+ readonly schema: z.ZodObject<{
354
+ error: z.ZodObject<{
355
+ code: z.ZodString;
356
+ message: z.ZodString;
357
+ details: z.ZodOptional<z.ZodObject<{
358
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ path: z.ZodString;
360
+ message: z.ZodString;
361
+ code: z.ZodString;
362
+ }, z.core.$strip>>>;
363
+ }, z.core.$strip>>;
364
+ }, z.core.$strip>;
365
+ }, z.core.$strip>;
366
+ };
367
+ };
368
+ readonly description: "Business logic error.";
369
+ };
370
+ 401: {
371
+ readonly content: {
372
+ readonly "application/json": {
373
+ readonly schema: z.ZodObject<{
374
+ error: z.ZodObject<{
375
+ code: z.ZodString;
376
+ message: z.ZodString;
377
+ details: z.ZodOptional<z.ZodObject<{
378
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
379
+ path: z.ZodString;
380
+ message: z.ZodString;
381
+ code: z.ZodString;
382
+ }, z.core.$strip>>>;
383
+ }, z.core.$strip>>;
384
+ }, z.core.$strip>;
385
+ }, z.core.$strip>;
386
+ };
387
+ };
388
+ readonly description: "Authentication required.";
389
+ };
390
+ 403: {
391
+ readonly content: {
392
+ readonly "application/json": {
393
+ readonly schema: z.ZodObject<{
394
+ error: z.ZodObject<{
395
+ code: z.ZodString;
396
+ message: z.ZodString;
397
+ details: z.ZodOptional<z.ZodObject<{
398
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
+ path: z.ZodString;
400
+ message: z.ZodString;
401
+ code: z.ZodString;
402
+ }, z.core.$strip>>>;
403
+ }, z.core.$strip>>;
404
+ }, z.core.$strip>;
405
+ }, z.core.$strip>;
406
+ };
407
+ };
408
+ readonly description: "Insufficient permissions.";
409
+ };
410
+ 404: {
411
+ readonly content: {
412
+ readonly "application/json": {
413
+ readonly schema: z.ZodObject<{
414
+ error: z.ZodObject<{
415
+ code: z.ZodString;
416
+ message: z.ZodString;
417
+ details: z.ZodOptional<z.ZodObject<{
418
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
419
+ path: z.ZodString;
420
+ message: z.ZodString;
421
+ code: z.ZodString;
422
+ }, z.core.$strip>>>;
423
+ }, z.core.$strip>>;
424
+ }, z.core.$strip>;
425
+ }, z.core.$strip>;
426
+ };
427
+ };
428
+ readonly description: "Resource not found.";
429
+ };
430
+ 422: {
431
+ readonly content: {
432
+ readonly "application/json": {
433
+ readonly schema: z.ZodObject<{
434
+ error: z.ZodObject<{
435
+ code: z.ZodString;
436
+ message: z.ZodString;
437
+ details: z.ZodOptional<z.ZodObject<{
438
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
439
+ path: z.ZodString;
440
+ message: z.ZodString;
441
+ code: z.ZodString;
442
+ }, z.core.$strip>>>;
443
+ }, z.core.$strip>>;
444
+ }, z.core.$strip>;
445
+ }, z.core.$strip>;
446
+ };
447
+ };
448
+ readonly description: "Validation error.";
449
+ };
450
+ 200: {
451
+ content: {
452
+ "application/json": {
453
+ schema: z.ZodObject<{
454
+ data: z.ZodAny;
455
+ }, z.core.$strip>;
456
+ };
457
+ };
458
+ description: string;
459
+ };
460
+ };
461
+ } & {
462
+ getRoutingPath(): "/entity-field-definitions/:id";
463
+ };
464
+ export declare const archiveEntityFieldDefinitionRoute: {
465
+ method: "post";
466
+ path: "/entity-field-definitions/{id}/archive";
467
+ tags: string[];
468
+ summary: string;
469
+ request: {
470
+ params: z.ZodObject<{
471
+ id: z.ZodUUID;
472
+ }, z.core.$strip>;
473
+ };
474
+ responses: {
475
+ 400: {
476
+ readonly content: {
477
+ readonly "application/json": {
478
+ readonly schema: z.ZodObject<{
479
+ error: z.ZodObject<{
480
+ code: z.ZodString;
481
+ message: z.ZodString;
482
+ details: z.ZodOptional<z.ZodObject<{
483
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
484
+ path: z.ZodString;
485
+ message: z.ZodString;
486
+ code: z.ZodString;
487
+ }, z.core.$strip>>>;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>;
490
+ }, z.core.$strip>;
491
+ };
492
+ };
493
+ readonly description: "Business logic error.";
494
+ };
495
+ 401: {
496
+ readonly content: {
497
+ readonly "application/json": {
498
+ readonly schema: z.ZodObject<{
499
+ error: z.ZodObject<{
500
+ code: z.ZodString;
501
+ message: z.ZodString;
502
+ details: z.ZodOptional<z.ZodObject<{
503
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
504
+ path: z.ZodString;
505
+ message: z.ZodString;
506
+ code: z.ZodString;
507
+ }, z.core.$strip>>>;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$strip>;
510
+ }, z.core.$strip>;
511
+ };
512
+ };
513
+ readonly description: "Authentication required.";
514
+ };
515
+ 403: {
516
+ readonly content: {
517
+ readonly "application/json": {
518
+ readonly schema: z.ZodObject<{
519
+ error: z.ZodObject<{
520
+ code: z.ZodString;
521
+ message: z.ZodString;
522
+ details: z.ZodOptional<z.ZodObject<{
523
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
524
+ path: z.ZodString;
525
+ message: z.ZodString;
526
+ code: z.ZodString;
527
+ }, z.core.$strip>>>;
528
+ }, z.core.$strip>>;
529
+ }, z.core.$strip>;
530
+ }, z.core.$strip>;
531
+ };
532
+ };
533
+ readonly description: "Insufficient permissions.";
534
+ };
535
+ 404: {
536
+ readonly content: {
537
+ readonly "application/json": {
538
+ readonly schema: z.ZodObject<{
539
+ error: z.ZodObject<{
540
+ code: z.ZodString;
541
+ message: z.ZodString;
542
+ details: z.ZodOptional<z.ZodObject<{
543
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
544
+ path: z.ZodString;
545
+ message: z.ZodString;
546
+ code: z.ZodString;
547
+ }, z.core.$strip>>>;
548
+ }, z.core.$strip>>;
549
+ }, z.core.$strip>;
550
+ }, z.core.$strip>;
551
+ };
552
+ };
553
+ readonly description: "Resource not found.";
554
+ };
555
+ 422: {
556
+ readonly content: {
557
+ readonly "application/json": {
558
+ readonly schema: z.ZodObject<{
559
+ error: z.ZodObject<{
560
+ code: z.ZodString;
561
+ message: z.ZodString;
562
+ details: z.ZodOptional<z.ZodObject<{
563
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
564
+ path: z.ZodString;
565
+ message: z.ZodString;
566
+ code: z.ZodString;
567
+ }, z.core.$strip>>>;
568
+ }, z.core.$strip>>;
569
+ }, z.core.$strip>;
570
+ }, z.core.$strip>;
571
+ };
572
+ };
573
+ readonly description: "Validation error.";
574
+ };
575
+ 200: {
576
+ content: {
577
+ "application/json": {
578
+ schema: z.ZodObject<{
579
+ data: z.ZodAny;
580
+ }, z.core.$strip>;
581
+ };
582
+ };
583
+ description: string;
584
+ };
585
+ };
586
+ } & {
587
+ getRoutingPath(): "/entity-field-definitions/:id/archive";
588
+ };
589
+ export type CreateEntityFieldDefinitionBody = z.infer<typeof CreateBody>;
590
+ export type UpdateEntityFieldDefinitionBody = z.infer<typeof UpdateBody>;
591
+ export {};
592
+ //# sourceMappingURL=admin-entity-field-definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-entity-field-definitions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/rest/schemas/admin-entity-field-definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAanD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;iBAYgC,CAAC;AAEjD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;iBAYgC,CAAC;AAQjD,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB3C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmB3C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa5C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACzE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}