@payloadcms/db-postgres 3.0.0-alpha.31 → 3.0.0-alpha.33
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/connect.js
CHANGED
@@ -74,7 +74,7 @@ export const connect = async function connect(options = {
|
|
74
74
|
}
|
75
75
|
// Only push schema if not in production
|
76
76
|
if (process.env.NODE_ENV === 'production' || process.env.PAYLOAD_MIGRATING === 'true' || this.push === false) return;
|
77
|
-
const { pushSchema } =
|
77
|
+
const { pushSchema } = await import('drizzle-kit/payload');
|
78
78
|
// This will prompt if clarifications are needed for Drizzle to push new schema
|
79
79
|
const { apply, hasDataLoss, statementsToExecute, warnings } = await pushSchema(this.schema, this.drizzle);
|
80
80
|
if (warnings.length) {
|
@@ -120,4 +120,4 @@ export const connect = async function connect(options = {
|
|
120
120
|
}
|
121
121
|
};
|
122
122
|
|
123
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25uZWN0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgUGF5bG9hZCB9IGZyb20gJ3BheWxvYWQnXG5pbXBvcnQgdHlwZSB7IENvbm5lY3QgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgeyBlcSwgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBkcml6emxlIH0gZnJvbSAnZHJpenpsZS1vcm0vbm9kZS1wb3N0Z3JlcydcbmltcG9ydCB7IG51bWVyaWMsIHRpbWVzdGFtcCwgdmFyY2hhciB9IGZyb20gJ2RyaXp6bGUtb3JtL3BnLWNvcmUnXG5p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UFDZjtJQUNGO0lBRUEsTUFBTUs7SUFFTiwwREFBMEQ7SUFDMUQsTUFBTVksbUJBQW1CLElBQUksQ0FBQ0MsUUFBUSxDQUFDQyxLQUFLLENBQUMsc0JBQXNCO1FBQ2pFTixNQUFNNUMsUUFBUTtRQUNkbUQsT0FBT3JELFFBQVE7UUFDZnNELFlBQVlyRCxVQUFVO1FBQ3RCc0QsWUFBWXRELFVBQVU7SUFDeEI7SUFFQSxNQUFNdUQsVUFBVSxNQUFNLElBQUksQ0FBQ3pELE9BQU8sQ0FDL0IwRCxNQUFNLEdBQ05DLElBQUksQ0FBQ1Isa0JBQ0xTLEtBQUssQ0FBQzlELEdBQUdxRCxpQkFBaUJHLEtBQUssRUFBRTtJQUVwQyxJQUFJLENBQUNHLFFBQVFkLE1BQU0sRUFBRTtRQUNuQixNQUFNLElBQUksQ0FBQzNDLE9BQU8sQ0FBQzZELE1BQU0sQ0FBQ1Ysa0JBQWtCVyxNQUFNLENBQUM7WUFDakRmLE1BQU07WUFDTk8sT0FBTztRQUNUO0lBQ0YsT0FBTztRQUNMLE1BQU0sSUFBSSxDQUFDdEQsT0FBTyxDQUNmK0QsTUFBTSxDQUFDWixrQkFDUGEsR0FBRyxDQUFDO1lBQ0hSLFlBQVksSUFBSVM7UUFDbEIsR0FDQ0wsS0FBSyxDQUFDOUQsR0FBR3FELGlCQUFpQkcsS0FBSyxFQUFFO0lBQ3RDO0FBQ0YsRUFBQyJ9
|
package/dist/create.js
CHANGED
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGUgfSBmcm9tICdwYXlsb2FkL2R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dGlvbnMiLCJjb25maWciLCJyZXN1bHQiLCJhZGFwdGVyIiwiZmllbGRzIiwib3BlcmF0aW9uIiwidGFibGVOYW1lIl0sIm1hcHBpbmdzIjoiQUFFQSxPQUFPQSxpQkFBaUIsZ0JBQWU7QUFJdkMsU0FBU0MsU0FBUyxRQUFRLHVCQUFzQjtBQUVoRCxPQUFPLE1BQU1DLFNBQWlCLGVBQWVBLE9BRTNDLEVBQUVDLFlBQVlDLGNBQWMsRUFBRUMsSUFBSSxFQUFFQyxHQUFHLEVBQUU7SUFFekMsTUFBTUMsS0FBSyxJQUFJLENBQUNDLFFBQVEsQ0FBQ0YsSUFBSUcsYUFBYSxDQUFDLEVBQUVGLE1BQU0sSUFBSSxDQUFDRyxPQUFPO0lBQy9ELE1BQU1QLGFBQWEsSUFBSSxDQUFDUSxPQUFPLENBQUNDLFdBQVcsQ0FBQ1IsZUFBZSxDQUFDUyxNQUFNO0lBRWxFLE1BQU1DLFNBQVMsTUFBTWIsVUFBVTtRQUM3QmMsU0FBUyxJQUFJO1FBQ2JWO1FBQ0FFO1FBQ0FTLFFBQVFiLFdBQVdhLE1BQU07UUFDekJDLFdBQVc7UUFDWEMsV0FBV2xCLFlBQVlJO1FBQ3ZCRTtJQUNGO0lBRUEsT0FBT1E7QUFDVCxFQUFDIn0=
|
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.js';
|
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,YAAY,CAAA;AAIjD,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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWwudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGVHbG9iYWxBcmdzIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzLmpzJ1xuXG5pbXBvcnQgeyB1cHNlcnRSb3c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BQUdBLE9BQU9BLGlCQUFpQixnQkFBZTtBQUl2QyxTQUFTQyxTQUFTLFFBQVEsdUJBQXNCO0FBRWhELE9BQU8sZUFBZUMsYUFFcEIsRUFBRUMsSUFBSSxFQUFFQyxNQUFNLENBQUMsQ0FBbUIsRUFBRUMsSUFBSSxFQUFvQjtJQUU1RCxNQUFNQyxLQUFLLElBQUksQ0FBQ0MsUUFBUSxDQUFDSCxJQUFJSSxhQUFhLENBQUMsRUFBRUYsTUFBTSxJQUFJLENBQUNHLE9BQU87SUFDL0QsTUFBTUMsZUFBZSxJQUFJLENBQUNDLE9BQU8sQ0FBQ0MsT0FBTyxDQUFDQyxNQUFNLENBQUNDLElBQUksQ0FBQyxDQUFDRCxTQUFXQSxPQUFPUixJQUFJLEtBQUtBO0lBRWxGLE1BQU1VLFNBQVMsTUFBTWQsVUFBYTtRQUNoQ2UsU0FBUyxJQUFJO1FBQ2JiO1FBQ0FHO1FBQ0FXLFFBQVFQLGFBQWFPLE1BQU07UUFDM0JDLFdBQVc7UUFDWEMsV0FBV25CLFlBQVlLO1FBQ3ZCRDtJQUNGO0lBRUEsT0FBT1c7QUFDVCJ9
|
@@ -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.js';
|
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,YAAY,CAAA;AAIjD,wBAAsB,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAC5D,IAAI,EAAE,eAAe,EACrB,EAAE,QAAQ,EAAE,UAAU,EAAE,GAA0B,EAAE,WAAW,EAAE,EAAE,uBAAuB,+BAgC3F"}
|
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWxWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVHlwZVdpdGhWZXJzaW9uIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB7IHR5cGUgQ3JlYXRlR2xvYmFsVmVyc2lvbkFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgVHlwZVdpdGhJRCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IH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ksRUFBRSxDQUFDO0lBQ25DLENBQUM7SUFDSDtJQUVBLE9BQU9aO0FBQ1QifQ==
|
package/dist/createMigration.js
CHANGED
@@ -36,7 +36,7 @@ export const createMigration = async function createMigration({ forceAcceptWarni
|
|
36
36
|
if (!fs.existsSync(dir)) {
|
37
37
|
fs.mkdirSync(dir);
|
38
38
|
}
|
39
|
-
const { generateDrizzleJson, generateMigration } =
|
39
|
+
const { generateDrizzleJson, generateMigration } = await import('drizzle-kit/payload');
|
40
40
|
const [yyymmdd, hhmmss] = new Date().toISOString().split('T');
|
41
41
|
const formattedDate = yyymmdd.replace(/\D/g, '');
|
42
42
|
const formattedTime = hhmmss.split('.')[0].replace(/\D/g, '');
|
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNaWdyYXRpb24udHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcmVzdHJpY3RlZC1zeW50YXgsIG5vLWF3YWl0LWluLWxvb3AgKi9cbmltcG9ydCB0eXBlIHsgRHJpenpsZVNuYXBzaG90SlNPTiB9IGZyb20gJ2RyaXp6bGUta2l0L3BheWxvYWQnXG5pbXBvcnQgdHlwZSB7IENyZWF0ZU1pZ3JhdGlvbiB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCBmcyBmcm9tICdmcydcbmltcG9ydCBwcm9tcHRzIGZyb20gJ3Byb21wdHMnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcy5qcydcblxuY29uc3QgbWlncmF0aW9uVGVtcGxhdGUgPSAoXG4gIHVwU1FMPzogc3RyaW5nLFxuICBkb3duU1F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0JBQWdCRSxNQUFNLElBQUksQ0FBQ0Qsa0JBQWtCQyxNQUFNLElBQUksQ0FBQ3JDLG9CQUFvQjtRQUMvRSxNQUFNLEVBQUVzQyxTQUFTQywwQkFBMEIsRUFBRSxHQUFHLE1BQU10RCxRQUNwRDtZQUNFdUQsTUFBTTtZQUNOQyxNQUFNO1lBQ05DLFNBQVM7WUFDVEMsU0FBUztRQUNYLEdBQ0E7WUFDRUMsVUFBVTtnQkFDUkMsUUFBUUMsSUFBSSxDQUFDO1lBQ2Y7UUFDRjtRQUdGLElBQUksQ0FBQ1AsNEJBQTRCO1lBQy9CTSxRQUFRQyxJQUFJLENBQUM7UUFDZjtJQUNGO0lBRUEsZUFBZTtJQUNmOUQsR0FBRytELGFBQWEsQ0FBQyxDQUFDLEVBQUUzQixTQUFTLEtBQUssQ0FBQyxFQUFFVSxLQUFLa0IsU0FBUyxDQUFDZixrQkFBa0IsTUFBTTtJQUU1RSxrQkFBa0I7SUFDbEJqRCxHQUFHK0QsYUFBYSxDQUNkLENBQUMsRUFBRTNCLFNBQVMsR0FBRyxDQUFDLEVBQ2hCbEMsa0JBQ0VpRCxnQkFBZ0JFLE1BQU0sR0FBR0YsaUJBQWlCYyxLQUFLLFFBQVFDLFdBQ3ZEZCxrQkFBa0JDLE1BQU0sR0FBR0QsbUJBQW1CYSxLQUFLLFFBQVFDO0lBRy9EaEQsUUFBUWlELE1BQU0sQ0FBQ0MsSUFBSSxDQUFDO1FBQUVDLEtBQUssQ0FBQyxxQkFBcUIsRUFBRWpDLFNBQVMsR0FBRyxDQUFDO0lBQUM7QUFDbkUsRUFBQyJ9
|
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.js';
|
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,YAAY,CAAA;AAIjD,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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ3JlYXRlVmVyc2lvbkFyZ3MsIFR5cGVXaXRoVmVyc2lvbiB9IGZyb20gJ3BheWxvYWQvZGF0YWJ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|
}
|
26
26
|
};
|
27
27
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVsZXRlTWFueSB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0IH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgaW5BcnJheSB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHRvU25ha2VDYXNlIGZyb20gJ3RvLXNuYWtlLWNhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcy5qcydcblxuaW1wb3J0IHsgZmluZE1hbnkgfSBmcm9tICcuL2ZpbmQvZmluZE1hbnkuanMnXG5cbmV4cG9ydCBjb25zdCBkZWxldGVNYW55OiBEZWxldGVNYW55ID0gYXN5bmMgZnVuY3Rpb24gZGVsZXRlTWFueShcbiAgdGhpczogUG9zdGdyZXNBZGFwdGVyLFxuICB7IGNvbGxlY3Rpb24sIHJlcSA9IHt9IGFzIFBheWxvYWRSZXF1ZXN0LCB3aGVyZSB9LFxuKSB7XG4gIGNvbnN0IGRiID0gdGhpcy5zZXNzaW9uc1tyZXEudHJhbnNhY3Rpb25JRF0/LmRiIHx8IHRoaXMuZHJpenpsZVxuICBjb25zdCBjb2xsZWN0aW9uQ29uZmlnID0gdGhpcy5wYXlsb2FkLmNvbGxlY3Rpb25zW2NvbGxlY3Rpb25dLmNvbmZpZ1xuICBjb25zdCB0YWJsZU5hbWUgPSB0b1NuYWtlQ2FzZShjb2xsZWN0aW9uKVxuXG4gIGNvbnN0IHJlc3VsdCA9IGF3YWl0IGZpbmRNYW55KHtcbiAgICBhZGFw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9BQU8sTUFBTUMsYUFBeUIsZUFBZUEsV0FFbkQsRUFBRUMsVUFBVSxFQUFFQyxNQUFNLENBQUMsQ0FBbUIsRUFBRUMsS0FBSyxFQUFFO0lBRWpELE1BQU1DLEtBQUssSUFBSSxDQUFDQyxRQUFRLENBQUNILElBQUlJLGFBQWEsQ0FBQyxFQUFFRixNQUFNLElBQUksQ0FBQ0csT0FBTztJQUMvRCxNQUFNQyxtQkFBbUIsSUFBSSxDQUFDQyxPQUFPLENBQUNDLFdBQVcsQ0FBQ1QsV0FBVyxDQUFDVSxNQUFNO0lBQ3BFLE1BQU1DLFlBQVlkLFlBQVlHO0lBRTlCLE1BQU1ZLFNBQVMsTUFBTWQsU0FBUztRQUM1QmUsU0FBUyxJQUFJO1FBQ2JDLFFBQVFQLGlCQUFpQk8sTUFBTTtRQUMvQkMsT0FBTztRQUNQQyxRQUFRZixJQUFJZSxNQUFNO1FBQ2xCQyxNQUFNO1FBQ05DLFlBQVk7UUFDWmpCO1FBQ0FVO1FBQ0FUO0lBQ0Y7SUFFQSxNQUFNaUIsTUFBTSxFQUFFO0lBRWRQLE9BQU9RLElBQUksQ0FBQ0MsT0FBTyxDQUFDLENBQUNDO1FBQ25CSCxJQUFJSSxJQUFJLENBQUNELEtBQUtFLEVBQUU7SUFDbEI7SUFFQSxJQUFJTCxJQUFJTSxNQUFNLEdBQUcsR0FBRztRQUNsQixNQUFNdEIsR0FBR3VCLE1BQU0sQ0FBQyxJQUFJLENBQUNDLE1BQU0sQ0FBQ2hCLFVBQVUsRUFBRVQsS0FBSyxDQUFDTixRQUFRLElBQUksQ0FBQytCLE1BQU0sQ0FBQ2hCLFVBQVUsQ0FBQ2EsRUFBRSxFQUFFTDtJQUNuRjtBQUNGLEVBQUMifQ==
|
package/dist/deleteOne.js
CHANGED
@@ -29,4 +29,4 @@ export const deleteOne = async function deleteOne({ collection, req = {}, where:
|
|
29
29
|
return result;
|
30
30
|
};
|
31
31
|
|
32
|
-
//# sourceMappingURL=data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Y0FBYyxNQUFNYixHQUFHYyxLQUFLLENBQUNOLFVBQVUsQ0FBQ08sU0FBUyxDQUFDSjtJQUV4RCxNQUFNSyxTQUFTdEIsVUFBVTtRQUN2QmEsUUFBUSxJQUFJLENBQUNGLE9BQU8sQ0FBQ0UsTUFBTTtRQUMzQlUsTUFBTUo7UUFDTkgsUUFBUU4saUJBQWlCTSxNQUFNO0lBQ2pDO0lBRUEsTUFBTVYsR0FBR2tCLE1BQU0sQ0FBQyxJQUFJLENBQUNDLE1BQU0sQ0FBQ1gsVUFBVSxFQUFFVixLQUFLLENBQUNBO0lBRTlDLE9BQU9rQjtBQUNULEVBQUMifQ==
|
package/dist/deleteVersions.js
CHANGED
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVWZXJzaW9ucy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IERlbGV0ZVZlcnNpb25zIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFNhbml0aXplZENvbGxlY3Rpb25Db25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5IH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB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BOEMsSUFBSSxDQUFDQyxPQUFPLENBQUNDLFdBQVcsQ0FBQ1YsV0FBVyxDQUFDVyxNQUFNO0lBRS9GLE1BQU1DLFlBQVksQ0FBQyxDQUFDLEVBQUVoQixZQUFZSSxZQUFZLEVBQUUsQ0FBQztJQUNqRCxNQUFNYSxTQUFTbEIsNkJBQTZCYTtJQUU1QyxNQUFNLEVBQUVNLElBQUksRUFBRSxHQUFHLE1BQU1qQixTQUFTO1FBQzlCa0IsU0FBUyxJQUFJO1FBQ2JGO1FBQ0FHLE9BQU87UUFDUGY7UUFDQWdCLE1BQU07UUFDTkMsWUFBWTtRQUNaaEI7UUFDQVU7UUFDQVQ7SUFDRjtJQUVBLE1BQU1nQixNQUFNLEVBQUU7SUFFZEwsS0FBS00sT0FBTyxDQUFDLENBQUNDO1FBQ1pGLElBQUlHLElBQUksQ0FBQ0QsSUFBSUUsRUFBRTtJQUNqQjtJQUVBLElBQUlKLElBQUlLLE1BQU0sR0FBRyxHQUFHO1FBQ2xCLE1BQU1wQixHQUFHcUIsTUFBTSxDQUFDLElBQUksQ0FBQ0MsTUFBTSxDQUFDZCxVQUFVLEVBQUVULEtBQUssQ0FBQ1QsUUFBUSxJQUFJLENBQUNnQyxNQUFNLENBQUNkLFVBQVUsQ0FBQ1csRUFBRSxFQUFFSjtJQUNuRjtJQUVBLE9BQU9MO0FBQ1QsRUFBQyJ9
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZXN0cm95LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVzdHJveSB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcy5qcydcblxuZXhwb3J0IGNvbnN0IGRlc3Ryb3k6IERlc3Ryb3kgPSBhc3luYyBmdW5jdGlvbiBkZXN0cm95KHRoaXM6IFBvc3RncmVzQWRhcHRlcikge1xuICAvLyBUT0RPOiB0aGlzIGhhbmdzIHRlc3Qgc3VpdGUgZm9yIHNvbWUgcmVhc29uXG4gIC8vIGF3YWl0IHRoaXMucG9vbC5lbmQoKVxufVxuIl0sIm5hbWVzIjpbImRlc3Ryb3kiXSwibWFwcGluZ3MiOiJBQUlBLE9BQU8sTUFBTUEsVUFBbUIsZUFBZUE7QUFDN0MsOENBQThDO0FBQzlDLHdCQUF3QjtBQUMxQixFQUFDIn0=
|
@@ -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.js';
|
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,aAAa,CAAA;AAIlD,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"}
|
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2J1aWxkRmluZE1hbnlBcmdzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgREJRdWVyeUNvbmZpZyB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMuanMnXG5cbmltcG9ydCB7IHRyYXZlcnNlRmllbGRzIH0gZnJvbSAnLi90cmF2ZXJzZUZpZWxkcy5qcydcblxudHlwZSBCdWlsZEZpbmRRdWVyeUFyZ3MgPSB7XG4gIGFkYXB0ZXI6IFBvc3RncmVzQWRhcHRlclxuICBkZXB0aDogbnVtYmVyXG4gIGZpZWxkczogRmllbGRbXVxuICB0YWJsZU5hbWU6IHN0cmluZ1xufVxuXG5leHBvcnQgdHlwZSBSZXN1bHQgPSBEQlF1ZXJ5Q29uZmlnPCdtYW55JywgdHJ1ZSwgYW55LCBhbnk+XG5cbi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BQUMsRUFBRVAsVUFBVSxLQUFLLENBQUMsQ0FBQyxFQUFFO1FBQ3ZDQyxPQUFPQyxJQUFJLENBQUNhLEtBQUssR0FBRztZQUNsQlgsU0FBUztnQkFDUEMsSUFBSTtnQkFDSkksUUFBUTtZQUNWO1lBQ0FDLFNBQVMsQ0FBQyxFQUFFQyxLQUFLLEVBQUUsRUFBRSxFQUFFQyxLQUFLQyxHQUFHLEVBQUUsR0FBSztvQkFBQ0EsSUFBSUY7aUJBQU87UUFDcEQ7SUFDRjtJQUVBLElBQUlkLFFBQVFVLE1BQU0sQ0FBQyxDQUFDLEVBQUVQLFVBQVUsUUFBUSxDQUFDLENBQUMsRUFBRTtRQUMxQ0MsT0FBT0MsSUFBSSxDQUFDQyxRQUFRLEdBQUdBO0lBQ3pCO0lBRUFSLGVBQWU7UUFDYlE7UUFDQU47UUFDQW1CLGFBQWFmO1FBQ2JnQixrQkFBa0JqQjtRQUNsQkY7UUFDQUM7UUFDQW1CLE1BQU07UUFDTkMsY0FBY2xCO1FBQ2RtQixtQkFBbUJwQjtJQUNyQjtJQUVBLE9BQU9DO0FBQ1QsRUFBQyJ9
|
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.js';
|
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,aAAa,CAAA;AAQlD,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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2ZpbmRNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCwgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5LCBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcy5kLnRzJ1xuaW1wb3J0IHR5cGUgeyBDaGFpbmVkTWV0aG9kcyB9IGZyb20gJy4vY2hhaW5NZXRob2RzLmQudHMnXG5cbmltcG9ydCBidWlsZFF1ZXJ5IGZyb20gJy4uL3F1Z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E1BQU1nRSxVQUFVLE1BQU1QO0lBQ3RCLGdDQUFnQztJQUNoQyxJQUFJcEIsT0FBT0MsSUFBSSxDQUFDWCxjQUFjWSxNQUFNLEdBQUcsR0FBRztRQUN4Q3lCLFFBQVF6RCxJQUFJLENBQUMsQ0FBQzBELEdBQUdDLElBQU12QyxZQUFZLENBQUNzQyxFQUFFYixFQUFFLENBQUMsR0FBR3pCLFlBQVksQ0FBQ3VDLEVBQUVkLEVBQUUsQ0FBQztJQUNoRTtJQUVBLElBQUloRCxlQUFlLFNBQVMsQ0FBQ2EsV0FBVztRQUN0Q0EsWUFBWStDLFFBQVF6QixNQUFNO1FBQzFCckIsYUFBYTtRQUNiRyxnQkFBZ0I7UUFDaEJGLGNBQWM7UUFDZEMsY0FBYztJQUNoQjtJQUVBLE1BQU02QixPQUFPZSxRQUFRRyxHQUFHLENBQUMsQ0FBQ0M7UUFDeEIsT0FBTzNFLFVBQVU7WUFDZjRFLFFBQVF2RSxRQUFRd0UsT0FBTyxDQUFDRCxNQUFNO1lBQzlCRDtZQUNBckU7UUFDRjtJQUNGO0lBRUEsT0FBTztRQUNMa0Q7UUFDQTdCO1FBQ0FEO1FBQ0FuQjtRQUNBa0QsVUFBVTlCLGNBQWNqQixPQUFPLElBQUk7UUFDbkNBO1FBQ0FrQjtRQUNBOEIsVUFBVWhDLGNBQWNoQixPQUFPLElBQUk7UUFDbkNjO1FBQ0FDO0lBQ0Y7QUFDRixFQUFDIn0=
|
@@ -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,aAAa,CAAA;AAGlD,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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL3RyYXZlcnNlRmllbGRzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEZpZWxkIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgZmllbGRBZmZlY3RzRGF0YSwgdGFiSGFzTmFtZSB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcy5qcydcbmltcG9ydCB0eXBlIHsg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ExldmVsVGFibGVOYW1lLFxuICAgICAgfSlcblxuICAgICAgcmV0dXJuXG4gICAgfVxuXG4gICAgaWYgKGZpZWxkLnR5cGUgPT09ICd0YWJzJykge1xuICAgICAgZmllbGQudGFicy5mb3JFYWNoKCh0YWIpID0+IHtcbiAgICAgICAgY29uc3QgdGFiUGF0aCA9IHRhYkhhc05hbWUodGFiKSA/IGAke3BhdGh9JHt0YWIubmFtZX1fYCA6IHBhdGhcblxuICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICBjdXJyZW50QXJncyxcbiAgICAgICAgICBjdXJyZW50VGFibGVOYW1lLFxuICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgIGZpZWxkczogdGFiLmZpZWxkcyxcbiAgICAgICAgICBwYXRoOiB0YWJQYXRoLFxuICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgfSlcbiAgICAgIH0pXG5cbiAgICAgIHJldHVyblxuICAgIH1cblxuICAgIGlmIChmaWVsZEFmZmVjdHNEYXRhKGZpZWxkKSkge1xuICAgICAgc3dpdGNoIChmaWVsZC50eXBlKSB7XG4gICAgICAgIGNhc2UgJ2FycmF5Jzoge1xuICAgICAgICAgIGNvbnN0IHdpdGhBcnJheTogUmVzdWx0ID0ge1xuICAgICAgICAgICAgY29sdW1uczoge1xuICAgICAgICAgICAgICBfcGFyZW50SUQ6IGZhbHNlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG9yZGVyQnk6ICh7IF9vcmRlciB9LCB7IGFzYyB9KSA9PiBbYXNjKF9vcmRlcildLFxuICAgICAgICAgICAgd2l0aDoge30sXG4gICAgICAgICAgfVxuXG4gICAgICAgICAgY29uc3QgYXJyYXlUYWJsZU5hbWUgPSBgJHtjdXJyZW50VGFibGVOYW1lfV8ke3BhdGh9JHt0b1NuYWtlQ2FzZShmaWVsZC5uYW1lKX1gXG5cbiAgICAgICAgICBpZiAoYWRhcHRlci50YWJsZXNbYCR7YXJyYXlUYWJsZU5hbWV9X2xvY2FsZXNgXSkgd2l0aEFycmF5LndpdGguX2xvY2FsZXMgPSBfbG9jYWxlc1xuICAgICAgICAgIGN1cnJlbnRBcmdzLndpdGhbYCR7cGF0aH0ke2ZpZWxkLm5hbWV9YF0gPSB3aXRoQXJyYXlcblxuICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgIF9sb2NhbGVzLFxuICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgIGN1cnJlbnRBcmdzOiB3aXRoQXJyYXksXG4gICAgICAgICAgICBjdXJyZW50VGFibGVOYW1lOiBhcnJheVRhYmxlTmFtZSxcbiAgICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgICAgZmllbGRzOiBmaWVsZC5maWVsZHMsXG4gICAgICAgICAgICBwYXRoOiAnJyxcbiAgICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICAgIHRvcExldmVsVGFibGVOYW1lLFxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG5cbiAgICAgICAgY2FzZSAnc2VsZWN0Jzoge1xuICAgICAgICAgIGlmIChmaWVsZC5oYXNNYW55KSB7XG4gICAgICAgICAgICBjb25zdCB3aXRoU2VsZWN0OiBSZXN1bHQgPSB7XG4gICAgICAgICAgICAgIGNvbHVtbnM6IHtcbiAgICAgICAgICAgICAgICBpZDogZmFsc2UsXG4gICAgICAgICAgICAgICAgb3JkZXI6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHBhcmVudDogZmFsc2UsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG9yZGVyQnk6ICh7IG9yZGVyIH0sIHsgYXNjIH0pID0+IFthc2Mob3JkZXIpXSxcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY3VycmVudEFyZ3Mud2l0aFtgJHtwYXRofSR7ZmllbGQubmFtZX1gXSA9IHdpdGhTZWxlY3RcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG5cbiAgICAgICAgY2FzZSAnYmxvY2tzJzpcbiAgICAgICAgICBmaWVsZC5ibG9ja3MuZm9yRWFjaCgoYmxvY2spID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGJsb2NrS2V5ID0gYF9ibG9ja3NfJHtibG9jay5zbHVnfWBcblxuICAgICAgICAgICAgaWYgKCF0b3BMZXZlbEFyZ3NbYmxvY2tLZXldKSB7XG4gICAgICAgICAgICAgIGNvbnN0IHdpdGhCbG9jazogUmVzdWx0ID0ge1xuICAgICAgICAgICAgICAgIGNvbHVtbnM6IHtcbiAgICAgICAgICAgICAgICAgIF9wYXJlbnRJRDogZmFsc2UsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBvcmRlckJ5OiAoeyBfb3JkZXIgfSwgeyBhc2MgfSkgPT4gW2FzYyhfb3JkZXIpXSxcbiAgICAgICAgICAgICAgICB3aXRoOiB7fSxcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGNvbnN0IHRhYmxlTmFtZSA9IGAke3RvcExldmVsVGFibGVOYW1lfV9ibG9ja3NfJHt0b1NuYWtlQ2FzZShibG9jay5zbHVnKX1gXG5cbiAgICAgICAgICAgICAgaWYgKGFkYXB0ZXIudGFibGVzW2Ake3RhYmxlTmFtZX1fbG9jYWxlc2BdKSB3aXRoQmxvY2sud2l0aC5fbG9jYWxlcyA9IF9sb2NhbGVzXG4gICAgICAgICAgICAgIHRvcExldmVsQXJncy53aXRoW2Jsb2NrS2V5XSA9IHdpdGhCbG9ja1xuXG4gICAgICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgICAgICBfbG9jYWxlcyxcbiAgICAgICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgICAgIGN1cnJlbnRBcmdzOiB3aXRoQmxvY2ssXG4gICAgICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZTogdGFibGVOYW1lLFxuICAgICAgICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgICAgICAgIGZpZWxkczogYmxvY2suZmllbGRzLFxuICAgICAgICAgICAgICAgIHBhdGg6ICcnLFxuICAgICAgICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgYnJlYWtcblxuICAgICAgICBjYXNlICdncm91cCc6XG4gICAgICAgICAgdHJhdmVyc2VGaWVsZHMoe1xuICAgICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgY3VycmVudEFyZ3MsXG4gICAgICAgICAgICBjdXJyZW50VGFibGVOYW1lLFxuICAgICAgICAgICAgZGVwdGgsXG4gICAgICAgICAgICBmaWVsZHM6IGZpZWxkLmZpZWxkcyxcbiAgICAgICAgICAgIHBhdGg6IGAke3BhdGh9JHtmaWVsZC5uYW1lfV9gLFxuICAgICAgICAgICAgdG9wTGV2ZWxBcmdzLFxuICAgICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgICAgfSlcblxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH0pXG5cbiAgcmV0dXJuIHRvcExldmVsQXJnc1xufVxuIl0sIm5hbWVzIjpbImZpZWxkQWZmZWN0c0RhdGEiLCJ0YWJIYXNOYW1lIiwidG9TbmFrZUNhc2UiLCJ0cmF2ZXJzZUZpZWxkcyIsIl9sb2NhbGVzIiwiYWRhcHRlciIsImN1cnJlbnRBcmdzIiwiY3VycmVudFRhYmxlTmF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QUFNLENBQUMsQ0FBQyxFQUFFVyxVQUFVLFFBQVEsQ0FBQyxDQUFDLEVBQUVELFVBQVVaLElBQUksQ0FBQ3RCLFFBQVEsR0FBR0E7NEJBQ3RFTyxhQUFhZSxJQUFJLENBQUNVLFNBQVMsR0FBR0U7NEJBRTlCbkMsZUFBZTtnQ0FDYkM7Z0NBQ0FDO2dDQUNBQyxhQUFhZ0M7Z0NBQ2IvQixrQkFBa0JnQztnQ0FDbEIvQjtnQ0FDQUMsUUFBUTBCLE1BQU0xQixNQUFNO2dDQUNwQkMsTUFBTTtnQ0FDTkM7Z0NBQ0FDOzRCQUNGO3dCQUNGO29CQUNGO29CQUVBO2dCQUVGLEtBQUs7b0JBQ0hULGVBQWU7d0JBQ2JDO3dCQUNBQzt3QkFDQUM7d0JBQ0FDO3dCQUNBQzt3QkFDQUMsUUFBUUssTUFBTUwsTUFBTTt3QkFDcEJDLE1BQU0sQ0FBQyxFQUFFQSxLQUFLLEVBQUVJLE1BQU1LLElBQUksQ0FBQyxDQUFDLENBQUM7d0JBQzdCUjt3QkFDQUM7b0JBQ0Y7b0JBRUE7Z0JBRUY7b0JBQVM7d0JBQ1A7b0JBQ0Y7WUFDRjtRQUNGO0lBQ0Y7SUFFQSxPQUFPRDtBQUNULEVBQUMifQ==
|
package/dist/find.js
CHANGED
@@ -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,
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnIH0g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GED
@@ -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,
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kR2xvYmFsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEdsb2JhbCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB7IGZpbmRNYW55IH0gZnJvbSAnLi9maW5kL2ZpbmRNYW55LmpzJ1xuXG5leHBvcnQgY29uc3QgZmluZEdsb2JhbDogRmluZEdsb2JhbCA9IGFzeW5jIGZ1bmN0aW9uIGZpbmRHbG9iYWwoXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAgeyBsb2NhbGUsIHJlcSwgc2x1Zywgd2hlcmUgfSxcbikge1xuICBjb25zdCBnbG9iYWxDb25maWcgPSB0aGlzLnBheWxvYWQuZ2xvYmFscy5jb25maWcuZmluZCgoY29uZmlnKSA9PiBjb25maWcuc2x1ZyA9PT0gc2x1ZylcbiAgY29uc3QgdGFibGVOYW1lID0gdG9TbmFrZUNhc2Uoc2x1ZylcblxuICBjb25zdCB7XG4gICAgZG9jczogW2RvY10sXG4gIH0gPSBhd2FpdCBmaW5kTWFueSh7XG4gICAgYWRhcHRlcjogdGhpcyxcbiAgICBmaWVsZHM6IGdsb2JhbENvbmZpZy5maWVsZHMsXG4gICAgbGltaXQ6IDEsXG4gICAgbG9jYWxlLFxuICAgIHBhZ2luYXRpb246IGZhbHNlLFxuICAgIHJlcSxcbiAgICB0YWJsZU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sT0FBTyxDQUFDO0FBQ1YsRUFBQyJ9
|
@@ -21,4 +21,4 @@ export const findGlobalVersions = async function findGlobalVersions({ global, li
|
|
21
21
|
});
|
22
22
|
};
|
23
23
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kR2xvYmFsVmVyc2lvbnMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBGaW5kR2xvYmFsVmVyc2lvbnMgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgU2FuaXRpemVkR2xvYmFsQ29uZmlnIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgYnVpbGRWZXJzaW9uR2xvYmFsRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcbmltcG9ydCB0b1NuYWtlQ2FzZSBmcm9tICd0by1zbmFrZS1jYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMuanMnXG5cbmltcG9ydCB7IGZpbmRNYW55IH0gZnJvbSAnLi9maW5kL2ZpbmRNYW55LmpzJ1xuXG5leHBvcnQgY29uc3QgZmluZEdsb2JhbFZlcnNpb25zOiBGaW5kR2xvYmFsVmVyc2lvbnMgPSBhc3luYyBmdW5jdGlvbiBmaW5kR2xvYmFsVmVyc2lvbnMoXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAge1xuICAgIGdsb2JhbCxcbiAgICBsaW1pdCxcbiAgICBsb2NhbGUsXG4gICAgcGFnZSxcbiAgICBwYWdpbmF0aW9uLFxuICAgIHJlcSA9IHt9IGFzIFBheWxvYWRSZXF1ZXN0LFxuICAgIHNraXAsXG4gICAgc29ydDogc29ydEFyZyxcbiAgICB3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GlCQUFpQixnQkFBZTtBQUl2QyxTQUFTQyxRQUFRLFFBQVEscUJBQW9CO0FBRTdDLE9BQU8sTUFBTUMscUJBQXlDLGVBQWVBLG1CQUVuRSxFQUNFQyxNQUFNLEVBQ05DLEtBQUssRUFDTEMsTUFBTSxFQUNOQyxJQUFJLEVBQ0pDLFVBQVUsRUFDVkMsTUFBTSxDQUFDLENBQW1CLEVBQzFCQyxJQUFJLEVBQ0pDLE1BQU1DLE9BQU8sRUFDYkMsS0FBSyxFQUNOO0lBRUQsTUFBTUMsZUFBc0MsSUFBSSxDQUFDQyxPQUFPLENBQUNDLE9BQU8sQ0FBQ0MsTUFBTSxDQUFDQyxJQUFJLENBQzFFLENBQUMsRUFBRUMsSUFBSSxFQUFFLEdBQUtBLFNBQVNmO0lBRXpCLE1BQU1PLE9BQU8sT0FBT0MsWUFBWSxXQUFXQSxVQUFVO0lBRXJELE1BQU1RLFlBQVksQ0FBQyxDQUFDLEVBQUVuQixZQUFZRyxRQUFRLEVBQUUsQ0FBQztJQUM3QyxNQUFNaUIsU0FBU3JCLHlCQUF5QmM7SUFFeEMsT0FBT1osU0FBUztRQUNkb0IsU0FBUyxJQUFJO1FBQ2JEO1FBQ0FoQjtRQUNBQztRQUNBQztRQUNBQztRQUNBQztRQUNBQztRQUNBQztRQUNBUztRQUNBUDtJQUNGO0FBQ0YsRUFBQyJ9
|
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.js';
|
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
|
package/dist/findOne.d.ts.map
CHANGED
@@ -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,
|
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,YAAY,CAAA;AAIjD,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"}
|