@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
package/dist/find.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import toSnakeCase from 'to-snake-case';
2
- import { findMany } from './find/findMany';
2
+ import { findMany } from './find/findMany.js';
3
3
  export const find = async function find({ collection, limit: limitArg, locale, page = 1, pagination, req = {}, sort: sortArg, where: whereArg }) {
4
4
  const collectionConfig = this.payload.collections[collection].config;
5
5
  const sort = typeof sortArg === 'string' ? sortArg : collectionConfig.defaultSort;
@@ -17,4 +17,4 @@ export const find = async function find({ collection, limit: limitArg, locale, p
17
17
  });
18
18
  };
19
19
 
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kLnRzIl0sInNvdXJjZXNDb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UFFRCxNQUFNQyxtQkFBOEMsSUFBSSxDQUFDQyxPQUFPLENBQUNDLFdBQVcsQ0FBQ2IsV0FBVyxDQUFDYyxNQUFNO0lBQy9GLE1BQU1QLE9BQU8sT0FBT0MsWUFBWSxXQUFXQSxVQUFVRyxpQkFBaUJJLFdBQVc7SUFFakYsT0FBT2pCLFNBQVM7UUFDZGtCLFNBQVMsSUFBSTtRQUNiQyxRQUFRTixpQkFBaUJNLE1BQU07UUFDL0JoQixPQUFPQztRQUNQQztRQUNBQztRQUNBQztRQUNBQztRQUNBQztRQUNBVyxXQUFXckIsWUFBWUc7UUFDdkJTLE9BQU9DO0lBQ1Q7QUFDRixFQUFDIn0=
@@ -1,5 +1,5 @@
1
1
  import toSnakeCase from 'to-snake-case';
2
- import { findMany } from './find/findMany';
2
+ import { findMany } from './find/findMany.js';
3
3
  export const findGlobal = async function findGlobal({ locale, req, slug, where }) {
4
4
  const globalConfig = this.payload.globals.config.find((config)=>config.slug === slug);
5
5
  const tableName = toSnakeCase(slug);
@@ -20,4 +20,4 @@ export const findGlobal = async function findGlobal({ locale, req, slug, where }
20
20
  return {};
21
21
  };
22
22
 
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kR2xvYmFsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEdsb2JhbCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IGZpbmRNYW55IH0gZnJvbSAnLi9maW5kL2ZpbmRNYW55J1xuXG5leHBvcnQgY29uc3QgZmluZEdsb2JhbDogRmluZEdsb2JhbCA9IGFzeW5jIGZ1bmN0aW9uIGZpbmRHb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SSxDQUFDQyxPQUFPLENBQUNDLE9BQU8sQ0FBQ0MsTUFBTSxDQUFDQyxJQUFJLENBQUMsQ0FBQ0QsU0FBV0EsT0FBT0wsSUFBSSxLQUFLQTtJQUNsRixNQUFNTyxZQUFZWixZQUFZSztJQUU5QixNQUFNLEVBQ0pRLE1BQU0sQ0FBQ0MsSUFBSSxFQUNaLEdBQUcsTUFBTWIsU0FBUztRQUNqQmMsU0FBUyxJQUFJO1FBQ2JDLFFBQVFULGFBQWFTLE1BQU07UUFDM0JDLE9BQU87UUFDUGQ7UUFDQWUsWUFBWTtRQUNaZDtRQUNBUTtRQUNBTjtJQUNGO0lBRUEsSUFBSVEsS0FBSztRQUNQQSxJQUFJSyxVQUFVLEdBQUdkO1FBQ2pCLE9BQU9TO0lBQ1Q7SUFFQSxPQUFPLENBQUM7QUFDVixFQUFDIn0=
@@ -1,6 +1,6 @@
1
1
  import { buildVersionGlobalFields } from 'payload/versions';
2
2
  import toSnakeCase from 'to-snake-case';
3
- import { findMany } from './find/findMany';
3
+ import { findMany } from './find/findMany.js';
4
4
  export const findGlobalVersions = async function findGlobalVersions({ global, limit, locale, page, pagination, req = {}, skip, sort: sortArg, where }) {
5
5
  const globalConfig = this.payload.globals.config.find(({ slug })=>slug === global);
6
6
  const sort = typeof sortArg === 'string' ? sortArg : '-createdAt';
@@ -21,4 +21,4 @@ export const findGlobalVersions = async function findGlobalVersions({ global, li
21
21
  });
22
22
  };
23
23
 
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kR2xvYmFsVmVyc2lvbnMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBGaW5kR2xvYmFsVmVyc2lvbnMgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgU2FuaXRpemVkR2xvYmFsQ29uZmlnIH0gZnJ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WxzIiwiY29uZmlnIiwiZmluZCIsInNsdWciLCJ0YWJsZU5hbWUiLCJmaWVsZHMiLCJhZGFwdGVyIl0sIm1hcHBpbmdzIjoiQUFHQSxTQUFTQSx3QkFBd0IsUUFBUSxtQkFBa0I7QUFDM0QsT0FBT0MsaUJBQWlCLGdCQUFlO0FBSXZDLFNBQVNDLFFBQVEsUUFBUSxxQkFBb0I7QUFFN0MsT0FBTyxNQUFNQyxxQkFBeUMsZUFBZUEsbUJBRW5FLEVBQ0VDLE1BQU0sRUFDTkMsS0FBSyxFQUNMQyxNQUFNLEVBQ05DLElBQUksRUFDSkMsVUFBVSxFQUNWQyxNQUFNLENBQUMsQ0FBbUIsRUFDMUJDLElBQUksRUFDSkMsTUFBTUMsT0FBTyxFQUNiQyxLQUFLLEVBQ047SUFFRCxNQUFNQyxlQUFzQyxJQUFJLENBQUNDLE9BQU8sQ0FBQ0MsT0FBTyxDQUFDQyxNQUFNLENBQUNDLElBQUksQ0FDMUUsQ0FBQyxFQUFFQyxJQUFJLEVBQUUsR0FBS0EsU0FBU2Y7SUFFekIsTUFBTU8sT0FBTyxPQUFPQyxZQUFZLFdBQVdBLFVBQVU7SUFFckQsTUFBTVEsWUFBWSxDQUFDLENBQUMsRUFBRW5CLFlBQVlHLFFBQVEsRUFBRSxDQUFDO0lBQzdDLE1BQU1pQixTQUFTckIseUJBQXlCYztJQUV4QyxPQUFPWixTQUFTO1FBQ2RvQixTQUFTLElBQUk7UUFDYkQ7UUFDQWhCO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FTO1FBQ0FQO0lBQ0Y7QUFDRixFQUFDIn0=
package/dist/findOne.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { FindOneArgs } from 'payload/database';
2
2
  import type { TypeWithID } from 'payload/types';
3
- import type { PostgresAdapter } from './types';
3
+ import type { PostgresAdapter } from './types.d.ts';
4
4
  export declare function findOne<T extends TypeWithID>(this: PostgresAdapter, { collection, locale, req, where: incomingWhere }: FindOneArgs): Promise<T>;
5
5
  //# sourceMappingURL=findOne.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findOne.d.ts","sourceRoot":"","sources":["../src/findOne.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAA6C,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,wBAAsB,OAAO,CAAC,CAAC,SAAS,UAAU,EAChD,IAAI,EAAE,eAAe,EACrB,EAAE,UAAU,EAAE,MAAM,EAAE,GAA0B,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,WAAW,GACpF,OAAO,CAAC,CAAC,CAAC,CAiBZ"}
1
+ {"version":3,"file":"findOne.d.ts","sourceRoot":"","sources":["../src/findOne.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAA6C,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAInD,wBAAsB,OAAO,CAAC,CAAC,SAAS,UAAU,EAChD,IAAI,EAAE,eAAe,EACrB,EAAE,UAAU,EAAE,MAAM,EAAE,GAA0B,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,WAAW,GACpF,OAAO,CAAC,CAAC,CAAC,CAiBZ"}
package/dist/findOne.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import toSnakeCase from 'to-snake-case';
2
- import { findMany } from './find/findMany';
2
+ import { findMany } from './find/findMany.js';
3
3
  export async function findOne({ collection, locale, req = {}, where: incomingWhere }) {
4
4
  const collectionConfig = this.payload.collections[collection].config;
5
5
  const { docs } = await findMany({
@@ -17,4 +17,4 @@ export async function findOne({ collection, locale, req = {}, where: incomingWhe
17
17
  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LFlBQVk7UUFDWlo7UUFDQWEsTUFBTUM7UUFDTkMsV0FBV3BCLFlBQVlHO1FBQ3ZCRyxPQUFPQztJQUNUO0lBRUEsT0FBT0ssTUFBTSxDQUFDLEVBQUUsSUFBSTtBQUN0QiJ9
@@ -1,6 +1,6 @@
1
1
  import { buildVersionCollectionFields } from 'payload/versions';
2
2
  import toSnakeCase from 'to-snake-case';
3
- import { findMany } from './find/findMany';
3
+ import { findMany } from './find/findMany.js';
4
4
  export const findVersions = async function findVersions({ collection, limit, locale, page, pagination, req = {}, skip, sort: sortArg, where }) {
5
5
  const collectionConfig = this.payload.collections[collection].config;
6
6
  const sort = typeof sortArg === 'string' ? sortArg : collectionConfig.defaultSort;
@@ -21,4 +21,4 @@ export const findVersions = async function findVersions({ collection, limit, loc
21
21
  });
22
22
  };
23
23
 
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kVmVyc2lvbnMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBGaW5kVmVyc2lvbnMgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZyB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGJ1aWxkVmVyc2lvbkNvbGxlY3Rpb25GaWVsZHMgfSBmcm9tICdwYXlsb2FkL3ZlcnNpb25zJ1xuaW1wb3J0IHRvU25ha2VDYXNlIGZyb20gJ3RvLXNuYWtlLWNhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuaW1wb3J0IHsgZmluZE1hbnkgfSBmcm9tICcuL2ZpbmQvZmluZE1hbnknXG5cbmV4cG9ydCBjb25zdCBmaW5kVmVyc2lvbnM6IEZpbmRW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BQW1CLEVBQzFCQyxJQUFJLEVBQ0pDLE1BQU1DLE9BQU8sRUFDYkMsS0FBSyxFQUNOO0lBRUQsTUFBTUMsbUJBQThDLElBQUksQ0FBQ0MsT0FBTyxDQUFDQyxXQUFXLENBQUNaLFdBQVcsQ0FBQ2EsTUFBTTtJQUMvRixNQUFNTixPQUFPLE9BQU9DLFlBQVksV0FBV0EsVUFBVUUsaUJBQWlCSSxXQUFXO0lBRWpGLE1BQU1DLFlBQVksQ0FBQyxDQUFDLEVBQUVsQixZQUFZRyxZQUFZLEVBQUUsQ0FBQztJQUNqRCxNQUFNZ0IsU0FBU3BCLDZCQUE2QmM7SUFFNUMsT0FBT1osU0FBUztRQUNkbUIsU0FBUyxJQUFJO1FBQ2JEO1FBQ0FmO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FDO1FBQ0FRO1FBQ0FOO0lBQ0Y7QUFDRixFQUFDIn0=
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { DatabaseAdapterObj } from 'payload/database';
2
- import type { Args, PostgresAdapter } from './types';
3
- export type { MigrateDownArgs, MigrateUpArgs } from './types';
2
+ import type { Args, PostgresAdapter } from './types.d.ts';
3
+ export type { MigrateDownArgs, MigrateUpArgs } from './types.d.ts';
4
4
  export declare function postgresAdapter(args: Args): DatabaseAdapterObj<PostgresAdapter>;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAM1D,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAiCpD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7D,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAoE/E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAM1D,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAiCzD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAElE,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAoE/E"}
package/dist/index.js CHANGED
@@ -1,36 +1,36 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { createDatabaseAdapter } from 'payload/database';
4
- import { connect } from './connect';
5
- import { create } from './create';
6
- import { createGlobal } from './createGlobal';
7
- import { createGlobalVersion } from './createGlobalVersion';
8
- import { createMigration } from './createMigration';
9
- import { createVersion } from './createVersion';
10
- import { deleteMany } from './deleteMany';
11
- import { deleteOne } from './deleteOne';
12
- import { deleteVersions } from './deleteVersions';
13
- import { destroy } from './destroy';
14
- import { find } from './find';
15
- import { findGlobal } from './findGlobal';
16
- import { findGlobalVersions } from './findGlobalVersions';
17
- import { findOne } from './findOne';
18
- import { findVersions } from './findVersions';
19
- import { init } from './init';
20
- import { migrate } from './migrate';
21
- import { migrateDown } from './migrateDown';
22
- import { migrateFresh } from './migrateFresh';
23
- import { migrateRefresh } from './migrateRefresh';
24
- import { migrateReset } from './migrateReset';
25
- import { migrateStatus } from './migrateStatus';
26
- import { queryDrafts } from './queryDrafts';
27
- import { beginTransaction } from './transactions/beginTransaction';
28
- import { commitTransaction } from './transactions/commitTransaction';
29
- import { rollbackTransaction } from './transactions/rollbackTransaction';
30
- import { updateOne } from './update';
31
- import { updateGlobal } from './updateGlobal';
32
- import { updateGlobalVersion } from './updateGlobalVersion';
33
- import { updateVersion } from './updateVersion';
4
+ import { connect } from './connect.js';
5
+ import { create } from './create.js';
6
+ import { createGlobal } from './createGlobal.js';
7
+ import { createGlobalVersion } from './createGlobalVersion.js';
8
+ import { createMigration } from './createMigration.js';
9
+ import { createVersion } from './createVersion.js';
10
+ import { deleteMany } from './deleteMany.js';
11
+ import { deleteOne } from './deleteOne.js';
12
+ import { deleteVersions } from './deleteVersions.js';
13
+ import { destroy } from './destroy.js';
14
+ import { find } from './find.js';
15
+ import { findGlobal } from './findGlobal.js';
16
+ import { findGlobalVersions } from './findGlobalVersions.js';
17
+ import { findOne } from './findOne.js';
18
+ import { findVersions } from './findVersions.js';
19
+ import { init } from './init.js';
20
+ import { migrate } from './migrate.js';
21
+ import { migrateDown } from './migrateDown.js';
22
+ import { migrateFresh } from './migrateFresh.js';
23
+ import { migrateRefresh } from './migrateRefresh.js';
24
+ import { migrateReset } from './migrateReset.js';
25
+ import { migrateStatus } from './migrateStatus.js';
26
+ import { queryDrafts } from './queryDrafts.js';
27
+ import { beginTransaction } from './transactions/beginTransaction.js';
28
+ import { commitTransaction } from './transactions/commitTransaction.js';
29
+ import { rollbackTransaction } from './transactions/rollbackTransaction.js';
30
+ import { updateOne } from './update.js';
31
+ import { updateGlobal } from './updateGlobal.js';
32
+ import { updateGlobalVersion } from './updateGlobalVersion.js';
33
+ import { updateVersion } from './updateVersion.js';
34
34
  export function postgresAdapter(args) {
35
35
  function adapter({ payload }) {
36
36
  const migrationDir = findMigrationDir(args.migrationDir);
@@ -128,4 +128,4 @@ export function postgresAdapter(args) {
128
128
  return srcDir;
129
129
  }
130
130
 
131
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFBheWxvYWQgfSBmcm9tICdwYXlsb2FkJ1xuaW1wb3J0IHR5cGUgeyBEYXRhYmFzZUFkYXB0ZXJPYmogfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgZ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msc0JBQXNCO0lBQ3RCLElBQUluQixjQUFjLE9BQU9BO0lBRXpCLCtCQUErQjtJQUMvQixJQUFJckMsR0FBRzhELFVBQVUsQ0FBQ0osU0FBUztRQUN6QixPQUFPQTtJQUNUO0lBRUEsSUFBSTFELEdBQUc4RCxVQUFVLENBQUNGLFVBQVU7UUFDMUIsT0FBT0E7SUFDVDtJQUVBLElBQUk1RCxHQUFHOEQsVUFBVSxDQUFDRCxxQkFBcUI7UUFDckMsT0FBT0E7SUFDVDtJQUVBLE9BQU9IO0FBQ1QifQ==
package/dist/init.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-param-reassign */ import { pgEnum, pgSchema, pgTable } from 'drizzle-orm/pg-core';
2
2
  import { buildVersionCollectionFields, buildVersionGlobalFields } from 'payload/versions';
3
3
  import toSnakeCase from 'to-snake-case';
4
- import { buildTable } from './schema/build';
4
+ import { buildTable } from './schema/build.js';
5
5
  export const init = async function init() {
6
6
  if (this.schemaName) {
7
7
  this.pgSchema = pgSchema(this.schemaName);
@@ -73,4 +73,4 @@ export const init = async function init() {
73
73
  });
74
74
  };
75
75
 
76
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbml0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEluaXQgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgcGdFbnVtLCBwZ1NjaGVtYSwgcGdUYWJsZSB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzLCBidWlsZFZlc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d.ts';
2
2
  export declare function migrate(this: PostgresAdapter): Promise<void>;
3
3
  //# sourceMappingURL=migrate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,wBAAsB,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA8DlE"}
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,wBAAsB,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA8DlE"}
package/dist/migrate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable no-restricted-syntax, no-await-in-loop */ import { commitTransaction, initTransaction, killTransaction, readMigrationFiles } from 'payload/database';
2
2
  import prompts from 'prompts';
3
- import { createMigrationTable } from './utilities/createMigrationTable';
4
- import { migrationTableExists } from './utilities/migrationTableExists';
5
- import { parseError } from './utilities/parseError';
3
+ import { createMigrationTable } from './utilities/createMigrationTable.js';
4
+ import { migrationTableExists } from './utilities/migrationTableExists.js';
5
+ import { parseError } from './utilities/parseError.js';
6
6
  export async function migrate() {
7
7
  const { payload } = this;
8
8
  const migrationFiles = await readMigrationFiles({
@@ -94,4 +94,4 @@ async function runMigrationFile(payload, migration, batch) {
94
94
  }
95
95
  }
96
96
 
97
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXJlc3RyaWN0ZWQtc3ludGF4LCBuby1hd2FpdC1pbi1sb29wICovXG5pbXBvcnQgdHlwZSB7IFBheWxvYW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EO1lBQ1Y7WUFDQUg7UUFDRjtRQUNBLE1BQU05QyxrQkFBa0I4QztJQUMxQixFQUFFLE9BQU9RLEtBQWM7UUFDckIsTUFBTXBELGdCQUFnQjRDO1FBQ3RCckMsUUFBUUcsTUFBTSxDQUFDMkMsS0FBSyxDQUFDO1lBQ25CRDtZQUNBeEMsS0FBS1AsV0FBVytDLEtBQUssQ0FBQyx3QkFBd0IsRUFBRWpCLFVBQVVSLElBQUksQ0FBQyxDQUFDO1FBQ2xFO0lBQ0Y7QUFDRiJ9
@@ -1,3 +1,3 @@
1
- import type { PostgresAdapter } from './types';
1
+ import type { PostgresAdapter } from './types.d.ts';
2
2
  export declare function migrateDown(this: PostgresAdapter): Promise<void>;
3
3
  //# sourceMappingURL=migrateDown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrateDown.d.ts","sourceRoot":"","sources":["../src/migrateDown.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAwDtE"}
1
+ {"version":3,"file":"migrateDown.d.ts","sourceRoot":"","sources":["../src/migrateDown.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAKnD,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAwDtE"}
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-restricted-syntax, no-await-in-loop */ import { commitTransaction, getMigrations, initTransaction, killTransaction, readMigrationFiles } from 'payload/database';
2
- import { migrationTableExists } from './utilities/migrationTableExists';
3
- import { parseError } from './utilities/parseError';
2
+ import { migrationTableExists } from './utilities/migrationTableExists.js';
3
+ import { parseError } from './utilities/parseError.js';
4
4
  export async function migrateDown() {
5
5
  const { payload } = this;
6
6
  const migrationFiles = await readMigrationFiles({
@@ -60,4 +60,4 @@ export async function migrateDown() {
60
60
  }
61
61
  }
62
62
 
63
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlRG93bi50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1yZXN0cmljdGVkLXN5bnRheCwgbm8tYXdhaXQtaW4tbG9vcCAqL1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7XG4gIGNvbW1pdFRyYW5zYWN0aW9uLFxuICBnZXRNaWdyYXRpb25zLFxuICBpbml0VHJhbnNhY3Rpb24sXG4gIGtpbGxUcmFuc2FjdGlvbixcbiAgcmVhZE1pZ3JhdGlvbkZpbGVzLFxufSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IG1pZ3JhdGlvblRhYmxlRXhpc3RzIH0gZnJvbSAnLi91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMnXG5pbXBvcnQgeyBwYXJzZUVycm9yIH0gZnJvbSAnLi91dGlsaXRpZXMvcGFyc2VFcnJvcidcblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIG1pZ3JhdGVEb3duKHRoaXM6IFBvc3RncmVzQWRhcHRlcik6IFByb21pc2U8dm9pZD4ge1xuICBjb25zdCB7IHBheWxvYWQgfSA9IHRoaXNcbiAgY29uc3QgbWlncmF0aW9uRmlsZXMgPSBhd2FpdCByZWFkTWlncmF0aW9uRmlsZXMoeyBwYXlsb2FkIH0pXG5cbiAgY29uc3QgeyBleGlzdGluZ01pZ3JhdGlvbnMsIGxhdGVzdEJhdGNoIH0gPSBhd2FpdCBnZXRNaWdyYXRpb25zKHtcbiAgICBw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TUFBTXJCLGdCQUFnQjBCO1lBQ3RCLE1BQU1SLGNBQWNTLElBQUksQ0FBQztnQkFBRXJCO2dCQUFTb0I7WUFBSTtZQUN4Q3BCLFFBQVFLLE1BQU0sQ0FBQ0MsSUFBSSxDQUFDO2dCQUNsQkMsS0FBSyxDQUFDLGdCQUFnQixFQUFFSyxjQUFjRyxJQUFJLENBQUMsRUFBRSxFQUFFRyxLQUFLQyxHQUFHLEtBQUtGLE1BQU0sR0FBRyxDQUFDO1lBQ3hFO1lBRUEsTUFBTUssY0FBYyxNQUFNekIscUJBQXFCLElBQUksQ0FBQzBCLE9BQU87WUFDM0QsSUFBSUQsYUFBYTtnQkFDZixNQUFNdEIsUUFBUXdCLE1BQU0sQ0FBQztvQkFDbkJDLElBQUlkLFVBQVVjLEVBQUU7b0JBQ2hCQyxZQUFZO29CQUNaTjtnQkFDRjtZQUNGO1lBRUEsTUFBTTVCLGtCQUFrQjRCO1FBQzFCLEVBQUUsT0FBT08sS0FBYztZQUNyQixNQUFNaEMsZ0JBQWdCeUI7WUFFdEJwQixRQUFRSyxNQUFNLENBQUN1QixLQUFLLENBQUM7Z0JBQ25CRDtnQkFDQXBCLEtBQUtULFdBQVc2QixLQUFLLENBQUMscUJBQXFCLEVBQUVmLGNBQWNHLElBQUksQ0FBQyxlQUFlLENBQUM7WUFDbEY7WUFDQWMsUUFBUUMsSUFBSSxDQUFDO1FBQ2Y7SUFDRjtBQUNGIn0=
@@ -1,4 +1,4 @@
1
- import type { PostgresAdapter } from './types';
1
+ import type { PostgresAdapter } from './types.d.ts';
2
2
  /**
3
3
  * Drop the current database and run all migrate up functions
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"migrateFresh.d.ts","sourceRoot":"","sources":["../src/migrateFresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C;;GAEG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,kBAA0B,EAAE;;CAAA,GAC7B,OAAO,CAAC,IAAI,CAAC,CAgEf"}
1
+ {"version":3,"file":"migrateFresh.d.ts","sourceRoot":"","sources":["../src/migrateFresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAInD;;GAEG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,kBAA0B,EAAE;;CAAA,GAC7B,OAAO,CAAC,IAAI,CAAC,CAgEf"}
@@ -1,7 +1,7 @@
1
1
  import { sql } from 'drizzle-orm';
2
2
  import { commitTransaction, initTransaction, killTransaction, readMigrationFiles } from 'payload/database';
3
3
  import prompts from 'prompts';
4
- import { parseError } from './utilities/parseError';
4
+ import { parseError } from './utilities/parseError.js';
5
5
  /**
6
6
  * Drop the current database and run all migrate up functions
7
7
  */ export async function migrateFresh({ forceAcceptWarning = false }) {
@@ -69,4 +69,4 @@ import { parseError } from './utilities/parseError';
69
69
  }
70
70
  }
71
71
 
72
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlRnJlc2gudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IHNxbCB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHtcbiAgY29tbWl0VHJhbnNhY3Rpb24sXG4gIGluaXRUcmFuc2FjdGlvbixcbiAga2lsbFRyYW5zYWN0aW9uLFxuICByZWFkTWlncmF0aW9uRmlsZXMsXG59IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgcHJvbXB0cyBmcm9tICdwcm9tcHRzJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9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JBQWtCNEI7WUFFeEJwQixRQUFRVSxNQUFNLENBQUNDLElBQUksQ0FBQztnQkFBRUMsS0FBSyxDQUFDLFdBQVcsRUFBRVMsVUFBVWxCLElBQUksQ0FBQyxFQUFFLEVBQUVvQixLQUFLQyxHQUFHLEtBQUtGLE1BQU0sR0FBRyxDQUFDO1lBQUM7UUFDdEYsRUFBRSxPQUFPUSxLQUFjO1lBQ3JCLE1BQU1wQyxnQkFBZ0IwQjtZQUN0QnBCLFFBQVFVLE1BQU0sQ0FBQ3FCLEtBQUssQ0FBQztnQkFDbkJEO2dCQUNBbEIsS0FBS2YsV0FBV2lDLEtBQUssQ0FBQyx3QkFBd0IsRUFBRVQsVUFBVWxCLElBQUksQ0FBQyxjQUFjLENBQUM7WUFDaEY7UUFDRjtJQUNGO0FBQ0YifQ==
@@ -1,4 +1,4 @@
1
- import type { PostgresAdapter } from './types';
1
+ import type { PostgresAdapter } from './types.d.ts';
2
2
  /**
3
3
  * Run all migration down functions before running up
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"migrateRefresh.d.ts","sourceRoot":"","sources":["../src/migrateRefresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,eAAe,iBAsFzD"}
1
+ {"version":3,"file":"migrateRefresh.d.ts","sourceRoot":"","sources":["../src/migrateRefresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAKnD;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,eAAe,iBAsFzD"}
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-restricted-syntax, no-await-in-loop */ import { commitTransaction, getMigrations, initTransaction, killTransaction, readMigrationFiles } from 'payload/database';
2
- import { migrationTableExists } from './utilities/migrationTableExists';
3
- import { parseError } from './utilities/parseError';
2
+ import { migrationTableExists } from './utilities/migrationTableExists.js';
3
+ import { parseError } from './utilities/parseError.js';
4
4
  /**
5
5
  * Run all migration down functions before running up
6
6
  */ export async function migrateRefresh() {
@@ -99,4 +99,4 @@ import { parseError } from './utilities/parseError';
99
99
  }
100
100
  }
101
101
 
102
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlUmVmcmVzaC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1yZXN0cmljdGVkLXN5bnRheCwgbm8tYXdhaXQtaW4tbG9vcCAqL1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7XG4gIGNvbW1pdFRyYW5zYWN0aW9uLFxuICBnZXRNaWdyYXRpb25zLFxuICBpbml0VHJhbnNhY3Rpb24sXG4gIGtpbGxUcmFuc2FjdGlvbixcbiAgcmVhZE1pZ3JhdGlvbkZpbGVzLFxufSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IG1pZ3JhdGlvblRhYmxlRXhpc3RzIH0gZnJvbSAnLi91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMnXG5pbXBvcnQgeyBwYXJzZUVycm9yIH0gZnJvbSAnLi91dGlsaXRpZXMvcGFyc2VFcnJvcidcblxuLyoqXG4gKiBSdW4gYWxsIG1pZ3JhdGlvbiBkb3duIGZ1bmN0aW9ucyBiZWZvcmUgcnVubmluZyB1cFxuICovXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gbWlncmF0ZVJlZnJlc2godGhpczogUG9zdGdyZXNBZGFwdGVyKSB7XG4gIGNvbnN0IHsgcGF5bG9hZCB9ID0gdGhpc1xuICBjb25zdCBtaW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E1BQU0sQ0FBQ0MsSUFBSSxDQUFDO1lBQUVDLEtBQUssQ0FBQyxXQUFXLEVBQUVHLFVBQVVJLElBQUksQ0FBQyxDQUFDO1FBQUM7UUFDMUQsSUFBSTtZQUNGLE1BQU1FLFFBQVFDLEtBQUtDLEdBQUc7WUFDdEIsTUFBTXhCLGdCQUFnQmM7WUFDdEIsTUFBTUUsVUFBVW9CLEVBQUUsQ0FBQztnQkFBRTlCO2dCQUFTUTtZQUFJO1lBQ2xDLE1BQU1SLFFBQVErQixNQUFNLENBQUM7Z0JBQ25CUixZQUFZO2dCQUNaUyxNQUFNO29CQUNKbEIsTUFBTUosVUFBVUksSUFBSTtvQkFDcEJtQixVQUFVO2dCQUNaO2dCQUNBekI7WUFDRjtZQUNBLE1BQU1oQixrQkFBa0JnQjtZQUV4QlIsUUFBUUssTUFBTSxDQUFDQyxJQUFJLENBQUM7Z0JBQUVDLEtBQUssQ0FBQyxXQUFXLEVBQUVHLFVBQVVJLElBQUksQ0FBQyxFQUFFLEVBQUVHLEtBQUtDLEdBQUcsS0FBS0YsTUFBTSxHQUFHLENBQUM7WUFBQztRQUN0RixFQUFFLE9BQU9VLEtBQWM7WUFDckIsTUFBTS9CLGdCQUFnQmE7WUFDdEJSLFFBQVFLLE1BQU0sQ0FBQ3NCLEtBQUssQ0FBQztnQkFDbkJEO2dCQUNBbkIsS0FBS1QsV0FBVzRCLEtBQUssQ0FBQyx3QkFBd0IsRUFBRWhCLFVBQVVJLElBQUksQ0FBQyxlQUFlLENBQUM7WUFDakY7UUFDRjtJQUNGO0FBQ0YifQ==
@@ -1,4 +1,4 @@
1
- import type { PostgresAdapter } from './types';
1
+ import type { PostgresAdapter } from './types.d.ts';
2
2
  /**
3
3
  * Run all migrate down functions
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"migrateReset.d.ts","sourceRoot":"","sources":["../src/migrateReset.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsEvE"}
1
+ {"version":3,"file":"migrateReset.d.ts","sourceRoot":"","sources":["../src/migrateReset.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAInD;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsEvE"}