@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.
- package/dist/connect.js +1 -1
- package/dist/create.js +2 -2
- package/dist/createGlobal.d.ts +1 -1
- package/dist/createGlobal.d.ts.map +1 -1
- package/dist/createGlobal.js +2 -2
- package/dist/createGlobalVersion.d.ts +1 -1
- package/dist/createGlobalVersion.d.ts.map +1 -1
- package/dist/createGlobalVersion.js +2 -2
- package/dist/createMigration.js +1 -1
- package/dist/createVersion.d.ts +1 -1
- package/dist/createVersion.d.ts.map +1 -1
- package/dist/createVersion.js +2 -2
- package/dist/deleteMany.js +2 -2
- package/dist/deleteOne.js +4 -4
- package/dist/deleteVersions.js +2 -2
- 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 +2 -2
- package/dist/find/findMany.d.ts +1 -1
- package/dist/find/findMany.d.ts.map +1 -1
- package/dist/find/findMany.js +5 -5
- 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 +2 -2
- package/dist/findGlobal.js +2 -2
- package/dist/findGlobalVersions.js +2 -2
- package/dist/findOne.d.ts +1 -1
- package/dist/findOne.d.ts.map +1 -1
- package/dist/findOne.js +2 -2
- package/dist/findVersions.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -31
- 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 +4 -4
- package/dist/migrateDown.d.ts +1 -1
- package/dist/migrateDown.d.ts.map +1 -1
- package/dist/migrateDown.js +3 -3
- package/dist/migrateFresh.d.ts +1 -1
- package/dist/migrateFresh.d.ts.map +1 -1
- package/dist/migrateFresh.js +2 -2
- package/dist/migrateRefresh.d.ts +1 -1
- package/dist/migrateRefresh.d.ts.map +1 -1
- package/dist/migrateRefresh.js +3 -3
- package/dist/migrateReset.d.ts +1 -1
- package/dist/migrateReset.d.ts.map +1 -1
- package/dist/migrateReset.js +2 -2
- package/dist/migrateStatus.d.ts +1 -1
- package/dist/migrateStatus.d.ts.map +1 -1
- package/dist/migrateStatus.js +2 -2
- package/dist/queries/buildAndOrConditions.d.ts +2 -2
- package/dist/queries/buildAndOrConditions.d.ts.map +1 -1
- package/dist/queries/buildAndOrConditions.js +2 -2
- package/dist/queries/buildQuery.d.ts +1 -1
- package/dist/queries/buildQuery.d.ts.map +1 -1
- package/dist/queries/buildQuery.js +3 -3
- package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js +2 -2
- package/dist/queries/createJSONQuery/index.js +3 -3
- 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 +7 -7
- 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/queryDrafts.js +2 -2
- package/dist/schema/build.d.ts +1 -1
- package/dist/schema/build.d.ts.map +1 -1
- package/dist/schema/build.js +4 -4
- 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 +7 -7
- 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/index.js +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/transform/write/selects.js +2 -2
- 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 +8 -8
- package/dist/update.js +4 -4
- package/dist/updateGlobal.d.ts +1 -1
- package/dist/updateGlobal.d.ts.map +1 -1
- package/dist/updateGlobal.js +2 -2
- package/dist/updateGlobalVersion.d.ts +1 -1
- package/dist/updateGlobalVersion.d.ts.map +1 -1
- package/dist/updateGlobalVersion.js +3 -3
- package/dist/updateVersion.d.ts +1 -1
- package/dist/updateVersion.d.ts.map +1 -1
- package/dist/updateVersion.js +3 -3
- 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 +7 -7
- 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/connect.js
CHANGED
@@ -120,4 +120,4 @@ export const connect = async function connect(options = {
|
|
120
120
|
}
|
121
121
|
};
|
122
122
|
|
123
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25uZWN0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUGF5bG9hZCB9IGZyb20gJ3BheWxvYWQnXG5pbXBvcnQgdHlwZSB7IENvbm5lY3QgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgeyBlcSwgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBkcml6emxlIH0gZnJvbSAnZHJpenpsZS1vcm0vbm9kZS1wb3N0Z3JlcydcbmltcG9ydCB7IG51bWVyaWMsIHRpbWVzdGFtcCwgdmFyY2hhciB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5pbXBvcnQgeyBQb29sIH0gZnJvbSAncGcnXG5pbXBvcnQgcHJvbXB0cyBmcm9tICdwcm9tcHRzJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmNvbnN0IGNvbm5l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BQVE7UUFDZG9ELE9BQU90RCxRQUFRO1FBQ2Z1RCxZQUFZdEQsVUFBVTtRQUN0QnVELFlBQVl2RCxVQUFVO0lBQ3hCO0lBRUEsTUFBTXdELFVBQVUsTUFBTSxJQUFJLENBQUMxRCxPQUFPLENBQy9CMkQsTUFBTSxHQUNOQyxJQUFJLENBQUNSLGtCQUNMUyxLQUFLLENBQUMvRCxHQUFHc0QsaUJBQWlCRyxLQUFLLEVBQUU7SUFFcEMsSUFBSSxDQUFDRyxRQUFRZCxNQUFNLEVBQUU7UUFDbkIsTUFBTSxJQUFJLENBQUM1QyxPQUFPLENBQUM4RCxNQUFNLENBQUNWLGtCQUFrQlcsTUFBTSxDQUFDO1lBQ2pEZixNQUFNO1lBQ05PLE9BQU87UUFDVDtJQUNGLE9BQU87UUFDTCxNQUFNLElBQUksQ0FBQ3ZELE9BQU8sQ0FDZmdFLE1BQU0sQ0FBQ1osa0JBQ1BhLEdBQUcsQ0FBQztZQUNIUixZQUFZLElBQUlTO1FBQ2xCLEdBQ0NMLEtBQUssQ0FBQy9ELEdBQUdzRCxpQkFBaUJHLEtBQUssRUFBRTtJQUN0QztBQUNGLEVBQUMifQ==
|
package/dist/create.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import toSnakeCase from 'to-snake-case';
|
2
|
-
import { upsertRow } from './upsertRow';
|
2
|
+
import { upsertRow } from './upsertRow/index.js';
|
3
3
|
export const create = async function create({ collection: collectionSlug, data, req }) {
|
4
4
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
5
5
|
const collection = this.payload.collections[collectionSlug].config;
|
@@ -15,4 +15,4 @@ export const create = async function create({ collection: collectionSlug, data,
|
|
15
15
|
return result;
|
16
16
|
};
|
17
17
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGUudHMiXSwic291cmNlc0Nvb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LCJ0cmFuc2FjdGlvbklEIiwiZHJpenpsZSIsInBheWxvYWQiLCJjb2xsZWN0aW9ucyIsImNvbmZpZyIsInJlc3VsdCIsImFkYXB0ZXIiLCJmaWVsZHMiLCJvcGVyYXRpb24iLCJ0YWJsZU5hbWUiXSwibWFwcGluZ3MiOiJBQUVBLE9BQU9BLGlCQUFpQixnQkFBZTtBQUl2QyxTQUFTQyxTQUFTLFFBQVEsdUJBQXNCO0FBRWhELE9BQU8sTUFBTUMsU0FBaUIsZUFBZUEsT0FFM0MsRUFBRUMsWUFBWUMsY0FBYyxFQUFFQyxJQUFJLEVBQUVDLEdBQUcsRUFBRTtJQUV6QyxNQUFNQyxLQUFLLElBQUksQ0FBQ0MsUUFBUSxDQUFDRixJQUFJRyxhQUFhLENBQUMsRUFBRUYsTUFBTSxJQUFJLENBQUNHLE9BQU87SUFDL0QsTUFBTVAsYUFBYSxJQUFJLENBQUNRLE9BQU8sQ0FBQ0MsV0FBVyxDQUFDUixlQUFlLENBQUNTLE1BQU07SUFFbEUsTUFBTUMsU0FBUyxNQUFNYixVQUFVO1FBQzdCYyxTQUFTLElBQUk7UUFDYlY7UUFDQUU7UUFDQVMsUUFBUWIsV0FBV2EsTUFBTTtRQUN6QkMsV0FBVztRQUNYQyxXQUFXbEIsWUFBWUk7UUFDdkJFO0lBQ0Y7SUFFQSxPQUFPUTtBQUNULEVBQUMifQ==
|
package/dist/createGlobal.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { CreateGlobalArgs } 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 createGlobal<T extends TypeWithID>(this: PostgresAdapter, { data, req, slug }: CreateGlobalArgs): Promise<T>;
|
5
5
|
//# sourceMappingURL=createGlobal.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createGlobal.d.ts","sourceRoot":"","sources":["../src/createGlobal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAA;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"createGlobal.d.ts","sourceRoot":"","sources":["../src/createGlobal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAA;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAInD,wBAAsB,YAAY,CAAC,CAAC,SAAS,UAAU,EACrD,IAAI,EAAE,eAAe,EACrB,EAAE,IAAI,EAAE,GAA0B,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAC3D,OAAO,CAAC,CAAC,CAAC,CAeZ"}
|
package/dist/createGlobal.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import toSnakeCase from 'to-snake-case';
|
2
|
-
import { upsertRow } from './upsertRow';
|
2
|
+
import { upsertRow } from './upsertRow/index.js';
|
3
3
|
export async function createGlobal({ data, req = {}, slug }) {
|
4
4
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
5
5
|
const globalConfig = this.payload.globals.config.find((config)=>config.slug === slug);
|
@@ -15,4 +15,4 @@ export async function createGlobal({ data, req = {}, slug }) {
|
|
15
15
|
return result;
|
16
16
|
}
|
17
17
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWwudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGVHbG9iYWxBcmdzIH0gZnJvbSAncGF5bG9hZC9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JvdyIsImNyZWF0ZUdsb2JhbCIsImRhdGEiLCJyZXEiLCJzbHVnIiwiZGIiLCJzZXNzaW9ucyIsInRyYW5zYWN0aW9uSUQiLCJkcml6emxlIiwiZ2xvYmFsQ29uZmlnIiwicGF5bG9hZCIsImdsb2JhbHMiLCJjb25maWciLCJmaW5kIiwicmVzdWx0IiwiYWRhcHRlciIsImZpZWxkcyIsIm9wZXJhdGlvbiIsInRhYmxlTmFtZSJdLCJtYXBwaW5ncyI6IkFBR0EsT0FBT0EsaUJBQWlCLGdCQUFlO0FBSXZDLFNBQVNDLFNBQVMsUUFBUSx1QkFBc0I7QUFFaEQsT0FBTyxlQUFlQyxhQUVwQixFQUFFQyxJQUFJLEVBQUVDLE1BQU0sQ0FBQyxDQUFtQixFQUFFQyxJQUFJLEVBQW9CO0lBRTVELE1BQU1DLEtBQUssSUFBSSxDQUFDQyxRQUFRLENBQUNILElBQUlJLGFBQWEsQ0FBQyxFQUFFRixNQUFNLElBQUksQ0FBQ0csT0FBTztJQUMvRCxNQUFNQyxlQUFlLElBQUksQ0FBQ0MsT0FBTyxDQUFDQyxPQUFPLENBQUNDLE1BQU0sQ0FBQ0MsSUFBSSxDQUFDLENBQUNELFNBQVdBLE9BQU9SLElBQUksS0FBS0E7SUFFbEYsTUFBTVUsU0FBUyxNQUFNZCxVQUFhO1FBQ2hDZSxTQUFTLElBQUk7UUFDYmI7UUFDQUc7UUFDQVcsUUFBUVAsYUFBYU8sTUFBTTtRQUMzQkMsV0FBVztRQUNYQyxXQUFXbkIsWUFBWUs7UUFDdkJEO0lBQ0Y7SUFFQSxPQUFPVztBQUNUIn0=
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { TypeWithVersion } from 'payload/database';
|
2
2
|
import { type CreateGlobalVersionArgs } from 'payload/database';
|
3
3
|
import type { TypeWithID } from 'payload/types';
|
4
|
-
import type { PostgresAdapter } from './types';
|
4
|
+
import type { PostgresAdapter } from './types.d.ts';
|
5
5
|
export declare function createGlobalVersion<T extends TypeWithID>(this: PostgresAdapter, { autosave, globalSlug, req, versionData }: CreateGlobalVersionArgs): Promise<TypeWithVersion<T>>;
|
6
6
|
//# sourceMappingURL=createGlobalVersion.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createGlobalVersion.d.ts","sourceRoot":"","sources":["../src/createGlobalVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"createGlobalVersion.d.ts","sourceRoot":"","sources":["../src/createGlobalVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAInD,wBAAsB,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAC5D,IAAI,EAAE,eAAe,EACrB,EAAE,QAAQ,EAAE,UAAU,EAAE,GAA0B,EAAE,WAAW,EAAE,EAAE,uBAAuB,+BAgC3F"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { sql } from 'drizzle-orm';
|
2
2
|
import { buildVersionGlobalFields } from 'payload/versions';
|
3
3
|
import toSnakeCase from 'to-snake-case';
|
4
|
-
import { upsertRow } from './upsertRow';
|
4
|
+
import { upsertRow } from './upsertRow/index.js';
|
5
5
|
export async function createGlobalVersion({ autosave, globalSlug, req = {}, versionData }) {
|
6
6
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
7
7
|
const global = this.payload.globals.config.find(({ slug })=>slug === globalSlug);
|
@@ -31,4 +31,4 @@ export async function createGlobalVersion({ autosave, globalSlug, req = {}, vers
|
|
31
31
|
return result;
|
32
32
|
}
|
33
33
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWxWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVHlwZVdpdGhWZXJzaW9uIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB7IHR5cGUgQ3JlYXRlR2xvYmFsVmVyc2lvbkFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgVHlwZVdpdGhJRCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IHNxbCB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHsgYnVpbGRWZXJzaW9uR2xvYmFsRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuZC50cydcblxuaW1wb3J0IHsgdXBzZXJ0Um93IH0gZnJvbSAnLi91cHNlcnRSb3cvaW5kZXguanMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBjcmVhdGVHbG9iYWxWZXJzaW9uPFQgZXh0ZW5kcyBUeXBlV2l0aElEPihcbiAgdGhpczogUG9zdGdyZXNBZGFwdGVyLFxuICB7IGF1dG9zYXZlLCBnbG9iYWxTbHVnLCByZXEgPSB7fSBhcyBQYXlsb2FkUmVxdWVzdCwgdmVyc2lvb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rQmpCLFlBQVlJO0lBQ3BDLE1BQU1jLFlBQVksQ0FBQyxDQUFDLEVBQUVELGdCQUFnQixFQUFFLENBQUM7SUFFekMsTUFBTUUsU0FBUyxNQUFNbEIsVUFBOEI7UUFDakRtQixTQUFTLElBQUk7UUFDYkMsTUFBTTtZQUNKbEI7WUFDQW1CLFFBQVE7WUFDUkMsU0FBU2pCO1FBQ1g7UUFDQUM7UUFDQWlCLFFBQVF6Qix5QkFBeUJZO1FBQ2pDYyxXQUFXO1FBQ1hQO1FBQ0FiO0lBQ0Y7SUFFQSxNQUFNcUIsUUFBUSxJQUFJLENBQUNDLE1BQU0sQ0FBQ1QsVUFBVTtJQUVwQyxJQUFJUCxPQUFPaUIsUUFBUSxDQUFDQyxNQUFNLEVBQUU7UUFDMUIsTUFBTXRCLEdBQUd1QixPQUFPLENBQUNoQyxHQUFHLENBQUM7YUFDWixFQUFFNEIsTUFBTTs7WUFFVCxFQUFFQSxNQUFNSyxFQUFFLENBQUMsSUFBSSxFQUFFWixPQUFPWSxFQUFFLENBQUM7SUFDbkMsQ0FBQztJQUNIO0lBRUEsT0FBT1o7QUFDVCJ9
|
package/dist/createMigration.js
CHANGED
@@ -77,4 +77,4 @@ export const createMigration = async function createMigration({ forceAcceptWarni
|
|
77
77
|
});
|
78
78
|
};
|
79
79
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNaWdyYXRpb24udHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcmVzdHJpY3RlZC1zeW50YXgsIG5vLWF3YWl0LWluLWxvb3AgKi9cbmltcG9ydCB0eXBlIHsgRHJpenpsZVNuYXBzaG90SlNPTiB9IGZyb20gJ2RyaXp6bGUta2l0L3BheWxvYWQnXG5pbXBvcnQgdHlwZSB7IENyZWF0ZU1pZ3JhdGlv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DQUFDLHFCQUFxQixFQUFFakMsU0FBUyxHQUFHLENBQUM7SUFBQztBQUNuRSxFQUFDIn0=
|
package/dist/createVersion.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { CreateVersionArgs, TypeWithVersion } 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 createVersion<T extends TypeWithID>(this: PostgresAdapter, { autosave, collectionSlug, parent, req, versionData, }: CreateVersionArgs<T>): Promise<TypeWithVersion<T>>;
|
5
5
|
//# sourceMappingURL=createVersion.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createVersion.d.ts","sourceRoot":"","sources":["../src/createVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"createVersion.d.ts","sourceRoot":"","sources":["../src/createVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAInD,wBAAsB,aAAa,CAAC,CAAC,SAAS,UAAU,EACtD,IAAI,EAAE,eAAe,EACrB,EACE,QAAQ,EACR,cAAc,EACd,MAAM,EACN,GAA0B,EAC1B,WAAW,GACZ,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAsCxB"}
|
package/dist/createVersion.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { sql } from 'drizzle-orm';
|
2
2
|
import { buildVersionCollectionFields } from 'payload/versions';
|
3
3
|
import toSnakeCase from 'to-snake-case';
|
4
|
-
import { upsertRow } from './upsertRow';
|
4
|
+
import { upsertRow } from './upsertRow/index.js';
|
5
5
|
export async function createVersion({ autosave, collectionSlug, parent, req = {}, versionData }) {
|
6
6
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
7
7
|
const collection = this.payload.collections[collectionSlug].config;
|
@@ -37,4 +37,4 @@ export async function createVersion({ autosave, collectionSlug, parent, req = {}
|
|
37
37
|
return result;
|
38
38
|
}
|
39
39
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ3JlYXRlVmVyc2lvbkFyZ3MsIFR5cGVXaXRoVmVyc2lvbiB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBUeXBlV2l0aElEIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuZC50cydcblxuaW1wb3J0IHsgdXBzZXJ0Um93IH0gZnJvbSAnLi91cHNlcnRSb3cvaW5kZXguanMnXG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBjcmVhdGVWZXJzaW9uPFQgZXh0ZW5kcyBUeXBlV2l0aElEPihcbiAgdGhpczogUG9z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BQU1yQixHQUFHc0IsT0FBTyxDQUFDaEMsR0FBRyxDQUFDO2FBQ1osRUFBRTJCLE1BQU07O1dBRVYsRUFBRUUsbUJBQW1CO1lBQ3BCLEVBQUVGLE1BQU1NLEVBQUUsQ0FBQyxHQUFHLEVBQUVKLG1CQUFtQnRCLE1BQU0sQ0FBQztZQUMxQyxFQUFFc0IsbUJBQW1CSyxJQUFJLENBQUMsR0FBRyxFQUFFLFNBQVM7WUFDeEMsRUFBRUwsa0JBQWtCLENBQUMsQ0FBQyxFQUFFdkIsZUFBZSxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsRUFBRUMsT0FBTztZQUN4RCxFQUFFb0IsTUFBTU0sRUFBRSxDQUFDLElBQUksRUFBRWIsT0FBT2EsRUFBRSxDQUFDO0lBQ25DLENBQUM7SUFDSDtJQUVBLE9BQU9iO0FBQ1QifQ==
|
package/dist/deleteMany.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { inArray } from 'drizzle-orm';
|
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 deleteMany = async function deleteMany({ collection, req = {}, where }) {
|
5
5
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
6
6
|
const collectionConfig = this.payload.collections[collection].config;
|
@@ -25,4 +25,4 @@ export const deleteMany = async function deleteMany({ collection, req = {}, wher
|
|
25
25
|
}
|
26
26
|
};
|
27
27
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVsZXRlTWFueSB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0IH0gZn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Q0MsV0FBVyxDQUFDVCxXQUFXLENBQUNVLE1BQU07SUFDcEUsTUFBTUMsWUFBWWQsWUFBWUc7SUFFOUIsTUFBTVksU0FBUyxNQUFNZCxTQUFTO1FBQzVCZSxTQUFTLElBQUk7UUFDYkMsUUFBUVAsaUJBQWlCTyxNQUFNO1FBQy9CQyxPQUFPO1FBQ1BDLFFBQVFmLElBQUllLE1BQU07UUFDbEJDLE1BQU07UUFDTkMsWUFBWTtRQUNaakI7UUFDQVU7UUFDQVQ7SUFDRjtJQUVBLE1BQU1pQixNQUFNLEVBQUU7SUFFZFAsT0FBT1EsSUFBSSxDQUFDQyxPQUFPLENBQUMsQ0FBQ0M7UUFDbkJILElBQUlJLElBQUksQ0FBQ0QsS0FBS0UsRUFBRTtJQUNsQjtJQUVBLElBQUlMLElBQUlNLE1BQU0sR0FBRyxHQUFHO1FBQ2xCLE1BQU10QixHQUFHdUIsTUFBTSxDQUFDLElBQUksQ0FBQ0MsTUFBTSxDQUFDaEIsVUFBVSxFQUFFVCxLQUFLLENBQUNOLFFBQVEsSUFBSSxDQUFDK0IsTUFBTSxDQUFDaEIsVUFBVSxDQUFDYSxFQUFFLEVBQUVMO0lBQ25GO0FBQ0YsRUFBQyJ9
|
package/dist/deleteOne.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import toSnakeCase from 'to-snake-case';
|
2
|
-
import { buildFindManyArgs } from './find/buildFindManyArgs';
|
3
|
-
import buildQuery from './queries/buildQuery';
|
4
|
-
import { transform } from './transform/read';
|
2
|
+
import { buildFindManyArgs } from './find/buildFindManyArgs.js';
|
3
|
+
import buildQuery from './queries/buildQuery.js';
|
4
|
+
import { transform } from './transform/read/index.js';
|
5
5
|
export const deleteOne = async function deleteOne({ collection, req = {}, where: incomingWhere }) {
|
6
6
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
7
7
|
const collectionConfig = this.payload.collections[collection].config;
|
@@ -29,4 +29,4 @@ export const deleteOne = async function deleteOne({ collection, req = {}, where:
|
|
29
29
|
return result;
|
30
30
|
};
|
31
31
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVPbmUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBEZWxldGVPbmUgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuZC50cydcblxuaW1wb3J0IHsgYnVpbGRGaW5kTWFueUFyZ3MgfSBmcm9tICcuL2ZpbmQvYnVpbGRGaW5kTWFueUFyZ3MuanMnXG5pbXBvcnQgYnVpbGRRdWVyeSBmcm9tICcuL3F1ZXJpZXMvYnVpbGRRdWVyeS5qcydcbmltcG9ydCB7IHRyYW5zZm9ybSB9IGZyb20gJy4vdHJhbnNmb3JtL3JlYWQvaW5kZXguanMnXG5cbmV4cG9ydCBjb25zdCBkZWxldGVPbmU6IERlbGV0ZU9uZSA9IGFzeW5jIGZ1bmN0aW9uIGRlbGV0ZU9uZShcbiAgdGhpczogUG9zdGdyZXNBZGFwdGVyLFxuICB7IGNvbGxlY3Rpb24sIHJlcSA9IHt9IGFzIFBheWxvYWRSZXF1ZXN0LCB3aGVyZTogaW5jb21pbmdXaGVyZSB9LFxuKSB7XG4gIGNvbnN0IGRiID0gdGhpcy5zZXNzaW9uc1tyZXEudHJhbnNhY3Rpb25JRF0/LmRiIHx8IHRoaXMuZHJpenpsZVxuICBjb25zdCBjb2xsZWN0aW9uQ29uZmlnID0gdGhpcy5wYXlsb2FkLmNvbGxlY3R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FRTixpQkFBaUJNLE1BQU07UUFDL0JGO0lBQ0Y7SUFFQUcsYUFBYWIsS0FBSyxHQUFHQTtJQUVyQixNQUFNZSxjQUFjLE1BQU1iLEdBQUdjLEtBQUssQ0FBQ04sVUFBVSxDQUFDTyxTQUFTLENBQUNKO0lBRXhELE1BQU1LLFNBQVN0QixVQUFVO1FBQ3ZCYSxRQUFRLElBQUksQ0FBQ0YsT0FBTyxDQUFDRSxNQUFNO1FBQzNCVSxNQUFNSjtRQUNOSCxRQUFRTixpQkFBaUJNLE1BQU07SUFDakM7SUFFQSxNQUFNVixHQUFHa0IsTUFBTSxDQUFDLElBQUksQ0FBQ0MsTUFBTSxDQUFDWCxVQUFVLEVBQUVWLEtBQUssQ0FBQ0E7SUFFOUMsT0FBT2tCO0FBQ1QsRUFBQyJ9
|
package/dist/deleteVersions.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { inArray } from 'drizzle-orm';
|
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 deleteVersions = async function deleteVersion({ collection, locale, req = {}, where: where }) {
|
6
6
|
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
7
7
|
const collectionConfig = this.payload.collections[collection].config;
|
@@ -28,4 +28,4 @@ export const deleteVersions = async function deleteVersion({ collection, locale,
|
|
28
28
|
return docs;
|
29
29
|
};
|
30
30
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVWZXJzaW9ucy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IERlbGV0ZVZlcnNpb25zIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5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UEsT0FBT0w7QUFDVCxFQUFDIn0=
|
package/dist/destroy.js
CHANGED
@@ -3,4 +3,4 @@ export const destroy = async function destroy() {
|
|
3
3
|
// await this.pool.end()
|
4
4
|
};
|
5
5
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZXN0cm95LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVzdHJveSB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcy5kLnRzJ1xuXG5leHBvcnQgY29uc3QgZGVzdHJveTogRGVzdHJveSA9IGFzeW5jIGZ1bmN0aW9uIGRlc3Ryb3kodGhpczogUG9zdGdyZXNBZGFwdGVyKSB7XG4gIC8vIFRPRE86IHRoaXMgaGFuZ3MgdGVzdCBzdWl0ZSBmb3Igc29tZSByZWFzb25cbiAgLy8gYXdhaXQgdGhpcy5wb29sLmVuZCgpXG59XG4iXSwibmFtZXMiOlsiZGVzdHJveSJdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxNQUFNQSxVQUFtQixlQUFlQTtBQUM3Qyw4Q0FBOEM7QUFDOUMsd0JBQXdCO0FBQzFCLEVBQUMifQ==
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { DBQueryConfig } from 'drizzle-orm';
|
2
2
|
import type { Field } from 'payload/types';
|
3
|
-
import type { PostgresAdapter } from '../types';
|
3
|
+
import type { PostgresAdapter } from '../types.d.ts';
|
4
4
|
type BuildFindQueryArgs = {
|
5
5
|
adapter: PostgresAdapter;
|
6
6
|
depth: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"buildFindManyArgs.d.ts","sourceRoot":"","sources":["../../src/find/buildFindManyArgs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"buildFindManyArgs.d.ts","sourceRoot":"","sources":["../../src/find/buildFindManyArgs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAIpD,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAI1D,eAAO,MAAM,iBAAiB,2CAK3B,kBAAkB,KAAG,OAAO,MAAM,EAAE,OAAO,CA2D7C,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { traverseFields } from './traverseFields';
|
1
|
+
import { traverseFields } from './traverseFields.js';
|
2
2
|
// Generate the Drizzle query for findMany based on
|
3
3
|
// a collection field structure
|
4
4
|
export const buildFindManyArgs = ({ adapter, depth, fields, tableName })=>{
|
@@ -61,4 +61,4 @@ export const buildFindManyArgs = ({ adapter, depth, fields, tableName })=>{
|
|
61
61
|
return result;
|
62
62
|
};
|
63
63
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2J1aWxkRmluZE1hbnlBcmdzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIm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UFDZG1CLG1CQUFtQnBCO0lBQ3JCO0lBRUEsT0FBT0M7QUFDVCxFQUFDIn0=
|
package/dist/find/findMany.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { FindArgs } from 'payload/database';
|
2
2
|
import type { Field } from 'payload/types';
|
3
|
-
import type { PostgresAdapter } from '../types';
|
3
|
+
import type { PostgresAdapter } from '../types.d.ts';
|
4
4
|
type Args = Omit<FindArgs, 'collection'> & {
|
5
5
|
adapter: PostgresAdapter;
|
6
6
|
fields: Field[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"findMany.d.ts","sourceRoot":"","sources":["../../src/find/findMany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAA8B,MAAM,eAAe,CAAA;AAItE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"findMany.d.ts","sourceRoot":"","sources":["../../src/find/findMany.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAA8B,MAAM,eAAe,CAAA;AAItE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAQpD,KAAK,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG;IACzC,OAAO,EAAE,eAAe,CAAA;IACxB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,QAAQ,iHAYlB,IAAI;;;;;;;;;;;EA+KN,CAAA"}
|
package/dist/find/findMany.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { inArray, sql } from 'drizzle-orm';
|
2
|
-
import buildQuery from '../queries/buildQuery';
|
3
|
-
import { transform } from '../transform/read';
|
4
|
-
import { buildFindManyArgs } from './buildFindManyArgs';
|
5
|
-
import { chainMethods } from './chainMethods';
|
2
|
+
import buildQuery from '../queries/buildQuery.js';
|
3
|
+
import { transform } from '../transform/read/index.js';
|
4
|
+
import { buildFindManyArgs } from './buildFindManyArgs.js';
|
5
|
+
import { chainMethods } from './chainMethods.js';
|
6
6
|
export const findMany = async function find({ adapter, fields, limit: limitArg, locale, page = 1, pagination, req = {}, skip, sort, tableName, where: whereArg }) {
|
7
7
|
const db = adapter.sessions[req.transactionID]?.db || adapter.drizzle;
|
8
8
|
const table = adapter.tables[tableName];
|
@@ -182,4 +182,4 @@ export const findMany = async function find({ adapter, fields, limit: limitArg,
|
|
182
182
|
};
|
183
183
|
};
|
184
184
|
|
185
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2ZpbmRNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCwgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5LCBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcydcbmltcG9ydCB0eXBlIHsgQ2hhaW5lZE1ldGhvZHMgfSBmcm9tICcuL2NoYWluTWV0aG9kcydcblxuaW1wb3J0IGJ1aWxkUXVlcnkgZnJvbSAnLi4vcXVlcmllcy9idWlsZFF1ZXJ5J1xuaW1wb3J0IHsgdHJhbnNmb3JtIH0gZnJvbSAnLi4vdHJhbnNmb3JtL3JlYWQnXG5pbXBvcnQgeyBidWlsZEZpbmRNYW55QXJncyB9IGZyb20gJy4vYn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UFHQyxJQUFNdkMsWUFBWSxDQUFDc0MsRUFBRWIsRUFBRSxDQUFDLEdBQUd6QixZQUFZLENBQUN1QyxFQUFFZCxFQUFFLENBQUM7SUFDaEU7SUFFQSxJQUFJaEQsZUFBZSxTQUFTLENBQUNhLFdBQVc7UUFDdENBLFlBQVkrQyxRQUFRekIsTUFBTTtRQUMxQnJCLGFBQWE7UUFDYkcsZ0JBQWdCO1FBQ2hCRixjQUFjO1FBQ2RDLGNBQWM7SUFDaEI7SUFFQSxNQUFNNkIsT0FBT2UsUUFBUUcsR0FBRyxDQUFDLENBQUNDO1FBQ3hCLE9BQU8zRSxVQUFVO1lBQ2Y0RSxRQUFRdkUsUUFBUXdFLE9BQU8sQ0FBQ0QsTUFBTTtZQUM5QkQ7WUFDQXJFO1FBQ0Y7SUFDRjtJQUVBLE9BQU87UUFDTGtEO1FBQ0E3QjtRQUNBRDtRQUNBbkI7UUFDQWtELFVBQVU5QixjQUFjakIsT0FBTyxJQUFJO1FBQ25DQTtRQUNBa0I7UUFDQThCLFVBQVVoQyxjQUFjaEIsT0FBTyxJQUFJO1FBQ25DYztRQUNBQztJQUNGO0FBQ0YsRUFBQyJ9
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"traverseFields.d.ts","sourceRoot":"","sources":["../../src/find/traverseFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAK1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"traverseFields.d.ts","sourceRoot":"","sources":["../../src/find/traverseFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAK1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,eAAe,CAAA;IACxB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,gBAAgB,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACrC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,gHAUxB,iBAAiB,4BA+InB,CAAA"}
|
@@ -132,4 +132,4 @@ export const traverseFields = ({ _locales, adapter, currentArgs, currentTableNam
|
|
132
132
|
return topLevelArgs;
|
133
133
|
};
|
134
134
|
|
135
|
-
//# sourceMappingURL=data:application/json;base64,
|
135
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL3RyYXZlcnNlRmllbGRzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEZpZWxkIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgZmllbGRBZmZlY3RzRGF0YSwgdGFiSGFzTmFtZSB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcy5kLnRzJ1xuaW1wb3J0IHR5cGUgeyBSZXN1bHQgfSBmcm9tICcuL2J1aWxkRmluZE1hbnlBcmdzLmQudHMnXG5cbnR5cGUgVHJhdmVyc2VGaWVsZEFyZ3MgPSB7XG4gIF9sb2NhbGVzOiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPlxu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GhBcnJheS53aXRoLl9sb2NhbGVzID0gX2xvY2FsZXNcbiAgICAgICAgICBjdXJyZW50QXJncy53aXRoW2Ake3BhdGh9JHtmaWVsZC5uYW1lfWBdID0gd2l0aEFycmF5XG5cbiAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICBfbG9jYWxlcyxcbiAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEFycmF5LFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZTogYXJyYXlUYWJsZU5hbWUsXG4gICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgIGZpZWxkczogZmllbGQuZmllbGRzLFxuICAgICAgICAgICAgcGF0aDogJycsXG4gICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ3NlbGVjdCc6IHtcbiAgICAgICAgICBpZiAoZmllbGQuaGFzTWFueSkge1xuICAgICAgICAgICAgY29uc3Qgd2l0aFNlbGVjdDogUmVzdWx0ID0ge1xuICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIG9yZGVyOiBmYWxzZSxcbiAgICAgICAgICAgICAgICBwYXJlbnQ6IGZhbHNlLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvcmRlckJ5OiAoeyBvcmRlciB9LCB7IGFzYyB9KSA9PiBbYXNjKG9yZGVyKV0sXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLndpdGhbYCR7cGF0aH0ke2ZpZWxkLm5hbWV9YF0gPSB3aXRoU2VsZWN0XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ2Jsb2Nrcyc6XG4gICAgICAgICAgZmllbGQuYmxvY2tzLmZvckVhY2goKGJsb2NrKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBibG9ja0tleSA9IGBfYmxvY2tzXyR7YmxvY2suc2x1Z31gXG5cbiAgICAgICAgICAgIGlmICghdG9wTGV2ZWxBcmdzW2Jsb2NrS2V5XSkge1xuICAgICAgICAgICAgICBjb25zdCB3aXRoQmxvY2s6IFJlc3VsdCA9IHtcbiAgICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgICBfcGFyZW50SUQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgb3JkZXJCeTogKHsgX29yZGVyIH0sIHsgYXNjIH0pID0+IFthc2MoX29yZGVyKV0sXG4gICAgICAgICAgICAgICAgd2l0aDoge30sXG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICBjb25zdCB0YWJsZU5hbWUgPSBgJHt0b3BMZXZlbFRhYmxlTmFtZX1fYmxvY2tzXyR7dG9TbmFrZUNhc2UoYmxvY2suc2x1Zyl9YFxuXG4gICAgICAgICAgICAgIGlmIChhZGFwdGVyLnRhYmxlc1tgJHt0YWJsZU5hbWV9X2xvY2FsZXNgXSkgd2l0aEJsb2NrLndpdGguX2xvY2FsZXMgPSBfbG9jYWxlc1xuICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3Mud2l0aFtibG9ja0tleV0gPSB3aXRoQmxvY2tcblxuICAgICAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEJsb2NrLFxuICAgICAgICAgICAgICAgIGN1cnJlbnRUYWJsZU5hbWU6IHRhYmxlTmFtZSxcbiAgICAgICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgICAgICBmaWVsZHM6IGJsb2NrLmZpZWxkcyxcbiAgICAgICAgICAgICAgICBwYXRoOiAnJyxcbiAgICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSlcblxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgY2FzZSAnZ3JvdXAnOlxuICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgIF9sb2NhbGVzLFxuICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZSxcbiAgICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgICAgZmllbGRzOiBmaWVsZC5maWVsZHMsXG4gICAgICAgICAgICBwYXRoOiBgJHtwYXRofSR7ZmllbGQubmFtZX1fYCxcbiAgICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICAgIHRvcExldmVsVGFibGVOYW1lLFxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBicmVha1xuXG4gICAgICAgIGRlZmF1bHQ6IHtcbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9KVxuXG4gIHJldHVybiB0b3BMZXZlbEFyZ3Ncbn1cbiJdLCJuYW1lcyI6WyJmaWVsZEFmZmVjdHNEYXRhIiwidGFiSGFzTmFtZSIsInRvU25ha2VDYXNlIiwidHJhdmVyc2VGaWVsZHMiLCJfbG9jYWxlcyIsImFkYXB0ZXIiLCJjdXJyZW50QXJncyIsImN1cnJlbnRUYWJsZU5hbWUiLCJkZXB0aCIsImZpZWxkcyIsInBhdGgiLCJ0b3BMZXZlbEFyZ3MiLCJ0b3BMZXZlbFRhYmxlTmFtZSIsImZvckVhY2giLCJmaWVsZCIsIn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