@abinnovision/payloadcms-mcpx 1.0.0-beta.11 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -44
- package/dist/api-keys/fields.mjs +17 -4
- package/dist/capabilities.mjs +22 -3
- package/dist/endpoint/{result.mjs → errors.mjs} +4 -21
- package/dist/endpoint/handler.mjs +4 -2
- package/dist/endpoint/index.mjs +4 -0
- package/dist/endpoint/server.mjs +10 -5
- package/dist/index.d.mts +4 -5
- package/dist/index.mjs +2 -2
- package/dist/options.mjs +26 -9
- package/dist/plugin.mjs +1 -0
- package/dist/{write/draft-guard.d.mts → request.d.mts} +2 -2
- package/dist/request.mjs +8 -0
- package/dist/{endpoint/result.d.mts → result.d.mts} +1 -2
- package/dist/result.mjs +22 -0
- package/dist/schema/index.mjs +6 -0
- package/dist/schema/pointer.mjs +1 -1
- package/dist/schema/walk.mjs +11 -15
- package/dist/tools/{index.mjs → builtin.mjs} +4 -2
- package/dist/tools/create-document.mjs +14 -9
- package/dist/tools/describe-schema.mjs +3 -3
- package/dist/tools/find-documents.mjs +1 -2
- package/dist/tools/get-document.mjs +2 -2
- package/dist/tools/list-capabilities.mjs +3 -2
- package/dist/tools/names.mjs +2 -1
- package/dist/tools/patch-document.mjs +14 -15
- package/dist/tools/publish-document.mjs +81 -0
- package/dist/tools/shared.mjs +50 -5
- package/dist/tools/target.mjs +4 -4
- package/dist/tools/validate-document.mjs +8 -9
- package/dist/types.d.mts +44 -23
- package/dist/write/draft-guard.mjs +71 -36
- package/dist/write/patch.mjs +131 -57
- package/dist/write/publish-blockers.mjs +10 -3
- package/dist/write/publish-intent.mjs +39 -0
- package/dist/write/transaction.mjs +7 -1
- package/package.json +1 -1
- package/dist/i18n.d.mts +0 -1
- package/dist/schema/lexical.d.mts +0 -1
- package/dist/schema/walk.d.mts +0 -3
- package/dist/tools/target.d.mts +0 -3
- package/dist/write/publish-blockers.d.mts +0 -15
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "../tools/target.mjs";
|
|
2
|
-
import { PayloadRequest } from "payload";
|
|
3
|
-
//#region src/write/publish-blockers.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* One reason a human could not publish the draft as it stands.
|
|
6
|
-
*/
|
|
7
|
-
interface PublishBlocker {
|
|
8
|
-
/** Resolved field label path, e.g. "Layout > Block 2 (Hero) > Title". */
|
|
9
|
-
field?: string;
|
|
10
|
-
message: string;
|
|
11
|
-
/** JSON Pointer to the offending value, e.g. "/layout/2/title". */
|
|
12
|
-
path: string;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export type { PublishBlocker };
|