@payloadcms/db-postgres 3.0.0-canary.cee5702 → 3.0.0-canary.e14c80d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (394) hide show
  1. package/README.md +1 -1
  2. package/dist/connect.d.ts +1 -1
  3. package/dist/connect.d.ts.map +1 -1
  4. package/dist/connect.js +10 -6
  5. package/dist/connect.js.map +1 -1
  6. package/dist/countDistinct.d.ts +3 -0
  7. package/dist/countDistinct.d.ts.map +1 -0
  8. package/dist/countDistinct.js +24 -0
  9. package/dist/countDistinct.js.map +1 -0
  10. package/dist/createJSONQuery/convertPathToJSONTraversal.d.ts.map +1 -0
  11. package/dist/createJSONQuery/convertPathToJSONTraversal.js.map +1 -0
  12. package/dist/createJSONQuery/formatJSONPathSegment.d.ts.map +1 -0
  13. package/dist/createJSONQuery/formatJSONPathSegment.js.map +1 -0
  14. package/dist/createJSONQuery/index.d.ts.map +1 -0
  15. package/dist/createJSONQuery/index.js.map +1 -0
  16. package/dist/createMigration.d.ts +1 -1
  17. package/dist/createMigration.d.ts.map +1 -1
  18. package/dist/createMigration.js +18 -29
  19. package/dist/createMigration.js.map +1 -1
  20. package/dist/defaultSnapshot.d.ts +3 -0
  21. package/dist/defaultSnapshot.d.ts.map +1 -0
  22. package/dist/defaultSnapshot.js +17 -0
  23. package/dist/defaultSnapshot.js.map +1 -0
  24. package/dist/deleteWhere.d.ts +3 -0
  25. package/dist/deleteWhere.d.ts.map +1 -0
  26. package/dist/deleteWhere.js +6 -0
  27. package/dist/deleteWhere.js.map +1 -0
  28. package/dist/dropDatabase.d.ts +3 -0
  29. package/dist/dropDatabase.d.ts.map +1 -0
  30. package/dist/dropDatabase.js +9 -0
  31. package/dist/dropDatabase.js.map +1 -0
  32. package/dist/execute.d.ts +3 -0
  33. package/dist/execute.d.ts.map +1 -0
  34. package/dist/execute.js +11 -0
  35. package/dist/execute.js.map +1 -0
  36. package/dist/exports/migration-utils.js.map +1 -1
  37. package/dist/getMigrationTemplate.d.ts +4 -0
  38. package/dist/getMigrationTemplate.d.ts.map +1 -0
  39. package/dist/getMigrationTemplate.js +13 -0
  40. package/dist/getMigrationTemplate.js.map +1 -0
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +40 -65
  44. package/dist/index.js.map +1 -1
  45. package/dist/init.d.ts +1 -1
  46. package/dist/init.d.ts.map +1 -1
  47. package/dist/init.js +15 -11
  48. package/dist/init.js.map +1 -1
  49. package/dist/insert.d.ts +3 -0
  50. package/dist/insert.d.ts.map +1 -0
  51. package/dist/insert.js +12 -0
  52. package/dist/insert.js.map +1 -0
  53. package/dist/predefinedMigrations/relationships-v2-v3.js.map +1 -1
  54. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.d.ts +5 -5
  55. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.d.ts.map +1 -1
  56. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.js +1 -2
  57. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.js.map +1 -1
  58. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.d.ts +1 -1
  59. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.d.ts.map +1 -1
  60. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.js +1 -1
  61. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.js.map +1 -1
  62. package/dist/predefinedMigrations/v2-v3/groupUpSQLStatements.d.ts.map +1 -1
  63. package/dist/predefinedMigrations/v2-v3/groupUpSQLStatements.js.map +1 -1
  64. package/dist/predefinedMigrations/v2-v3/index.d.ts +2 -3
  65. package/dist/predefinedMigrations/v2-v3/index.d.ts.map +1 -1
  66. package/dist/predefinedMigrations/v2-v3/index.js +7 -7
  67. package/dist/predefinedMigrations/v2-v3/index.js.map +1 -1
  68. package/dist/predefinedMigrations/v2-v3/migrateRelationships.d.ts +5 -4
  69. package/dist/predefinedMigrations/v2-v3/migrateRelationships.d.ts.map +1 -1
  70. package/dist/predefinedMigrations/v2-v3/migrateRelationships.js.map +1 -1
  71. package/dist/predefinedMigrations/v2-v3/traverseFields.d.ts +4 -4
  72. package/dist/predefinedMigrations/v2-v3/traverseFields.d.ts.map +1 -1
  73. package/dist/predefinedMigrations/v2-v3/traverseFields.js +1 -1
  74. package/dist/predefinedMigrations/v2-v3/traverseFields.js.map +1 -1
  75. package/dist/predefinedMigrations/v2-v3/types.js.map +1 -1
  76. package/dist/requireDrizzleKit.d.ts +3 -0
  77. package/dist/requireDrizzleKit.d.ts.map +1 -0
  78. package/dist/requireDrizzleKit.js +5 -0
  79. package/dist/requireDrizzleKit.js.map +1 -0
  80. package/dist/schema/build.d.ts +5 -1
  81. package/dist/schema/build.d.ts.map +1 -1
  82. package/dist/schema/build.js +2 -2
  83. package/dist/schema/build.js.map +1 -1
  84. package/dist/schema/createIndex.d.ts.map +1 -1
  85. package/dist/schema/createIndex.js +1 -1
  86. package/dist/schema/createIndex.js.map +1 -1
  87. package/dist/schema/idToUUID.d.ts +1 -1
  88. package/dist/schema/idToUUID.d.ts.map +1 -1
  89. package/dist/schema/idToUUID.js.map +1 -1
  90. package/dist/schema/parentIDColumnMap.js.map +1 -1
  91. package/dist/schema/setColumnID.d.ts +1 -1
  92. package/dist/schema/setColumnID.d.ts.map +1 -1
  93. package/dist/schema/setColumnID.js +2 -2
  94. package/dist/schema/setColumnID.js.map +1 -1
  95. package/dist/schema/traverseFields.d.ts +1 -1
  96. package/dist/schema/traverseFields.d.ts.map +1 -1
  97. package/dist/schema/traverseFields.js +15 -16
  98. package/dist/schema/traverseFields.js.map +1 -1
  99. package/dist/schema/withDefault.d.ts +4 -0
  100. package/dist/schema/withDefault.d.ts.map +1 -0
  101. package/dist/schema/withDefault.js +10 -0
  102. package/dist/schema/withDefault.js.map +1 -0
  103. package/dist/types.d.ts +97 -37
  104. package/dist/types.d.ts.map +1 -1
  105. package/dist/types.js.map +1 -1
  106. package/package.json +20 -17
  107. package/dist/count.d.ts +0 -3
  108. package/dist/count.d.ts.map +0 -1
  109. package/dist/count.js +0 -41
  110. package/dist/count.js.map +0 -1
  111. package/dist/create.d.ts +0 -3
  112. package/dist/create.d.ts.map +0 -1
  113. package/dist/create.js +0 -19
  114. package/dist/create.js.map +0 -1
  115. package/dist/createGlobal.d.ts +0 -5
  116. package/dist/createGlobal.d.ts.map +0 -1
  117. package/dist/createGlobal.js +0 -19
  118. package/dist/createGlobal.js.map +0 -1
  119. package/dist/createGlobalVersion.d.ts +0 -6
  120. package/dist/createGlobalVersion.d.ts.map +0 -1
  121. package/dist/createGlobalVersion.js +0 -33
  122. package/dist/createGlobalVersion.js.map +0 -1
  123. package/dist/createVersion.d.ts +0 -5
  124. package/dist/createVersion.d.ts.map +0 -1
  125. package/dist/createVersion.js +0 -40
  126. package/dist/createVersion.js.map +0 -1
  127. package/dist/deleteMany.d.ts +0 -3
  128. package/dist/deleteMany.d.ts.map +0 -1
  129. package/dist/deleteMany.js +0 -28
  130. package/dist/deleteMany.js.map +0 -1
  131. package/dist/deleteOne.d.ts +0 -3
  132. package/dist/deleteOne.d.ts.map +0 -1
  133. package/dist/deleteOne.js +0 -59
  134. package/dist/deleteOne.js.map +0 -1
  135. package/dist/deleteVersions.d.ts +0 -3
  136. package/dist/deleteVersions.d.ts.map +0 -1
  137. package/dist/deleteVersions.js +0 -31
  138. package/dist/deleteVersions.js.map +0 -1
  139. package/dist/destroy.d.ts +0 -3
  140. package/dist/destroy.d.ts.map +0 -1
  141. package/dist/destroy.js +0 -15
  142. package/dist/destroy.js.map +0 -1
  143. package/dist/find/buildFindManyArgs.d.ts +0 -17
  144. package/dist/find/buildFindManyArgs.d.ts.map +0 -1
  145. package/dist/find/buildFindManyArgs.js +0 -65
  146. package/dist/find/buildFindManyArgs.js.map +0 -1
  147. package/dist/find/chainMethods.d.ts +0 -16
  148. package/dist/find/chainMethods.d.ts.map +0 -1
  149. package/dist/find/chainMethods.js +0 -12
  150. package/dist/find/chainMethods.js.map +0 -1
  151. package/dist/find/findMany.d.ts +0 -22
  152. package/dist/find/findMany.d.ts.map +0 -1
  153. package/dist/find/findMany.js +0 -152
  154. package/dist/find/findMany.js.map +0 -1
  155. package/dist/find/traverseFields.d.ts +0 -17
  156. package/dist/find/traverseFields.d.ts.map +0 -1
  157. package/dist/find/traverseFields.js +0 -156
  158. package/dist/find/traverseFields.js.map +0 -1
  159. package/dist/find.d.ts +0 -3
  160. package/dist/find.d.ts.map +0 -1
  161. package/dist/find.js +0 -21
  162. package/dist/find.js.map +0 -1
  163. package/dist/findGlobal.d.ts +0 -3
  164. package/dist/findGlobal.d.ts.map +0 -1
  165. package/dist/findGlobal.js +0 -23
  166. package/dist/findGlobal.js.map +0 -1
  167. package/dist/findGlobalVersions.d.ts +0 -3
  168. package/dist/findGlobalVersions.d.ts.map +0 -1
  169. package/dist/findGlobalVersions.js +0 -24
  170. package/dist/findGlobalVersions.js.map +0 -1
  171. package/dist/findOne.d.ts +0 -5
  172. package/dist/findOne.d.ts.map +0 -1
  173. package/dist/findOne.js +0 -21
  174. package/dist/findOne.js.map +0 -1
  175. package/dist/findVersions.d.ts +0 -3
  176. package/dist/findVersions.d.ts.map +0 -1
  177. package/dist/findVersions.js +0 -24
  178. package/dist/findVersions.js.map +0 -1
  179. package/dist/migrate.d.ts +0 -3
  180. package/dist/migrate.d.ts.map +0 -1
  181. package/dist/migrate.js +0 -99
  182. package/dist/migrate.js.map +0 -1
  183. package/dist/migrateDown.d.ts +0 -3
  184. package/dist/migrateDown.d.ts.map +0 -1
  185. package/dist/migrateDown.js +0 -63
  186. package/dist/migrateDown.js.map +0 -1
  187. package/dist/migrateFresh.d.ts +0 -8
  188. package/dist/migrateFresh.d.ts.map +0 -1
  189. package/dist/migrateFresh.js +0 -72
  190. package/dist/migrateFresh.js.map +0 -1
  191. package/dist/migrateRefresh.d.ts +0 -6
  192. package/dist/migrateRefresh.d.ts.map +0 -1
  193. package/dist/migrateRefresh.js +0 -102
  194. package/dist/migrateRefresh.js.map +0 -1
  195. package/dist/migrateReset.d.ts +0 -6
  196. package/dist/migrateReset.d.ts.map +0 -1
  197. package/dist/migrateReset.js +0 -82
  198. package/dist/migrateReset.js.map +0 -1
  199. package/dist/migrateStatus.d.ts +0 -3
  200. package/dist/migrateStatus.d.ts.map +0 -1
  201. package/dist/migrateStatus.js +0 -44
  202. package/dist/migrateStatus.js.map +0 -1
  203. package/dist/queries/buildAndOrConditions.d.ts +0 -16
  204. package/dist/queries/buildAndOrConditions.d.ts.map +0 -1
  205. package/dist/queries/buildAndOrConditions.js +0 -28
  206. package/dist/queries/buildAndOrConditions.js.map +0 -1
  207. package/dist/queries/buildQuery.d.ts +0 -30
  208. package/dist/queries/buildQuery.d.ts.map +0 -1
  209. package/dist/queries/buildQuery.js +0 -72
  210. package/dist/queries/buildQuery.js.map +0 -1
  211. package/dist/queries/createJSONQuery/convertPathToJSONTraversal.d.ts.map +0 -1
  212. package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js.map +0 -1
  213. package/dist/queries/createJSONQuery/formatJSONPathSegment.d.ts.map +0 -1
  214. package/dist/queries/createJSONQuery/formatJSONPathSegment.js.map +0 -1
  215. package/dist/queries/createJSONQuery/index.d.ts.map +0 -1
  216. package/dist/queries/createJSONQuery/index.js.map +0 -1
  217. package/dist/queries/getTableColumnFromPath.d.ts +0 -50
  218. package/dist/queries/getTableColumnFromPath.d.ts.map +0 -1
  219. package/dist/queries/getTableColumnFromPath.js +0 -517
  220. package/dist/queries/getTableColumnFromPath.js.map +0 -1
  221. package/dist/queries/operatorMap.d.ts +0 -18
  222. package/dist/queries/operatorMap.d.ts.map +0 -1
  223. package/dist/queries/operatorMap.js +0 -24
  224. package/dist/queries/operatorMap.js.map +0 -1
  225. package/dist/queries/parseParams.d.ts +0 -16
  226. package/dist/queries/parseParams.d.ts.map +0 -1
  227. package/dist/queries/parseParams.js +0 -183
  228. package/dist/queries/parseParams.js.map +0 -1
  229. package/dist/queries/sanitizeQueryValue.d.ts +0 -15
  230. package/dist/queries/sanitizeQueryValue.d.ts.map +0 -1
  231. package/dist/queries/sanitizeQueryValue.js +0 -90
  232. package/dist/queries/sanitizeQueryValue.js.map +0 -1
  233. package/dist/queries/selectDistinct.d.ts +0 -22
  234. package/dist/queries/selectDistinct.d.ts.map +0 -1
  235. package/dist/queries/selectDistinct.js +0 -30
  236. package/dist/queries/selectDistinct.js.map +0 -1
  237. package/dist/queryDrafts.d.ts +0 -3
  238. package/dist/queryDrafts.d.ts.map +0 -1
  239. package/dist/queryDrafts.js +0 -41
  240. package/dist/queryDrafts.js.map +0 -1
  241. package/dist/schema/createTableName.d.ts +0 -30
  242. package/dist/schema/createTableName.d.ts.map +0 -1
  243. package/dist/schema/createTableName.js +0 -31
  244. package/dist/schema/createTableName.js.map +0 -1
  245. package/dist/schema/validateExistingBlockIsIdentical.d.ts +0 -12
  246. package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +0 -1
  247. package/dist/schema/validateExistingBlockIsIdentical.js +0 -76
  248. package/dist/schema/validateExistingBlockIsIdentical.js.map +0 -1
  249. package/dist/transactions/beginTransaction.d.ts +0 -3
  250. package/dist/transactions/beginTransaction.d.ts.map +0 -1
  251. package/dist/transactions/beginTransaction.js +0 -51
  252. package/dist/transactions/beginTransaction.js.map +0 -1
  253. package/dist/transactions/commitTransaction.d.ts +0 -3
  254. package/dist/transactions/commitTransaction.d.ts.map +0 -1
  255. package/dist/transactions/commitTransaction.js +0 -14
  256. package/dist/transactions/commitTransaction.js.map +0 -1
  257. package/dist/transactions/rollbackTransaction.d.ts +0 -3
  258. package/dist/transactions/rollbackTransaction.d.ts.map +0 -1
  259. package/dist/transactions/rollbackTransaction.js +0 -13
  260. package/dist/transactions/rollbackTransaction.js.map +0 -1
  261. package/dist/transform/read/hasManyNumber.d.ts +0 -10
  262. package/dist/transform/read/hasManyNumber.d.ts.map +0 -1
  263. package/dist/transform/read/hasManyNumber.js +0 -10
  264. package/dist/transform/read/hasManyNumber.js.map +0 -1
  265. package/dist/transform/read/hasManyText.d.ts +0 -10
  266. package/dist/transform/read/hasManyText.d.ts.map +0 -1
  267. package/dist/transform/read/hasManyText.js +0 -10
  268. package/dist/transform/read/hasManyText.js.map +0 -1
  269. package/dist/transform/read/index.d.ts +0 -14
  270. package/dist/transform/read/index.d.ts.map +0 -1
  271. package/dist/transform/read/index.js +0 -44
  272. package/dist/transform/read/index.js.map +0 -1
  273. package/dist/transform/read/relationship.d.ts +0 -10
  274. package/dist/transform/read/relationship.d.ts.map +0 -1
  275. package/dist/transform/read/relationship.js +0 -60
  276. package/dist/transform/read/relationship.js.map +0 -1
  277. package/dist/transform/read/traverseFields.d.ts +0 -57
  278. package/dist/transform/read/traverseFields.d.ts.map +0 -1
  279. package/dist/transform/read/traverseFields.js +0 -435
  280. package/dist/transform/read/traverseFields.js.map +0 -1
  281. package/dist/transform/write/array.d.ts +0 -26
  282. package/dist/transform/write/array.d.ts.map +0 -1
  283. package/dist/transform/write/array.js +0 -58
  284. package/dist/transform/write/array.js.map +0 -1
  285. package/dist/transform/write/blocks.d.ts +0 -25
  286. package/dist/transform/write/blocks.d.ts.map +0 -1
  287. package/dist/transform/write/blocks.js +0 -54
  288. package/dist/transform/write/blocks.js.map +0 -1
  289. package/dist/transform/write/index.d.ts +0 -13
  290. package/dist/transform/write/index.d.ts.map +0 -1
  291. package/dist/transform/write/index.js +0 -41
  292. package/dist/transform/write/index.js.map +0 -1
  293. package/dist/transform/write/numbers.d.ts +0 -8
  294. package/dist/transform/write/numbers.d.ts.map +0 -1
  295. package/dist/transform/write/numbers.js +0 -11
  296. package/dist/transform/write/numbers.js.map +0 -1
  297. package/dist/transform/write/relationships.d.ts +0 -10
  298. package/dist/transform/write/relationships.d.ts.map +0 -1
  299. package/dist/transform/write/relationships.js +0 -23
  300. package/dist/transform/write/relationships.js.map +0 -1
  301. package/dist/transform/write/selects.d.ts +0 -8
  302. package/dist/transform/write/selects.d.ts.map +0 -1
  303. package/dist/transform/write/selects.js +0 -20
  304. package/dist/transform/write/selects.js.map +0 -1
  305. package/dist/transform/write/texts.d.ts +0 -8
  306. package/dist/transform/write/texts.d.ts.map +0 -1
  307. package/dist/transform/write/texts.js +0 -11
  308. package/dist/transform/write/texts.js.map +0 -1
  309. package/dist/transform/write/traverseFields.d.ts +0 -50
  310. package/dist/transform/write/traverseFields.d.ts.map +0 -1
  311. package/dist/transform/write/traverseFields.js +0 -445
  312. package/dist/transform/write/traverseFields.js.map +0 -1
  313. package/dist/transform/write/types.d.ts +0 -43
  314. package/dist/transform/write/types.d.ts.map +0 -1
  315. package/dist/transform/write/types.js +0 -3
  316. package/dist/transform/write/types.js.map +0 -1
  317. package/dist/update.d.ts +0 -3
  318. package/dist/update.d.ts.map +0 -1
  319. package/dist/update.js +0 -54
  320. package/dist/update.js.map +0 -1
  321. package/dist/updateGlobal.d.ts +0 -5
  322. package/dist/updateGlobal.d.ts.map +0 -1
  323. package/dist/updateGlobal.js +0 -25
  324. package/dist/updateGlobal.js.map +0 -1
  325. package/dist/updateGlobalVersion.d.ts +0 -5
  326. package/dist/updateGlobalVersion.d.ts.map +0 -1
  327. package/dist/updateGlobalVersion.js +0 -36
  328. package/dist/updateGlobalVersion.js.map +0 -1
  329. package/dist/updateVersion.d.ts +0 -5
  330. package/dist/updateVersion.d.ts.map +0 -1
  331. package/dist/updateVersion.js +0 -36
  332. package/dist/updateVersion.js.map +0 -1
  333. package/dist/upsertRow/deleteExistingArrayRows.d.ts +0 -10
  334. package/dist/upsertRow/deleteExistingArrayRows.d.ts.map +0 -1
  335. package/dist/upsertRow/deleteExistingArrayRows.js +0 -10
  336. package/dist/upsertRow/deleteExistingArrayRows.js.map +0 -1
  337. package/dist/upsertRow/deleteExistingRowsByPath.d.ts +0 -14
  338. package/dist/upsertRow/deleteExistingRowsByPath.d.ts.map +0 -1
  339. package/dist/upsertRow/deleteExistingRowsByPath.js +0 -33
  340. package/dist/upsertRow/deleteExistingRowsByPath.js.map +0 -1
  341. package/dist/upsertRow/index.d.ts +0 -4
  342. package/dist/upsertRow/index.d.ts.map +0 -1
  343. package/dist/upsertRow/index.js +0 -279
  344. package/dist/upsertRow/index.js.map +0 -1
  345. package/dist/upsertRow/insertArrays.d.ts +0 -13
  346. package/dist/upsertRow/insertArrays.d.ts.map +0 -1
  347. package/dist/upsertRow/insertArrays.js +0 -68
  348. package/dist/upsertRow/insertArrays.js.map +0 -1
  349. package/dist/upsertRow/types.d.ts +0 -32
  350. package/dist/upsertRow/types.d.ts.map +0 -1
  351. package/dist/upsertRow/types.js +0 -3
  352. package/dist/upsertRow/types.js.map +0 -1
  353. package/dist/utilities/appendPrefixToKeys.d.ts +0 -2
  354. package/dist/utilities/appendPrefixToKeys.d.ts.map +0 -1
  355. package/dist/utilities/appendPrefixToKeys.js +0 -6
  356. package/dist/utilities/appendPrefixToKeys.js.map +0 -1
  357. package/dist/utilities/createBlocksMap.d.ts +0 -5
  358. package/dist/utilities/createBlocksMap.d.ts.map +0 -1
  359. package/dist/utilities/createBlocksMap.js +0 -29
  360. package/dist/utilities/createBlocksMap.js.map +0 -1
  361. package/dist/utilities/createMigrationTable.d.ts +0 -3
  362. package/dist/utilities/createMigrationTable.d.ts.map +0 -1
  363. package/dist/utilities/createMigrationTable.js +0 -13
  364. package/dist/utilities/createMigrationTable.js.map +0 -1
  365. package/dist/utilities/createRelationshipMap.d.ts +0 -2
  366. package/dist/utilities/createRelationshipMap.d.ts.map +0 -1
  367. package/dist/utilities/createRelationshipMap.js +0 -19
  368. package/dist/utilities/createRelationshipMap.js.map +0 -1
  369. package/dist/utilities/hasLocalesTable.d.ts +0 -3
  370. package/dist/utilities/hasLocalesTable.d.ts.map +0 -1
  371. package/dist/utilities/hasLocalesTable.js +0 -11
  372. package/dist/utilities/hasLocalesTable.js.map +0 -1
  373. package/dist/utilities/isArrayOfRows.d.ts +0 -2
  374. package/dist/utilities/isArrayOfRows.d.ts.map +0 -1
  375. package/dist/utilities/isArrayOfRows.js +0 -5
  376. package/dist/utilities/isArrayOfRows.js.map +0 -1
  377. package/dist/utilities/migrationTableExists.d.ts +0 -3
  378. package/dist/utilities/migrationTableExists.d.ts.map +0 -1
  379. package/dist/utilities/migrationTableExists.js +0 -9
  380. package/dist/utilities/migrationTableExists.js.map +0 -1
  381. package/dist/utilities/parseError.d.ts +0 -5
  382. package/dist/utilities/parseError.d.ts.map +0 -1
  383. package/dist/utilities/parseError.js +0 -17
  384. package/dist/utilities/parseError.js.map +0 -1
  385. package/dist/utilities/pushDevSchema.d.ts +0 -9
  386. package/dist/utilities/pushDevSchema.d.ts.map +0 -1
  387. package/dist/utilities/pushDevSchema.js +0 -58
  388. package/dist/utilities/pushDevSchema.js.map +0 -1
  389. /package/dist/{queries/createJSONQuery → createJSONQuery}/convertPathToJSONTraversal.d.ts +0 -0
  390. /package/dist/{queries/createJSONQuery → createJSONQuery}/convertPathToJSONTraversal.js +0 -0
  391. /package/dist/{queries/createJSONQuery → createJSONQuery}/formatJSONPathSegment.d.ts +0 -0
  392. /package/dist/{queries/createJSONQuery → createJSONQuery}/formatJSONPathSegment.js +0 -0
  393. /package/dist/{queries/createJSONQuery → createJSONQuery}/index.d.ts +0 -0
  394. /package/dist/{queries/createJSONQuery → createJSONQuery}/index.js +0 -0
@@ -1,76 +0,0 @@
1
- import { InvalidConfiguration } from 'payload/errors';
2
- import { fieldAffectsData, fieldHasSubFields, tabHasName } from 'payload/types';
3
- const getFlattenedFieldNames = (fields, prefix = '')=>{
4
- return fields.reduce((fieldsToUse, field)=>{
5
- let fieldPrefix = prefix;
6
- if ([
7
- 'array',
8
- 'blocks',
9
- 'relationship',
10
- 'upload'
11
- ].includes(field.type) || 'hasMany' in field && field.hasMany === true) {
12
- return fieldsToUse;
13
- }
14
- if (fieldHasSubFields(field)) {
15
- fieldPrefix = 'name' in field ? `${prefix}${field.name}_` : prefix;
16
- return [
17
- ...fieldsToUse,
18
- ...getFlattenedFieldNames(field.fields, fieldPrefix)
19
- ];
20
- }
21
- if (field.type === 'tabs') {
22
- return [
23
- ...fieldsToUse,
24
- ...field.tabs.reduce((tabFields, tab)=>{
25
- fieldPrefix = 'name' in tab ? `${prefix}_${tab.name}` : prefix;
26
- return [
27
- ...tabFields,
28
- ...tabHasName(tab) ? [
29
- {
30
- ...tab,
31
- type: 'tab'
32
- }
33
- ] : getFlattenedFieldNames(tab.fields, fieldPrefix)
34
- ];
35
- }, [])
36
- ];
37
- }
38
- if (fieldAffectsData(field)) {
39
- return [
40
- ...fieldsToUse,
41
- {
42
- name: `${fieldPrefix}${field.name}`,
43
- localized: field.localized
44
- }
45
- ];
46
- }
47
- return fieldsToUse;
48
- }, []);
49
- };
50
- export const validateExistingBlockIsIdentical = ({ block, localized, rootTableName, table, tableLocales })=>{
51
- const fieldNames = getFlattenedFieldNames(block.fields);
52
- const missingField = // ensure every field from the config is in the matching table
53
- fieldNames.find(({ name, localized })=>{
54
- const fieldTable = localized && tableLocales ? tableLocales : table;
55
- return Object.keys(fieldTable).indexOf(name) === -1;
56
- }) || // ensure every table column is matched for every field from the config
57
- Object.keys(table).find((fieldName)=>{
58
- if (![
59
- '_locale',
60
- '_order',
61
- '_parentID',
62
- '_path',
63
- '_uuid'
64
- ].includes(fieldName)) {
65
- return fieldNames.findIndex((field)=>field.name) === -1;
66
- }
67
- });
68
- if (missingField) {
69
- throw new InvalidConfiguration(`The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One block includes the field ${typeof missingField === 'string' ? missingField : missingField.name}, while the other block does not.`);
70
- }
71
- if (Boolean(localized) !== Boolean(table._locale)) {
72
- throw new InvalidConfiguration(`The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One is localized, but another is not. Block schemas of the same name must match exactly.`);
73
- }
74
- };
75
-
76
- //# sourceMappingURL=validateExistingBlockIsIdentical.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/schema/validateExistingBlockIsIdentical.ts"],"sourcesContent":["import type { Block, Field } from 'payload/types'\n\nimport { InvalidConfiguration } from 'payload/errors'\nimport { fieldAffectsData, fieldHasSubFields, tabHasName } from 'payload/types'\n\nimport type { GenericTable } from '../types.js'\n\ntype Args = {\n block: Block\n localized: boolean\n rootTableName: string\n table: GenericTable\n tableLocales?: GenericTable\n}\n\nconst getFlattenedFieldNames = (\n fields: Field[],\n prefix: string = '',\n): { localized?: boolean; name: string }[] => {\n return fields.reduce((fieldsToUse, field) => {\n let fieldPrefix = prefix\n\n if (\n ['array', 'blocks', 'relationship', 'upload'].includes(field.type) ||\n ('hasMany' in field && field.hasMany === true)\n ) {\n return fieldsToUse\n }\n\n if (fieldHasSubFields(field)) {\n fieldPrefix = 'name' in field ? `${prefix}${field.name}_` : prefix\n return [...fieldsToUse, ...getFlattenedFieldNames(field.fields, fieldPrefix)]\n }\n\n if (field.type === 'tabs') {\n return [\n ...fieldsToUse,\n ...field.tabs.reduce((tabFields, tab) => {\n fieldPrefix = 'name' in tab ? `${prefix}_${tab.name}` : prefix\n return [\n ...tabFields,\n ...(tabHasName(tab)\n ? [{ ...tab, type: 'tab' }]\n : getFlattenedFieldNames(tab.fields, fieldPrefix)),\n ]\n }, []),\n ]\n }\n\n if (fieldAffectsData(field)) {\n return [\n ...fieldsToUse,\n {\n name: `${fieldPrefix}${field.name}`,\n localized: field.localized,\n },\n ]\n }\n\n return fieldsToUse\n }, [])\n}\n\nexport const validateExistingBlockIsIdentical = ({\n block,\n localized,\n rootTableName,\n table,\n tableLocales,\n}: Args): void => {\n const fieldNames = getFlattenedFieldNames(block.fields)\n\n const missingField =\n // ensure every field from the config is in the matching table\n fieldNames.find(({ name, localized }) => {\n const fieldTable = localized && tableLocales ? tableLocales : table\n return Object.keys(fieldTable).indexOf(name) === -1\n }) ||\n // ensure every table column is matched for every field from the config\n Object.keys(table).find((fieldName) => {\n if (!['_locale', '_order', '_parentID', '_path', '_uuid'].includes(fieldName)) {\n return fieldNames.findIndex((field) => field.name) === -1\n }\n })\n\n if (missingField) {\n throw new InvalidConfiguration(\n `The table ${rootTableName} has multiple blocks with slug ${\n block.slug\n }, but the schemas do not match. One block includes the field ${\n typeof missingField === 'string' ? missingField : missingField.name\n }, while the other block does not.`,\n )\n }\n\n if (Boolean(localized) !== Boolean(table._locale)) {\n throw new InvalidConfiguration(\n `The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One is localized, but another is not. Block schemas of the same name must match exactly.`,\n )\n }\n}\n"],"names":["InvalidConfiguration","fieldAffectsData","fieldHasSubFields","tabHasName","getFlattenedFieldNames","fields","prefix","reduce","fieldsToUse","field","fieldPrefix","includes","type","hasMany","name","tabs","tabFields","tab","localized","validateExistingBlockIsIdentical","block","rootTableName","table","tableLocales","fieldNames","missingField","find","fieldTable","Object","keys","indexOf","fieldName","findIndex","slug","Boolean","_locale"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,SAASA,oBAAoB,QAAQ,iBAAgB;AACrD,SAASC,gBAAgB,EAAEC,iBAAiB,EAAEC,UAAU,QAAQ,gBAAe;AAY/E,MAAMC,yBAAyB,CAC7BC,QACAC,SAAiB,EAAE;IAEnB,OAAOD,OAAOE,MAAM,CAAC,CAACC,aAAaC;QACjC,IAAIC,cAAcJ;QAElB,IACE;YAAC;YAAS;YAAU;YAAgB;SAAS,CAACK,QAAQ,CAACF,MAAMG,IAAI,KAChE,aAAaH,SAASA,MAAMI,OAAO,KAAK,MACzC;YACA,OAAOL;QACT;QAEA,IAAIN,kBAAkBO,QAAQ;YAC5BC,cAAc,UAAUD,QAAQ,CAAC,EAAEH,OAAO,EAAEG,MAAMK,IAAI,CAAC,CAAC,CAAC,GAAGR;YAC5D,OAAO;mBAAIE;mBAAgBJ,uBAAuBK,MAAMJ,MAAM,EAAEK;aAAa;QAC/E;QAEA,IAAID,MAAMG,IAAI,KAAK,QAAQ;YACzB,OAAO;mBACFJ;mBACAC,MAAMM,IAAI,CAACR,MAAM,CAAC,CAACS,WAAWC;oBAC/BP,cAAc,UAAUO,MAAM,CAAC,EAAEX,OAAO,CAAC,EAAEW,IAAIH,IAAI,CAAC,CAAC,GAAGR;oBACxD,OAAO;2BACFU;2BACCb,WAAWc,OACX;4BAAC;gCAAE,GAAGA,GAAG;gCAAEL,MAAM;4BAAM;yBAAE,GACzBR,uBAAuBa,IAAIZ,MAAM,EAAEK;qBACxC;gBACH,GAAG,EAAE;aACN;QACH;QAEA,IAAIT,iBAAiBQ,QAAQ;YAC3B,OAAO;mBACFD;gBACH;oBACEM,MAAM,CAAC,EAAEJ,YAAY,EAAED,MAAMK,IAAI,CAAC,CAAC;oBACnCI,WAAWT,MAAMS,SAAS;gBAC5B;aACD;QACH;QAEA,OAAOV;IACT,GAAG,EAAE;AACP;AAEA,OAAO,MAAMW,mCAAmC,CAAC,EAC/CC,KAAK,EACLF,SAAS,EACTG,aAAa,EACbC,KAAK,EACLC,YAAY,EACP;IACL,MAAMC,aAAapB,uBAAuBgB,MAAMf,MAAM;IAEtD,MAAMoB,eACJ,8DAA8D;IAC9DD,WAAWE,IAAI,CAAC,CAAC,EAAEZ,IAAI,EAAEI,SAAS,EAAE;QAClC,MAAMS,aAAaT,aAAaK,eAAeA,eAAeD;QAC9D,OAAOM,OAAOC,IAAI,CAACF,YAAYG,OAAO,CAAChB,UAAU,CAAC;IACpD,MACA,uEAAuE;IACvEc,OAAOC,IAAI,CAACP,OAAOI,IAAI,CAAC,CAACK;QACvB,IAAI,CAAC;YAAC;YAAW;YAAU;YAAa;YAAS;SAAQ,CAACpB,QAAQ,CAACoB,YAAY;YAC7E,OAAOP,WAAWQ,SAAS,CAAC,CAACvB,QAAUA,MAAMK,IAAI,MAAM,CAAC;QAC1D;IACF;IAEF,IAAIW,cAAc;QAChB,MAAM,IAAIzB,qBACR,CAAC,UAAU,EAAEqB,cAAc,+BAA+B,EACxDD,MAAMa,IAAI,CACX,6DAA6D,EAC5D,OAAOR,iBAAiB,WAAWA,eAAeA,aAAaX,IAAI,CACpE,iCAAiC,CAAC;IAEvC;IAEA,IAAIoB,QAAQhB,eAAegB,QAAQZ,MAAMa,OAAO,GAAG;QACjD,MAAM,IAAInC,qBACR,CAAC,UAAU,EAAEqB,cAAc,+BAA+B,EAAED,MAAMa,IAAI,CAAC,wHAAwH,CAAC;IAEpM;AACF,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { BeginTransaction } from 'payload/database';
2
- export declare const beginTransaction: BeginTransaction;
3
- //# sourceMappingURL=beginTransaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beginTransaction.d.ts","sourceRoot":"","sources":["../../src/transactions/beginTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAMxD,eAAO,MAAM,gBAAgB,EAAE,gBA2D9B,CAAA"}
@@ -1,51 +0,0 @@
1
- import { v4 as uuid } from 'uuid';
2
- export const beginTransaction = async function beginTransaction() {
3
- let id;
4
- try {
5
- id = uuid();
6
- let reject;
7
- let resolve;
8
- let transaction;
9
- let transactionReady;
10
- // Await initialization here
11
- // Prevent race conditions where the adapter may be
12
- // re-initializing, and `this.drizzle` is potentially undefined
13
- await this.initializing;
14
- // Drizzle only exposes a transactions API that is sufficient if you
15
- // can directly pass around the `tx` argument. But our operations are spread
16
- // over many files and we don't want to pass the `tx` around like that,
17
- // so instead, we "lift" up the `resolve` and `reject` methods
18
- // and will call them in our respective transaction methods
19
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
20
- const done = this.drizzle.transaction(async (tx)=>{
21
- transaction = tx;
22
- await new Promise((res, rej)=>{
23
- resolve = ()=>{
24
- res();
25
- return done;
26
- };
27
- reject = ()=>{
28
- rej();
29
- return done;
30
- };
31
- transactionReady();
32
- });
33
- }).catch(()=>{
34
- // swallow
35
- });
36
- // Need to wait until the transaction is ready
37
- // before binding its `resolve` and `reject` methods below
38
- await new Promise((resolve)=>transactionReady = resolve);
39
- this.sessions[id] = {
40
- db: transaction,
41
- reject,
42
- resolve
43
- };
44
- } catch (err) {
45
- this.payload.logger.error(`Error: cannot begin transaction: ${err.message}`, err);
46
- process.exit(1);
47
- }
48
- return id;
49
- };
50
-
51
- //# sourceMappingURL=beginTransaction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/transactions/beginTransaction.ts"],"sourcesContent":["import type { BeginTransaction } from 'payload/database'\n\nimport { v4 as uuid } from 'uuid'\n\nimport type { DrizzleTransaction, PostgresAdapter } from '../types.js'\n\nexport const beginTransaction: BeginTransaction = async function beginTransaction(\n this: PostgresAdapter,\n) {\n let id\n try {\n id = uuid()\n\n let reject: () => Promise<void>\n let resolve: () => Promise<void>\n let transaction: DrizzleTransaction\n\n let transactionReady: () => void\n\n // Await initialization here\n // Prevent race conditions where the adapter may be\n // re-initializing, and `this.drizzle` is potentially undefined\n await this.initializing\n\n // Drizzle only exposes a transactions API that is sufficient if you\n // can directly pass around the `tx` argument. But our operations are spread\n // over many files and we don't want to pass the `tx` around like that,\n // so instead, we \"lift\" up the `resolve` and `reject` methods\n // and will call them in our respective transaction methods\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n const done = this.drizzle\n .transaction(async (tx) => {\n transaction = tx\n await new Promise<void>((res, rej) => {\n resolve = () => {\n res()\n return done\n }\n reject = () => {\n rej()\n return done\n }\n transactionReady()\n })\n })\n .catch(() => {\n // swallow\n })\n\n // Need to wait until the transaction is ready\n // before binding its `resolve` and `reject` methods below\n await new Promise<void>((resolve) => (transactionReady = resolve))\n\n this.sessions[id] = {\n db: transaction,\n reject,\n resolve,\n }\n } catch (err) {\n this.payload.logger.error(`Error: cannot begin transaction: ${err.message}`, err)\n process.exit(1)\n }\n\n return id\n}\n"],"names":["v4","uuid","beginTransaction","id","reject","resolve","transaction","transactionReady","initializing","done","drizzle","tx","Promise","res","rej","catch","sessions","db","err","payload","logger","error","message","process","exit"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,SAASA,MAAMC,IAAI,QAAQ,OAAM;AAIjC,OAAO,MAAMC,mBAAqC,eAAeA;IAG/D,IAAIC;IACJ,IAAI;QACFA,KAAKF;QAEL,IAAIG;QACJ,IAAIC;QACJ,IAAIC;QAEJ,IAAIC;QAEJ,4BAA4B;QAC5B,mDAAmD;QACnD,+DAA+D;QAC/D,MAAM,IAAI,CAACC,YAAY;QAEvB,oEAAoE;QACpE,4EAA4E;QAC5E,uEAAuE;QACvE,8DAA8D;QAC9D,2DAA2D;QAE3D,mEAAmE;QACnE,MAAMC,OAAO,IAAI,CAACC,OAAO,CACtBJ,WAAW,CAAC,OAAOK;YAClBL,cAAcK;YACd,MAAM,IAAIC,QAAc,CAACC,KAAKC;gBAC5BT,UAAU;oBACRQ;oBACA,OAAOJ;gBACT;gBACAL,SAAS;oBACPU;oBACA,OAAOL;gBACT;gBACAF;YACF;QACF,GACCQ,KAAK,CAAC;QACL,UAAU;QACZ;QAEF,8CAA8C;QAC9C,0DAA0D;QAC1D,MAAM,IAAIH,QAAc,CAACP,UAAaE,mBAAmBF;QAEzD,IAAI,CAACW,QAAQ,CAACb,GAAG,GAAG;YAClBc,IAAIX;YACJF;YACAC;QACF;IACF,EAAE,OAAOa,KAAK;QACZ,IAAI,CAACC,OAAO,CAACC,MAAM,CAACC,KAAK,CAAC,CAAC,iCAAiC,EAAEH,IAAII,OAAO,CAAC,CAAC,EAAEJ;QAC7EK,QAAQC,IAAI,CAAC;IACf;IAEA,OAAOrB;AACT,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommitTransaction } from 'payload/database';
2
- export declare const commitTransaction: CommitTransaction;
3
- //# sourceMappingURL=commitTransaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commitTransaction.d.ts","sourceRoot":"","sources":["../../src/transactions/commitTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,eAAO,MAAM,iBAAiB,EAAE,iBAa/B,CAAA"}
@@ -1,14 +0,0 @@
1
- export const commitTransaction = async function commitTransaction(id) {
2
- // if the session was deleted it has already been aborted
3
- if (!this.sessions[id]) {
4
- return;
5
- }
6
- try {
7
- await this.sessions[id].resolve();
8
- } catch (err) {
9
- await this.sessions[id].reject();
10
- }
11
- delete this.sessions[id];
12
- };
13
-
14
- //# sourceMappingURL=commitTransaction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/transactions/commitTransaction.ts"],"sourcesContent":["import type { CommitTransaction } from 'payload/database'\n\nexport const commitTransaction: CommitTransaction = async function commitTransaction(id) {\n // if the session was deleted it has already been aborted\n if (!this.sessions[id]) {\n return\n }\n\n try {\n await this.sessions[id].resolve()\n } catch (err: unknown) {\n await this.sessions[id].reject()\n }\n\n delete this.sessions[id]\n}\n"],"names":["commitTransaction","id","sessions","resolve","err","reject"],"rangeMappings":";;;;;;;;;;;","mappings":"AAEA,OAAO,MAAMA,oBAAuC,eAAeA,kBAAkBC,EAAE;IACrF,yDAAyD;IACzD,IAAI,CAAC,IAAI,CAACC,QAAQ,CAACD,GAAG,EAAE;QACtB;IACF;IAEA,IAAI;QACF,MAAM,IAAI,CAACC,QAAQ,CAACD,GAAG,CAACE,OAAO;IACjC,EAAE,OAAOC,KAAc;QACrB,MAAM,IAAI,CAACF,QAAQ,CAACD,GAAG,CAACI,MAAM;IAChC;IAEA,OAAO,IAAI,CAACH,QAAQ,CAACD,GAAG;AAC1B,EAAC"}
@@ -1,3 +0,0 @@
1
- import type { RollbackTransaction } from 'payload/database';
2
- export declare const rollbackTransaction: RollbackTransaction;
3
- //# sourceMappingURL=rollbackTransaction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rollbackTransaction.d.ts","sourceRoot":"","sources":["../../src/transactions/rollbackTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,eAAO,MAAM,mBAAmB,EAAE,mBAcjC,CAAA"}
@@ -1,13 +0,0 @@
1
- export const rollbackTransaction = async function rollbackTransaction(id = '') {
2
- // if multiple operations are using the same transaction, the first will flow through and delete the session.
3
- // subsequent calls should be ignored.
4
- if (!this.sessions[id]) {
5
- return;
6
- }
7
- // end the session promise in failure by calling reject
8
- await this.sessions[id].reject();
9
- // delete the session causing any other operations with the same transaction to fail
10
- delete this.sessions[id];
11
- };
12
-
13
- //# sourceMappingURL=rollbackTransaction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/transactions/rollbackTransaction.ts"],"sourcesContent":["import type { RollbackTransaction } from 'payload/database'\n\nexport const rollbackTransaction: RollbackTransaction = async function rollbackTransaction(\n id = '',\n) {\n // if multiple operations are using the same transaction, the first will flow through and delete the session.\n // subsequent calls should be ignored.\n if (!this.sessions[id]) {\n return\n }\n\n // end the session promise in failure by calling reject\n await this.sessions[id].reject()\n\n // delete the session causing any other operations with the same transaction to fail\n delete this.sessions[id]\n}\n"],"names":["rollbackTransaction","id","sessions","reject"],"rangeMappings":";;;;;;;;;;","mappings":"AAEA,OAAO,MAAMA,sBAA2C,eAAeA,oBACrEC,KAAK,EAAE;IAEP,6GAA6G;IAC7G,sCAAsC;IACtC,IAAI,CAAC,IAAI,CAACC,QAAQ,CAACD,GAAG,EAAE;QACtB;IACF;IAEA,uDAAuD;IACvD,MAAM,IAAI,CAACC,QAAQ,CAACD,GAAG,CAACE,MAAM;IAE9B,oFAAoF;IACpF,OAAO,IAAI,CAACD,QAAQ,CAACD,GAAG;AAC1B,EAAC"}
@@ -1,10 +0,0 @@
1
- import type { NumberField } from 'payload/types';
2
- type Args = {
3
- field: NumberField;
4
- locale?: string;
5
- numberRows: Record<string, unknown>[];
6
- ref: Record<string, unknown>;
7
- };
8
- export declare const transformHasManyNumber: ({ field, locale, numberRows, ref }: Args) => void;
9
- export {};
10
- //# sourceMappingURL=hasManyNumber.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hasManyNumber.d.ts","sourceRoot":"","sources":["../../../src/transform/read/hasManyNumber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,WAAW,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;IACrC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,sBAAsB,uCAAwC,IAAI,SAQ9E,CAAA"}
@@ -1,10 +0,0 @@
1
- /* eslint-disable no-param-reassign */ export const transformHasManyNumber = ({ field, locale, numberRows, ref })=>{
2
- const result = numberRows.map(({ number })=>number);
3
- if (locale) {
4
- ref[field.name][locale] = result;
5
- } else {
6
- ref[field.name] = result;
7
- }
8
- };
9
-
10
- //# sourceMappingURL=hasManyNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/transform/read/hasManyNumber.ts"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport type { NumberField } from 'payload/types'\n\ntype Args = {\n field: NumberField\n locale?: string\n numberRows: Record<string, unknown>[]\n ref: Record<string, unknown>\n}\n\nexport const transformHasManyNumber = ({ field, locale, numberRows, ref }: Args) => {\n const result = numberRows.map(({ number }) => number)\n\n if (locale) {\n ref[field.name][locale] = result\n } else {\n ref[field.name] = result\n }\n}\n"],"names":["transformHasManyNumber","field","locale","numberRows","ref","result","map","number","name"],"rangeMappings":";;;;;;;","mappings":"AAAA,oCAAoC,GAUpC,OAAO,MAAMA,yBAAyB,CAAC,EAAEC,KAAK,EAAEC,MAAM,EAAEC,UAAU,EAAEC,GAAG,EAAQ;IAC7E,MAAMC,SAASF,WAAWG,GAAG,CAAC,CAAC,EAAEC,MAAM,EAAE,GAAKA;IAE9C,IAAIL,QAAQ;QACVE,GAAG,CAACH,MAAMO,IAAI,CAAC,CAACN,OAAO,GAAGG;IAC5B,OAAO;QACLD,GAAG,CAACH,MAAMO,IAAI,CAAC,GAAGH;IACpB;AACF,EAAC"}
@@ -1,10 +0,0 @@
1
- import type { TextField } from 'payload/types';
2
- type Args = {
3
- field: TextField;
4
- locale?: string;
5
- ref: Record<string, unknown>;
6
- textRows: Record<string, unknown>[];
7
- };
8
- export declare const transformHasManyText: ({ field, locale, ref, textRows }: Args) => void;
9
- export {};
10
- //# sourceMappingURL=hasManyText.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hasManyText.d.ts","sourceRoot":"","sources":["../../../src/transform/read/hasManyText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,oBAAoB,qCAAsC,IAAI,SAQ1E,CAAA"}
@@ -1,10 +0,0 @@
1
- /* eslint-disable no-param-reassign */ export const transformHasManyText = ({ field, locale, ref, textRows })=>{
2
- const result = textRows.map(({ text })=>text);
3
- if (locale) {
4
- ref[field.name][locale] = result;
5
- } else {
6
- ref[field.name] = result;
7
- }
8
- };
9
-
10
- //# sourceMappingURL=hasManyText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/transform/read/hasManyText.ts"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport type { TextField } from 'payload/types'\n\ntype Args = {\n field: TextField\n locale?: string\n ref: Record<string, unknown>\n textRows: Record<string, unknown>[]\n}\n\nexport const transformHasManyText = ({ field, locale, ref, textRows }: Args) => {\n const result = textRows.map(({ text }) => text)\n\n if (locale) {\n ref[field.name][locale] = result\n } else {\n ref[field.name] = result\n }\n}\n"],"names":["transformHasManyText","field","locale","ref","textRows","result","map","text","name"],"rangeMappings":";;;;;;;","mappings":"AAAA,oCAAoC,GAUpC,OAAO,MAAMA,uBAAuB,CAAC,EAAEC,KAAK,EAAEC,MAAM,EAAEC,GAAG,EAAEC,QAAQ,EAAQ;IACzE,MAAMC,SAASD,SAASE,GAAG,CAAC,CAAC,EAAEC,IAAI,EAAE,GAAKA;IAE1C,IAAIL,QAAQ;QACVC,GAAG,CAACF,MAAMO,IAAI,CAAC,CAACN,OAAO,GAAGG;IAC5B,OAAO;QACLF,GAAG,CAACF,MAAMO,IAAI,CAAC,GAAGH;IACpB;AACF,EAAC"}
@@ -1,14 +0,0 @@
1
- import type { SanitizedConfig } from 'payload/config';
2
- import type { Field, TypeWithID } from 'payload/types';
3
- import type { PostgresAdapter } from '../../types.js';
4
- type TransformArgs = {
5
- adapter: PostgresAdapter;
6
- config: SanitizedConfig;
7
- data: Record<string, unknown>;
8
- fallbackLocale?: false | string;
9
- fields: Field[];
10
- locale?: string;
11
- };
12
- export declare const transform: <T extends TypeWithID>({ adapter, config, data, fields, }: TransformArgs) => T;
13
- export {};
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transform/read/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAMrD,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,eAAe,CAAA;IACxB,MAAM,EAAE,eAAe,CAAA;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC/B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAID,eAAO,MAAM,SAAS,6DAKnB,aAAa,KAAG,CA2ClB,CAAA"}
@@ -1,44 +0,0 @@
1
- /* eslint-disable no-param-reassign */ import { createBlocksMap } from '../../utilities/createBlocksMap.js';
2
- import { createPathMap } from '../../utilities/createRelationshipMap.js';
3
- import { traverseFields } from './traverseFields.js';
4
- // This is the entry point to transform Drizzle output data
5
- // into the shape Payload expects based on field schema
6
- export const transform = ({ adapter, config, data, fields })=>{
7
- let relationships = {};
8
- let texts = {};
9
- let numbers = {};
10
- if ('_rels' in data) {
11
- relationships = createPathMap(data._rels);
12
- delete data._rels;
13
- }
14
- if ('_texts' in data) {
15
- texts = createPathMap(data._texts);
16
- delete data._texts;
17
- }
18
- if ('_numbers' in data) {
19
- numbers = createPathMap(data._numbers);
20
- delete data._numbers;
21
- }
22
- const blocks = createBlocksMap(data);
23
- const deletions = [];
24
- const result = traverseFields({
25
- adapter,
26
- blocks,
27
- config,
28
- dataRef: {
29
- id: data.id
30
- },
31
- deletions,
32
- fieldPrefix: '',
33
- fields,
34
- numbers,
35
- path: '',
36
- relationships,
37
- table: data,
38
- texts
39
- });
40
- deletions.forEach((deletion)=>deletion());
41
- return result;
42
- };
43
-
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/transform/read/index.ts"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport type { SanitizedConfig } from 'payload/config'\nimport type { Field, TypeWithID } from 'payload/types'\n\nimport type { PostgresAdapter } from '../../types.js'\n\nimport { createBlocksMap } from '../../utilities/createBlocksMap.js'\nimport { createPathMap } from '../../utilities/createRelationshipMap.js'\nimport { traverseFields } from './traverseFields.js'\n\ntype TransformArgs = {\n adapter: PostgresAdapter\n config: SanitizedConfig\n data: Record<string, unknown>\n fallbackLocale?: false | string\n fields: Field[]\n locale?: string\n}\n\n// This is the entry point to transform Drizzle output data\n// into the shape Payload expects based on field schema\nexport const transform = <T extends TypeWithID>({\n adapter,\n config,\n data,\n fields,\n}: TransformArgs): T => {\n let relationships: Record<string, Record<string, unknown>[]> = {}\n let texts: Record<string, Record<string, unknown>[]> = {}\n let numbers: Record<string, Record<string, unknown>[]> = {}\n\n if ('_rels' in data) {\n relationships = createPathMap(data._rels)\n delete data._rels\n }\n\n if ('_texts' in data) {\n texts = createPathMap(data._texts)\n delete data._texts\n }\n\n if ('_numbers' in data) {\n numbers = createPathMap(data._numbers)\n delete data._numbers\n }\n\n const blocks = createBlocksMap(data)\n const deletions = []\n\n const result = traverseFields<T>({\n adapter,\n blocks,\n config,\n dataRef: {\n id: data.id,\n },\n deletions,\n fieldPrefix: '',\n fields,\n numbers,\n path: '',\n relationships,\n table: data,\n texts,\n })\n\n deletions.forEach((deletion) => deletion())\n\n return result\n}\n"],"names":["createBlocksMap","createPathMap","traverseFields","transform","adapter","config","data","fields","relationships","texts","numbers","_rels","_texts","_numbers","blocks","deletions","result","dataRef","id","fieldPrefix","path","table","forEach","deletion"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,oCAAoC,GAMpC,SAASA,eAAe,QAAQ,qCAAoC;AACpE,SAASC,aAAa,QAAQ,2CAA0C;AACxE,SAASC,cAAc,QAAQ,sBAAqB;AAWpD,2DAA2D;AAC3D,uDAAuD;AACvD,OAAO,MAAMC,YAAY,CAAuB,EAC9CC,OAAO,EACPC,MAAM,EACNC,IAAI,EACJC,MAAM,EACQ;IACd,IAAIC,gBAA2D,CAAC;IAChE,IAAIC,QAAmD,CAAC;IACxD,IAAIC,UAAqD,CAAC;IAE1D,IAAI,WAAWJ,MAAM;QACnBE,gBAAgBP,cAAcK,KAAKK,KAAK;QACxC,OAAOL,KAAKK,KAAK;IACnB;IAEA,IAAI,YAAYL,MAAM;QACpBG,QAAQR,cAAcK,KAAKM,MAAM;QACjC,OAAON,KAAKM,MAAM;IACpB;IAEA,IAAI,cAAcN,MAAM;QACtBI,UAAUT,cAAcK,KAAKO,QAAQ;QACrC,OAAOP,KAAKO,QAAQ;IACtB;IAEA,MAAMC,SAASd,gBAAgBM;IAC/B,MAAMS,YAAY,EAAE;IAEpB,MAAMC,SAASd,eAAkB;QAC/BE;QACAU;QACAT;QACAY,SAAS;YACPC,IAAIZ,KAAKY,EAAE;QACb;QACAH;QACAI,aAAa;QACbZ;QACAG;QACAU,MAAM;QACNZ;QACAa,OAAOf;QACPG;IACF;IAEAM,UAAUO,OAAO,CAAC,CAACC,WAAaA;IAEhC,OAAOP;AACT,EAAC"}
@@ -1,10 +0,0 @@
1
- import type { RelationshipField, UploadField } from 'payload/types';
2
- type Args = {
3
- field: RelationshipField | UploadField;
4
- locale?: string;
5
- ref: Record<string, unknown>;
6
- relations: Record<string, unknown>[];
7
- };
8
- export declare const transformRelationship: ({ field, locale, ref, relations }: Args) => void;
9
- export {};
10
- //# sourceMappingURL=relationship.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"relationship.d.ts","sourceRoot":"","sources":["../../../src/transform/read/relationship.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEnE,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,iBAAiB,GAAG,WAAW,CAAA;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,qBAAqB,sCAAuC,IAAI,SA6D5E,CAAA"}
@@ -1,60 +0,0 @@
1
- /* eslint-disable no-param-reassign */ export const transformRelationship = ({ field, locale, ref, relations })=>{
2
- let result;
3
- if (!('hasMany' in field) || field.hasMany === false) {
4
- const relation = relations[0];
5
- if (relation) {
6
- // Handle hasOne Poly
7
- if (Array.isArray(field.relationTo)) {
8
- const matchedRelation = Object.entries(relation).find(([key, val])=>val !== null && ![
9
- 'id',
10
- 'locale',
11
- 'order',
12
- 'parent',
13
- 'path'
14
- ].includes(key));
15
- if (matchedRelation) {
16
- const relationTo = matchedRelation[0].replace('ID', '');
17
- result = {
18
- relationTo,
19
- value: matchedRelation[1]
20
- };
21
- }
22
- }
23
- }
24
- } else {
25
- const transformedRelations = [];
26
- relations.forEach((relation)=>{
27
- // Handle hasMany
28
- if (!Array.isArray(field.relationTo)) {
29
- const relatedData = relation[`${field.relationTo}ID`];
30
- if (relatedData) {
31
- transformedRelations.push(relatedData);
32
- }
33
- } else {
34
- // Handle hasMany Poly
35
- const matchedRelation = Object.entries(relation).find(([key, val])=>val !== null && ![
36
- 'id',
37
- 'locale',
38
- 'order',
39
- 'parent',
40
- 'path'
41
- ].includes(key));
42
- if (matchedRelation) {
43
- const relationTo = matchedRelation[0].replace('ID', '');
44
- transformedRelations.push({
45
- relationTo,
46
- value: matchedRelation[1]
47
- });
48
- }
49
- }
50
- });
51
- result = transformedRelations;
52
- }
53
- if (locale) {
54
- ref[field.name][locale] = result;
55
- } else {
56
- ref[field.name] = result;
57
- }
58
- };
59
-
60
- //# sourceMappingURL=relationship.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/transform/read/relationship.ts"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport type { RelationshipField, UploadField } from 'payload/types'\n\ntype Args = {\n field: RelationshipField | UploadField\n locale?: string\n ref: Record<string, unknown>\n relations: Record<string, unknown>[]\n}\n\nexport const transformRelationship = ({ field, locale, ref, relations }: Args) => {\n let result: unknown\n\n if (!('hasMany' in field) || field.hasMany === false) {\n const relation = relations[0]\n\n if (relation) {\n // Handle hasOne Poly\n if (Array.isArray(field.relationTo)) {\n const matchedRelation = Object.entries(relation).find(\n ([key, val]) =>\n val !== null && !['id', 'locale', 'order', 'parent', 'path'].includes(key),\n )\n\n if (matchedRelation) {\n const relationTo = matchedRelation[0].replace('ID', '')\n\n result = {\n relationTo,\n value: matchedRelation[1],\n }\n }\n }\n }\n } else {\n const transformedRelations = []\n\n relations.forEach((relation) => {\n // Handle hasMany\n if (!Array.isArray(field.relationTo)) {\n const relatedData = relation[`${field.relationTo}ID`]\n\n if (relatedData) {\n transformedRelations.push(relatedData)\n }\n } else {\n // Handle hasMany Poly\n const matchedRelation = Object.entries(relation).find(\n ([key, val]) =>\n val !== null && !['id', 'locale', 'order', 'parent', 'path'].includes(key),\n )\n\n if (matchedRelation) {\n const relationTo = matchedRelation[0].replace('ID', '')\n\n transformedRelations.push({\n relationTo,\n value: matchedRelation[1],\n })\n }\n }\n })\n\n result = transformedRelations\n }\n\n if (locale) {\n ref[field.name][locale] = result\n } else {\n ref[field.name] = result\n }\n}\n"],"names":["transformRelationship","field","locale","ref","relations","result","hasMany","relation","Array","isArray","relationTo","matchedRelation","Object","entries","find","key","val","includes","replace","value","transformedRelations","forEach","relatedData","push","name"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,oCAAoC,GAUpC,OAAO,MAAMA,wBAAwB,CAAC,EAAEC,KAAK,EAAEC,MAAM,EAAEC,GAAG,EAAEC,SAAS,EAAQ;IAC3E,IAAIC;IAEJ,IAAI,CAAE,CAAA,aAAaJ,KAAI,KAAMA,MAAMK,OAAO,KAAK,OAAO;QACpD,MAAMC,WAAWH,SAAS,CAAC,EAAE;QAE7B,IAAIG,UAAU;YACZ,qBAAqB;YACrB,IAAIC,MAAMC,OAAO,CAACR,MAAMS,UAAU,GAAG;gBACnC,MAAMC,kBAAkBC,OAAOC,OAAO,CAACN,UAAUO,IAAI,CACnD,CAAC,CAACC,KAAKC,IAAI,GACTA,QAAQ,QAAQ,CAAC;wBAAC;wBAAM;wBAAU;wBAAS;wBAAU;qBAAO,CAACC,QAAQ,CAACF;gBAG1E,IAAIJ,iBAAiB;oBACnB,MAAMD,aAAaC,eAAe,CAAC,EAAE,CAACO,OAAO,CAAC,MAAM;oBAEpDb,SAAS;wBACPK;wBACAS,OAAOR,eAAe,CAAC,EAAE;oBAC3B;gBACF;YACF;QACF;IACF,OAAO;QACL,MAAMS,uBAAuB,EAAE;QAE/BhB,UAAUiB,OAAO,CAAC,CAACd;YACjB,iBAAiB;YACjB,IAAI,CAACC,MAAMC,OAAO,CAACR,MAAMS,UAAU,GAAG;gBACpC,MAAMY,cAAcf,QAAQ,CAAC,CAAC,EAAEN,MAAMS,UAAU,CAAC,EAAE,CAAC,CAAC;gBAErD,IAAIY,aAAa;oBACfF,qBAAqBG,IAAI,CAACD;gBAC5B;YACF,OAAO;gBACL,sBAAsB;gBACtB,MAAMX,kBAAkBC,OAAOC,OAAO,CAACN,UAAUO,IAAI,CACnD,CAAC,CAACC,KAAKC,IAAI,GACTA,QAAQ,QAAQ,CAAC;wBAAC;wBAAM;wBAAU;wBAAS;wBAAU;qBAAO,CAACC,QAAQ,CAACF;gBAG1E,IAAIJ,iBAAiB;oBACnB,MAAMD,aAAaC,eAAe,CAAC,EAAE,CAACO,OAAO,CAAC,MAAM;oBAEpDE,qBAAqBG,IAAI,CAAC;wBACxBb;wBACAS,OAAOR,eAAe,CAAC,EAAE;oBAC3B;gBACF;YACF;QACF;QAEAN,SAASe;IACX;IAEA,IAAIlB,QAAQ;QACVC,GAAG,CAACF,MAAMuB,IAAI,CAAC,CAACtB,OAAO,GAAGG;IAC5B,OAAO;QACLF,GAAG,CAACF,MAAMuB,IAAI,CAAC,GAAGnB;IACpB;AACF,EAAC"}
@@ -1,57 +0,0 @@
1
- import type { SanitizedConfig } from 'payload/config';
2
- import type { Field, TabAsField } from 'payload/types';
3
- import type { PostgresAdapter } from '../../types.js';
4
- import type { BlocksMap } from '../../utilities/createBlocksMap.js';
5
- type TraverseFieldsArgs = {
6
- /**
7
- * The DB adapter
8
- */
9
- adapter: PostgresAdapter;
10
- /**
11
- * Pre-formatted blocks map
12
- */
13
- blocks: BlocksMap;
14
- /**
15
- * The full Payload config
16
- */
17
- config: SanitizedConfig;
18
- /**
19
- * The data reference to be mutated within this recursive function
20
- */
21
- dataRef: Record<string, unknown>;
22
- /**
23
- * Data that needs to be removed from the result after all fields have populated
24
- */
25
- deletions: (() => void)[];
26
- /**
27
- * Column prefix can be built up by group and named tab fields
28
- */
29
- fieldPrefix: string;
30
- /**
31
- * An array of Payload fields to traverse
32
- */
33
- fields: (Field | TabAsField)[];
34
- /**
35
- * All hasMany number fields, as returned by Drizzle, keyed on an object by field path
36
- */
37
- numbers: Record<string, Record<string, unknown>[]>;
38
- /**
39
- * The current field path (in dot notation), used to merge in relationships
40
- */
41
- path: string;
42
- /**
43
- * All related documents, as returned by Drizzle, keyed on an object by field path
44
- */
45
- relationships: Record<string, Record<string, unknown>[]>;
46
- /**
47
- * Data structure representing the nearest table from db
48
- */
49
- table: Record<string, unknown>;
50
- /**
51
- * All hasMany text fields, as returned by Drizzle, keyed on an object by field path
52
- */
53
- texts: Record<string, Record<string, unknown>[]>;
54
- };
55
- export declare const traverseFields: <T extends Record<string, unknown>>({ adapter, blocks, config, dataRef, deletions, fieldPrefix, fields, numbers, path, relationships, table, texts, }: TraverseFieldsArgs) => T;
56
- export {};
57
- //# sourceMappingURL=traverseFields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"traverseFields.d.ts","sourceRoot":"","sources":["../../../src/transform/read/traverseFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAItD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAMnE,KAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,eAAe,CAAA;IACxB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAA;IACjB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAA;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC;;OAEG;IACH,SAAS,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,CAAA;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;IAClD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;IACxD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;CACjD,CAAA;AAID,eAAO,MAAM,cAAc,yJAaxB,kBAAkB,KAAG,CAkevB,CAAA"}