@payloadcms/db-postgres 3.0.0-alpha.22 → 3.0.0-alpha.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/dist/connect.js +1 -1
  2. package/dist/create.js +2 -2
  3. package/dist/createGlobal.d.ts +1 -1
  4. package/dist/createGlobal.d.ts.map +1 -1
  5. package/dist/createGlobal.js +2 -2
  6. package/dist/createGlobalVersion.d.ts +1 -1
  7. package/dist/createGlobalVersion.d.ts.map +1 -1
  8. package/dist/createGlobalVersion.js +2 -2
  9. package/dist/createMigration.js +1 -1
  10. package/dist/createVersion.d.ts +1 -1
  11. package/dist/createVersion.d.ts.map +1 -1
  12. package/dist/createVersion.js +2 -2
  13. package/dist/deleteMany.js +2 -2
  14. package/dist/deleteOne.js +4 -4
  15. package/dist/deleteVersions.js +2 -2
  16. package/dist/destroy.js +1 -1
  17. package/dist/find/buildFindManyArgs.d.ts +1 -1
  18. package/dist/find/buildFindManyArgs.d.ts.map +1 -1
  19. package/dist/find/buildFindManyArgs.js +2 -2
  20. package/dist/find/findMany.d.ts +1 -1
  21. package/dist/find/findMany.d.ts.map +1 -1
  22. package/dist/find/findMany.js +5 -5
  23. package/dist/find/traverseFields.d.ts +1 -1
  24. package/dist/find/traverseFields.d.ts.map +1 -1
  25. package/dist/find/traverseFields.js +1 -1
  26. package/dist/find.js +2 -2
  27. package/dist/findGlobal.js +2 -2
  28. package/dist/findGlobalVersions.js +2 -2
  29. package/dist/findOne.d.ts +1 -1
  30. package/dist/findOne.d.ts.map +1 -1
  31. package/dist/findOne.js +2 -2
  32. package/dist/findVersions.js +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +31 -31
  36. package/dist/init.js +2 -2
  37. package/dist/migrate.d.ts +1 -1
  38. package/dist/migrate.d.ts.map +1 -1
  39. package/dist/migrate.js +4 -4
  40. package/dist/migrateDown.d.ts +1 -1
  41. package/dist/migrateDown.d.ts.map +1 -1
  42. package/dist/migrateDown.js +3 -3
  43. package/dist/migrateFresh.d.ts +1 -1
  44. package/dist/migrateFresh.d.ts.map +1 -1
  45. package/dist/migrateFresh.js +2 -2
  46. package/dist/migrateRefresh.d.ts +1 -1
  47. package/dist/migrateRefresh.d.ts.map +1 -1
  48. package/dist/migrateRefresh.js +3 -3
  49. package/dist/migrateReset.d.ts +1 -1
  50. package/dist/migrateReset.d.ts.map +1 -1
  51. package/dist/migrateReset.js +2 -2
  52. package/dist/migrateStatus.d.ts +1 -1
  53. package/dist/migrateStatus.d.ts.map +1 -1
  54. package/dist/migrateStatus.js +2 -2
  55. package/dist/queries/buildAndOrConditions.d.ts +2 -2
  56. package/dist/queries/buildAndOrConditions.d.ts.map +1 -1
  57. package/dist/queries/buildAndOrConditions.js +2 -2
  58. package/dist/queries/buildQuery.d.ts +1 -1
  59. package/dist/queries/buildQuery.d.ts.map +1 -1
  60. package/dist/queries/buildQuery.js +3 -3
  61. package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js +2 -2
  62. package/dist/queries/createJSONQuery/index.js +3 -3
  63. package/dist/queries/getTableColumnFromPath.d.ts +2 -2
  64. package/dist/queries/getTableColumnFromPath.d.ts.map +1 -1
  65. package/dist/queries/getTableColumnFromPath.js +1 -1
  66. package/dist/queries/parseParams.d.ts +2 -2
  67. package/dist/queries/parseParams.d.ts.map +1 -1
  68. package/dist/queries/parseParams.js +7 -7
  69. package/dist/queries/sanitizeQueryValue.d.ts +1 -1
  70. package/dist/queries/sanitizeQueryValue.d.ts.map +1 -1
  71. package/dist/queries/sanitizeQueryValue.js +1 -1
  72. package/dist/queryDrafts.js +2 -2
  73. package/dist/schema/build.d.ts +1 -1
  74. package/dist/schema/build.d.ts.map +1 -1
  75. package/dist/schema/build.js +4 -4
  76. package/dist/schema/createIndex.d.ts +1 -1
  77. package/dist/schema/createIndex.d.ts.map +1 -1
  78. package/dist/schema/createIndex.js +1 -1
  79. package/dist/schema/parentIDColumnMap.d.ts +1 -1
  80. package/dist/schema/parentIDColumnMap.d.ts.map +1 -1
  81. package/dist/schema/parentIDColumnMap.js +1 -1
  82. package/dist/schema/setColumnID.d.ts +1 -1
  83. package/dist/schema/setColumnID.d.ts.map +1 -1
  84. package/dist/schema/setColumnID.js +1 -1
  85. package/dist/schema/traverseFields.d.ts +1 -1
  86. package/dist/schema/traverseFields.d.ts.map +1 -1
  87. package/dist/schema/traverseFields.js +7 -7
  88. package/dist/schema/validateExistingBlockIsIdentical.d.ts +1 -1
  89. package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +1 -1
  90. package/dist/schema/validateExistingBlockIsIdentical.js +1 -1
  91. package/dist/transactions/beginTransaction.js +1 -1
  92. package/dist/transform/read/index.js +4 -4
  93. package/dist/transform/read/traverseFields.d.ts +1 -1
  94. package/dist/transform/read/traverseFields.d.ts.map +1 -1
  95. package/dist/transform/read/traverseFields.js +4 -4
  96. package/dist/transform/write/array.d.ts +2 -2
  97. package/dist/transform/write/array.d.ts.map +1 -1
  98. package/dist/transform/write/array.js +3 -3
  99. package/dist/transform/write/blocks.d.ts +2 -2
  100. package/dist/transform/write/blocks.d.ts.map +1 -1
  101. package/dist/transform/write/blocks.js +2 -2
  102. package/dist/transform/write/index.d.ts +2 -2
  103. package/dist/transform/write/index.d.ts.map +1 -1
  104. package/dist/transform/write/index.js +2 -2
  105. package/dist/transform/write/selects.js +2 -2
  106. package/dist/transform/write/traverseFields.d.ts +2 -2
  107. package/dist/transform/write/traverseFields.d.ts.map +1 -1
  108. package/dist/transform/write/traverseFields.js +8 -8
  109. package/dist/update.js +4 -4
  110. package/dist/updateGlobal.d.ts +1 -1
  111. package/dist/updateGlobal.d.ts.map +1 -1
  112. package/dist/updateGlobal.js +2 -2
  113. package/dist/updateGlobalVersion.d.ts +1 -1
  114. package/dist/updateGlobalVersion.d.ts.map +1 -1
  115. package/dist/updateGlobalVersion.js +3 -3
  116. package/dist/updateVersion.d.ts +1 -1
  117. package/dist/updateVersion.d.ts.map +1 -1
  118. package/dist/updateVersion.js +3 -3
  119. package/dist/upsertRow/deleteExistingArrayRows.d.ts +1 -1
  120. package/dist/upsertRow/deleteExistingArrayRows.d.ts.map +1 -1
  121. package/dist/upsertRow/deleteExistingArrayRows.js +1 -1
  122. package/dist/upsertRow/deleteExistingRowsByPath.d.ts +1 -1
  123. package/dist/upsertRow/deleteExistingRowsByPath.d.ts.map +1 -1
  124. package/dist/upsertRow/deleteExistingRowsByPath.js +1 -1
  125. package/dist/upsertRow/index.d.ts +1 -1
  126. package/dist/upsertRow/index.d.ts.map +1 -1
  127. package/dist/upsertRow/index.js +7 -7
  128. package/dist/upsertRow/insertArrays.d.ts +2 -2
  129. package/dist/upsertRow/insertArrays.d.ts.map +1 -1
  130. package/dist/upsertRow/insertArrays.js +1 -1
  131. package/dist/upsertRow/types.d.ts +1 -1
  132. package/dist/upsertRow/types.d.ts.map +1 -1
  133. package/dist/upsertRow/types.js +1 -1
  134. package/dist/utilities/createMigrationTable.d.ts +1 -1
  135. package/dist/utilities/createMigrationTable.d.ts.map +1 -1
  136. package/dist/utilities/createMigrationTable.js +1 -1
  137. package/dist/utilities/migrationTableExists.d.ts +1 -1
  138. package/dist/utilities/migrationTableExists.d.ts.map +1 -1
  139. package/dist/utilities/migrationTableExists.js +1 -1
  140. package/package.json +3 -3
@@ -84,4 +84,4 @@ export const sanitizeQueryValue = ({ adapter, field, operator: operatorArg, rela
84
84
  };
85
85
  };
86
86
 
87
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9xdWVyaWVzL3Nhbml0aXplUXVlcnlWYWx1ZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBUElFcnJvciB9IGZyb20gJ3BheWxvYWQvZXJyb3JzJ1xuaW1wb3J0IHsgdHlwZSBGaWVsZCwgdHlwZSBUYWJBc0ZpZWxkLCBmaWVsZEFmZmVjdHNEYXRhIH0gZnJvbSAncGF5bG9hZC90eXBlcydcbmltcG9ydCB7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Y7SUFFQSxJQUFJSixhQUFhLFVBQVVBLGFBQWEsWUFBWUEsYUFBYSxjQUFjO1FBQzdFLE1BQU0sSUFBSU4sU0FDUixDQUFDLGVBQWUsRUFBRU0sU0FBUyxzREFBc0QsQ0FBQztJQUV0RjtJQUVBLElBQUlBLGFBQWEsWUFBWTtRQUMzQkksaUJBQWlCLENBQUMsQ0FBQyxFQUFFQSxlQUFlLENBQUMsQ0FBQztJQUN4QztJQUVBLElBQUlKLGFBQWEsVUFBVTtRQUN6QkksaUJBQWlCQSxtQkFBbUIsVUFBVUEsbUJBQW1CO1FBQ2pFLElBQUlBLG1CQUFtQixPQUFPO1lBQzVCSixXQUFXO1FBQ2I7SUFDRjtJQUVBLE9BQU87UUFBRUE7UUFBVUssT0FBT0Q7SUFBZTtBQUMzQyxFQUFDIn0=
@@ -1,7 +1,7 @@
1
1
  import { combineQueries } from 'payload/database';
2
2
  import { buildVersionCollectionFields } from 'payload/versions';
3
3
  import toSnakeCase from 'to-snake-case';
4
- import { findMany } from './find/findMany';
4
+ import { findMany } from './find/findMany.js';
5
5
  export const queryDrafts = async function queryDrafts({ collection, limit, locale, page = 1, pagination, req = {}, sort, where }) {
6
6
  const collectionConfig = this.payload.collections[collection].config;
7
7
  const tableName = `_${toSnakeCase(collection)}_v`;
@@ -38,4 +38,4 @@ export const queryDrafts = async function queryDrafts({ collection, limit, local
38
38
  };
39
39
  };
40
40
 
41
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9xdWVyeURyYWZ0cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgdHlwZSBRdWVyeURyYWZ0cywgY29tYmluZVF1ZXJpZXMgfSBmcm9tICdwYXlsb2FkL2R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UFNO2dCQUNkLEdBQUdGLElBQUlHLE9BQU87Z0JBQ2RDLFdBQVdKLElBQUlJLFNBQVM7Z0JBQ3hCQyxXQUFXTCxJQUFJSyxTQUFTO1lBQzFCO1lBRUEsT0FBT0w7UUFDVDtJQUNGO0FBQ0YsRUFBQyJ9
@@ -1,6 +1,6 @@
1
1
  import type { IndexBuilder, PgColumnBuilder, UniqueConstraintBuilder } from 'drizzle-orm/pg-core';
2
2
  import type { Field } from 'payload/types';
3
- import type { GenericColumns, PostgresAdapter } from '../types';
3
+ import type { GenericColumns, PostgresAdapter } from '../types.d.ts';
4
4
  type Args = {
5
5
  adapter: PostgresAdapter;
6
6
  baseColumns?: Record<string, PgColumnBuilder>;
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/schema/build.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAEf,uBAAuB,EACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAO1C,OAAO,KAAK,EAAE,cAAc,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAA;AAMrF,KAAK,IAAI,GAAG;IACV,OAAO,EAAE,eAAe,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,YAAY,GAAG,uBAAuB,CAAC,CAAA;IAClG,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC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MAAM,CAAC,CAAA;IAC1C,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,MAAM,GAAG;IACZ,kBAAkB,EAAE,OAAO,GAAG,OAAO,CAAA;IACrC,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAA;IACnC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,UAAU,8PAgBpB,IAAI,KAAG,MA+TT,CAAA"}
@@ -2,9 +2,9 @@
2
2
  import { index, integer, numeric, serial, timestamp, unique, varchar } from 'drizzle-orm/pg-core';
3
3
  import { fieldAffectsData } from 'payload/types';
4
4
  import toSnakeCase from 'to-snake-case';
5
- import { parentIDColumnMap } from './parentIDColumnMap';
6
- import { setColumnID } from './setColumnID';
7
- import { traverseFields } from './traverseFields';
5
+ import { parentIDColumnMap } from './parentIDColumnMap.js';
6
+ import { setColumnID } from './setColumnID.js';
7
+ import { traverseFields } from './traverseFields.js';
8
8
  export const buildTable = ({ adapter, baseColumns = {}, baseExtraConfig = {}, buildNumbers, buildRelationships, buildTexts, disableNotNull, disableUnique = false, fields, rootRelationsToBuild, rootRelationships, rootTableIDColType, rootTableName: incomingRootTableName, tableName, timestamps })=>{
9
9
  const rootTableName = incomingRootTableName || tableName;
10
10
  const columns = baseColumns;
@@ -273,4 +273,4 @@ export const buildTable = ({ adapter, baseColumns = {}, baseExtraConfig = {}, bu
273
273
  };
274
274
  };
275
275
 
276
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zY2hlbWEvYnVpbGQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZ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BQVFkLFNBQVMsQ0FBQyxDQUFDLFVBQVUsRUFBRWdILHVCQUF1QixDQUFDLENBQUMsR0FBR0s7UUFDN0Q7SUFDRjtJQUVBLE1BQU1JLGlCQUFpQnpILFVBQVUwRCxPQUFPLENBQUMsRUFBRWdFLElBQUksRUFBRTtRQUMvQyxNQUFNVCxTQUEyQyxDQUFDO1FBRWxEbkUsaUJBQWlCc0QsT0FBTyxDQUFDLENBQUN1QixLQUFLekQ7WUFDN0IrQyxNQUFNLENBQUMvQyxJQUFJLEdBQUd3RCxLQUFLNUcsUUFBUXdELE1BQU0sQ0FBQ3FELElBQUk7UUFDeEM7UUFFQSxJQUFJM0YsbUJBQW1CO1lBQ3JCaUYsT0FBT1csUUFBUSxHQUFHRixLQUFLbEY7UUFDekI7UUFFQSxJQUFJTixrQkFBa0I7WUFDcEIrRSxPQUFPWSxNQUFNLEdBQUdILEtBQUtqRjtRQUN2QjtRQUNBLElBQUlOLG9CQUFvQjtZQUN0QjhFLE9BQU9hLFFBQVEsR0FBR0osS0FBS2hGO1FBQ3pCO1FBRUEsSUFBSUMsY0FBY3VELElBQUksSUFBSXJELG9CQUFvQjtZQUM1Q29FLE9BQU9jLEtBQUssR0FBR0wsS0FBSzdFLG9CQUFvQjtnQkFDdEN5RSxjQUFjO1lBQ2hCO1FBQ0Y7UUFFQSxPQUFPTDtJQUNUO0lBRUFuRyxRQUFRZCxTQUFTLENBQUMsQ0FBQyxVQUFVLEVBQUU0QixVQUFVLENBQUMsQ0FBQyxHQUFHNkY7SUFFOUMsT0FBTztRQUFFdEY7UUFBb0JEO1FBQWtCWTtJQUFpQjtBQUNsRSxFQUFDIn0=
@@ -1,4 +1,4 @@
1
- import type { GenericColumn } from '../types';
1
+ import type { GenericColumn } from '../types.d.ts';
2
2
  type CreateIndexArgs = {
3
3
  columnName: string;
4
4
  name: string | string[];
@@ -1 +1 @@
1
- {"version":3,"file":"createIndex.d.ts","sourceRoot":"","sources":["../../src/schema/createIndex.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,WAAW,4CAA6C,eAAe;;gDAenF,CAAA"}
1
+ {"version":3,"file":"createIndex.d.ts","sourceRoot":"","sources":["../../src/schema/createIndex.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,WAAW,4CAA6C,eAAe;;gDAenF,CAAA"}
@@ -15,4 +15,4 @@ export const createIndex = ({ name, columnName, tableName, unique })=>{
15
15
  };
16
16
  };
17
17
 
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zY2hlbWEvY3JlYXRlSW5kZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcGFyYW0tcmVhc3NpZ24gKi9cbmltcG9ydCB7IGluZGV4LCB1bmlxdWVJbmRleCB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5cbmltcG9ydCB0eXBlIHsgR2VuZXJpY0NvbHVtbiB9IGZyb20gJy4uL3R5cGVzJ1xuXG50eXBlIENyZWF0ZUluZGV4QXJncyA9IHtcbiAgY29sdW1uTmFtZTogc3RyaW5nXG4gIG5hbWU6IHN0cmluZyB8IHN0cmluZ1tdXG4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ixPQUFPZixNQUFNLENBQUMsRUFBRUssVUFBVSxDQUFDLEVBQUVELFdBQVcsSUFBSSxDQUFDLEVBQUVVLEVBQUUsQ0FBQ04sT0FBTyxDQUFDLEVBQUUsS0FBS0EsUUFBUU8sS0FBSyxDQUFDO0lBQ2pGO0FBQ0YsRUFBQyJ9
@@ -1,4 +1,4 @@
1
1
  import { integer, numeric, uuid, varchar } from 'drizzle-orm/pg-core';
2
- import type { IDType } from '../types';
2
+ import type { IDType } from '../types.d.ts';
3
3
  export declare const parentIDColumnMap: Record<IDType, typeof integer<string> | typeof numeric<string> | typeof uuid<string> | typeof varchar>;
4
4
  //# sourceMappingURL=parentIDColumnMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parentIDColumnMap.d.ts","sourceRoot":"","sources":["../../src/schema/parentIDColumnMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAErE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,MAAM,EACN,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,OAAO,OAAO,CAMvF,CAAA"}
1
+ {"version":3,"file":"parentIDColumnMap.d.ts","sourceRoot":"","sources":["../../src/schema/parentIDColumnMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAErE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,MAAM,EACN,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,OAAO,OAAO,CAMvF,CAAA"}
@@ -6,4 +6,4 @@ export const parentIDColumnMap = {
6
6
  varchar
7
7
  };
8
8
 
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zY2hlbWEvcGFyZW50SURDb2x1bW5NYXAudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaW50ZWdlciwgbnVtZXJpYywgdXVpZCwgdmFyY2hhciB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5cbmltcG9ydCB0eXBlIHsgSURUeXBlIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmV4cG9ydCBjb25zdCBwYXJlbnRJRENvbHVtbk1hcDogUmVjb3JkPFxuICBJRFR5cGUsXG4gIHR5cGVvZiBpbnRlZ2VyPHN0cmluZz4gfCB0eXBlb2YgbnVtZXJpYzxzdHJpbmc+IHwgdHlwZW9mIHV1aWQ8c3RyaW5nPiB8IHR5cGVvZiB2YXJjaGFyXG4+ID0ge1xuICBpbnRlZ2VyLFxuICBudW1lcmljLFxuICB1dWlkLFxuICB2YXJjaGFyLFxufVxuIl0sIm5hbWVzIjpbImludGVnZXIiLCJudW1lcmljIiwidXVpZCIsInZhcmNoYXIiLCJwYXJlbnRJRENvbHVtbk1hcCJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsT0FBTyxFQUFFQyxPQUFPLEVBQUVDLElBQUksRUFBRUMsT0FBTyxRQUFRLHNCQUFxQjtBQUlyRSxPQUFPLE1BQU1DLG9CQUdUO0lBQ0ZKO0lBQ0FDO0lBQ0FDO0lBQ0FDO0FBQ0YsRUFBQyJ9
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zY2hlbWEvcGFyZW50SURDb2x1bW5NYXAudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaW50ZWdlciwgbnVtZXJpYywgdXVpZCwgdmFyY2hhciB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5cbmltcG9ydCB0eXBlIHsgSURUeXBlIH0gZnJvbSAnLi4vdHlwZXMuZC50cydcblxuZXhwb3J0IGNvbnN0IHBhcmVudElEQ29sdW1uTWFwOiBSZWNvcmQ8XG4gIElEVHlwZSxcbiAgdHlwZW9mIGludGVnZXI8c3RyaW5nPiB8IHR5cGVvZiBudW1lcmljPHN0cmluZz4gfCB0eXBlb2YgdXVpZDxzdHJpbmc+IHwgdHlwZW9mIHZhcmNoYXJcbj4gPSB7XG4gIGludGVnZXIsXG4gIG51bWVyaWMsXG4gIHV1aWQsXG4gIHZhcmNoYXIsXG59XG4iXSwibmFtZXMiOlsiaW50ZWdlciIsIm51bWVyaWMiLCJ1dWlkIiwidmFyY2hhciIsInBhcmVudElEQ29sdW1uTWFwIl0sIm1hcHBpbmdzIjoiQUFBQSxTQUFTQSxPQUFPLEVBQUVDLE9BQU8sRUFBRUMsSUFBSSxFQUFFQyxPQUFPLFFBQVEsc0JBQXFCO0FBSXJFLE9BQU8sTUFBTUMsb0JBR1Q7SUFDRko7SUFDQUM7SUFDQUM7SUFDQUM7QUFDRixFQUFDIn0=
@@ -1,6 +1,6 @@
1
1
  import type { PgColumnBuilder } from 'drizzle-orm/pg-core';
2
2
  import { type Field } from 'payload/types';
3
- import type { IDType, PostgresAdapter } from '../types';
3
+ import type { IDType, PostgresAdapter } from '../types.d.ts';
4
4
  type Args = {
5
5
  adapter: PostgresAdapter;
6
6
  columns: Record<string, PgColumnBuilder>;
@@ -1 +1 @@
1
- {"version":3,"file":"setColumnID.d.ts","sourceRoot":"","sources":["../../src/schema/setColumnID.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAG1D,OAAO,EAAE,KAAK,KAAK,EAAoB,MAAM,eAAe,CAAA;AAG5D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAEvD,KAAK,IAAI,GAAG;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAAC,MAAM,EAAE,KAAK,EAAE,CAAA;CAAE,CAAA;AACnG,eAAO,MAAM,WAAW,iCAAkC,IAAI,KAAG,MAuBhE,CAAA"}
1
+ {"version":3,"file":"setColumnID.d.ts","sourceRoot":"","sources":["../../src/schema/setColumnID.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAG1D,OAAO,EAAE,KAAK,KAAK,EAAoB,MAAM,eAAe,CAAA;AAG5D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE5D,KAAK,IAAI,GAAG;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAAC,MAAM,EAAE,KAAK,EAAE,CAAA;CAAE,CAAA;AACnG,eAAO,MAAM,WAAW,iCAAkC,IAAI,KAAG,MAuBhE,CAAA"}
@@ -21,4 +21,4 @@ export const setColumnID = ({ adapter, columns, fields })=>{
21
21
  return 'integer';
22
22
  };
23
23
 
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zY2hlbWEvc2V0Q29sdW1uSUQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBQZ0NvbHVtbkJ1aWxkZXIgfSBmcm9tICdkcml6emxlLW9ybS9wZy1jb3JlJ1xuXG5pbXBvcnQgeyBudW1lcmljLCBzZXJpYWwsIHV1aWQsIHZhcmNoYXIgfSBmcm9tICdkcml6emxlLW9ybS9wZy1jb3JlJ1xuaW1wb3J0IHsgdHlwZS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QyxPQUFPLFFBQVEsc0JBQXFCO0FBQ3BFLFNBQXFCQyxnQkFBZ0IsUUFBUSxnQkFBZTtBQUM1RCxTQUFTQyxxQkFBcUIsUUFBUSxvQkFBbUI7QUFLekQsT0FBTyxNQUFNQyxjQUFjLENBQUMsRUFBRUMsT0FBTyxFQUFFQyxPQUFPLEVBQUVDLE1BQU0sRUFBUTtJQUM1RCxNQUFNQyxVQUFVTCxzQkFBc0JJLFFBQVFFLElBQUksQ0FDaEQsQ0FBQ0MsUUFBVVIsaUJBQWlCUSxVQUFVQSxNQUFNQyxJQUFJLEtBQUs7SUFFdkQsSUFBSUgsU0FBUztRQUNYLElBQUlBLFFBQVFJLElBQUksS0FBSyxVQUFVO1lBQzdCTixRQUFRTyxFQUFFLEdBQUdmLFFBQVEsTUFBTWdCLFVBQVU7WUFDckMsT0FBTztRQUNUO1FBRUEsSUFBSU4sUUFBUUksSUFBSSxLQUFLLFFBQVE7WUFDM0JOLFFBQVFPLEVBQUUsR0FBR1osUUFBUSxNQUFNYSxVQUFVO1lBQ3JDLE9BQU87UUFDVDtJQUNGO0lBRUEsSUFBSVQsUUFBUVUsTUFBTSxLQUFLLFFBQVE7UUFDN0JULFFBQVFPLEVBQUUsR0FBR2IsS0FBSyxNQUFNZ0IsYUFBYSxHQUFHRixVQUFVO1FBQ2xELE9BQU87SUFDVDtJQUVBUixRQUFRTyxFQUFFLEdBQUdkLE9BQU8sTUFBTWUsVUFBVTtJQUNwQyxPQUFPO0FBQ1QsRUFBQyJ9
@@ -1,6 +1,6 @@
1
1
  import type { IndexBuilder, PgColumnBuilder } from 'drizzle-orm/pg-core';
2
2
  import type { Field, TabAsField } from 'payload/types';
3
- import type { GenericColumns, PostgresAdapter } from '../types';
3
+ import type { GenericColumns, PostgresAdapter } from '../types.d.ts';
4
4
  type Args = {
5
5
  adapter: PostgresAdapter;
6
6
  buildNumbers: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"traverseFields.d.ts","sourceRoot":"","sources":["../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