@payloadcms/db-postgres 3.0.0-alpha.31 → 3.0.0-alpha.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/connect.js +2 -2
- package/dist/create.js +1 -1
- package/dist/createGlobal.d.ts +1 -1
- package/dist/createGlobal.d.ts.map +1 -1
- package/dist/createGlobal.js +1 -1
- package/dist/createGlobalVersion.d.ts +1 -1
- package/dist/createGlobalVersion.d.ts.map +1 -1
- package/dist/createGlobalVersion.js +1 -1
- package/dist/createMigration.js +2 -2
- package/dist/createVersion.d.ts +1 -1
- package/dist/createVersion.d.ts.map +1 -1
- package/dist/createVersion.js +1 -1
- package/dist/deleteMany.js +1 -1
- package/dist/deleteOne.js +1 -1
- package/dist/deleteVersions.js +1 -1
- package/dist/destroy.js +1 -1
- package/dist/find/buildFindManyArgs.d.ts +1 -1
- package/dist/find/buildFindManyArgs.d.ts.map +1 -1
- package/dist/find/buildFindManyArgs.js +1 -1
- package/dist/find/findMany.d.ts +1 -1
- package/dist/find/findMany.d.ts.map +1 -1
- package/dist/find/findMany.js +1 -1
- package/dist/find/traverseFields.d.ts +1 -1
- package/dist/find/traverseFields.d.ts.map +1 -1
- package/dist/find/traverseFields.js +1 -1
- package/dist/find.js +1 -1
- package/dist/findGlobal.js +1 -1
- package/dist/findGlobalVersions.js +1 -1
- package/dist/findOne.d.ts +1 -1
- package/dist/findOne.d.ts.map +1 -1
- package/dist/findOne.js +1 -1
- package/dist/findVersions.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +2 -2
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.d.ts.map +1 -1
- package/dist/migrate.js +2 -2
- package/dist/migrateDown.d.ts +1 -1
- package/dist/migrateDown.d.ts.map +1 -1
- package/dist/migrateDown.js +1 -1
- package/dist/migrateFresh.d.ts +1 -1
- package/dist/migrateFresh.d.ts.map +1 -1
- package/dist/migrateFresh.js +1 -1
- package/dist/migrateRefresh.d.ts +1 -1
- package/dist/migrateRefresh.d.ts.map +1 -1
- package/dist/migrateRefresh.js +1 -1
- package/dist/migrateReset.d.ts +1 -1
- package/dist/migrateReset.d.ts.map +1 -1
- package/dist/migrateReset.js +1 -1
- package/dist/migrateStatus.d.ts +1 -1
- package/dist/migrateStatus.d.ts.map +1 -1
- package/dist/migrateStatus.js +1 -1
- package/dist/queries/buildAndOrConditions.d.ts +2 -2
- package/dist/queries/buildAndOrConditions.d.ts.map +1 -1
- package/dist/queries/buildAndOrConditions.js +1 -1
- package/dist/queries/buildQuery.d.ts +1 -1
- package/dist/queries/buildQuery.d.ts.map +1 -1
- package/dist/queries/buildQuery.js +1 -1
- package/dist/queries/getTableColumnFromPath.d.ts +2 -2
- package/dist/queries/getTableColumnFromPath.d.ts.map +1 -1
- package/dist/queries/getTableColumnFromPath.js +1 -1
- package/dist/queries/parseParams.d.ts +2 -2
- package/dist/queries/parseParams.d.ts.map +1 -1
- package/dist/queries/parseParams.js +1 -1
- package/dist/queries/sanitizeQueryValue.d.ts +1 -1
- package/dist/queries/sanitizeQueryValue.d.ts.map +1 -1
- package/dist/queries/sanitizeQueryValue.js +1 -1
- package/dist/schema/build.d.ts +1 -1
- package/dist/schema/build.d.ts.map +1 -1
- package/dist/schema/build.js +1 -1
- package/dist/schema/createIndex.d.ts +1 -1
- package/dist/schema/createIndex.d.ts.map +1 -1
- package/dist/schema/createIndex.js +1 -1
- package/dist/schema/parentIDColumnMap.d.ts +1 -1
- package/dist/schema/parentIDColumnMap.d.ts.map +1 -1
- package/dist/schema/parentIDColumnMap.js +1 -1
- package/dist/schema/setColumnID.d.ts +1 -1
- package/dist/schema/setColumnID.d.ts.map +1 -1
- package/dist/schema/setColumnID.js +1 -1
- package/dist/schema/traverseFields.d.ts +1 -1
- package/dist/schema/traverseFields.d.ts.map +1 -1
- package/dist/schema/traverseFields.js +1 -1
- package/dist/schema/validateExistingBlockIsIdentical.d.ts +1 -1
- package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +1 -1
- package/dist/schema/validateExistingBlockIsIdentical.js +1 -1
- package/dist/transactions/beginTransaction.js +1 -1
- package/dist/transform/read/traverseFields.d.ts +1 -1
- package/dist/transform/read/traverseFields.d.ts.map +1 -1
- package/dist/transform/read/traverseFields.js +1 -1
- package/dist/transform/write/array.d.ts +2 -2
- package/dist/transform/write/array.d.ts.map +1 -1
- package/dist/transform/write/array.js +1 -1
- package/dist/transform/write/blocks.d.ts +2 -2
- package/dist/transform/write/blocks.d.ts.map +1 -1
- package/dist/transform/write/blocks.js +1 -1
- package/dist/transform/write/index.d.ts +2 -2
- package/dist/transform/write/index.d.ts.map +1 -1
- package/dist/transform/write/index.js +1 -1
- package/dist/transform/write/traverseFields.d.ts +2 -2
- package/dist/transform/write/traverseFields.d.ts.map +1 -1
- package/dist/transform/write/traverseFields.js +1 -1
- package/dist/update.js +1 -1
- package/dist/updateGlobal.d.ts +1 -1
- package/dist/updateGlobal.d.ts.map +1 -1
- package/dist/updateGlobal.js +1 -1
- package/dist/updateGlobalVersion.d.ts +1 -1
- package/dist/updateGlobalVersion.d.ts.map +1 -1
- package/dist/updateGlobalVersion.js +1 -1
- package/dist/updateVersion.d.ts +1 -1
- package/dist/updateVersion.d.ts.map +1 -1
- package/dist/updateVersion.js +1 -1
- package/dist/upsertRow/deleteExistingArrayRows.d.ts +1 -1
- package/dist/upsertRow/deleteExistingArrayRows.d.ts.map +1 -1
- package/dist/upsertRow/deleteExistingArrayRows.js +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.d.ts +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.d.ts.map +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.js +1 -1
- package/dist/upsertRow/index.d.ts +1 -1
- package/dist/upsertRow/index.d.ts.map +1 -1
- package/dist/upsertRow/index.js +1 -1
- package/dist/upsertRow/insertArrays.d.ts +2 -2
- package/dist/upsertRow/insertArrays.d.ts.map +1 -1
- package/dist/upsertRow/insertArrays.js +1 -1
- package/dist/upsertRow/types.d.ts +1 -1
- package/dist/upsertRow/types.d.ts.map +1 -1
- package/dist/upsertRow/types.js +1 -1
- package/dist/utilities/createMigrationTable.d.ts +1 -1
- package/dist/utilities/createMigrationTable.d.ts.map +1 -1
- package/dist/utilities/createMigrationTable.js +1 -1
- package/dist/utilities/migrationTableExists.d.ts +1 -1
- package/dist/utilities/migrationTableExists.d.ts.map +1 -1
- package/dist/utilities/migrationTableExists.js +1 -1
- package/package.json +3 -3
package/dist/findOne.js
CHANGED
@@ -17,4 +17,4 @@ export async function findOne({ collection, locale, req = {}, where: incomingWhe
|
|
17
17
|
return docs?.[0] || null;
|
18
18
|
}
|
19
19
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kT25lLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZE9uZUFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZywgVHlwZVdpdGhJRCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB7IGZpbmRNYW55IH0gZnJvbSAnLi9maW5kL2ZpbmRNYW55LmpzJ1xuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gZmluZE9uZTxUIGV4dGVuZHMgVHlwZVdpdGhJRD4oXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAgeyBjb2xsZWN0aW9uLCBsb2NhbGUsIHJlcSA9IHt9IGFzIFBheWxvYWRSZXF1ZXN0LCB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LE1BQU0sQ0FBQyxDQUFtQixFQUFFQyxPQUFPQyxhQUFhLEVBQWU7SUFFckYsTUFBTUMsbUJBQThDLElBQUksQ0FBQ0MsT0FBTyxDQUFDQyxXQUFXLENBQUNQLFdBQVcsQ0FBQ1EsTUFBTTtJQUUvRixNQUFNLEVBQUVDLElBQUksRUFBRSxHQUFHLE1BQU1YLFNBQVM7UUFDOUJZLFNBQVMsSUFBSTtRQUNiQyxRQUFRTixpQkFBaUJNLE1BQU07UUFDL0JDLE9BQU87UUFDUFg7UUFDQVksTUFBTTtRQUNOQyxZQUFZO1FBQ1paO1FBQ0FhLE1BQU1DO1FBQ05DLFdBQVdwQixZQUFZRztRQUN2QkcsT0FBT0M7SUFDVDtJQUVBLE9BQU9LLE1BQU0sQ0FBQyxFQUFFLElBQUk7QUFDdEIifQ==
|
package/dist/findVersions.js
CHANGED
@@ -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,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kVmVyc2lvbnMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBGaW5kVmVyc2lvbnMgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZyB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGJ1aWxkVmVyc2lvbkNvbGxlY3Rpb25GaWVsZHMgfSBmcm9tICdwYXlsb2FkL3ZlcnNpb25zJ1xuaW1wb3J0IHRvU25ha2VDYXNlIGZyb20gJ3RvLXNuYWtlLWNhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH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RQUNBQztRQUNBQztRQUNBQztRQUNBUTtRQUNBTjtJQUNGO0FBQ0YsRUFBQyJ9
|
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.js';
|
3
|
+
export type { MigrateDownArgs, MigrateUpArgs } from './types.js';
|
4
4
|
export declare function postgresAdapter(args: Args): DatabaseAdapterObj<PostgresAdapter>;
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -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,
|
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,YAAY,CAAA;AAiCvD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAEhE,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAoE/E"}
|
package/dist/index.js
CHANGED
@@ -128,4 +128,4 @@ export function postgresAdapter(args) {
|
|
128
128
|
return srcDir;
|
129
129
|
}
|
130
130
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
131
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ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QyxHQUFHOEQsVUFBVSxDQUFDSixTQUFTO1FBQ3pCLE9BQU9BO0lBQ1Q7SUFFQSxJQUFJMUQsR0FBRzhELFVBQVUsQ0FBQ0YsVUFBVTtRQUMxQixPQUFPQTtJQUNUO0lBRUEsSUFBSTVELEdBQUc4RCxVQUFVLENBQUNELHFCQUFxQjtRQUNyQyxPQUFPQTtJQUNUO0lBRUEsT0FBT0g7QUFDVCJ9
|
package/dist/init.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import { buildVersionCollectionFields, buildVersionGlobalFields } from 'payload/versions';
|
3
3
|
import toSnakeCase from 'to-snake-case';
|
4
4
|
import { buildTable } from './schema/build.js';
|
5
|
-
export const init =
|
5
|
+
export const init = function init() {
|
6
6
|
if (this.schemaName) {
|
7
7
|
this.pgSchema = pgSchema(this.schemaName);
|
8
8
|
} else {
|
@@ -73,4 +73,4 @@ export const init = async function init() {
|
|
73
73
|
});
|
74
74
|
};
|
75
75
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbml0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEluaXQgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgcGdFbnVtLCBwZ1NjaGVtYSwgcGdUYWJsZSB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzLCBidWlsZFZlcnNpb25HbG9iYWxGaWVsZHMgfSBmcm9tICdwYXlsb2FkL3Zlcn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Dd0IsT0FBTyxDQUFDaEIsT0FBTyxDQUFDLENBQUNpQjtRQUNuQyxNQUFNZixZQUFZaEIsWUFBWStCLE9BQU9kLElBQUk7UUFFekNoQixXQUFXO1lBQ1RpQixTQUFTLElBQUk7WUFDYkMsY0FBYztZQUNkQyxvQkFBb0I7WUFDcEJDLFlBQVk7WUFDWkMsZ0JBQWdCLENBQUMsQ0FBQ1MsUUFBUVIsVUFBVUM7WUFDcENDLGVBQWU7WUFDZkMsUUFBUUssT0FBT0wsTUFBTTtZQUNyQlY7WUFDQVcsWUFBWTtRQUNkO1FBRUEsSUFBSUksT0FBT1IsUUFBUSxFQUFFO1lBQ25CLE1BQU1LLG9CQUFvQixDQUFDLENBQUMsRUFBRVosVUFBVSxFQUFFLENBQUM7WUFDM0MsTUFBTWEsZ0JBQWdCOUIseUJBQXlCZ0M7WUFFL0M5QixXQUFXO2dCQUNUaUIsU0FBUyxJQUFJO2dCQUNiQyxjQUFjO2dCQUNkQyxvQkFBb0I7Z0JBQ3BCQyxZQUFZO2dCQUNaQyxnQkFBZ0IsQ0FBQyxDQUFDUyxPQUFPUixRQUFRLEVBQUVDO2dCQUNuQ0MsZUFBZTtnQkFDZkMsUUFBUUc7Z0JBQ1JiLFdBQVdZO2dCQUNYRCxZQUFZO1lBQ2Q7UUFDRjtJQUNGO0FBQ0YsRUFBQyJ9
|
package/dist/migrate.d.ts
CHANGED
package/dist/migrate.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjD,wBAAsB,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA8DlE"}
|
package/dist/migrate.js
CHANGED
@@ -56,7 +56,7 @@ export async function migrate() {
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
async function runMigrationFile(payload, migration, batch) {
|
59
|
-
const { generateDrizzleJson } =
|
59
|
+
const { generateDrizzleJson } = await import('drizzle-kit/payload');
|
60
60
|
const start = Date.now();
|
61
61
|
const req = {
|
62
62
|
payload
|
@@ -94,4 +94,4 @@ async function runMigrationFile(payload, migration, batch) {
|
|
94
94
|
}
|
95
95
|
}
|
96
96
|
|
97
|
-
//# sourceMappingURL=data:application/json;base64,
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXJlc3RyaWN0ZWQtc3ludGF4LCBuby1hd2FpdC1pbi1sb29wICovXG5pbXBvcnQgdHlwZSB7IFBheWxvYWQgfSBmcm9tICdwYXlsb2FkJ1xuaW1wb3J0IHR5cGUgeyBNaWdyYXRpb24gfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7XG4gIGNvbW1pdFRyYW5zYWN0aW9uLFxuICBpbml0VHJhbnNhY3Rpb24sXG4gIGtpbGxUcmFuc2FjdGlvbixcbiAgcmVhZE1pZ3JhdGlvbkZpbGVzLFxufSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHByb21wdHMgZnJvbSAncHJvbXB0cydcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzLmpzJ1xuXG5pbXBvcnQgeyBjcmVhdGVNaWdyYXRpb25UYWJsZSB9IGZyb20gJy4vdXRpbGl0aWVzL2NyZWF0Z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3QixFQUFFaEIsVUFBVVIsSUFBSSxDQUFDLENBQUM7UUFDbEU7SUFDRjtBQUNGIn0=
|
package/dist/migrateDown.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrateDown.d.ts","sourceRoot":"","sources":["../src/migrateDown.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrateDown.d.ts","sourceRoot":"","sources":["../src/migrateDown.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAKjD,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAwDtE"}
|
package/dist/migrateDown.js
CHANGED
@@ -60,4 +60,4 @@ export async function migrateDown() {
|
|
60
60
|
}
|
61
61
|
}
|
62
62
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlRG93bi50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1yZXN0cmljdGVkLXN5bnRheCwgbm8tYXdhaXQtaW4tbG9vcCAqL1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7XG4gIGNvbW1pdFRyYW5zYWN0aW9uLFxuICBnZXRNaWdyYXRpb25zLFxuICBpbml0VHJhbnNhY3Rpb24sXG4gIGtpbGxUcmFuc2FjdGlvbixcbiAgcmVhZE1pZ3JhdGlvbkZpbGVzLFxufSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB7IG1pZ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yxNQUFNLENBQUNDLElBQUksQ0FBQztnQkFBRUMsS0FBSyxDQUFDLGdCQUFnQixFQUFFSyxjQUFjRyxJQUFJLENBQUMsQ0FBQztZQUFDO1lBQ25FLE1BQU1yQixnQkFBZ0IwQjtZQUN0QixNQUFNUixjQUFjUyxJQUFJLENBQUM7Z0JBQUVyQjtnQkFBU29CO1lBQUk7WUFDeENwQixRQUFRSyxNQUFNLENBQUNDLElBQUksQ0FBQztnQkFDbEJDLEtBQUssQ0FBQyxnQkFBZ0IsRUFBRUssY0FBY0csSUFBSSxDQUFDLEVBQUUsRUFBRUcsS0FBS0MsR0FBRyxLQUFLRixNQUFNLEdBQUcsQ0FBQztZQUN4RTtZQUVBLE1BQU1LLGNBQWMsTUFBTXpCLHFCQUFxQixJQUFJLENBQUMwQixPQUFPO1lBQzNELElBQUlELGFBQWE7Z0JBQ2YsTUFBTXRCLFFBQVF3QixNQUFNLENBQUM7b0JBQ25CQyxJQUFJZCxVQUFVYyxFQUFFO29CQUNoQkMsWUFBWTtvQkFDWk47Z0JBQ0Y7WUFDRjtZQUVBLE1BQU01QixrQkFBa0I0QjtRQUMxQixFQUFFLE9BQU9PLEtBQWM7WUFDckIsTUFBTWhDLGdCQUFnQnlCO1lBRXRCcEIsUUFBUUssTUFBTSxDQUFDdUIsS0FBSyxDQUFDO2dCQUNuQkQ7Z0JBQ0FwQixLQUFLVCxXQUFXNkIsS0FBSyxDQUFDLHFCQUFxQixFQUFFZixjQUFjRyxJQUFJLENBQUMsZUFBZSxDQUFDO1lBQ2xGO1lBQ0FjLFFBQVFDLElBQUksQ0FBQztRQUNmO0lBQ0Y7QUFDRiJ9
|
package/dist/migrateFresh.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrateFresh.d.ts","sourceRoot":"","sources":["../src/migrateFresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrateFresh.d.ts","sourceRoot":"","sources":["../src/migrateFresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD;;GAEG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,eAAe,EACrB,EAAE,kBAA0B,EAAE;;CAAA,GAC7B,OAAO,CAAC,IAAI,CAAC,CAgEf"}
|
package/dist/migrateFresh.js
CHANGED
@@ -69,4 +69,4 @@ import { parseError } from './utilities/parseError.js';
|
|
69
69
|
}
|
70
70
|
}
|
71
71
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlRnJlc2gudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IHNxbCB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHtcbiAgY29tbWl0VHJhbnNhY3Rpb24sXG4gIGluaXRUcmFuc2FjdGlvbixcbiAga2lsbFRyYW5zYWN0aW9uLFxuICByZWFkTWlncmF0aW9uRmlsZXMsXG59IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgcHJvbXB0cyBmcm9tICdwcm9tcHRzJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB7IHBhcnNlRXJyb3IgfSBmcm9tICcuL3V0aWxpdGllcy9wYXJzZUVycm9yLmpzJ1xuXG4vKipcbiAqIERyb3AgdGhlIGN1cnJlbnQgZGF0YWJhc2UgYW5kIHJ1biBhbGwgbWlncmF0ZSB1cCBmdW5jdGlvbnNcbiAqL1xuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIG1pZ3JhdGVGcmVzaCh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JQUFJLENBQUMsQ0FBQztRQUFDO1FBQzFELElBQUk7WUFDRixNQUFNbUIsUUFBUUMsS0FBS0MsR0FBRztZQUN0QixNQUFNL0IsZ0JBQWdCMkI7WUFDdEIsTUFBTUMsVUFBVUksRUFBRSxDQUFDO2dCQUFFekI7Z0JBQVNvQjtZQUFJO1lBQ2xDLE1BQU1wQixRQUFRMEIsTUFBTSxDQUFDO2dCQUNuQkMsWUFBWTtnQkFDWkMsTUFBTTtvQkFDSnpCLE1BQU1rQixVQUFVbEIsSUFBSTtvQkFDcEIwQixPQUFPO2dCQUNUO2dCQUNBVDtZQUNGO1lBQ0EsTUFBTTVCLGtCQUFrQjRCO1lBRXhCcEIsUUFBUVUsTUFBTSxDQUFDQyxJQUFJLENBQUM7Z0JBQUVDLEtBQUssQ0FBQyxXQUFXLEVBQUVTLFVBQVVsQixJQUFJLENBQUMsRUFBRSxFQUFFb0IsS0FBS0MsR0FBRyxLQUFLRixNQUFNLEdBQUcsQ0FBQztZQUFDO1FBQ3RGLEVBQUUsT0FBT1EsS0FBYztZQUNyQixNQUFNcEMsZ0JBQWdCMEI7WUFDdEJwQixRQUFRVSxNQUFNLENBQUNxQixLQUFLLENBQUM7Z0JBQ25CRDtnQkFDQWxCLEtBQUtmLFdBQVdpQyxLQUFLLENBQUMsd0JBQXdCLEVBQUVULFVBQVVsQixJQUFJLENBQUMsY0FBYyxDQUFDO1lBQ2hGO1FBQ0Y7SUFDRjtBQUNGIn0=
|
package/dist/migrateRefresh.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrateRefresh.d.ts","sourceRoot":"","sources":["../src/migrateRefresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrateRefresh.d.ts","sourceRoot":"","sources":["../src/migrateRefresh.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAKjD;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,eAAe,iBAsFzD"}
|
package/dist/migrateRefresh.js
CHANGED
@@ -99,4 +99,4 @@ import { parseError } from './utilities/parseError.js';
|
|
99
99
|
}
|
100
100
|
}
|
101
101
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlUmVmcmVzaC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1yZXN0cmljdGVkLXN5bnRheCwgbm8tYXdhaXQtaW4tbG9vcCAqL1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7XG4gIGNvbW1pdFRyYW5zYWN0aW9uLFxuICBnZXRNaWdyYXRpb25zLFxuICBpbml0VHJhbnNhY3Rpb24sXG4gIGtpbGxUcmFuc2FjdGlvbixcbiAgcmVhZE1pZ3JhdGlvbkZpbGVzLFxufSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB7IG1pZ3JhdGlvblRhYmxlRXhpc3RzIH0gZnJvbSAnLi91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMuanMnXG5pbXBvcnQgeyBwYXJzZUVycm9yIH0gZnJvbSAnLi91dGlsaXRpZXMvcGFyc2VFcnJvci5qcydcblxuLyoqXG4gKiBSdW4gYWxsIG1pZ3JhdGlvbiBkb3duIGZ1bmN0aW9ucyBiZWZvcmUgcnVubmluZyB1cFxuICovXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gbWlncmF0ZVJlZnJlc2godGhpczogUG9zdGdyZXNBZGFwdGVyKSB7XG4gIGN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1KLFVBQVVJLElBQUk7b0JBQ3BCbUIsVUFBVTtnQkFDWjtnQkFDQXpCO1lBQ0Y7WUFDQSxNQUFNaEIsa0JBQWtCZ0I7WUFFeEJSLFFBQVFLLE1BQU0sQ0FBQ0MsSUFBSSxDQUFDO2dCQUFFQyxLQUFLLENBQUMsV0FBVyxFQUFFRyxVQUFVSSxJQUFJLENBQUMsRUFBRSxFQUFFRyxLQUFLQyxHQUFHLEtBQUtGLE1BQU0sR0FBRyxDQUFDO1lBQUM7UUFDdEYsRUFBRSxPQUFPVSxLQUFjO1lBQ3JCLE1BQU0vQixnQkFBZ0JhO1lBQ3RCUixRQUFRSyxNQUFNLENBQUNzQixLQUFLLENBQUM7Z0JBQ25CRDtnQkFDQW5CLEtBQUtULFdBQVc0QixLQUFLLENBQUMsd0JBQXdCLEVBQUVoQixVQUFVSSxJQUFJLENBQUMsZUFBZSxDQUFDO1lBQ2pGO1FBQ0Y7SUFDRjtBQUNGIn0=
|
package/dist/migrateReset.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrateReset.d.ts","sourceRoot":"","sources":["../src/migrateReset.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrateReset.d.ts","sourceRoot":"","sources":["../src/migrateReset.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsEvE"}
|
package/dist/migrateReset.js
CHANGED
@@ -79,4 +79,4 @@ import { migrationTableExists } from './utilities/migrationTableExists.js';
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
|
82
|
-
//# sourceMappingURL=data:application/json;base64,
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3Ny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UUFDMUIsRUFBRSxPQUFPZ0IsS0FBYztZQUNyQixJQUFJakIsTUFBTSxDQUFDLHdCQUF3QixFQUFFRyxjQUFjRyxJQUFJLENBQUMsQ0FBQyxDQUFDO1lBRTFELElBQUlXLGVBQWVWLE9BQU9QLE9BQU8sQ0FBQyxDQUFDLEVBQUVpQixJQUFJQyxPQUFPLENBQUMsQ0FBQztZQUVsRCxNQUFNNUIsZ0JBQWdCVztZQUN0QlAsUUFBUUksTUFBTSxDQUFDcUIsS0FBSyxDQUFDO2dCQUNuQkY7Z0JBQ0FqQjtZQUNGO1lBQ0FvQixRQUFRQyxJQUFJLENBQUM7UUFDZjtJQUNGO0lBRUEsdUJBQXVCO0lBRXZCLE1BQU1ULGNBQWMsTUFBTXBCLHFCQUFxQixJQUFJLENBQUNxQixPQUFPO0lBQzNELElBQUlELGFBQWE7UUFDZixJQUFJO1lBQ0YsTUFBTWxCLFFBQVFvQixNQUFNLENBQUM7Z0JBQ25CRSxZQUFZO2dCQUNaTSxPQUFPO29CQUNMQyxPQUFPO3dCQUNMQyxRQUFRLENBQUM7b0JBQ1g7Z0JBQ0Y7WUFDRjtRQUNGLEVBQUUsT0FBT1AsS0FBYztZQUNyQnZCLFFBQVFJLE1BQU0sQ0FBQ3FCLEtBQUssQ0FBQztnQkFBRUEsT0FBT0Y7Z0JBQUtqQixLQUFLO1lBQStCO1FBQ3pFO0lBQ0Y7QUFDRiJ9
|
package/dist/migrateStatus.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrateStatus.d.ts","sourceRoot":"","sources":["../src/migrateStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"migrateStatus.d.ts","sourceRoot":"","sources":["../src/migrateStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD,wBAAsB,aAAa,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAuCxE"}
|
package/dist/migrateStatus.js
CHANGED
@@ -41,4 +41,4 @@ export async function migrateStatus() {
|
|
41
41
|
p.printTable();
|
42
42
|
}
|
43
43
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlU3RhdHVzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRhYmxlIH0gZnJvbSAnY29uc29sZS10YWJsZS1wcmludGVyJ1xuaW1wb3J0IHsgZ2V0TWlncmF0aW9ucywgcmVhZE1pZ3JhdGlvbkZpbGVzIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzLmpzJ1xuXG5pbXBvcnQgeyBtaWdyYXRpb25UYWJsZUV4aXN0cyB9IGZyb20gJy4vdXRpbGl0aWVzL21pZ3JhdGlvblRhYmxlRXhpc3RzLmpzJ1xuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gbWlncmF0ZVN0YXR1cyh0aGlzOiBQb3N0Z3Jlc0FkYXB0ZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgY29uc3QgeyBwYXlsb2FkIH0gPSB0aGlzXG4gIGNvbnN0IG1pZ3JhdGlvbkZpbGVzID0gYXdhaXQgcmVhZE1pZ3JhdGlvbkZpbGVzKHsgcGF5bG9hZCB9KVxuXG4gIHBheWxvYWQubG9nZ2VyLmRlYnVnKHtcbiAgICBtc2c6IGBGb3VuZCAke21pZ3JhdGlvbkZpbGVzLmxlbmd0aH0gbWlncmF0aW9uIGZpbGVzLmAsXG4gIH0pXG5cbiAgbGV0IGV4aXN0aW5nTWlncmF0aW9ucyA9IFtdXG4gIGNvbnN0IGhhc01pZ3JhdGlvblRhYmxlID0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QU1WLGNBQWM7WUFBRUk7UUFBUSxFQUFDO0lBQzVEO0lBRUEsSUFBSSxDQUFDQyxlQUFlSSxNQUFNLEVBQUU7UUFDMUJMLFFBQVFFLE1BQU0sQ0FBQ08sSUFBSSxDQUFDO1lBQUVMLEtBQUs7UUFBdUI7UUFDbEQ7SUFDRjtJQUVBLGlEQUFpRDtJQUNqRCxNQUFNTSxXQUFXVCxlQUFlVSxHQUFHLENBQUMsQ0FBQ0M7UUFDbkMsTUFBTUMsb0JBQW9CUCxtQkFBbUJRLElBQUksQ0FBQyxDQUFDQyxJQUFNQSxFQUFFQyxJQUFJLEtBQUtKLFVBQVVJLElBQUk7UUFDbEYsT0FBTztZQUNMQyxNQUFNTCxVQUFVSSxJQUFJO1lBQ3BCLHNEQUFzRDtZQUN0REUsT0FBT0wsbUJBQW1CTTtZQUMxQkMsS0FBS1Asb0JBQW9CLFFBQVE7UUFDbkM7SUFDRjtJQUVBLE1BQU1RLElBQUksSUFBSTFCO0lBRWRlLFNBQVNZLE9BQU8sQ0FBQyxDQUFDQztRQUNoQkYsRUFBRUcsTUFBTSxDQUFDRCxHQUFHO1lBQ1ZFLE9BQU9GLEVBQUVILEdBQUcsS0FBSyxRQUFRLFVBQVU7UUFDckM7SUFDRjtJQUNBQyxFQUFFSyxVQUFVO0FBQ2QifQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { SQL } from 'drizzle-orm';
|
2
2
|
import type { Field, Where } from 'payload/types';
|
3
|
-
import type { GenericColumn, PostgresAdapter } from '../types.
|
4
|
-
import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery.
|
3
|
+
import type { GenericColumn, PostgresAdapter } from '../types.js';
|
4
|
+
import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery.js';
|
5
5
|
export declare function buildAndOrConditions({ adapter, fields, joinAliases, joins, locale, selectFields, tableName, where, }: {
|
6
6
|
adapter: PostgresAdapter;
|
7
7
|
collectionSlug?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"buildAndOrConditions.d.ts","sourceRoot":"","sources":["../../src/queries/buildAndOrConditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"buildAndOrConditions.d.ts","sourceRoot":"","sources":["../../src/queries/buildAndOrConditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAI7E,wBAAsB,oBAAoB,CAAC,EACzC,OAAO,EACP,MAAM,EACN,WAAW,EACX,KAAK,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,KAAK,GACN,EAAE;IACD,OAAO,EAAE,eAAe,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,qBAAqB,CAAA;IAClC,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,KAAK,EAAE,CAAA;CACf,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAyBjB"}
|
@@ -26,4 +26,4 @@ export async function buildAndOrConditions({ adapter, fields, joinAliases, joins
|
|
26
26
|
return completedConditions;
|
27
27
|
}
|
28
28
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9xdWVyaWVzL2J1aWxkQW5kT3JDb25kaXRpb25zLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgU1FMIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgdHlwZSB7IEZpZWxkLCBXaGVyZSB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0eXBlIHsgR2VuZXJpY0NvbHVtbiwgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMuanMnXG5pbXBvcnQgdHlwZSB7IEJ1aWxkUXVlcnlKb2luQWxpYXNlcywgQnVpbGRRdWVyeUpvaW5zIH0gZnJvbSAnLi9idWlsZFF1ZXJ5LmpzJ1xuXG5pbXBvcnQgeyBwYXJzZVBhcmFtcyB9IGZyb20gJy4vcGFyc2VQYXJhbXMuanMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBidWlsZEFuZE9yQ29uZGl0aW9ucyh7XG4gIGFkYXB0ZXIsXG4gIGZpZWxkcyxcbiAgam9pbkFsaWFzZXMsXG4gIGpvaW5zLFxuICBsb2NhbGUsXG4gIHNlbGVjdEZpZWxkcyxcbiAgdGFibGVOYW1lLFxuICB3aGVyZSxcbn06IHtcbiAgYWRhcHRlcjogUG9zdGdyZXNBZGFwdGVyXG4gIGNvbGxlY3Rpb25TbHVnPzogc3RyaW5nXG4gIGZpZWxkczogRmllbGRbXVxuICBnbG9iYWxTbHVnPzogc3RyaW5nXG4gIGpvaW5BbGlhc2VzOiBCdWlsZFF1ZXJ5Sm9pbkFsaWFzZXNcbiAgam9pbnM6IEJ1aWxkUXVlcnlKb2luc1xuICBsb2NhbGU/OiBzdHJpbmdcbiAgc2VsZWN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+2,7 @@ import type { SQL } from 'drizzle-orm';
|
|
2
2
|
import type { PgTableWithColumns } from 'drizzle-orm/pg-core';
|
3
3
|
import type { Field, Where } from 'payload/types';
|
4
4
|
import { asc, desc } from 'drizzle-orm';
|
5
|
-
import type { GenericColumn, GenericTable, PostgresAdapter } from '../types.
|
5
|
+
import type { GenericColumn, GenericTable, PostgresAdapter } from '../types.js';
|
6
6
|
export type BuildQueryJoins = Record<string, SQL>;
|
7
7
|
export type BuildQueryJoinAliases = {
|
8
8
|
condition: SQL;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"buildQuery.d.ts","sourceRoot":"","sources":["../../src/queries/buildQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"buildQuery.d.ts","sourceRoot":"","sources":["../../src/queries/buildQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAK/E,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEjD,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,GAAG,CAAA;IACd,KAAK,EAAE,YAAY,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;CAC9C,EAAE,CAAA;AAEH,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,eAAe,CAAA;IACxB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,KAAK,MAAM,GAAG;IACZ,WAAW,EAAE,qBAAqB,CAAA;IAClC,KAAK,EAAE,eAAe,CAAA;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,aAAa,CAAA;QACrB,KAAK,EAAE,OAAO,GAAG,GAAG,OAAO,IAAI,CAAA;KAChC,CAAA;IACD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IAC3C,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AACD,QAAA,MAAM,UAAU,wEAOb,cAAc,KAAG,QAAQ,MAAM,CA+EjC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
@@ -73,4 +73,4 @@ const buildQuery = async function buildQuery({ adapter, fields, locale, sort, ta
|
|
73
73
|
};
|
74
74
|
export default buildQuery;
|
75
75
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9xdWVyaWVzL2J1aWxkUXVlcnkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBTUUwgfSBmcm9tICdkcml6emxlLW9ybSdcbmltcG9ydCB0eXBlIHsgUGdUYWJsZVdpdGhDb2x1bW5zIH0gZnJvbSAnZHJpenpsZS1vcm0vcGctY29yZSdcbmltcG9ydCB0eXBlIHsgR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VkzQixRQUFRUyxNQUFNLENBQUNMLFVBQVUsRUFBRXVCO1FBRTdDLElBQUlBLFdBQVc7WUFDYmYsUUFBUUMsTUFBTSxHQUFHYztRQUNuQixPQUFPO1lBQ0xmLFFBQVFDLE1BQU0sR0FBR2IsUUFBUVMsTUFBTSxDQUFDTCxVQUFVLENBQUNJLEVBQUU7UUFDL0M7SUFDRjtJQUVBLElBQUlJLFFBQVFDLE1BQU0sRUFBRTtRQUNsQk4sYUFBYUosSUFBSSxHQUFHUyxRQUFRQyxNQUFNO0lBQ3BDO0lBRUEsSUFBSVI7SUFFSixJQUFJQyxpQkFBaUJzQixPQUFPQyxJQUFJLENBQUN2QixlQUFld0IsTUFBTSxHQUFHLEdBQUc7UUFDMUR6QixRQUFRLE1BQU1QLFlBQVk7WUFDeEJFO1lBQ0FDO1lBQ0FVO1lBQ0FEO1lBQ0FSO1lBQ0FLO1lBQ0FIO1lBQ0FDLE9BQU9DO1FBQ1Q7SUFDRjtJQUVBLE9BQU87UUFDTEs7UUFDQUQ7UUFDQUU7UUFDQUw7UUFDQUY7SUFDRjtBQUNGO0FBRUEsZUFBZU4sV0FBVSJ9
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { SQL } from 'drizzle-orm';
|
2
2
|
import type { PgTableWithColumns } from 'drizzle-orm/pg-core';
|
3
3
|
import type { Field, FieldAffectingData, TabAsField } from 'payload/types';
|
4
|
-
import type { GenericColumn, GenericTable, PostgresAdapter } from '../types.
|
5
|
-
import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery.
|
4
|
+
import type { GenericColumn, GenericTable, PostgresAdapter } from '../types.js';
|
5
|
+
import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery.js';
|
6
6
|
type Constraint = {
|
7
7
|
columnName: string;
|
8
8
|
table: GenericTable | PgTableWithColumns<any>;
|
@@ -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,
|
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,MAAM,iBAAiB,CAAA;AAE7E,KAAK,UAAU,GAAG;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,YAAY,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;IAC7C,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,UAAU,EAAE,CAAA;IACzB,KAAK,EAAE,kBAAkB,CAAA;IACzB,uBAAuB,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,CAAA;IAClD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,KAAK,EAAE,YAAY,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;CAC9C,CAA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