@payloadcms/db-postgres 3.0.0-beta.5 → 3.0.0-beta.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) 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 +12 -7
  5. package/dist/connect.js.map +1 -1
  6. package/dist/count.d.ts +3 -0
  7. package/dist/count.d.ts.map +1 -0
  8. package/dist/count.js +41 -0
  9. package/dist/count.js.map +1 -0
  10. package/dist/create.d.ts +1 -1
  11. package/dist/create.d.ts.map +1 -1
  12. package/dist/create.js +3 -5
  13. package/dist/create.js.map +1 -1
  14. package/dist/createGlobal.d.ts +1 -2
  15. package/dist/createGlobal.d.ts.map +1 -1
  16. package/dist/createGlobal.js +3 -5
  17. package/dist/createGlobal.js.map +1 -1
  18. package/dist/createGlobalVersion.d.ts +3 -4
  19. package/dist/createGlobalVersion.d.ts.map +1 -1
  20. package/dist/createGlobalVersion.js +3 -7
  21. package/dist/createGlobalVersion.js.map +1 -1
  22. package/dist/createMigration.d.ts +1 -1
  23. package/dist/createMigration.d.ts.map +1 -1
  24. package/dist/createMigration.js +56 -35
  25. package/dist/createMigration.js.map +1 -1
  26. package/dist/createVersion.d.ts +1 -2
  27. package/dist/createVersion.d.ts.map +1 -1
  28. package/dist/createVersion.js +11 -19
  29. package/dist/createVersion.js.map +1 -1
  30. package/dist/deleteMany.d.ts +1 -1
  31. package/dist/deleteMany.d.ts.map +1 -1
  32. package/dist/deleteMany.js +2 -5
  33. package/dist/deleteMany.js.map +1 -1
  34. package/dist/deleteOne.d.ts +1 -1
  35. package/dist/deleteOne.d.ts.map +1 -1
  36. package/dist/deleteOne.js +4 -7
  37. package/dist/deleteOne.js.map +1 -1
  38. package/dist/deleteVersions.d.ts +1 -1
  39. package/dist/deleteVersions.d.ts.map +1 -1
  40. package/dist/deleteVersions.js +3 -7
  41. package/dist/deleteVersions.js.map +1 -1
  42. package/dist/destroy.d.ts +1 -1
  43. package/dist/destroy.d.ts.map +1 -1
  44. package/dist/destroy.js +11 -7
  45. package/dist/destroy.js.map +1 -1
  46. package/dist/exports/migration-utils.d.ts +2 -0
  47. package/dist/exports/migration-utils.d.ts.map +1 -0
  48. package/dist/exports/migration-utils.js +3 -0
  49. package/dist/exports/migration-utils.js.map +1 -0
  50. package/dist/find/buildFindManyArgs.d.ts +6 -2
  51. package/dist/find/buildFindManyArgs.d.ts.map +1 -1
  52. package/dist/find/buildFindManyArgs.js +4 -3
  53. package/dist/find/buildFindManyArgs.js.map +1 -1
  54. package/dist/find/findMany.d.ts +1 -2
  55. package/dist/find/findMany.d.ts.map +1 -1
  56. package/dist/find/findMany.js +5 -16
  57. package/dist/find/findMany.js.map +1 -1
  58. package/dist/find/traverseFields.d.ts +4 -3
  59. package/dist/find/traverseFields.d.ts.map +1 -1
  60. package/dist/find/traverseFields.js +27 -25
  61. package/dist/find/traverseFields.js.map +1 -1
  62. package/dist/find.d.ts +1 -1
  63. package/dist/find.d.ts.map +1 -1
  64. package/dist/find.js +2 -5
  65. package/dist/find.js.map +1 -1
  66. package/dist/findGlobal.d.ts +1 -1
  67. package/dist/findGlobal.d.ts.map +1 -1
  68. package/dist/findGlobal.js +2 -5
  69. package/dist/findGlobal.js.map +1 -1
  70. package/dist/findGlobalVersions.d.ts +1 -1
  71. package/dist/findGlobalVersions.d.ts.map +1 -1
  72. package/dist/findGlobalVersions.js +3 -7
  73. package/dist/findGlobalVersions.js.map +1 -1
  74. package/dist/findOne.d.ts +1 -2
  75. package/dist/findOne.d.ts.map +1 -1
  76. package/dist/findOne.js +2 -5
  77. package/dist/findOne.js.map +1 -1
  78. package/dist/findVersions.d.ts +1 -1
  79. package/dist/findVersions.d.ts.map +1 -1
  80. package/dist/findVersions.js +3 -7
  81. package/dist/findVersions.js.map +1 -1
  82. package/dist/index.d.ts +1 -1
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +18 -9
  85. package/dist/index.js.map +1 -1
  86. package/dist/init.d.ts +1 -1
  87. package/dist/init.d.ts.map +1 -1
  88. package/dist/init.js +20 -23
  89. package/dist/init.js.map +1 -1
  90. package/dist/migrate.d.ts.map +1 -1
  91. package/dist/migrate.js +1 -1
  92. package/dist/migrate.js.map +1 -1
  93. package/dist/migrateDown.js +1 -1
  94. package/dist/migrateDown.js.map +1 -1
  95. package/dist/migrateFresh.d.ts.map +1 -1
  96. package/dist/migrateFresh.js +1 -1
  97. package/dist/migrateFresh.js.map +1 -1
  98. package/dist/migrateRefresh.js +1 -1
  99. package/dist/migrateRefresh.js.map +1 -1
  100. package/dist/migrateReset.js +1 -1
  101. package/dist/migrateReset.js.map +1 -1
  102. package/dist/migrateStatus.js +1 -1
  103. package/dist/migrateStatus.js.map +1 -1
  104. package/dist/predefinedMigrations/relationships-v2-v3.d.ts +4 -0
  105. package/dist/predefinedMigrations/relationships-v2-v3.d.ts.map +1 -0
  106. package/dist/predefinedMigrations/relationships-v2-v3.js.map +1 -0
  107. package/dist/predefinedMigrations/relationships-v2-v3.mjs +11 -0
  108. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.d.ts +19 -0
  109. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.d.ts.map +1 -0
  110. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.js +170 -0
  111. package/dist/predefinedMigrations/v2-v3/fetchAndResave/index.js.map +1 -0
  112. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.d.ts +11 -0
  113. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.d.ts.map +1 -0
  114. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.js +191 -0
  115. package/dist/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.js.map +1 -0
  116. package/dist/predefinedMigrations/v2-v3/groupUpSQLStatements.d.ts +3 -0
  117. package/dist/predefinedMigrations/v2-v3/groupUpSQLStatements.d.ts.map +1 -0
  118. package/dist/predefinedMigrations/v2-v3/groupUpSQLStatements.js +56 -0
  119. package/dist/predefinedMigrations/v2-v3/groupUpSQLStatements.js.map +1 -0
  120. package/dist/predefinedMigrations/v2-v3/index.d.ts +23 -0
  121. package/dist/predefinedMigrations/v2-v3/index.d.ts.map +1 -0
  122. package/dist/predefinedMigrations/v2-v3/index.js +211 -0
  123. package/dist/predefinedMigrations/v2-v3/index.js.map +1 -0
  124. package/dist/predefinedMigrations/v2-v3/migrateRelationships.d.ts +19 -0
  125. package/dist/predefinedMigrations/v2-v3/migrateRelationships.d.ts.map +1 -0
  126. package/dist/predefinedMigrations/v2-v3/migrateRelationships.js +57 -0
  127. package/dist/predefinedMigrations/v2-v3/migrateRelationships.js.map +1 -0
  128. package/dist/predefinedMigrations/v2-v3/traverseFields.d.ts +22 -0
  129. package/dist/predefinedMigrations/v2-v3/traverseFields.d.ts.map +1 -0
  130. package/dist/predefinedMigrations/v2-v3/traverseFields.js +85 -0
  131. package/dist/predefinedMigrations/v2-v3/traverseFields.js.map +1 -0
  132. package/dist/predefinedMigrations/v2-v3/types.d.ts +9 -0
  133. package/dist/predefinedMigrations/v2-v3/types.d.ts.map +1 -0
  134. package/dist/predefinedMigrations/v2-v3/types.js +6 -0
  135. package/dist/predefinedMigrations/v2-v3/types.js.map +1 -0
  136. package/dist/queries/buildAndOrConditions.d.ts +4 -5
  137. package/dist/queries/buildAndOrConditions.d.ts.map +1 -1
  138. package/dist/queries/buildAndOrConditions.js +1 -2
  139. package/dist/queries/buildAndOrConditions.js.map +1 -1
  140. package/dist/queries/buildQuery.d.ts +2 -3
  141. package/dist/queries/buildQuery.d.ts.map +1 -1
  142. package/dist/queries/buildQuery.js +1 -5
  143. package/dist/queries/buildQuery.js.map +1 -1
  144. package/dist/queries/getTableColumnFromPath.d.ts +4 -5
  145. package/dist/queries/getTableColumnFromPath.d.ts.map +1 -1
  146. package/dist/queries/getTableColumnFromPath.js +250 -146
  147. package/dist/queries/getTableColumnFromPath.js.map +1 -1
  148. package/dist/queries/parseParams.d.ts +4 -5
  149. package/dist/queries/parseParams.d.ts.map +1 -1
  150. package/dist/queries/parseParams.js +9 -8
  151. package/dist/queries/parseParams.js.map +1 -1
  152. package/dist/queries/sanitizeQueryValue.d.ts +1 -1
  153. package/dist/queries/sanitizeQueryValue.d.ts.map +1 -1
  154. package/dist/queries/sanitizeQueryValue.js +2 -3
  155. package/dist/queries/sanitizeQueryValue.js.map +1 -1
  156. package/dist/queries/selectDistinct.d.ts +3 -4
  157. package/dist/queries/selectDistinct.d.ts.map +1 -1
  158. package/dist/queries/selectDistinct.js +3 -14
  159. package/dist/queries/selectDistinct.js.map +1 -1
  160. package/dist/queryDrafts.d.ts +1 -1
  161. package/dist/queryDrafts.d.ts.map +1 -1
  162. package/dist/queryDrafts.js +3 -8
  163. package/dist/queryDrafts.js.map +1 -1
  164. package/dist/schema/build.d.ts +12 -7
  165. package/dist/schema/build.d.ts.map +1 -1
  166. package/dist/schema/build.js +208 -124
  167. package/dist/schema/build.js.map +1 -1
  168. package/dist/schema/{getTableName.d.ts → createTableName.d.ts} +6 -8
  169. package/dist/schema/createTableName.d.ts.map +1 -0
  170. package/dist/schema/createTableName.js +31 -0
  171. package/dist/schema/createTableName.js.map +1 -0
  172. package/dist/schema/idToUUID.d.ts +1 -1
  173. package/dist/schema/idToUUID.d.ts.map +1 -1
  174. package/dist/schema/idToUUID.js.map +1 -1
  175. package/dist/schema/setColumnID.d.ts +1 -1
  176. package/dist/schema/setColumnID.d.ts.map +1 -1
  177. package/dist/schema/setColumnID.js +2 -2
  178. package/dist/schema/setColumnID.js.map +1 -1
  179. package/dist/schema/traverseFields.d.ts +5 -7
  180. package/dist/schema/traverseFields.d.ts.map +1 -1
  181. package/dist/schema/traverseFields.js +147 -63
  182. package/dist/schema/traverseFields.js.map +1 -1
  183. package/dist/schema/validateExistingBlockIsIdentical.d.ts +3 -2
  184. package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +1 -1
  185. package/dist/schema/validateExistingBlockIsIdentical.js +15 -9
  186. package/dist/schema/validateExistingBlockIsIdentical.js.map +1 -1
  187. package/dist/transactions/beginTransaction.d.ts +1 -1
  188. package/dist/transactions/beginTransaction.d.ts.map +1 -1
  189. package/dist/transactions/beginTransaction.js +4 -0
  190. package/dist/transactions/beginTransaction.js.map +1 -1
  191. package/dist/transactions/commitTransaction.d.ts +1 -1
  192. package/dist/transactions/commitTransaction.d.ts.map +1 -1
  193. package/dist/transactions/commitTransaction.js.map +1 -1
  194. package/dist/transactions/rollbackTransaction.d.ts +1 -1
  195. package/dist/transactions/rollbackTransaction.d.ts.map +1 -1
  196. package/dist/transactions/rollbackTransaction.js.map +1 -1
  197. package/dist/transform/read/hasManyNumber.d.ts +1 -1
  198. package/dist/transform/read/hasManyNumber.d.ts.map +1 -1
  199. package/dist/transform/read/hasManyNumber.js.map +1 -1
  200. package/dist/transform/read/hasManyText.d.ts +1 -1
  201. package/dist/transform/read/hasManyText.d.ts.map +1 -1
  202. package/dist/transform/read/hasManyText.js.map +1 -1
  203. package/dist/transform/read/index.d.ts +5 -3
  204. package/dist/transform/read/index.d.ts.map +1 -1
  205. package/dist/transform/read/index.js +2 -1
  206. package/dist/transform/read/index.js.map +1 -1
  207. package/dist/transform/read/relationship.d.ts +1 -1
  208. package/dist/transform/read/relationship.d.ts.map +1 -1
  209. package/dist/transform/read/relationship.js +0 -4
  210. package/dist/transform/read/relationship.js.map +1 -1
  211. package/dist/transform/read/traverseFields.d.ts +8 -3
  212. package/dist/transform/read/traverseFields.d.ts.map +1 -1
  213. package/dist/transform/read/traverseFields.js +70 -56
  214. package/dist/transform/read/traverseFields.js.map +1 -1
  215. package/dist/transform/write/array.d.ts +1 -1
  216. package/dist/transform/write/array.d.ts.map +1 -1
  217. package/dist/transform/write/array.js.map +1 -1
  218. package/dist/transform/write/blocks.d.ts +1 -1
  219. package/dist/transform/write/blocks.d.ts.map +1 -1
  220. package/dist/transform/write/blocks.js +1 -1
  221. package/dist/transform/write/blocks.js.map +1 -1
  222. package/dist/transform/write/index.d.ts +1 -1
  223. package/dist/transform/write/index.d.ts.map +1 -1
  224. package/dist/transform/write/index.js.map +1 -1
  225. package/dist/transform/write/relationships.d.ts +1 -1
  226. package/dist/transform/write/relationships.d.ts.map +1 -1
  227. package/dist/transform/write/relationships.js +1 -1
  228. package/dist/transform/write/relationships.js.map +1 -1
  229. package/dist/transform/write/traverseFields.d.ts +1 -1
  230. package/dist/transform/write/traverseFields.d.ts.map +1 -1
  231. package/dist/transform/write/traverseFields.js +23 -6
  232. package/dist/transform/write/traverseFields.js.map +1 -1
  233. package/dist/types.d.ts +7 -9
  234. package/dist/types.d.ts.map +1 -1
  235. package/dist/types.js.map +1 -1
  236. package/dist/update.d.ts +1 -1
  237. package/dist/update.d.ts.map +1 -1
  238. package/dist/update.js +3 -7
  239. package/dist/update.js.map +1 -1
  240. package/dist/updateGlobal.d.ts +1 -2
  241. package/dist/updateGlobal.d.ts.map +1 -1
  242. package/dist/updateGlobal.js +2 -5
  243. package/dist/updateGlobal.js.map +1 -1
  244. package/dist/updateGlobalVersion.d.ts +1 -2
  245. package/dist/updateGlobalVersion.d.ts.map +1 -1
  246. package/dist/updateGlobalVersion.js +3 -7
  247. package/dist/updateGlobalVersion.js.map +1 -1
  248. package/dist/updateVersion.d.ts +1 -2
  249. package/dist/updateVersion.d.ts.map +1 -1
  250. package/dist/updateVersion.js +3 -7
  251. package/dist/updateVersion.js.map +1 -1
  252. package/dist/upsertRow/index.d.ts +2 -2
  253. package/dist/upsertRow/index.d.ts.map +1 -1
  254. package/dist/upsertRow/index.js +10 -7
  255. package/dist/upsertRow/index.js.map +1 -1
  256. package/dist/upsertRow/insertArrays.d.ts.map +1 -1
  257. package/dist/upsertRow/insertArrays.js +3 -3
  258. package/dist/upsertRow/insertArrays.js.map +1 -1
  259. package/dist/upsertRow/types.d.ts +7 -2
  260. package/dist/upsertRow/types.d.ts.map +1 -1
  261. package/dist/upsertRow/types.js.map +1 -1
  262. package/dist/utilities/hasLocalesTable.d.ts +1 -1
  263. package/dist/utilities/hasLocalesTable.d.ts.map +1 -1
  264. package/dist/utilities/hasLocalesTable.js +1 -1
  265. package/dist/utilities/hasLocalesTable.js.map +1 -1
  266. package/dist/utilities/pushDevSchema.d.ts.map +1 -1
  267. package/dist/utilities/pushDevSchema.js +1 -1
  268. package/dist/utilities/pushDevSchema.js.map +1 -1
  269. package/package.json +33 -28
  270. package/dist/schema/getTableName.d.ts.map +0 -1
  271. package/dist/schema/getTableName.js +0 -31
  272. package/dist/schema/getTableName.js.map +0 -1
  273. package/src/index.ts +0 -156
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/queries/buildAndOrConditions.ts"],"sourcesContent":["import type { SQL } from 'drizzle-orm'\nimport type { Field, Where } from 'payload/types'\n\nimport type { GenericColumn, PostgresAdapter } from '../types.js'\nimport type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery.js'\n\nimport { parseParams } from './parseParams.js'\n\nexport async function buildAndOrConditions({\n adapter,\n fields,\n joinAliases,\n joins,\n locale,\n selectFields,\n tableName,\n where,\n}: {\n adapter: PostgresAdapter\n collectionSlug?: string\n fields: Field[]\n globalSlug?: string\n joinAliases: BuildQueryJoinAliases\n joins: BuildQueryJoins\n locale?: string\n selectFields: Record<string, GenericColumn>\n tableName: string\n where: Where[]\n}): Promise<SQL[]> {\n const completedConditions = []\n // Loop over all AND / OR operations and add them to the AND / OR query param\n // Operations should come through as an array\n // eslint-disable-next-line no-restricted-syntax\n for (const condition of where) {\n // If the operation is properly formatted as an object\n if (typeof condition === 'object') {\n // eslint-disable-next-line no-await-in-loop\n const result = await parseParams({\n adapter,\n fields,\n joinAliases,\n joins,\n locale,\n selectFields,\n tableName,\n where: condition,\n })\n if (result && Object.keys(result).length > 0) {\n completedConditions.push(result)\n }\n }\n }\n return completedConditions\n}\n"],"names":["parseParams","buildAndOrConditions","adapter","fields","joinAliases","joins","locale","selectFields","tableName","where","completedConditions","condition","result","Object","keys","length","push"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAMA,SAASA,WAAW,QAAQ,mBAAkB;AAE9C,OAAO,eAAeC,qBAAqB,EACzCC,OAAO,EACPC,MAAM,EACNC,WAAW,EACXC,KAAK,EACLC,MAAM,EACNC,YAAY,EACZC,SAAS,EACTC,KAAK,EAYN;IACC,MAAMC,sBAAsB,EAAE;IAC9B,6EAA6E;IAC7E,6CAA6C;IAC7C,gDAAgD;IAChD,KAAK,MAAMC,aAAaF,MAAO;QAC7B,sDAAsD;QACtD,IAAI,OAAOE,cAAc,UAAU;YACjC,4CAA4C;YAC5C,MAAMC,SAAS,MAAMZ,YAAY;gBAC/BE;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC,OAAOE;YACT;YACA,IAAIC,UAAUC,OAAOC,IAAI,CAACF,QAAQG,MAAM,GAAG,GAAG;gBAC5CL,oBAAoBM,IAAI,CAACJ;YAC3B;QACF;IACF;IACA,OAAOF;AACT"}
1
+ {"version":3,"sources":["../../src/queries/buildAndOrConditions.ts"],"sourcesContent":["import type { SQL } from 'drizzle-orm'\nimport type { Field, Where } from 'payload'\n\nimport type { GenericColumn, PostgresAdapter } from '../types.js'\nimport type { BuildQueryJoinAliases } from './buildQuery.js'\n\nimport { parseParams } from './parseParams.js'\n\nexport async function buildAndOrConditions({\n adapter,\n fields,\n joins,\n locale,\n selectFields,\n tableName,\n where,\n}: {\n adapter: PostgresAdapter\n collectionSlug?: string\n fields: Field[]\n globalSlug?: string\n joins: BuildQueryJoinAliases\n locale?: string\n selectFields: Record<string, GenericColumn>\n tableName: string\n where: Where[]\n}): Promise<SQL[]> {\n const completedConditions = []\n // Loop over all AND / OR operations and add them to the AND / OR query param\n // Operations should come through as an array\n // eslint-disable-next-line no-restricted-syntax\n for (const condition of where) {\n // If the operation is properly formatted as an object\n if (typeof condition === 'object') {\n // eslint-disable-next-line no-await-in-loop\n const result = await parseParams({\n adapter,\n fields,\n joins,\n locale,\n selectFields,\n tableName,\n where: condition,\n })\n if (result && Object.keys(result).length > 0) {\n completedConditions.push(result)\n }\n }\n }\n return completedConditions\n}\n"],"names":["parseParams","buildAndOrConditions","adapter","fields","joins","locale","selectFields","tableName","where","completedConditions","condition","result","Object","keys","length","push"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAMA,SAASA,WAAW,QAAQ,mBAAkB;AAE9C,OAAO,eAAeC,qBAAqB,EACzCC,OAAO,EACPC,MAAM,EACNC,KAAK,EACLC,MAAM,EACNC,YAAY,EACZC,SAAS,EACTC,KAAK,EAWN;IACC,MAAMC,sBAAsB,EAAE;IAC9B,6EAA6E;IAC7E,6CAA6C;IAC7C,gDAAgD;IAChD,KAAK,MAAMC,aAAaF,MAAO;QAC7B,sDAAsD;QACtD,IAAI,OAAOE,cAAc,UAAU;YACjC,4CAA4C;YAC5C,MAAMC,SAAS,MAAMX,YAAY;gBAC/BE;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC;gBACAC,OAAOE;YACT;YACA,IAAIC,UAAUC,OAAOC,IAAI,CAACF,QAAQG,MAAM,GAAG,GAAG;gBAC5CL,oBAAoBM,IAAI,CAACJ;YAC3B;QACF;IACF;IACA,OAAOF;AACT"}
@@ -1,6 +1,6 @@
1
1
  import type { SQL } from 'drizzle-orm';
2
2
  import type { PgTableWithColumns } from 'drizzle-orm/pg-core';
3
- import type { Field, Where } from 'payload/types';
3
+ import type { Field, Where } from 'payload';
4
4
  import { asc, desc } from 'drizzle-orm';
5
5
  import type { GenericColumn, GenericTable, PostgresAdapter } from '../types.js';
6
6
  export type BuildQueryJoins = Record<string, SQL>;
@@ -17,8 +17,7 @@ type BuildQueryArgs = {
17
17
  where: Where;
18
18
  };
19
19
  type Result = {
20
- joinAliases: BuildQueryJoinAliases;
21
- joins: BuildQueryJoins;
20
+ joins: BuildQueryJoinAliases;
22
21
  orderBy: {
23
22
  column: GenericColumn;
24
23
  order: typeof asc | typeof desc;
@@ -1 +1 @@
1
- {"version":3,"file":"buildQuery.d.ts","sourceRoot":"","sources":["../../src/queries/buildQuery.ts"],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6
6
  id: adapter.tables[tableName].id
7
7
  };
8
- const joins = {};
9
- const joinAliases = [];
8
+ const joins = [];
10
9
  const orderBy = {
11
10
  column: null,
12
11
  order: null
@@ -25,7 +24,6 @@ const buildQuery = async function buildQuery({ adapter, fields, locale, sort, ta
25
24
  adapter,
26
25
  collectionPath: sortPath,
27
26
  fields,
28
- joinAliases,
29
27
  joins,
30
28
  locale,
31
29
  pathSegments: sortPath.replace(/__/g, '.').split('.'),
@@ -55,7 +53,6 @@ const buildQuery = async function buildQuery({ adapter, fields, locale, sort, ta
55
53
  where = await parseParams({
56
54
  adapter,
57
55
  fields,
58
- joinAliases,
59
56
  joins,
60
57
  locale,
61
58
  selectFields,
@@ -64,7 +61,6 @@ const buildQuery = async function buildQuery({ adapter, fields, locale, sort, ta
64
61
  });
65
62
  }
66
63
  return {
67
- joinAliases,
68
64
  joins,
69
65
  orderBy,
70
66
  selectFields,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/queries/buildQuery.ts"],"sourcesContent":["import type { SQL } from 'drizzle-orm'\nimport type { PgTableWithColumns } from 'drizzle-orm/pg-core'\nimport type { Field, Where } from 'payload/types'\n\nimport { asc, desc } from 'drizzle-orm'\n\nimport type { GenericColumn, GenericTable, PostgresAdapter } from '../types.js'\n\nimport { getTableColumnFromPath } from './getTableColumnFromPath.js'\nimport { parseParams } from './parseParams.js'\n\nexport type BuildQueryJoins = Record<string, SQL>\n\nexport type BuildQueryJoinAliases = {\n condition: SQL\n table: GenericTable | PgTableWithColumns<any>\n}[]\n\ntype BuildQueryArgs = {\n adapter: PostgresAdapter\n fields: Field[]\n locale?: string\n sort?: string\n tableName: string\n where: Where\n}\n\ntype Result = {\n joinAliases: BuildQueryJoinAliases\n joins: BuildQueryJoins\n orderBy: {\n column: GenericColumn\n order: typeof asc | typeof desc\n }\n selectFields: Record<string, GenericColumn>\n where: SQL\n}\nconst buildQuery = async function buildQuery({\n adapter,\n fields,\n locale,\n sort,\n tableName,\n where: incomingWhere,\n}: BuildQueryArgs): Promise<Result> {\n const selectFields: Record<string, GenericColumn> = {\n id: adapter.tables[tableName].id,\n }\n const joins: BuildQueryJoins = {}\n const joinAliases: BuildQueryJoinAliases = []\n\n const orderBy: Result['orderBy'] = {\n column: null,\n order: null,\n }\n\n if (sort) {\n let sortPath\n\n if (sort[0] === '-') {\n sortPath = sort.substring(1)\n orderBy.order = desc\n } else {\n sortPath = sort\n orderBy.order = asc\n }\n\n try {\n const { columnName: sortTableColumnName, table: sortTable } = getTableColumnFromPath({\n adapter,\n collectionPath: sortPath,\n fields,\n joinAliases,\n joins,\n locale,\n pathSegments: sortPath.replace(/__/g, '.').split('.'),\n selectFields,\n tableName,\n value: sortPath,\n })\n orderBy.column = sortTable?.[sortTableColumnName]\n } catch (err) {\n // continue\n }\n }\n\n if (!orderBy?.column) {\n orderBy.order = desc\n const createdAt = adapter.tables[tableName]?.createdAt\n\n if (createdAt) {\n orderBy.column = createdAt\n } else {\n orderBy.column = adapter.tables[tableName].id\n }\n }\n\n if (orderBy.column) {\n selectFields.sort = orderBy.column\n }\n\n let where: SQL\n\n if (incomingWhere && Object.keys(incomingWhere).length > 0) {\n where = await parseParams({\n adapter,\n fields,\n joinAliases,\n joins,\n locale,\n selectFields,\n tableName,\n where: incomingWhere,\n })\n }\n\n return {\n joinAliases,\n joins,\n orderBy,\n selectFields,\n where,\n }\n}\n\nexport default buildQuery\n"],"names":["asc","desc","getTableColumnFromPath","parseParams","buildQuery","adapter","fields","locale","sort","tableName","where","incomingWhere","selectFields","id","tables","joins","joinAliases","orderBy","column","order","sortPath","substring","columnName","sortTableColumnName","table","sortTable","collectionPath","pathSegments","replace","split","value","err","createdAt","Object","keys","length"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAIA,SAASA,GAAG,EAAEC,IAAI,QAAQ,cAAa;AAIvC,SAASC,sBAAsB,QAAQ,8BAA6B;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AAIC,iBAAiBsB,OAAOC,IAAI,CAACvB,eAAewB,MAAM,GAAG,GAAG;QAC1DzB,QAAQ,MAAMP,YAAY;YACxBE;YACAC;YACAU;YACAD;YACAR;YACAK;YACAH;YACAC,OAAOC;QACT;IACF;IAEA,OAAO;QACLK;QACAD;QACAE;QACAL;QACAF;IACF;AACF;AAEA,eAAeN,WAAU"}
1
+ {"version":3,"sources":["../../src/queries/buildQuery.ts"],"sourcesContent":["import type { SQL } from 'drizzle-orm'\nimport type { PgTableWithColumns } from 'drizzle-orm/pg-core'\nimport type { Field, Where } from 'payload'\n\nimport { asc, desc } from 'drizzle-orm'\n\nimport type { GenericColumn, GenericTable, PostgresAdapter } from '../types.js'\n\nimport { getTableColumnFromPath } from './getTableColumnFromPath.js'\nimport { parseParams } from './parseParams.js'\n\nexport type BuildQueryJoins = Record<string, SQL>\n\nexport type BuildQueryJoinAliases = {\n condition: SQL\n table: GenericTable | PgTableWithColumns<any>\n}[]\n\ntype BuildQueryArgs = {\n adapter: PostgresAdapter\n fields: Field[]\n locale?: string\n sort?: string\n tableName: string\n where: Where\n}\n\ntype Result = {\n joins: BuildQueryJoinAliases\n orderBy: {\n column: GenericColumn\n order: typeof asc | typeof desc\n }\n selectFields: Record<string, GenericColumn>\n where: SQL\n}\nconst buildQuery = async function buildQuery({\n adapter,\n fields,\n locale,\n sort,\n tableName,\n where: incomingWhere,\n}: BuildQueryArgs): Promise<Result> {\n const selectFields: Record<string, GenericColumn> = {\n id: adapter.tables[tableName].id,\n }\n const joins: BuildQueryJoinAliases = []\n\n const orderBy: Result['orderBy'] = {\n column: null,\n order: null,\n }\n\n if (sort) {\n let sortPath\n\n if (sort[0] === '-') {\n sortPath = sort.substring(1)\n orderBy.order = desc\n } else {\n sortPath = sort\n orderBy.order = asc\n }\n\n try {\n const { columnName: sortTableColumnName, table: sortTable } = getTableColumnFromPath({\n adapter,\n collectionPath: sortPath,\n fields,\n joins,\n locale,\n pathSegments: sortPath.replace(/__/g, '.').split('.'),\n selectFields,\n tableName,\n value: sortPath,\n })\n orderBy.column = sortTable?.[sortTableColumnName]\n } catch (err) {\n // continue\n }\n }\n\n if (!orderBy?.column) {\n orderBy.order = desc\n const createdAt = adapter.tables[tableName]?.createdAt\n\n if (createdAt) {\n orderBy.column = createdAt\n } else {\n orderBy.column = adapter.tables[tableName].id\n }\n }\n\n if (orderBy.column) {\n selectFields.sort = orderBy.column\n }\n\n let where: SQL\n\n if (incomingWhere && Object.keys(incomingWhere).length > 0) {\n where = await parseParams({\n adapter,\n fields,\n joins,\n locale,\n selectFields,\n tableName,\n where: incomingWhere,\n })\n }\n\n return {\n joins,\n orderBy,\n selectFields,\n where,\n }\n}\n\nexport default buildQuery\n"],"names":["asc","desc","getTableColumnFromPath","parseParams","buildQuery","adapter","fields","locale","sort","tableName","where","incomingWhere","selectFields","id","tables","joins","orderBy","column","order","sortPath","substring","columnName","sortTableColumnName","table","sortTable","collectionPath","pathSegments","replace","split","value","err","createdAt","Object","keys","length"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAIA,SAASA,GAAG,EAAEC,IAAI,QAAQ,cAAa;AAIvC,SAASC,sBAAsB,QAAQ,8BAA6B;AACpE,SAASC,WAAW,QAAQ,mBAAkB;AA2B9C,MAAMC,aAAa,eAAeA,WAAW,EAC3CC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,IAAI,EACJC,SAAS,EACTC,OAAOC,aAAa,EACL;IACf,MAAMC,eAA8C;QAClDC,IAAIR,QAAQS,MAAM,CAACL,UAAU,CAACI,EAAE;IAClC;IACA,MAAME,QAA+B,EAAE;IAEvC,MAAMC,UAA6B;QACjCC,QAAQ;QACRC,OAAO;IACT;IAEA,IAAIV,MAAM;QACR,IAAIW;QAEJ,IAAIX,IAAI,CAAC,EAAE,KAAK,KAAK;YACnBW,WAAWX,KAAKY,SAAS,CAAC;YAC1BJ,QAAQE,KAAK,GAAGjB;QAClB,OAAO;YACLkB,WAAWX;YACXQ,QAAQE,KAAK,GAAGlB;QAClB;QAEA,IAAI;YACF,MAAM,EAAEqB,YAAYC,mBAAmB,EAAEC,OAAOC,SAAS,EAAE,GAAGtB,uBAAuB;gBACnFG;gBACAoB,gBAAgBN;gBAChBb;gBACAS;gBACAR;gBACAmB,cAAcP,SAASQ,OAAO,CAAC,OAAO,KAAKC,KAAK,CAAC;gBACjDhB;gBACAH;gBACAoB,OAAOV;YACT;YACAH,QAAQC,MAAM,GAAGO,WAAW,CAACF,oBAAoB;QACnD,EAAE,OAAOQ,KAAK;QACZ,WAAW;QACb;IACF;IAEA,IAAI,CAACd,SAASC,QAAQ;QACpBD,QAAQE,KAAK,GAAGjB;QAChB,MAAM8B,YAAY1B,QAAQS,MAAM,CAACL,UAAU,EAAEsB;QAE7C,IAAIA,WAAW;YACbf,QAAQC,MAAM,GAAGc;QACnB,OAAO;YACLf,QAAQC,MAAM,GAAGZ,QAAQS,MAAM,CAACL,UAAU,CAACI,EAAE;QAC/C;IACF;IAEA,IAAIG,QAAQC,MAAM,EAAE;QAClBL,aAAaJ,IAAI,GAAGQ,QAAQC,MAAM;IACpC;IAEA,IAAIP;IAEJ,IAAIC,iBAAiBqB,OAAOC,IAAI,CAACtB,eAAeuB,MAAM,GAAG,GAAG;QAC1DxB,QAAQ,MAAMP,YAAY;YACxBE;YACAC;YACAS;YACAR;YACAK;YACAH;YACAC,OAAOC;QACT;IACF;IAEA,OAAO;QACLI;QACAC;QACAJ;QACAF;IACF;AACF;AAEA,eAAeN,WAAU"}
@@ -1,8 +1,8 @@
1
1
  import type { SQL } from 'drizzle-orm';
2
2
  import type { PgTableWithColumns } from 'drizzle-orm/pg-core';
3
- import type { Field, FieldAffectingData, TabAsField } from 'payload/types';
3
+ import type { Field, FieldAffectingData, TabAsField } from 'payload';
4
4
  import type { GenericColumn, GenericTable, PostgresAdapter } from '../types.js';
5
- import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery.js';
5
+ import type { BuildQueryJoinAliases } from './buildQuery.js';
6
6
  type Constraint = {
7
7
  columnName: string;
8
8
  table: GenericTable | PgTableWithColumns<any>;
@@ -25,8 +25,7 @@ type Args = {
25
25
  constraintPath?: string;
26
26
  constraints?: Constraint[];
27
27
  fields: (Field | TabAsField)[];
28
- joinAliases: BuildQueryJoinAliases;
29
- joins: BuildQueryJoins;
28
+ joins: BuildQueryJoinAliases;
30
29
  locale?: string;
31
30
  pathSegments: string[];
32
31
  rootTableName?: string;
@@ -46,6 +45,6 @@ type Args = {
46
45
  * Adds tables to `join`
47
46
  * @returns TableColumn
48
47
  */
49
- export declare const getTableColumnFromPath: ({ adapter, aliasTable, collectionPath, columnPrefix, constraintPath: incomingConstraintPath, constraints, fields, joinAliases, joins, locale: incomingLocale, pathSegments: incomingSegments, rootTableName: incomingRootTableName, selectFields, tableName, tableNameSuffix, value, }: Args) => TableColumn;
48
+ export declare const getTableColumnFromPath: ({ adapter, aliasTable, collectionPath, columnPrefix, constraintPath: incomingConstraintPath, constraints, fields, joins, locale: incomingLocale, pathSegments: incomingSegments, rootTableName: incomingRootTableName, selectFields, tableName, tableNameSuffix, value, }: Args) => TableColumn;
50
49
  export {};
51
50
  //# sourceMappingURL=getTableColumnFromPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTableColumnFromPath.d.ts","sourceRoot":"","sources":["../../src/queries/getTableColumnFromPath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAe,UAAU,EAAa,MAAM,eAAe,CAAA;AAUlG,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE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