@payloadcms/db-postgres 0.8.0 → 0.8.1
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/count.d.ts +3 -0
- package/dist/count.d.ts.map +1 -0
- package/dist/count.js +68 -0
- package/dist/create.js +1 -1
- package/dist/createGlobal.js +1 -1
- package/dist/createGlobalVersion.js +1 -1
- package/dist/createMigration.js +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.js +1 -1
- package/dist/find/chainMethods.js +1 -1
- package/dist/find/findMany.js +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.js +1 -1
- package/dist/findVersions.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/init.js +1 -1
- package/dist/migrate.js +1 -1
- package/dist/migrateDown.js +1 -1
- package/dist/migrateFresh.js +1 -1
- package/dist/migrateRefresh.js +1 -1
- package/dist/migrateReset.js +1 -1
- package/dist/migrateStatus.js +1 -1
- package/dist/queries/buildAndOrConditions.js +1 -1
- package/dist/queries/buildQuery.js +1 -1
- package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js +1 -1
- package/dist/queries/createJSONQuery/formatJSONPathSegment.js +1 -1
- package/dist/queries/createJSONQuery/index.js +1 -1
- package/dist/queries/getTableColumnFromPath.js +1 -1
- package/dist/queries/operatorMap.js +1 -1
- package/dist/queries/parseParams.js +1 -1
- package/dist/queries/sanitizeQueryValue.js +1 -1
- package/dist/queries/selectDistinct.js +1 -1
- package/dist/queryDrafts.js +1 -1
- package/dist/schema/build.js +1 -1
- package/dist/schema/createIndex.js +1 -1
- package/dist/schema/getTableName.js +1 -1
- package/dist/schema/idToUUID.js +1 -1
- package/dist/schema/parentIDColumnMap.js +1 -1
- package/dist/schema/setColumnID.js +1 -1
- package/dist/schema/traverseFields.d.ts.map +1 -1
- package/dist/schema/traverseFields.js +4 -6
- package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +1 -1
- package/dist/schema/validateExistingBlockIsIdentical.js +4 -4
- package/dist/transactions/beginTransaction.js +1 -1
- package/dist/transactions/commitTransaction.js +1 -1
- package/dist/transactions/rollbackTransaction.js +1 -1
- package/dist/transform/read/hasManyNumber.js +1 -1
- package/dist/transform/read/hasManyText.js +1 -1
- package/dist/transform/read/index.js +1 -1
- package/dist/transform/read/relationship.js +1 -1
- package/dist/transform/read/traverseFields.js +1 -1
- package/dist/transform/write/array.js +1 -1
- package/dist/transform/write/blocks.js +1 -1
- package/dist/transform/write/index.js +1 -1
- package/dist/transform/write/numbers.js +1 -1
- package/dist/transform/write/relationships.js +1 -1
- package/dist/transform/write/selects.js +1 -1
- package/dist/transform/write/texts.js +1 -1
- package/dist/transform/write/traverseFields.js +1 -1
- package/dist/transform/write/types.js +1 -1
- package/dist/types.js +1 -1
- package/dist/update.js +1 -1
- package/dist/updateGlobal.js +1 -1
- package/dist/updateGlobalVersion.js +1 -1
- package/dist/updateVersion.js +1 -1
- package/dist/upsertRow/deleteExistingArrayRows.js +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.js +1 -1
- package/dist/upsertRow/index.js +1 -1
- package/dist/upsertRow/insertArrays.js +1 -1
- package/dist/upsertRow/types.js +1 -1
- package/dist/utilities/appendPrefixToKeys.js +1 -1
- package/dist/utilities/createBlocksMap.js +1 -1
- package/dist/utilities/createMigrationTable.js +1 -1
- package/dist/utilities/createRelationshipMap.js +1 -1
- package/dist/utilities/hasLocalesTable.js +1 -1
- package/dist/utilities/isArrayOfRows.js +1 -1
- package/dist/utilities/migrationTableExists.js +1 -1
- package/dist/utilities/parseError.js +1 -1
- package/package.json +3 -3
package/dist/connect.js
CHANGED
@@ -130,4 +130,4 @@ const connect = async function connect(payload) {
|
|
130
130
|
}
|
131
131
|
};
|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FZQyxJQUFBQSxpQkFBUyxFQUFDO1FBQ3RCQyxZQUFZRCxJQUFBQSxpQkFBUyxFQUFDO0lBQ3hCO0lBRUEsTUFBTUUsVUFBVSxNQUFNLElBQUksQ0FBQ3RDLE9BQU8sQ0FDL0J1QyxNQUFNLEdBQ05DLElBQUksQ0FBQ1gsa0JBQ0xZLEtBQUssQ0FBQ0MsSUFBQUEsY0FBRSxFQUFDYixpQkFBaUJJLEtBQUssRUFBRTtJQUVwQyxJQUFJLENBQUNLLFFBQVFsQixNQUFNLEVBQUU7UUFDbkIsTUFBTSxJQUFJLENBQUNwQixPQUFPLENBQUMyQyxNQUFNLENBQUNkLGtCQUFrQmUsTUFBTSxDQUFDO1lBQ2pEbkIsTUFBTTtZQUNOUSxPQUFPO1FBQ1Q7SUFDRixPQUFPO1FBQ0wsTUFBTSxJQUFJLENBQUNqQyxPQUFPLENBQ2Y2QyxNQUFNLENBQUNoQixrQkFDUGlCLEdBQUcsQ0FBQztZQUNIVCxZQUFZLElBQUlVO1FBQ2xCLEdBQ0NOLEtBQUssQ0FBQ0MsSUFBQUEsY0FBRSxFQUFDYixpQkFBaUJJLEtBQUssRUFBRTtJQUN0QztBQUNGIn0=
|
package/dist/count.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../src/count.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAY7C,eAAO,MAAM,KAAK,EAAE,KAoDnB,CAAA"}
|
package/dist/count.js
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "count", {
|
6
|
+
enumerable: true,
|
7
|
+
get: function() {
|
8
|
+
return count;
|
9
|
+
}
|
10
|
+
});
|
11
|
+
const _drizzleorm = require("drizzle-orm");
|
12
|
+
const _chainMethods = require("./find/chainMethods");
|
13
|
+
const _buildQuery = /*#__PURE__*/ _interop_require_default(require("./queries/buildQuery"));
|
14
|
+
const _getTableName = require("./schema/getTableName");
|
15
|
+
function _interop_require_default(obj) {
|
16
|
+
return obj && obj.__esModule ? obj : {
|
17
|
+
default: obj
|
18
|
+
};
|
19
|
+
}
|
20
|
+
const count = async function count({ collection, locale, req, where: whereArg }) {
|
21
|
+
const collectionConfig = this.payload.collections[collection].config;
|
22
|
+
const tableName = (0, _getTableName.getTableName)({
|
23
|
+
adapter: this,
|
24
|
+
config: collectionConfig
|
25
|
+
});
|
26
|
+
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
27
|
+
const table = this.tables[tableName];
|
28
|
+
const { joinAliases, joins, where } = await (0, _buildQuery.default)({
|
29
|
+
adapter: this,
|
30
|
+
fields: collectionConfig.fields,
|
31
|
+
locale,
|
32
|
+
tableName,
|
33
|
+
where: whereArg
|
34
|
+
});
|
35
|
+
const selectCountMethods = [];
|
36
|
+
joinAliases.forEach(({ condition, table })=>{
|
37
|
+
selectCountMethods.push({
|
38
|
+
args: [
|
39
|
+
table,
|
40
|
+
condition
|
41
|
+
],
|
42
|
+
method: 'leftJoin'
|
43
|
+
});
|
44
|
+
});
|
45
|
+
Object.entries(joins).forEach(([joinTable, condition])=>{
|
46
|
+
if (joinTable) {
|
47
|
+
selectCountMethods.push({
|
48
|
+
args: [
|
49
|
+
this.tables[joinTable],
|
50
|
+
condition
|
51
|
+
],
|
52
|
+
method: 'leftJoin'
|
53
|
+
});
|
54
|
+
}
|
55
|
+
});
|
56
|
+
const countResult = await (0, _chainMethods.chainMethods)({
|
57
|
+
methods: selectCountMethods,
|
58
|
+
query: db.select({
|
59
|
+
count: (0, _drizzleorm.sql)`count
|
60
|
+
(DISTINCT ${this.tables[tableName].id})`
|
61
|
+
}).from(table).where(where)
|
62
|
+
});
|
63
|
+
return {
|
64
|
+
totalDocs: Number(countResult[0].count)
|
65
|
+
};
|
66
|
+
};
|
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xNQUFNSSxjQUFjLE1BQU1DLElBQUFBLDBCQUFZLEVBQUM7UUFDckNDLFNBQVNYO1FBQ1RZLE9BQU90QixHQUNKdUIsTUFBTSxDQUFDO1lBQ05wQyxPQUFPcUMsSUFBQUEsZUFBRyxDQUFRLENBQUM7c0JBQ0wsRUFBRSxJQUFJLENBQUNuQixNQUFNLENBQUNSLFVBQVUsQ0FBQzRCLEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDOUMsR0FDQ0MsSUFBSSxDQUFDdEIsT0FDTGIsS0FBSyxDQUFDQTtJQUNYO0lBRUEsT0FBTztRQUFFb0MsV0FBV0MsT0FBT1QsV0FBVyxDQUFDLEVBQUUsQ0FBQ2hDLEtBQUs7SUFBRTtBQUNuRCJ9
|
package/dist/create.js
CHANGED
@@ -28,4 +28,4 @@ const create = async function create({ collection: collectionSlug, data, req })
|
|
28
28
|
return result;
|
29
29
|
};
|
30
30
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGUgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IGdldFRhYmxlTmFtZSB9IGZyb20gJy4vc2NoZW1hL2dldFRhYmxlTmFtZSdcbmltcG9ydCB7IHVwc2VydFJvdyB9IGZyb20gJy4vdXBzZXJ0Um93J1xuXG5leHBvcnQgY29uc3QgY3JlYXRlOiBDcmVhdGUgPSBhc3luYyBmdW5jdGlvbiBjcmVhdGUoXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAgeyBjb2xsZWN0aW9uOiBjb2xsZWN0aW9uU2x1ZywgZGF0YSwgcmVx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sRUFBRUYsTUFBTSxJQUFJLENBQUNHLE9BQU87SUFDL0QsTUFBTVAsYUFBYSxJQUFJLENBQUNRLE9BQU8sQ0FBQ0MsV0FBVyxDQUFDUixlQUFlLENBQUNTLE1BQU07SUFFbEUsTUFBTUMsU0FBUyxNQUFNQyxJQUFBQSxvQkFBUyxFQUFDO1FBQzdCQyxTQUFTLElBQUk7UUFDYlg7UUFDQUU7UUFDQVUsUUFBUWQsV0FBV2MsTUFBTTtRQUN6QkMsV0FBVztRQUNYWjtRQUNBYSxXQUFXQyxJQUFBQSwwQkFBWSxFQUFDO1lBQ3RCSixTQUFTLElBQUk7WUFDYkgsUUFBUVY7UUFDVjtJQUNGO0lBRUEsT0FBT1c7QUFDVCJ9
|
package/dist/createGlobal.js
CHANGED
@@ -28,4 +28,4 @@ async function createGlobal({ slug, data, req = {} }) {
|
|
28
28
|
return result;
|
29
29
|
}
|
30
30
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWwudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDcmVhdGVHbG9iYWxBcmdzIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IGdldFRhYmxlTmFtZSB9IGZyb20gJy4vc2NoZW1hL2dldFRhYmxlTmFtZSdcbmltcG9ydCB7IHVwc2VydFJvdyB9IGZyb20gJy4vdXBzZXJ0Um93J1xuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gY3JlYXRlR2xvYmFsPFQgZXh0ZW5kcyBUeXBlV2l0aElEPihcbiAgdGhpczog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MvRCxNQUFNQyxlQUFlLElBQUksQ0FBQ0MsT0FBTyxDQUFDQyxPQUFPLENBQUNDLE1BQU0sQ0FBQ0MsSUFBSSxDQUFDLENBQUNELFNBQVdBLE9BQU9WLElBQUksS0FBS0E7SUFFbEYsTUFBTVksU0FBUyxNQUFNQyxJQUFBQSxvQkFBUyxFQUFJO1FBQ2hDQyxTQUFTLElBQUk7UUFDYmI7UUFDQUU7UUFDQVksUUFBUVIsYUFBYVEsTUFBTTtRQUMzQkMsV0FBVztRQUNYZDtRQUNBZSxXQUFXQyxJQUFBQSwwQkFBWSxFQUFDO1lBQ3RCSixTQUFTLElBQUk7WUFDYkosUUFBUUg7UUFDVjtJQUNGO0lBRUEsT0FBT0s7QUFDVCJ9
|
@@ -44,4 +44,4 @@ async function createGlobalVersion({ autosave, globalSlug, req = {}, versionData
|
|
44
44
|
return result;
|
45
45
|
}
|
46
46
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVHbG9iYWxWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVHlwZVdpdGhWZXJzaW9uIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcbmltcG9ydCB7IHR5cGUgQ3JlYXRlR2xvYmFsVmVyc2lvbkFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHsgYnVpbGRWZXJzaW9uR2xvYmFsRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5c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UFBQUEsMEJBQVksRUFBQztRQUM3QkMsU0FBUyxJQUFJO1FBQ2JMLFFBQVFIO1FBQ1JTLFVBQVU7SUFDWjtJQUVBLE1BQU1DLFNBQVMsTUFBTUMsSUFBQUEsb0JBQVMsRUFBcUI7UUFDakRILFNBQVMsSUFBSTtRQUNiSSxNQUFNO1lBQ0pwQjtZQUNBcUIsUUFBUTtZQUNSQyxTQUFTbkI7UUFDWDtRQUNBQztRQUNBbUIsUUFBUUMsSUFBQUEsa0NBQXdCLEVBQUNoQjtRQUNqQ2lCLFdBQVc7UUFDWHZCO1FBQ0FZO0lBQ0Y7SUFFQSxNQUFNWSxRQUFRLElBQUksQ0FBQ0MsTUFBTSxDQUFDYixVQUFVO0lBRXBDLElBQUlOLE9BQU9TLFFBQVEsQ0FBQ1csTUFBTSxFQUFFO1FBQzFCLE1BQU14QixHQUFHeUIsT0FBTyxDQUFDQyxJQUFBQSxlQUFHLENBQUEsQ0FBQztlQUNWLEVBQUVKLE1BQU07O2NBRVQsRUFBRUEsTUFBTUssRUFBRSxDQUFDLElBQUksRUFBRWIsT0FBT2EsRUFBRSxDQUFDO0lBQ3JDLENBQUM7SUFDSDtJQUVBLE9BQU9iO0FBQ1QifQ==
|
package/dist/createMigration.js
CHANGED
@@ -92,4 +92,4 @@ const createMigration = async function createMigration({ forceAcceptWarning, mig
|
|
92
92
|
});
|
93
93
|
};
|
94
94
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNaWdyYXRpb24udHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcmVzdHJpY3RlZC1zeW50YXgsIG5vLWF3YWl0LWluLWxvb3AgKi9cbmltcG9ydCB0eXBlIHsgRHJpenpsZVNuYXBzaG90SlNPTiB9IGZyb20gJ2RyaXp6bGUta2l0L3BheWxvYWQnXG5pbXBvcnQgdHlwZSB7IENyZWF0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QyxFQUFFNUIsU0FBUyxLQUFLLENBQUMsRUFBRVUsS0FBS21CLFNBQVMsQ0FBQ2hCLGtCQUFrQixNQUFNO0lBRTVFLGtCQUFrQjtJQUNsQjdCLFdBQUUsQ0FBQzRDLGFBQWEsQ0FDZCxDQUFDLEVBQUU1QixTQUFTLEdBQUcsQ0FBQyxFQUNoQm5DLGtCQUNFa0QsZ0JBQWdCRSxNQUFNLEdBQUdGLGlCQUFpQmUsS0FBSyxRQUFRQyxXQUN2RGYsa0JBQWtCQyxNQUFNLEdBQUdELG1CQUFtQmMsS0FBSyxRQUFRQztJQUcvRG5ELFFBQVFvRCxNQUFNLENBQUNDLElBQUksQ0FBQztRQUFFQyxLQUFLLENBQUMscUJBQXFCLEVBQUVsQyxTQUFTLEdBQUcsQ0FBQztJQUFDO0FBQ25FIn0=
|
package/dist/createVersion.js
CHANGED
@@ -55,4 +55,4 @@ async function createVersion({ autosave, collectionSlug, parent, req = {}, versi
|
|
55
55
|
return result;
|
56
56
|
}
|
57
57
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ3JlYXRlVmVyc2lvbkFyZ3MsIFR5cGVXaXRoVmVyc2lvbiB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBUeXBlV2l0aElEIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzJ1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UFFdUIsTUFBTU8sRUFBRSxDQUFDLElBQUksRUFBRWYsT0FBT2UsRUFBRSxDQUFDO0lBQ3JDLENBQUM7SUFDSDtJQUVBLE9BQU9mO0FBQ1QifQ==
|
package/dist/deleteMany.js
CHANGED
@@ -38,4 +38,4 @@ const deleteMany = async function deleteMany({ collection, req = {}, where }) {
|
|
38
38
|
}
|
39
39
|
};
|
40
40
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVsZXRlTWFueSB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0IH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgaW5BcnJheSB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmltcG9ydCB7IGZpbmRNYW55IH0gZnJvbSAnLi9maW5kL2ZpbmRNYW55J1xuaW1wb3J0IHsgZ2V0VGFibGVOYW1lIH0gZnJvbSAnLi9zY2hlbWEvZ2V0VGFibGVOYW1lJ1xuXG5leHBvcnQgY29uc3QgZGVsZXRlTWFueTogRGVsZXRlTWFueSA9IGFzeW5jIGZ1bmN0aW9uIGRlbGV0ZU1hbnkoXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAgeyBjb2xsZWN0aW9uLCByZXEgPSB7fSBhcyBQYXlsb2FkUmVxdWVzdCwgd2hlcmUgfSxcbikge1xuICBjb25zdCBkYiA9IHRoaXMuc2Vzc2lvbnNbcmVxLnRyYW5zYWN0aW9uSURdPy5kYiB8fCB0aGlzLmRyaXp6bGVcbiAgY29uc3QgY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FNLENBQUNsQixVQUFVLEVBQUVULEtBQUssQ0FBQzRCLElBQUFBLG1CQUFPLEVBQUMsSUFBSSxDQUFDRCxNQUFNLENBQUNsQixVQUFVLENBQUNlLEVBQUUsRUFBRUw7SUFDbkY7QUFDRiJ9
|
package/dist/deleteOne.js
CHANGED
@@ -74,4 +74,4 @@ const deleteOne = async function deleteOne({ collection: collectionSlug, req = {
|
|
74
74
|
return result;
|
75
75
|
};
|
76
76
|
|
77
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVPbmUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBEZWxldGVPbmUgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGVxIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuaW1wb3J0IHsgYnVpbGRGaW5kTWFueUFyZ3MgfSBmcm9tICcuL2ZpbmQvYnVpbGRGaW5kTWFueUFyZ3MnXG5pbXBvcnQgYnVpbGRRdWVyeSBmcm9tICcuL3F1ZXJpZXMvYnVpbGRRdWVyeSdcbmltcG9ydCB7IHNlbGVjdERpc3RpbmN0IH0gZnJvbSAnLi9xdWVyaWVzL3NlbGVjdERpc3RpbmN0J1xuaW1wb3J0IHsgZ2V0VGFibGVOYW1lIH0gZnJvbSAnLi9zY2hlbWEvZ2V0VGFibGVOYW1lJ1xuaW1wb3J0IHsgdHJhbnNmb3JtIH0gZnJvbSAnLi90cmFuc2Zvcm0vcmVhZCdcblxuZXhwb3J0IGNvbnN0IGRlbGV0ZU9uZTogRGVsZXRlT25lID0gYXN5bmMgZnVuY3Rpb24gZGVsZ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UFBSSxDQUFDQyxNQUFNLENBQUNuQixVQUFVLENBQUNlLEVBQUUsRUFBRVosWUFBWVksRUFBRTtJQUUxRixPQUFPUTtBQUNUIn0=
|
package/dist/deleteVersions.js
CHANGED
@@ -42,4 +42,4 @@ const deleteVersions = async function deleteVersion({ collection, locale, req =
|
|
42
42
|
return docs;
|
43
43
|
};
|
44
44
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWxldGVWZXJzaW9ucy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IERlbGV0ZVZlcnNpb25zIH0gZnJvbSAncGF5bG9hZC9kYXRhYmFzZSdcbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QsIFNhbml0aXplZENvbGxlY3Rpb25Db25maWcgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5IH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBidWlsZFZlcnNpb25Db2xsZWN0aW9uRmllbGRzIH0gZnJvbSAncGF5bG9hZC92ZXJzaW9ucydcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzJ1xuXG5pbXBvcnQgeyBmaW5kTWFueSB9IGZyb20gJy4vZmluZC9maW5kTWFueSdcbmltcG9ydCB7IGdldFRhYmxlTmFtZSB9IGZyb20gJy4vc2NoZW1hL2dldFRhYmxlTmFtZSdcblxuZXhwb3J0IGNvbnN0IGRlbGV0ZVZlcnNpb25zOiBEZWxldGVWZXJzaW9ucyA9IGFzeW5jIGZ1bmN0aW9uIGRlbGV0ZVZlcnNpb24oXG4gIHRoaXM6IFBvc3RncmVzQWRhcHRlcixcbiAgeyBjb2xsZWN0aW9uLCBsb2NhbGUsIHJlcSA9IHt9IGF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NLEVBQUVVLElBQUksRUFBRSxHQUFHLE1BQU1DLElBQUFBLGtCQUFRLEVBQUM7UUFDOUJMLFNBQVMsSUFBSTtRQUNiRTtRQUNBSSxPQUFPO1FBQ1BuQjtRQUNBb0IsTUFBTTtRQUNOQyxZQUFZO1FBQ1pwQjtRQUNBVTtRQUNBVDtJQUNGO0lBRUEsTUFBTW9CLE1BQU0sRUFBRTtJQUVkTCxLQUFLTSxPQUFPLENBQUMsQ0FBQ0M7UUFDWkYsSUFBSUcsSUFBSSxDQUFDRCxJQUFJRSxFQUFFO0lBQ2pCO0lBRUEsSUFBSUosSUFBSUssTUFBTSxHQUFHLEdBQUc7UUFDbEIsTUFBTXhCLEdBQUd5QixNQUFNLENBQUMsSUFBSSxDQUFDQyxNQUFNLENBQUNsQixVQUFVLEVBQUVULEtBQUssQ0FBQzRCLElBQUFBLG1CQUFPLEVBQUMsSUFBSSxDQUFDRCxNQUFNLENBQUNsQixVQUFVLENBQUNlLEVBQUUsRUFBRUo7SUFDbkY7SUFFQSxPQUFPTDtBQUNUIn0=
|
package/dist/destroy.js
CHANGED
@@ -13,4 +13,4 @@ const destroy = async function destroy() {
|
|
13
13
|
// await this.pool.end()
|
14
14
|
};
|
15
15
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZXN0cm95LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVzdHJveSB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuZXhwb3J0IGNvbnN0IGRlc3Ryb3k6IERlc3Ryb3kgPSBhc3luYyBmdW5jdGlvbiBkZXN0cm95KHRoaXM6IFBvc3RncmVzQWRhcHRlcikge1xuICAvLyBUT0RPOiB0aGlzIGhhbmdzIHRlc3Qgc3VpdGUgZm9yIHNvbWUgcmVhc29uXG4gIC8vIGF3YWl0IHRoaXMucG9vbC5lbmQoKVxufVxuIl0sIm5hbWVzIjpbImRlc3Ryb3kiXSwibWFwcGluZ3MiOiI7Ozs7K0JBSWFBOzs7ZUFBQUE7OztBQUFOLE1BQU1BLFVBQW1CLGVBQWVBO0FBQzdDLDhDQUE4QztBQUM5Qyx3QkFBd0I7QUFDMUIifQ==
|
@@ -69,4 +69,4 @@ const buildFindManyArgs = ({ adapter, depth, fields, tableName })=>{
|
|
69
69
|
return result;
|
70
70
|
};
|
71
71
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2J1aWxkRmluZE1hbnlBcmdzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgREJRdWVyeUNvbmZpZyB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmltcG9ydCB7IHRyYXZlcnNlRmllbGRzIH0gZnJvbSAnLi90cmF2ZXJzZUZpZWxkcydcblxudHlwZSBCdWlsZEZpbmRRdWVyeUFyZ3MgPSB7XG4gIGFkYXB0ZXI6IFBvc3RncmVzQWRhcHRlclxuICBkZXB0aDogbnVtYmVyXG4gIGZpZWxkczogRmllbGRbXVxuICB0YWJsZU5hbWU6IHN0cmluZ1xufVxuXG5leHBvcnQgdHlwZSBSZXN1bHQgPSBEQlF1ZXJ5Q29uZmlnPCdtYW55JywgdHJ1ZSwgYW55LCBhbnk+
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2J1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0MsUUFBUSxHQUFHQTtJQUN6QjtJQUVBZSxJQUFBQSw4QkFBYyxFQUFDO1FBQ2JmO1FBQ0FOO1FBQ0FzQixhQUFhbEI7UUFDYm1CLGtCQUFrQnBCO1FBQ2xCRjtRQUNBQztRQUNBc0IsTUFBTTtRQUNOQyxjQUFjckI7UUFDZHNCLG1CQUFtQnZCO0lBQ3JCO0lBRUEsT0FBT0M7QUFDVCJ9
|
@@ -18,4 +18,4 @@ Object.defineProperty(exports, "chainMethods", {
|
|
18
18
|
}, query);
|
19
19
|
};
|
20
20
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2NoYWluTWV0aG9kcy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFF1ZXJ5UHJvbWlzZSB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuXG5leHBvcnQgdHlwZSBDaGFpbmVkTWV0aG9kcyA9IHtcbiAgYXJnczogdW5rbm93bltdXG4gIG1ldGhvZDogc3RyaW5nXG59W11cblxuLyoqXG4gKiBDYWxsIGFuZCByZXR1cm5pbmcgbWV0aG9kcyB0aGF0IHdvdWxkIG5vcm1hbGx5IGJlIGNoYWluZWQgdG9nZXRoZXIgYnV0IGNhbm5vdCBiZSBiZWNhdXNlIG9mIGNvbnRyb2wgbG9naWNcbiAqIEBwYXJhbSBtZXRob2RzXG4gKiBAcGFyYW0gcXVlcnlcbiAqL1xuY29uc3QgY2hhaW5NZXRob2RzID0gPFQ+KHsgbWV0aG9kcywgcXVlcnkgfSk6IFF1ZXJ5UHJvbWlzZTxUPiA9PiB7XG4gIHJldHVybiBtZXRob2RzLnJlZHVjZSgocXVlcnksIHsgYXJncywgbWV0aG9kIH0pID0+
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2NoYWlu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0FBR0Y7QUFDTCJ9
|
package/dist/find/findMany.js
CHANGED
@@ -175,4 +175,4 @@ const findMany = async function find({ adapter, fields, limit: limitArg, locale,
|
|
175
175
|
};
|
176
176
|
};
|
177
177
|
|
178
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2ZpbmRNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCwgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5LCBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcydcbmltcG9ydCB0eXBlIHsgQ2hhaW5lZE1ldGhvZHMgfSBmcm9tICcuL2NoYWluTWV0aG9kcydcblxuaW1wb3J0IGJ1aWxkUXVlcnkgZnJvbSAnLi4vcXVlcmllcy9idWlsZFF1ZXJ5J1xuaW1wb3J0IHsgc2VsZWN0RGlzdGluY3QgfSBmcm9tICcuLi9xdWVyaWVzL3NlbGVjdERpc3RpbmN0J1xuaW1wb3J0IHsgdHJhbnNmb3JtIH0gZnJvbSAnLi4vdHJhbnNmb3JtL3JlYWQnXG5pbXBvcnQgeyBidWlsZEZpbmRNYW55QXJncyB9IGZyb20gJy4vYnVpbGRGaW5kTWFueUFyZ3MnXG5pbXBvcnQgeyBjaGFpbk1ldGhvZHMgfSBmcm9tICcuL2NoYWluTWV0aG9kcydcblxudHlwZSBBcmdzID0gT21pdDxGaW5kQXJncywgJ2NvbGxlY3Rpb24nPiAmIHtcbiAgYWRhcHRlcjogUG9zdGdyZXNBZGFwdGVyXG4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sY0FBY2hCLE9BQU87UUFDckJpQixjQUFjRixhQUFhZjtRQUMzQmtCLGdCQUFnQixBQUFDbEIsQ0FBQUEsT0FBTyxDQUFBLElBQUtILFFBQVE7SUFDdkM7SUFFQSxNQUFNc0UsVUFBVSxNQUFNZjtJQUN0QixnQ0FBZ0M7SUFDaEMsSUFBSU4sT0FBT0MsSUFBSSxDQUFDdkIsY0FBY2UsTUFBTSxHQUFHLEdBQUc7UUFDeEM0QixRQUFRL0QsSUFBSSxDQUFDLENBQUNnRSxHQUFHQyxJQUFNN0MsWUFBWSxDQUFDNEMsRUFBRXhCLEVBQUUsQ0FBQyxHQUFHcEIsWUFBWSxDQUFDNkMsRUFBRXpCLEVBQUUsQ0FBQztJQUNoRTtJQUVBLElBQUkzQyxlQUFlLFNBQVMsQ0FBQ2EsV0FBVztRQUN0Q0EsWUFBWXFELFFBQVE1QixNQUFNO1FBQzFCeEIsYUFBYTtRQUNiRyxnQkFBZ0I7UUFDaEJGLGNBQWM7UUFDZEMsY0FBYztJQUNoQjtJQUVBLE1BQU11QixPQUFPMkIsUUFBUUcsR0FBRyxDQUFDLENBQUNDO1FBQ3hCLE9BQU9DLElBQUFBLGVBQVMsRUFBQztZQUNmQyxRQUFROUUsUUFBUStFLE9BQU8sQ0FBQ0QsTUFBTTtZQUM5QkY7WUFDQTNFO1FBQ0Y7SUFDRjtJQUVBLE9BQU87UUFDTDRDO1FBQ0F2QjtRQUNBRDtRQUNBbkI7UUFDQTRDLFVBQVV4QixjQUFjakIsT0FBTyxJQUFJO1FBQ25DQTtRQUNBa0I7UUFDQXdCLFVBQVUxQixjQUFjaEIsT0FBTyxJQUFJO1FBQ25DYztRQUNBQztJQUNGO0FBQ0YifQ==
|
@@ -159,4 +159,4 @@ const traverseFields = ({ _locales, adapter, currentArgs, currentTableName, dept
|
|
159
159
|
return topLevelArgs;
|
160
160
|
};
|
161
161
|
|
162
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3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ICB9XG5cbiAgICBpZiAoZmllbGRBZmZlY3RzRGF0YShmaWVsZCkpIHtcbiAgICAgIHN3aXRjaCAoZmllbGQudHlwZSkge1xuICAgICAgICBjYXNlICdhcnJheSc6IHtcbiAgICAgICAgICBjb25zdCB3aXRoQXJyYXk6IFJlc3VsdCA9IHtcbiAgICAgICAgICAgIGNvbHVtbnM6IHtcbiAgICAgICAgICAgICAgX3BhcmVudElEOiBmYWxzZSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBvcmRlckJ5OiAoeyBfb3JkZXIgfSwgeyBhc2MgfSkgPT4gW2FzYyhfb3JkZXIpXSxcbiAgICAgICAgICAgIHdpdGg6IHt9LFxuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnN0IGFycmF5VGFibGVOYW1lID0gZ2V0VGFibGVOYW1lKHtcbiAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICBjb25maWc6IGZpZWxkLFxuICAgICAgICAgICAgcGFyZW50VGFibGVOYW1lOiBjdXJyZW50VGFibGVOYW1lLFxuICAgICAgICAgICAgcHJlZml4OiBgJHtjdXJyZW50VGFibGVOYW1lfV8ke3BhdGh9YCxcbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgY29uc3QgYXJyYXlUYWJsZU5hbWVXaXRoTG9jYWxlcyA9IGdldFRhYmxlTmFtZSh7XG4gICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgY29uZmlnOiBmaWVsZCxcbiAgICAgICAgICAgIGxvY2FsZXM6IHRydWUsXG4gICAgICAgICAgICBwYXJlbnRUYWJsZU5hbWU6IGN1cnJlbnRUYWJsZU5hbWUsXG4gICAgICAgICAgICBwcmVmaXg6IGAke2N1cnJlbnRUYWJsZU5hbWV9XyR7cGF0aH1gLFxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBpZiAoYWRhcHRlci50YWJsZXNbYXJyYXlUYWJsZU5hbWVXaXRoTG9jYWxlc10pIHdpdGhBcnJheS53aXRoLl9sb2NhbGVzID0gX2xvY2FsZXNcbiAgICAgICAgICBjdXJyZW50QXJncy53aXRoW2Ake3BhdGh9JHtmaWVsZC5uYW1lfWBdID0gd2l0aEFycmF5XG5cbiAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICBfbG9jYWxlcyxcbiAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEFycmF5LFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZTogYXJyYXlUYWJsZU5hbWUsXG4gICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgIGZpZWxkczogZmllbGQuZmllbGRzLFxuICAgICAgICAgICAgcGF0aDogJycsXG4gICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ3NlbGVjdCc6IHtcbiAgICAgICAgICBpZiAoZmllbGQuaGFzTWFueSkge1xuICAgICAgICAgICAgY29uc3Qgd2l0aFNlbGVjdDogUmVzdWx0ID0ge1xuICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIG9yZGVyOiBmYWxzZSxcbiAgICAgICAgICAgICAgICBwYXJlbnQ6IGZhbHNlLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvcmRlckJ5OiAoeyBvcmRlciB9LCB7IGFzYyB9KSA9PiBbYXNjKG9yZGVyKV0sXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLndpdGhbYCR7cGF0aH0ke2ZpZWxkLm5hbWV9YF0gPSB3aXRoU2VsZWN0XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ2Jsb2Nrcyc6XG4gICAgICAgICAgZmllbGQuYmxvY2tzLmZvckVhY2goKGJsb2NrKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBibG9ja0tleSA9IGBfYmxvY2tzXyR7YmxvY2suc2x1Z31gXG5cbiAgICAgICAgICAgIGlmICghdG9wTGV2ZWxBcmdzW2Jsb2NrS2V5XSkge1xuICAgICAgICAgICAgICBjb25zdCB3aXRoQmxvY2s6IFJlc3VsdCA9IHtcbiAgICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgICBfcGFyZW50SUQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgb3JkZXJCeTogKHsgX29yZGVyIH0sIHsgYXNjIH0pID0+IFthc2MoX29yZGVyKV0sXG4gICAgICAgICAgICAgICAgd2l0aDoge30sXG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICBjb25zdCB0YWJsZU5hbWUgPSBnZXRUYWJsZU5hbWUoe1xuICAgICAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICAgICAgY29uZmlnOiBibG9jayxcbiAgICAgICAgICAgICAgICBwYXJlbnRUYWJsZU5hbWU6IHRvcExldmVsVGFibGVOYW1lLFxuICAgICAgICAgICAgICAgIHByZWZpeDogYCR7dG9wTGV2ZWxUYWJsZU5hbWV9X2Jsb2Nrc19gLFxuICAgICAgICAgICAgICB9KVxuXG4gICAgICAgICAgICAgIGlmIChhZGFwdGVyLnRhYmxlc1tgJHt0YWJsZU5hbWV9JHthZGFwdGVyLmxvY2FsZXNTdWZmaXh9YF0pXG4gICAgICAgICAgICAgICAgd2l0aEJsb2NrLndpdGguX2xvY2FsZXMgPSBfbG9jYWxlc1xuICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3Mud2l0aFtibG9ja0tleV0gPSB3aXRoQmxvY2tcblxuICAgICAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEJsb2NrLFxuICAgICAgICAgICAgICAgIGN1cnJlbnRUYWJsZU5hbWU6IHRhYmxlTmFtZSxcbiAgICAgICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgICAgICBmaWVsZHM6IGJsb2NrLmZpZWxkcyxcbiAgICAgICAgICAgICAgICBwYXRoOiAnJyxcbiAgICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSlcblxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgY2FzZSAnZ3JvdXAnOlxuICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgIF9sb2NhbGVzLFxuICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZSxcbiAgICAgICAgICAgIGRlcHRoLFxuICAgICAgICAgICAgZmllbGRzOiBmaWVsZC5maWVsZHMsXG4gICAgICAgICAgICBwYXRoOiBgJHtwYXRofSR7ZmllbGQubmFtZX1fYCxcbiAgICAgICAgICAgIHRvcExldmVsQXJncyxcbiAgICAgICAgICAgIHRvcExldmVsVGFibGVOYW1lLFxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBicmVha1xuXG4gICAgICAgIGRlZmF1bHQ6IHtcbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9KVxuXG4gIHJldHVybiB0b3BMZXZlbEFyZ3Ncbn1cbiJdLCJuYW1lcyI6WyJ0cmF2ZXJzZUZpZWxkcyIsIl9sb2NhbGVzIiwiYWRhcHRlciIsImN1cnJlbnRBcmd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VsZC50eXBlID09PSAndGFicycpIHtcbiAgICAgIGZpZWxkLnRhYnMuZm9yRWFjaCgodGFiKSA9PiB7XG4gICAgICAgIGNvbnN0IHRhYlBhdGggPSB0YWJIYXNOYW1lKHRhYikgPyBgJHtwYXRofSR7dGFiLm5hbWV9X2AgOiBwYXRoXG5cbiAgICAgICAgdHJhdmVyc2VGaWVsZHMoe1xuICAgICAgICAgIF9sb2NhbGVzLFxuICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgY3VycmVudEFyZ3MsXG4gICAgICAgICAgY3VycmVudFRhYmxlTmFtZSxcbiAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICBmaWVsZHM6IHRhYi5maWVsZHMsXG4gICAgICAgICAgcGF0aDogdGFiUGF0aCxcbiAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgIH0pXG4gICAgICB9KVxuXG4gICAgICByZXR1cm5cbiAgICB9XG5cbiAgICBpZiAoZmllbGRBZmZlY3RzRGF0YShmaWVsZCkpIHtcbiAgICAgIHN3aXRjaCAoZmllbGQudHlwZSkge1xuICAgICAgICBjYXNlICdhcnJheSc6IHtcbiAgICAgICAgICBjb25zdCB3aXRoQXJyYXk6IFJlc3VsdCA9IHtcbiAgICAgICAgICAgIGNvbHVtbnM6IHtcbiAgICAgICAgICAgICAgX3BhcmVudElEOiBmYWxzZSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBvcmRlckJ5OiAoeyBfb3JkZXIgfSwgeyBhc2MgfSkgPT4gW2FzYyhfb3JkZXIpXSxcbiAgICAgICAgICAgIHdpdGg6IHt9LFxuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnN0IGFycmF5VGFibGVOYW1lID0gZ2V0VGFibGVOYW1lKHtcbiAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICBjb25maWc6IGZpZWxkLFxuICAgICAgICAgICAgcGFyZW50VGFibGVOYW1lOiBjdXJyZW50VGFibGVOYW1lLFxuICAgICAgICAgICAgcHJlZml4OiBgJHtjdXJyZW50VGFibGVOYW1lfV8ke3BhdGh9YCxcbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgY29uc3QgYXJyYXlUYWJsZU5hbWVXaXRoTG9jYWxlcyA9IGdldFRhYmxlTmFtZSh7XG4gICAgICAgICAgICBhZGFwdGVyLFxuICAgICAgICAgICAgY29uZmlnOiBmaWVsZCxcbiAgICAgICAgICAgIGxvY2FsZXM6IHRydWUsXG4gICAgICAgICAgICBwYXJlbnRUYWJsZU5hbWU6IGN1cnJlbnRUYWJsZU5hbWUsXG4gICAgICAgICAgICBwcmVmaXg6IGAke2N1cnJlbnRUYWJsZU5hbWV9XyR7cGF0aH1gLFxuICAgICAgICAgIH0pXG5cbiAgICAgICAgICBpZiAoYWRhcHRlci50YWJsZXNbYXJyYXlUYWJsZU5hbWVXaXRoTG9jYWxlc10pIHdpdGhBcnJheS53aXRoLl9sb2NhbGVzID0gX2xvY2FsZXNcbiAgICAgICAgICBjdXJyZW50QXJncy53aXRoW2Ake3BhdGh9JHtmaWVsZC5uYW1lfWBdID0gd2l0aEFycmF5XG5cbiAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICBfbG9jYWxlcyxcbiAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEFycmF5LFxuICAgICAgICAgICAgY3VycmVudFRhYmxlTmFtZTogYXJyYXlUYWJsZU5hbWUsXG4gICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgIGZpZWxkczogZmllbGQuZmllbGRzLFxuICAgICAgICAgICAgcGF0aDogJycsXG4gICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICB0b3BMZXZlbFRhYmxlTmFtZSxcbiAgICAgICAgICB9KVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ3NlbGVjdCc6IHtcbiAgICAgICAgICBpZiAoZmllbGQuaGFzTWFueSkge1xuICAgICAgICAgICAgY29uc3Qgd2l0aFNlbGVjdDogUmVzdWx0ID0ge1xuICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgaWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIG9yZGVyOiBmYWxzZSxcbiAgICAgICAgICAgICAgICBwYXJlbnQ6IGZhbHNlLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvcmRlckJ5OiAoeyBvcmRlciB9LCB7IGFzYyB9KSA9PiBbYXNjKG9yZGVyKV0sXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGN1cnJlbnRBcmdzLndpdGhbYCR7cGF0aH0ke2ZpZWxkLm5hbWV9YF0gPSB3aXRoU2VsZWN0XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ2Jsb2Nrcyc6XG4gICAgICAgICAgZmllbGQuYmxvY2tzLmZvckVhY2goKGJsb2NrKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBibG9ja0tleSA9IGBfYmxvY2tzXyR7YmxvY2suc2x1Z31gXG5cbiAgICAgICAgICAgIGlmICghdG9wTGV2ZWxBcmdzW2Jsb2NrS2V5XSkge1xuICAgICAgICAgICAgICBjb25zdCB3aXRoQmxvY2s6IFJlc3VsdCA9IHtcbiAgICAgICAgICAgICAgICBjb2x1bW5zOiB7XG4gICAgICAgICAgICAgICAgICBfcGFyZW50SUQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgb3JkZXJCeTogKHsgX29yZGVyIH0sIHsgYXNjIH0pID0+IFthc2MoX29yZGVyKV0sXG4gICAgICAgICAgICAgICAgd2l0aDoge30sXG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICBjb25zdCB0YWJsZU5hbWUgPSBnZXRUYWJsZU5hbWUoe1xuICAgICAgICAgICAgICAgIGFkYXB0ZXIsXG4gICAgICAgICAgICAgICAgY29uZmlnOiBibG9jayxcbiAgICAgICAgICAgICAgICBwYXJlbnRUYWJsZU5hbWU6IHRvcExldmVsVGFibGVOYW1lLFxuICAgICAgICAgICAgICAgIHByZWZpeDogYCR7dG9wTGV2ZWxUYWJsZU5hbWV9X2Jsb2Nrc19gLFxuICAgICAgICAgICAgICB9KVxuXG4gICAgICAgICAgICAgIGlmIChhZGFwdGVyLnRhYmxlc1tgJHt0YWJsZU5hbWV9JHthZGFwdGVyLmxvY2FsZXNTdWZmaXh9YF0pXG4gICAgICAgICAgICAgICAgd2l0aEJsb2NrLndpdGguX2xvY2FsZXMgPSBfbG9jYWxlc1xuICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3Mud2l0aFtibG9ja0tleV0gPSB3aXRoQmxvY2tcblxuICAgICAgICAgICAgICB0cmF2ZXJzZUZpZWxkcyh7XG4gICAgICAgICAgICAgICAgX2xvY2FsZXMsXG4gICAgICAgICAgICAgICAgYWRhcHRlcixcbiAgICAgICAgICAgICAgICBjdXJyZW50QXJnczogd2l0aEJsb2NrLFxuICAgICAgICAgICAgICAgIGN1cnJlbnRUYWJsZU5hbWU6IHRhYmxlTmFtZSxcbiAgICAgICAgICAgICAgICBkZXB0aCxcbiAgICAgICAgICAgICAgICBmaWVsZHM6IGJsb2NrLmZpZWxkcyxcbiAgICAgICAgICAgICAgICBwYXRoOiAnJyxcbiAgICAgICAgICAgICAgICB0b3BMZXZlbEFyZ3MsXG4gICAgICAgICAgICAgICAgdG9wTGV2ZWxUYWJsZU5hbWUsXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSlcblxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgY2FzZSAnZ3JvdXAnOlxuICAgICAgICAgIHRyYXZlcnNlRmllbGRzKHtcbiAgICAgICAgICAgIF9sb2NhbGVzLF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UFFVyxVQUFVLEVBQUUxQyxRQUFRMkMsYUFBYSxDQUFDLENBQUMsQ0FBQyxFQUN4REYsVUFBVWxCLElBQUksQ0FBQ3hCLFFBQVEsR0FBR0E7NEJBQzVCTyxhQUFhaUIsSUFBSSxDQUFDZ0IsU0FBUyxHQUFHRTs0QkFFOUIzQyxlQUFlO2dDQUNiQztnQ0FDQUM7Z0NBQ0FDLGFBQWF3QztnQ0FDYnZDLGtCQUFrQndDO2dDQUNsQnZDO2dDQUNBQyxRQUFRa0MsTUFBTWxDLE1BQU07Z0NBQ3BCQyxNQUFNO2dDQUNOQztnQ0FDQUM7NEJBQ0Y7d0JBQ0Y7b0JBQ0Y7b0JBRUE7Z0JBRUYsS0FBSztvQkFDSFQsZUFBZTt3QkFDYkM7d0JBQ0FDO3dCQUNBQzt3QkFDQUM7d0JBQ0FDO3dCQUNBQyxRQUFRSyxNQUFNTCxNQUFNO3dCQUNwQkMsTUFBTSxDQUFDLEVBQUVBLEtBQUssRUFBRUksTUFBTU0sSUFBSSxDQUFDLENBQUMsQ0FBQzt3QkFDN0JUO3dCQUNBQztvQkFDRjtvQkFFQTtnQkFFRjtvQkFBUzt3QkFDUDtvQkFDRjtZQUNGO1FBQ0Y7SUFDRjtJQUVBLE9BQU9EO0FBQ1QifQ==
|
package/dist/find.js
CHANGED
@@ -31,4 +31,4 @@ const find = async function find({ collection, limit, locale, page = 1, paginati
|
|
31
31
|
});
|
32
32
|
};
|
33
33
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxu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};
|
35
35
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kR2xvYmFsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEdsb2JhbCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuaW1wb3J0IHsgZmluZE1hbnkgfSBmcm9tICcuL2ZpbmQvZmluZE1hbnknXG5pbXBvcnQgeyBnZXRUYWJsZU5hbWUgfSBmcm9tICcuL3NjaGVtYS9nZXRUYWJsZU5hbWUnXG5cbmV4cG9ydCBjb25zdCBmaW5kR2xvYmFsOiBGaW5kR2xvYmFsID0gYXN5bmMgZnVuY3Rpb24gZmluZEdsb2JhbChcbiAgdGhpczogUG9zdGdyZXNBZGFwdGVyLFxuICB7IHNsdWcsIGxvY2FsZSwgcmVxLCB3aGVyZSB9LFxuKSB7XG4gIGNvbnN0IGdsb2JhbENvbmZpZyA9IHRoaXMucGF5bG9hZC5nbG9iYWxzLmNvbmZpZy5maW5kKChjb25maWcpID0+
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kR2xvYmFsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEdsb2JhbCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuaW1wb3J0IHsgZmluZE1hbnkgfSBmcm9tICcuL2ZpbmQvZmluZE1hbnknXG5pbXBvcnQgeyBnZXRUYWJsZU5hbWUgfSBmcm9tICcuL3NjaGVtYS9nZXRUYWJsZU5hbWUnXG5cbmV4cG9ydCBjb25zdC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QUksQ0FDMUUsQ0FBQyxFQUFFQyxJQUFJLEVBQUUsR0FBS0EsU0FBU2Y7SUFFekIsTUFBTU8sT0FBTyxPQUFPQyxZQUFZLFdBQVdBLFVBQVU7SUFFckQsTUFBTVEsWUFBWUMsSUFBQUEsMEJBQVksRUFBQztRQUM3QkMsU0FBUyxJQUFJO1FBQ2JMLFFBQVFIO1FBQ1JTLFVBQVU7SUFDWjtJQUNBLE1BQU1DLFNBQVNDLElBQUFBLGtDQUF3QixFQUFDWDtJQUV4QyxPQUFPWSxJQUFBQSxrQkFBUSxFQUFDO1FBQ2RKLFNBQVMsSUFBSTtRQUNiRTtRQUNBbkI7UUFDQUM7UUFDQUM7UUFDQUM7UUFDQUM7UUFDQUM7UUFDQUM7UUFDQVM7UUFDQVA7SUFDRjtBQUNGIn0=
|
package/dist/findOne.js
CHANGED
@@ -31,4 +31,4 @@ async function findOne({ collection, locale, req = {}, where }) {
|
|
31
31
|
return docs?.[0] || null;
|
32
32
|
}
|
33
33
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9maW5kT25lLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZE9uZUFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCwgU2FuaXRpemVkQ29sbGVjdGlvbkNvbmZpZywgVHlwZVdpdGhJRCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuaW1wb3J0IHsgZmluZE1hbnkgfSBmcm9tICcuL2ZpbmQvZmluZE1hbnknXG5pbXBvcnQgeyBnZXRUYWJsZU5hbWUgfSBmcm9tICcuL3NjaGVtYS9nZXRUYW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