@zudello/modelcontextprotocol 1.1.0 → 1.1.1
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/dist/tools/admin/datasets/create-dataset.d.ts.map +1 -1
- package/dist/tools/admin/datasets/create-dataset.js +35 -3
- package/dist/tools/admin/datasets/create-dataset.js.map +1 -1
- package/dist/tools/admin/datasets/get-dataset.d.ts.map +1 -1
- package/dist/tools/admin/datasets/get-dataset.js +8 -2
- package/dist/tools/admin/datasets/get-dataset.js.map +1 -1
- package/dist/tools/admin/datasets/list-datasets.d.ts.map +1 -1
- package/dist/tools/admin/datasets/list-datasets.js +10 -3
- package/dist/tools/admin/datasets/list-datasets.js.map +1 -1
- package/dist/tools/admin/datasets/update-dataset.d.ts.map +1 -1
- package/dist/tools/admin/datasets/update-dataset.js +13 -3
- package/dist/tools/admin/datasets/update-dataset.js.map +1 -1
- package/dist/tools/admin/fields/create-field.d.ts.map +1 -1
- package/dist/tools/admin/fields/create-field.js +45 -3
- package/dist/tools/admin/fields/create-field.js.map +1 -1
- package/dist/tools/admin/fields/get-field.d.ts.map +1 -1
- package/dist/tools/admin/fields/get-field.js +9 -2
- package/dist/tools/admin/fields/get-field.js.map +1 -1
- package/dist/tools/admin/fields/list-fields.d.ts.map +1 -1
- package/dist/tools/admin/fields/list-fields.js +9 -3
- package/dist/tools/admin/fields/list-fields.js.map +1 -1
- package/dist/tools/admin/fields/update-field.d.ts.map +1 -1
- package/dist/tools/admin/fields/update-field.js +5 -3
- package/dist/tools/admin/fields/update-field.js.map +1 -1
- package/dist/tools/admin/quick-actions/create-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/create-quick-action.js +16 -3
- package/dist/tools/admin/quick-actions/create-quick-action.js.map +1 -1
- package/dist/tools/admin/quick-actions/get-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/get-quick-action.js +3 -2
- package/dist/tools/admin/quick-actions/get-quick-action.js.map +1 -1
- package/dist/tools/admin/quick-actions/list-quick-actions.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/list-quick-actions.js +12 -3
- package/dist/tools/admin/quick-actions/list-quick-actions.js.map +1 -1
- package/dist/tools/admin/quick-actions/trigger-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/trigger-quick-action.js +17 -4
- package/dist/tools/admin/quick-actions/trigger-quick-action.js.map +1 -1
- package/dist/tools/admin/quick-actions/update-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/update-quick-action.js +5 -2
- package/dist/tools/admin/quick-actions/update-quick-action.js.map +1 -1
- package/dist/tools/approvals/get-approval-flows.js +3 -3
- package/dist/tools/approvals/get-approval-flows.js.map +1 -1
- package/dist/tools/automation/get-run-logs-content.d.ts.map +1 -1
- package/dist/tools/automation/get-run-logs-content.js +3 -1
- package/dist/tools/automation/get-run-logs-content.js.map +1 -1
- package/dist/tools/automation/get-run-logs.d.ts.map +1 -1
- package/dist/tools/automation/get-run-logs.js +3 -1
- package/dist/tools/automation/get-run-logs.js.map +1 -1
- package/dist/tools/automation/get-script.d.ts.map +1 -1
- package/dist/tools/automation/get-script.js +3 -1
- package/dist/tools/automation/get-script.js.map +1 -1
- package/dist/tools/automation/get-trigger.d.ts.map +1 -1
- package/dist/tools/automation/get-trigger.js +3 -1
- package/dist/tools/automation/get-trigger.js.map +1 -1
- package/dist/tools/automation/list-scripts.d.ts.map +1 -1
- package/dist/tools/automation/list-scripts.js +5 -1
- package/dist/tools/automation/list-scripts.js.map +1 -1
- package/dist/tools/automation/search-runs.d.ts.map +1 -1
- package/dist/tools/automation/search-runs.js +3 -1
- package/dist/tools/automation/search-runs.js.map +1 -1
- package/dist/tools/config/list-configs.d.ts.map +1 -1
- package/dist/tools/config/list-configs.js +10 -3
- package/dist/tools/config/list-configs.js.map +1 -1
- package/dist/tools/control/initiate-sync.d.ts.map +1 -1
- package/dist/tools/control/initiate-sync.js +13 -3
- package/dist/tools/control/initiate-sync.js.map +1 -1
- package/dist/tools/control/set-trigger-enabled.d.ts.map +1 -1
- package/dist/tools/control/set-trigger-enabled.js +13 -3
- package/dist/tools/control/set-trigger-enabled.js.map +1 -1
- package/dist/tools/core/fetch.d.ts.map +1 -1
- package/dist/tools/core/fetch.js +12 -1
- package/dist/tools/core/fetch.js.map +1 -1
- package/dist/tools/core/push-message.d.ts.map +1 -1
- package/dist/tools/core/push-message.js +3 -1
- package/dist/tools/core/push-message.js.map +1 -1
- package/dist/tools/core/search.d.ts.map +1 -1
- package/dist/tools/core/search.js +28 -1
- package/dist/tools/core/search.js.map +1 -1
- package/dist/tools/document-context/check-contract-pricing.d.ts.map +1 -1
- package/dist/tools/document-context/check-contract-pricing.js +44 -1
- package/dist/tools/document-context/check-contract-pricing.js.map +1 -1
- package/dist/tools/document-context/check-document-budgets.d.ts.map +1 -1
- package/dist/tools/document-context/check-document-budgets.js +34 -1
- package/dist/tools/document-context/check-document-budgets.js.map +1 -1
- package/dist/tools/documents/document-types/create-document-type.d.ts.map +1 -1
- package/dist/tools/documents/document-types/create-document-type.js +24 -1
- package/dist/tools/documents/document-types/create-document-type.js.map +1 -1
- package/dist/tools/documents/document-types/get-document-type.d.ts.map +1 -1
- package/dist/tools/documents/document-types/get-document-type.js +11 -1
- package/dist/tools/documents/document-types/get-document-type.js.map +1 -1
- package/dist/tools/documents/document-types/get-merged-form-metadata.d.ts.map +1 -1
- package/dist/tools/documents/document-types/get-merged-form-metadata.js +13 -1
- package/dist/tools/documents/document-types/get-merged-form-metadata.js.map +1 -1
- package/dist/tools/documents/document-types/list-document-types.d.ts.map +1 -1
- package/dist/tools/documents/document-types/list-document-types.js +14 -1
- package/dist/tools/documents/document-types/list-document-types.js.map +1 -1
- package/dist/tools/documents/document-types/update-document-type.d.ts.map +1 -1
- package/dist/tools/documents/document-types/update-document-type.js +32 -1
- package/dist/tools/documents/document-types/update-document-type.js.map +1 -1
- package/dist/tools/documents/export-templates/create-export-template.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/create-export-template.js +35 -1
- package/dist/tools/documents/export-templates/create-export-template.js.map +1 -1
- package/dist/tools/documents/export-templates/get-export-download-url.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/get-export-download-url.js +6 -1
- package/dist/tools/documents/export-templates/get-export-download-url.js.map +1 -1
- package/dist/tools/documents/export-templates/get-export-template.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/get-export-template.js +3 -2
- package/dist/tools/documents/export-templates/get-export-template.js.map +1 -1
- package/dist/tools/documents/export-templates/list-export-templates.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/list-export-templates.js +12 -2
- package/dist/tools/documents/export-templates/list-export-templates.js.map +1 -1
- package/dist/tools/documents/export-templates/list-exports.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/list-exports.js +6 -1
- package/dist/tools/documents/export-templates/list-exports.js.map +1 -1
- package/dist/tools/documents/export-templates/run-export.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/run-export.js +20 -1
- package/dist/tools/documents/export-templates/run-export.js.map +1 -1
- package/dist/tools/documents/export-templates/update-export-template.d.ts.map +1 -1
- package/dist/tools/documents/export-templates/update-export-template.js +9 -1
- package/dist/tools/documents/export-templates/update-export-template.js.map +1 -1
- package/dist/tools/history/get-history.d.ts.map +1 -1
- package/dist/tools/history/get-history.js +9 -1
- package/dist/tools/history/get-history.js.map +1 -1
- package/dist/tools/inboxes/create-inbox-template.d.ts.map +1 -1
- package/dist/tools/inboxes/create-inbox-template.js +26 -1
- package/dist/tools/inboxes/create-inbox-template.js.map +1 -1
- package/dist/tools/inboxes/create-inbox.d.ts.map +1 -1
- package/dist/tools/inboxes/create-inbox.js +22 -1
- package/dist/tools/inboxes/create-inbox.js.map +1 -1
- package/dist/tools/inboxes/fetch-inbox.d.ts.map +1 -1
- package/dist/tools/inboxes/fetch-inbox.js +14 -1
- package/dist/tools/inboxes/fetch-inbox.js.map +1 -1
- package/dist/tools/inboxes/get-inbound-domain.d.ts.map +1 -1
- package/dist/tools/inboxes/get-inbound-domain.js +14 -1
- package/dist/tools/inboxes/get-inbound-domain.js.map +1 -1
- package/dist/tools/inboxes/list-inbox-templates.d.ts.map +1 -1
- package/dist/tools/inboxes/list-inbox-templates.js +26 -1
- package/dist/tools/inboxes/list-inbox-templates.js.map +1 -1
- package/dist/tools/inboxes/list-inboxes.d.ts.map +1 -1
- package/dist/tools/inboxes/list-inboxes.js +22 -1
- package/dist/tools/inboxes/list-inboxes.js.map +1 -1
- package/dist/tools/inboxes/update-inbox-template.d.ts.map +1 -1
- package/dist/tools/inboxes/update-inbox-template.js +22 -1
- package/dist/tools/inboxes/update-inbox-template.js.map +1 -1
- package/dist/tools/inboxes/update-inbox.d.ts.map +1 -1
- package/dist/tools/inboxes/update-inbox.js +22 -1
- package/dist/tools/inboxes/update-inbox.js.map +1 -1
- package/dist/tools/index.js +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/language/get-language-placeholders.d.ts.map +1 -1
- package/dist/tools/language/get-language-placeholders.js +33 -3
- package/dist/tools/language/get-language-placeholders.js.map +1 -1
- package/dist/tools/language/update-language-placeholders.d.ts.map +1 -1
- package/dist/tools/language/update-language-placeholders.js +21 -4
- package/dist/tools/language/update-language-placeholders.js.map +1 -1
- package/dist/tools/models/list-models.js +2 -2
- package/dist/tools/org-admin/teams/fetch-org-team.d.ts.map +1 -1
- package/dist/tools/org-admin/teams/fetch-org-team.js +15 -1
- package/dist/tools/org-admin/teams/fetch-org-team.js.map +1 -1
- package/dist/tools/org-admin/teams/list-org-teams.d.ts.map +1 -1
- package/dist/tools/org-admin/teams/list-org-teams.js +17 -1
- package/dist/tools/org-admin/teams/list-org-teams.js.map +1 -1
- package/dist/tools/org-admin/teams/update-org-team.d.ts.map +1 -1
- package/dist/tools/org-admin/teams/update-org-team.js +16 -1
- package/dist/tools/org-admin/teams/update-org-team.js.map +1 -1
- package/dist/tools/org-admin/users/assign-user-to-team.d.ts +1 -1
- package/dist/tools/org-admin/users/assign-user-to-team.d.ts.map +1 -1
- package/dist/tools/org-admin/users/assign-user-to-team.js +22 -4
- package/dist/tools/org-admin/users/assign-user-to-team.js.map +1 -1
- package/dist/tools/org-admin/users/create-org-user.d.ts.map +1 -1
- package/dist/tools/org-admin/users/create-org-user.js +15 -1
- package/dist/tools/org-admin/users/create-org-user.js.map +1 -1
- package/dist/tools/org-admin/users/fetch-org-user.d.ts.map +1 -1
- package/dist/tools/org-admin/users/fetch-org-user.js +15 -1
- package/dist/tools/org-admin/users/fetch-org-user.js.map +1 -1
- package/dist/tools/org-admin/users/index.d.ts +1 -1
- package/dist/tools/org-admin/users/index.d.ts.map +1 -1
- package/dist/tools/org-admin/users/index.js +1 -1
- package/dist/tools/org-admin/users/index.js.map +1 -1
- package/dist/tools/org-admin/users/list-org-user-groups.d.ts.map +1 -1
- package/dist/tools/org-admin/users/list-org-user-groups.js +20 -1
- package/dist/tools/org-admin/users/list-org-user-groups.js.map +1 -1
- package/dist/tools/org-admin/users/list-org-users.d.ts.map +1 -1
- package/dist/tools/org-admin/users/list-org-users.js +15 -1
- package/dist/tools/org-admin/users/list-org-users.js.map +1 -1
- package/dist/tools/org-admin/users/update-org-user.d.ts.map +1 -1
- package/dist/tools/org-admin/users/update-org-user.js +12 -1
- package/dist/tools/org-admin/users/update-org-user.js.map +1 -1
- package/dist/tools/resources/get-resources.d.ts.map +1 -1
- package/dist/tools/resources/get-resources.js +12 -3
- package/dist/tools/resources/get-resources.js.map +1 -1
- package/dist/tools/resources/update-or-create-resources.d.ts.map +1 -1
- package/dist/tools/resources/update-or-create-resources.js +36 -5
- package/dist/tools/resources/update-or-create-resources.js.map +1 -1
- package/dist/tools/sentences/create-sentence.d.ts.map +1 -1
- package/dist/tools/sentences/create-sentence.js +22 -1
- package/dist/tools/sentences/create-sentence.js.map +1 -1
- package/dist/tools/sentences/get-sentence-template.d.ts.map +1 -1
- package/dist/tools/sentences/get-sentence-template.js +3 -1
- package/dist/tools/sentences/get-sentence-template.js.map +1 -1
- package/dist/tools/sentences/get-sentence.d.ts.map +1 -1
- package/dist/tools/sentences/get-sentence.js +3 -1
- package/dist/tools/sentences/get-sentence.js.map +1 -1
- package/dist/tools/sentences/list-sentence-resources.d.ts.map +1 -1
- package/dist/tools/sentences/list-sentence-resources.js +11 -1
- package/dist/tools/sentences/list-sentence-resources.js.map +1 -1
- package/dist/tools/sentences/list-sentence-templates.d.ts.map +1 -1
- package/dist/tools/sentences/list-sentence-templates.js +5 -1
- package/dist/tools/sentences/list-sentence-templates.js.map +1 -1
- package/dist/tools/sentences/list-sentences.d.ts.map +1 -1
- package/dist/tools/sentences/list-sentences.js +7 -1
- package/dist/tools/sentences/list-sentences.js.map +1 -1
- package/dist/tools/sentences/update-sentence.d.ts.map +1 -1
- package/dist/tools/sentences/update-sentence.js +24 -1
- package/dist/tools/sentences/update-sentence.js.map +1 -1
- package/dist/tools/sentences/update-sentences-order.d.ts.map +1 -1
- package/dist/tools/sentences/update-sentences-order.js +16 -1
- package/dist/tools/sentences/update-sentences-order.js.map +1 -1
- package/dist/tools/users/get-user-groups.d.ts.map +1 -1
- package/dist/tools/users/get-user-groups.js +28 -3
- package/dist/tools/users/get-user-groups.js.map +1 -1
- package/dist/tools/users/get-users.d.ts.map +1 -1
- package/dist/tools/users/get-users.js +34 -3
- package/dist/tools/users/get-users.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-type.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-document-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-document-type.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-document-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;qBAcV,GAAG,eAAe,WAAW;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,17 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { getZudelloDocumentType } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloGetDocumentType = {
|
|
4
4
|
name: "zudelloGetDocumentType",
|
|
5
|
-
description:
|
|
5
|
+
description: `Get full details of a specific document type by UUID.
|
|
6
|
+
|
|
7
|
+
Returns the complete document type configuration including:
|
|
8
|
+
- Metadata (display, type, module, submodule, icon)
|
|
9
|
+
- settings.fields: Array of field definitions with path, label, editor config, validations
|
|
10
|
+
- settings.sections: Form sections (HEADER, CONTACT, LINES, TOTALS, etc.)
|
|
11
|
+
- settings.extensions: Enabled form behaviors and validations
|
|
12
|
+
- settings.statuses: Default status on create/revert
|
|
13
|
+
|
|
14
|
+
Use zudelloListDocumentTypes first to find the UUID of the document type you need.
|
|
15
|
+
This returns the RAW/EDITABLE version - for the rendered user view with merged field metadata, use zudelloGetMergedFormMetadata instead.`,
|
|
6
16
|
inputSchema: { type: "object", properties: { uuid: { type: "string" } }, required: ["uuid"] },
|
|
7
17
|
execute: async (input, authContext) => {
|
|
8
18
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-type.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-document-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"get-document-type.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-document-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE;;;;;;;;;;yIAU0H;IACvI,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE;IACtG,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,sBAAsB,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACvE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACpE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-merged-form-metadata.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-merged-form-metadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-merged-form-metadata.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-merged-form-metadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;qBAgBhB,GAAG,eAAe,WAAW;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,19 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { getZudelloMergedFormMetadata } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloGetMergedFormMetadata = {
|
|
4
4
|
name: "zudelloGetMergedFormMetadata",
|
|
5
|
-
description:
|
|
5
|
+
description: `Get the rendered/merged form metadata for a document type. This returns the document type with all field metadata merged from field settings.
|
|
6
|
+
|
|
7
|
+
This is the END-USER view of the form - use this when you need to understand what fields users actually see.
|
|
8
|
+
For the raw/editable configuration, use zudelloGetDocumentType instead.
|
|
9
|
+
|
|
10
|
+
The merged form includes:
|
|
11
|
+
- All field definitions with their complete editor configuration
|
|
12
|
+
- Section visibility and ordering
|
|
13
|
+
- Validation rules merged from field settings
|
|
14
|
+
- Extension behaviors
|
|
15
|
+
|
|
16
|
+
Identify the document type by module, submodule, and document type key (property).
|
|
17
|
+
Example: module='PURCHASING', submodule='INVOICE', documentType='INVOICE'`,
|
|
6
18
|
inputSchema: { type: "object", properties: { documentTypeUuid: { type: "string" } }, required: ["documentTypeUuid"] },
|
|
7
19
|
execute: async (input, authContext) => {
|
|
8
20
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-merged-form-metadata.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-merged-form-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAGlF,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"get-merged-form-metadata.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/get-merged-form-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAGlF,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE;;;;;;;;;;;;0EAY2D;IACxE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,kBAAkB,CAAC,EAAE;IAC9H,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,4BAA4B,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,IAAI,UAAU,EAAE,KAAK,CAAC,SAAS,IAAI,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;YACnJ,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YAC1E,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-document-types.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/list-document-types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;
|
|
1
|
+
{"version":3,"file":"list-document-types.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/list-document-types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;qBAiBZ,GAAG,eAAe,WAAW;;;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,20 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { listZudelloDocumentTypes } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloListDocumentTypes = {
|
|
4
4
|
name: "zudelloListDocumentTypes",
|
|
5
|
-
description:
|
|
5
|
+
description: `List document types (form layouts) in Zudello. Document types define the structure of forms like Purchase Orders, Invoices, Expenses, etc.
|
|
6
|
+
|
|
7
|
+
Each document type has:
|
|
8
|
+
- display: User-friendly name shown in UI
|
|
9
|
+
- type/property: Internal identifier (usually UPPER_SNAKE_CASE)
|
|
10
|
+
- module: Parent module (PURCHASING, EXPENSES, SALES, etc.)
|
|
11
|
+
- submodule: Document category within module (INVOICE, ORDER, CLAIM, etc.)
|
|
12
|
+
- settings: Contains fields, sections, and extensions configuration
|
|
13
|
+
- isDefaultCreate/isDefaultPipeline: Whether this is the default type for new documents
|
|
14
|
+
|
|
15
|
+
Filter by module and submodule to get document types for a specific area.
|
|
16
|
+
Use includePaths to limit returned fields for lighter responses:
|
|
17
|
+
- ["uuid", "payload.display", "payload.type", "payload.module", "payload.submodule"] for listings
|
|
18
|
+
- Omit includePaths for full payload including settings`,
|
|
6
19
|
inputSchema: { type: "object", properties: {} },
|
|
7
20
|
execute: async (input, authContext) => {
|
|
8
21
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-document-types.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/list-document-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"list-document-types.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/list-document-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE;;;;;;;;;;;;;wDAayC;IACtD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,EAAE;IACxD,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,wBAAwB,CAAC,WAAW,CAAC,CAAC;YAC7D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,EAAE,CAAC;QAClG,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,EAAE,EAAE,KAAc,CAAC,CAAC;YACnE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC;QAChF,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-document-type.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/update-document-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"update-document-type.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/update-document-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;qBAmCb,GAAG,eAAe,WAAW;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,38 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { updateZudelloDocumentType } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloUpdateDocumentType = {
|
|
4
4
|
name: "zudelloUpdateDocumentType",
|
|
5
|
-
description:
|
|
5
|
+
description: `Update an existing document type in Zudello.
|
|
6
|
+
|
|
7
|
+
IMPORTANT: Always use zudelloGetDocumentType first to retrieve the current configuration, then modify only what you need while preserving ALL other fields.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
1. Get current document type: zudelloGetDocumentType(uuid)
|
|
11
|
+
2. Copy the entire payload from the response
|
|
12
|
+
3. Modify only the specific fields/sections/extensions you need to change
|
|
13
|
+
4. Call this tool with the complete modified payload
|
|
14
|
+
|
|
15
|
+
## Settings Structure
|
|
16
|
+
The settings object contains:
|
|
17
|
+
- fields[]: Field definitions with path, label, editor, section, visible, editable, validations
|
|
18
|
+
- sections[]: Section definitions with key, label, order, visible, collapse, expandable
|
|
19
|
+
- extensions[]: Active extensions with name and optional params
|
|
20
|
+
- statuses: { create: "REVIEW", revert: "READY" } - status on create/revert
|
|
21
|
+
- toolbar: Toolbar configuration (usually empty: {})
|
|
22
|
+
|
|
23
|
+
## Field Definition Keys
|
|
24
|
+
- path: Field path (e.g., "document_number", "lines.description")
|
|
25
|
+
- label: Display label
|
|
26
|
+
- editor: { type: "TEXT"|"NUMERIC"|"DATE"|"DD_SINGLE"|"BOOLEAN", ... }
|
|
27
|
+
- section: { key: "HEADER"|"CONTACT"|"LINES", cols: 4, order: 0 }
|
|
28
|
+
- visible/editable: Boolean flags
|
|
29
|
+
- validations: [{ key: "required", level: "error", params: {} }]
|
|
30
|
+
- renderer: { width: 100, break: { after: true }, align: "right" }
|
|
31
|
+
|
|
32
|
+
## Section Definition Keys
|
|
33
|
+
- key: Unique identifier (HEADER, CONTACT, ADDRESS_DELIVERY, LINES, TOTALS)
|
|
34
|
+
- label: Display label
|
|
35
|
+
- order: Display order (0 = first)
|
|
36
|
+
- visible/collapse/expandable/editable/system: Boolean flags`,
|
|
6
37
|
inputSchema: { type: "object", properties: { uuid: { type: "string" } }, required: ["uuid"] },
|
|
7
38
|
execute: async (input, authContext) => {
|
|
8
39
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-document-type.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/update-document-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAG/E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"update-document-type.js","sourceRoot":"","sources":["../../../../src/tools/documents/document-types/update-document-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAG/E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DA+B8C;IAC3D,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE;IACtG,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,yBAAyB,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACrF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACvE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-export-template.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/create-export-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-export-template.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/create-export-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;qBAsCf,GAAG,eAAe,WAAW;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,41 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { createZudelloExportTemplate } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloCreateExportTemplate = {
|
|
4
4
|
name: "zudelloCreateExportTemplate",
|
|
5
|
-
description:
|
|
5
|
+
description: `Create a new export template in Zudello.
|
|
6
|
+
|
|
7
|
+
**IMPORTANT - Field Discovery:**
|
|
8
|
+
Before creating a template, call zudelloGetFieldMetadata with:
|
|
9
|
+
- modelName: The model (e.g., "Transaction", "Item")
|
|
10
|
+
- section: "filters"
|
|
11
|
+
- module: The target module (e.g., "PURCHASING")
|
|
12
|
+
- submodule: The target submodule (e.g., "INVOICE")
|
|
13
|
+
|
|
14
|
+
Use the 'path' values from the response for selected_fields.
|
|
15
|
+
|
|
16
|
+
**Export Types:**
|
|
17
|
+
- "csv": Structured data export with selected fields
|
|
18
|
+
- "originals": Export original file attachments
|
|
19
|
+
|
|
20
|
+
**Model Names by Module:**
|
|
21
|
+
- PURCHASING/SALES/EXPENSES/LEDGER: Transaction
|
|
22
|
+
- INVENTORY/CATALOGUE: Item
|
|
23
|
+
- DIMENSIONS/ACCOUNT: Account
|
|
24
|
+
- DIMENSIONS/LOCATION: Location
|
|
25
|
+
- DIMENSIONS/COST_CENTRE: CostCentre
|
|
26
|
+
- DIMENSIONS/PROJECT: Project
|
|
27
|
+
- RELATIONSHIPS/SUPPLIER: Supplier
|
|
28
|
+
- RELATIONSHIPS/CUSTOMER: Customer
|
|
29
|
+
- BUDGETS/BUDGET: Budget
|
|
30
|
+
|
|
31
|
+
**Filter Operators:**
|
|
32
|
+
- exact: Exact match (status: "COMPLETE")
|
|
33
|
+
- !exact: Not equal (status: !"DELETED")
|
|
34
|
+
- in: Value in list (status__in: ["REVIEW", "APPROVAL"])
|
|
35
|
+
- range: Between values (date_issued__range: ["2025-01-01", "2025-12-31"])
|
|
36
|
+
- gt/lt/gte/lte: Numeric/date comparisons
|
|
37
|
+
- icontains: Case-insensitive substring match
|
|
38
|
+
- isnull: Null check (value: true/false)
|
|
39
|
+
- date_on: Exact date match`,
|
|
6
40
|
inputSchema: { type: "object", properties: {} },
|
|
7
41
|
execute: async (input, authContext) => {
|
|
8
42
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-export-template.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/create-export-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"create-export-template.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/create-export-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkCa;IAC1B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,EAAE;IACxD,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,2BAA2B,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YACvE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACzE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-export-download-url.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-download-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-export-download-url.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-download-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;qBASf,GAAG,eAAe,WAAW;;;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,12 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { getZudelloExportDownloadUrl } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloGetExportDownloadUrl = {
|
|
4
4
|
name: "zudelloGetExportDownloadUrl",
|
|
5
|
-
description:
|
|
5
|
+
description: `Get the download URL for a completed export.
|
|
6
|
+
|
|
7
|
+
Returns a presigned S3 URL that can be used to download the export file.
|
|
8
|
+
The URL is temporary and will expire after a period of time.
|
|
9
|
+
|
|
10
|
+
Use zudelloListExports first to get the export UUID.`,
|
|
6
11
|
inputSchema: { type: "object", properties: { exportUuid: { type: "string" } }, required: ["exportUuid"] },
|
|
7
12
|
execute: async (input, authContext) => {
|
|
8
13
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-export-download-url.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-download-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"get-export-download-url.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-download-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE;;;;;qDAKsC;IACnD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE;IAClH,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,2BAA2B,CAAC,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;YAClF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACzE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-export-template.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-export-template.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;qBAaZ;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,eAAe,WAAW;;;;;;;;;CAkBlE,CAAC"}
|
|
@@ -2,9 +2,10 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { getZudelloExportTemplate } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloGetExportTemplate = {
|
|
4
4
|
name: "zudelloGetExportTemplate",
|
|
5
|
-
description: `Get details
|
|
5
|
+
description: `Get details of a specific export template by its UUID.
|
|
6
6
|
|
|
7
|
-
Returns
|
|
7
|
+
Returns the full template configuration including fields, filters, and module/submodule scope.
|
|
8
|
+
Use zudelloListExportTemplates first to find the UUID.`,
|
|
8
9
|
inputSchema: {
|
|
9
10
|
type: "object",
|
|
10
11
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-export-template.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"get-export-template.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/get-export-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE;;;uDAGwC;IACrD,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6BAA6B,EAAE;SACrE;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;IACD,OAAO,EAAE,KAAK,EAAE,KAAuB,EAAE,WAAwB,EAAE,EAAE;QACnE,IAAI,CAAC;YACH,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;YACzD,MAAM,QAAQ,GAAG,MAAM,wBAAwB,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAEzE,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,+BAA+B,CAAC,CAAC;YACrE,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,QAAQ,CAAC,IAAI;aACxB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACtE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-export-templates.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-export-templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,0BAA0B;;;;;;;
|
|
1
|
+
{"version":3,"file":"list-export-templates.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-export-templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,0BAA0B;;;;;;;qBAmBd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,WAAW;;;;;;;;;;;CAmBzE,CAAC"}
|
|
@@ -2,9 +2,19 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { listZudelloExportTemplates } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloListExportTemplates = {
|
|
4
4
|
name: "zudelloListExportTemplates",
|
|
5
|
-
description: `List all export templates.
|
|
5
|
+
description: `List all export templates in Zudello.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Export templates define reusable CSV export configurations for any module/submodule combination.
|
|
8
|
+
|
|
9
|
+
Each template includes:
|
|
10
|
+
- name: Display name for the template
|
|
11
|
+
- module/submodule: Document type scope (e.g., PURCHASING/INVOICE)
|
|
12
|
+
- model_name: Data model (Transaction, Item, Account, etc.)
|
|
13
|
+
- export_type: "csv" for data export, "originals" for file attachments
|
|
14
|
+
- selected_fields: Fields to include in export (use dot notation for related fields)
|
|
15
|
+
- raw_filter: Optional filters to apply during export
|
|
16
|
+
|
|
17
|
+
Use this to discover existing templates before creating new ones.`,
|
|
8
18
|
inputSchema: {
|
|
9
19
|
type: "object",
|
|
10
20
|
properties: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-export-templates.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-export-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"list-export-templates.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-export-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE;;;;;;;;;;;;kEAYmD;IAChE,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE,EAAE;KACf;IACD,OAAO,EAAE,KAAK,EAAE,KAA8B,EAAE,WAAwB,EAAE,EAAE;QAC1E,IAAI,CAAC;YACH,MAAM,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;YACpD,MAAM,QAAQ,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;YAE/D,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,iCAAiC,CAAC,CAAC;YACvE,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,QAAQ,CAAC,IAAI,IAAI,EAAE;gBAC9B,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC;aAClC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,EAAE,EAAE,KAAc,CAAC,CAAC;YACrE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;QAC5E,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-exports.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-exports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;
|
|
1
|
+
{"version":3,"file":"list-exports.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-exports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;qBASN,GAAG,eAAe,WAAW;;;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,12 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { listZudelloExports } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloListExports = {
|
|
4
4
|
name: "zudelloListExports",
|
|
5
|
-
description:
|
|
5
|
+
description: `List data exports that have been run.
|
|
6
|
+
|
|
7
|
+
Returns recent exports with their status, template name, and download information.
|
|
8
|
+
Use this after running an export to find its UUID, then call zudelloGetExportDownloadUrl.
|
|
9
|
+
|
|
10
|
+
Results are ordered by creation date (newest first).`,
|
|
6
11
|
inputSchema: { type: "object", properties: {} },
|
|
7
12
|
execute: async (input, authContext) => {
|
|
8
13
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-exports.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAGxE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"list-exports.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/list-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAGxE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE;;;;;qDAKsC;IACnD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,EAAE;IACxD,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,WAAW,CAAC,CAAC;YACvD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,EAAE,CAAC;QAC5F,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,EAAE,KAAc,CAAC,CAAC;YAC7D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC1E,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-export.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/run-export.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"run-export.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/run-export.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;qBAuBJ,GAAG,eAAe,WAAW;;;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,26 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { runZudelloExport } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloRunExport = {
|
|
4
4
|
name: "zudelloRunExport",
|
|
5
|
-
description:
|
|
5
|
+
description: `Run a data export using an existing template.
|
|
6
|
+
|
|
7
|
+
This triggers an async export job. The export will be created in the background.
|
|
8
|
+
After running, use zudelloListExports to check status and get the export UUID.
|
|
9
|
+
Then use zudelloGetExportDownloadUrl to get the download link.
|
|
10
|
+
|
|
11
|
+
**Required Parameters:**
|
|
12
|
+
- templateName: Name of the export template to use (must match exactly)
|
|
13
|
+
- userUuid: UUID of the user running the export (use context user UUID)
|
|
14
|
+
|
|
15
|
+
**Export Request:**
|
|
16
|
+
- model: Must match the template's model_name (e.g., "Transaction")
|
|
17
|
+
- select: Fields to export (usually matches template's selected_fields)
|
|
18
|
+
- filter: Must include module and submodule at minimum
|
|
19
|
+
|
|
20
|
+
**Workflow:**
|
|
21
|
+
1. Run export with this tool
|
|
22
|
+
2. Wait a few seconds for processing
|
|
23
|
+
3. Call zudelloListExports to find the new export
|
|
24
|
+
4. Call zudelloGetExportDownloadUrl with the export UUID`,
|
|
6
25
|
inputSchema: { type: "object", properties: { templateUuid: { type: "string" } }, required: ["templateUuid"] },
|
|
7
26
|
execute: async (input, authContext) => {
|
|
8
27
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-export.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/run-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAGtE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"run-export.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/run-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAGtE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE;;;;;;;;;;;;;;;;;;;yDAmB0C;IACvD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE;IACtH,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;YAC5H,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QAClD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YAC9D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-export-template.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/update-export-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"update-export-template.d.ts","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/update-export-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;qBAYf,GAAG,eAAe,WAAW;;;;;;;;;CASrD,CAAC"}
|
|
@@ -2,7 +2,15 @@ import { logger } from "../../../utils/logger.js";
|
|
|
2
2
|
import { updateZudelloExportTemplate } from "../../../services/zudello/index.js";
|
|
3
3
|
export const zudelloUpdateExportTemplate = {
|
|
4
4
|
name: "zudelloUpdateExportTemplate",
|
|
5
|
-
description:
|
|
5
|
+
description: `Update an existing export template.
|
|
6
|
+
|
|
7
|
+
**IMPORTANT - Field Discovery:**
|
|
8
|
+
Before updating, call zudelloGetFieldMetadata to verify field paths are valid for the module/submodule.
|
|
9
|
+
|
|
10
|
+
Provide the template UUID and the complete updated configuration.
|
|
11
|
+
All fields will be replaced with the new values.
|
|
12
|
+
|
|
13
|
+
First use zudelloGetExportTemplate to get current values, then modify as needed.`,
|
|
6
14
|
inputSchema: { type: "object", properties: { uuid: { type: "string" } }, required: ["uuid"] },
|
|
7
15
|
execute: async (input, authContext) => {
|
|
8
16
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-export-template.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/update-export-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"update-export-template.js","sourceRoot":"","sources":["../../../../src/tools/documents/export-templates/update-export-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE;;;;;;;;iFAQkE;IAC/E,WAAW,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE;IACtG,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,2BAA2B,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACnF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACzE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-history.d.ts","sourceRoot":"","sources":["../../../src/tools/history/get-history.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-history.d.ts","sourceRoot":"","sources":["../../../src/tools/history/get-history.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;qBAmBL;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,eAAe,WAAW;;;;;;;;;;;CAYlF,CAAC"}
|
|
@@ -2,7 +2,15 @@ import { logger } from "../../utils/logger.js";
|
|
|
2
2
|
import { getZudelloHistory } from "../../services/zudello/resources.js";
|
|
3
3
|
export const zudelloGetHistory = {
|
|
4
4
|
name: "zudelloGetHistory",
|
|
5
|
-
description:
|
|
5
|
+
description: `Get the audit/change history for a specific Zudello resource.
|
|
6
|
+
|
|
7
|
+
Returns a list of events showing what changed, when, and by whom. Useful for:
|
|
8
|
+
- Tracking document status changes
|
|
9
|
+
- Understanding who made modifications
|
|
10
|
+
- Auditing approval workflows
|
|
11
|
+
- Investigating issues
|
|
12
|
+
|
|
13
|
+
Valid models: Transaction, Item, Customer, Supplier, Employee, Budget, Contract, Account, Department, Location`,
|
|
6
14
|
inputSchema: {
|
|
7
15
|
type: "object",
|
|
8
16
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-history.js","sourceRoot":"","sources":["../../../src/tools/history/get-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"get-history.js","sourceRoot":"","sources":["../../../src/tools/history/get-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE;;;;;;;;+GAQgG;IAC7G,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;YACtD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE;SACrD;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;IACD,OAAO,EAAE,KAAK,EAAE,KAAuC,EAAE,WAAwB,EAAE,EAAE;QACnF,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,UAAU,CAAC,CAAC,uCAAuC;YAChF,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACzE,IAAI,CAAC,QAAQ,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,uBAAuB,CAAC,CAAC;YAClF,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC;YAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAClE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAc,CAAC,CAAC;YAClG,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC1E,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inbox-template.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,0BAA0B;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-inbox-template.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,0BAA0B;;;;;;;;;;;qBAgCd,GAAG,eAAe,WAAW;;;;;;;;;CAarD,CAAC"}
|
|
@@ -2,7 +2,32 @@ import { logger } from "../../utils/logger.js";
|
|
|
2
2
|
import { createInboxTemplate } from "../../services/zudello/index.js";
|
|
3
3
|
export const zudelloCreateInboxTemplate = {
|
|
4
4
|
name: "zudelloCreateInboxTemplate",
|
|
5
|
-
description:
|
|
5
|
+
description: `Create a new inbox template (email template) for outbound communications.
|
|
6
|
+
|
|
7
|
+
Inbox templates define the email structure sent from Zudello inboxes, including
|
|
8
|
+
subject line and HTML body with support for dynamic field placeholders.
|
|
9
|
+
|
|
10
|
+
**REQUIRED INPUT:**
|
|
11
|
+
- name: Display name for the template
|
|
12
|
+
- section: Module section (e.g., "PURCHASING", "SALES", "EXPENSES")
|
|
13
|
+
- subject: Email subject line (can include {{placeholders}})
|
|
14
|
+
- body: HTML email body content (can include {{placeholders}})
|
|
15
|
+
|
|
16
|
+
**PLACEHOLDER SYNTAX:**
|
|
17
|
+
Use {{field_path}} for dynamic values. Common placeholders:
|
|
18
|
+
- {{document_number}} - Document/invoice number
|
|
19
|
+
- {{company_name}} - Company name
|
|
20
|
+
- {{company_email}} - Company email address
|
|
21
|
+
- {{company_tax}} - Company tax/ABN number
|
|
22
|
+
- {{delivery_address.state}} - Delivery state
|
|
23
|
+
- {{delivery_address.country}} - Delivery country
|
|
24
|
+
- {{supplier_name}} - Supplier name
|
|
25
|
+
- {{total_amount}} - Total amount
|
|
26
|
+
|
|
27
|
+
**USE CASES:**
|
|
28
|
+
- Create email templates for different document types
|
|
29
|
+
- Set up department-specific email communications
|
|
30
|
+
- Configure automated notifications with dynamic content`,
|
|
6
31
|
inputSchema: {
|
|
7
32
|
type: "object",
|
|
8
33
|
properties: { name: { type: "string" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inbox-template.js","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"create-inbox-template.js","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;yDAyB0C;IACvD,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KACzC;IACD,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,mBAAmB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YAC/D,IAAI,CAAC,QAAQ,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,kBAAkB,CAAC,CAAC;YAC7E,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,QAAQ,CAAC,IAAI;aACxB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YACxE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inbox.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-inbox.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;qBA4BN,GAAG,eAAe,WAAW;;;;;;;;;CAarD,CAAC"}
|
|
@@ -2,7 +2,28 @@ import { logger } from "../../utils/logger.js";
|
|
|
2
2
|
import { createInbox } from "../../services/zudello/index.js";
|
|
3
3
|
export const zudelloCreateInbox = {
|
|
4
4
|
name: "zudelloCreateInbox",
|
|
5
|
-
description:
|
|
5
|
+
description: `Create a new email inbox for receiving documents.
|
|
6
|
+
|
|
7
|
+
Creates an inbox that can receive documents via email forwarding.
|
|
8
|
+
Emails sent to {mailbox}@{inbound_domain} will be processed.
|
|
9
|
+
|
|
10
|
+
**REQUIRED INPUT:**
|
|
11
|
+
- name: Display name for the inbox
|
|
12
|
+
- mailbox: Email prefix/mailbox name (used as part of email address)
|
|
13
|
+
- resourceModule: Target module for documents (e.g., "PURCHASING", "SALES")
|
|
14
|
+
|
|
15
|
+
**OPTIONAL INPUT:**
|
|
16
|
+
- subsidiaryUuid: UUID of subsidiary to associate
|
|
17
|
+
- locationUuid: UUID of location to associate
|
|
18
|
+
|
|
19
|
+
**EMAIL ADDRESS FORMAT:**
|
|
20
|
+
The inbox will receive emails at: {mailbox}@{inbound_domain}
|
|
21
|
+
Use zudelloGetInboundDomain to get the domain.
|
|
22
|
+
|
|
23
|
+
**USE CASES:**
|
|
24
|
+
- Create dedicated inboxes for different document types
|
|
25
|
+
- Set up regional inboxes for local suppliers
|
|
26
|
+
- Create inboxes for specific departments or cost centers`,
|
|
6
27
|
inputSchema: {
|
|
7
28
|
type: "object",
|
|
8
29
|
properties: { name: { type: "string" }, email: { type: "string" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inbox.js","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"create-inbox.js","sourceRoot":"","sources":["../../../src/tools/inboxes/create-inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;0DAqB2C;IACxD,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KACpE;IACD,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YACvD,IAAI,CAAC,QAAQ,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,kBAAkB,CAAC,CAAC;YAC7E,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,QAAQ,CAAC,IAAI;aACrB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YAChE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-inbox.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/fetch-inbox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fetch-inbox.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/fetch-inbox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;qBAoBL,GAAG,eAAe,WAAW;;;;;;;;;CAarD,CAAC"}
|
|
@@ -2,7 +2,20 @@ import { logger } from "../../utils/logger.js";
|
|
|
2
2
|
import { fetchInbox } from "../../services/zudello/index.js";
|
|
3
3
|
export const zudelloFetchInbox = {
|
|
4
4
|
name: "zudelloFetchInbox",
|
|
5
|
-
description:
|
|
5
|
+
description: `Fetch detailed information about a specific inbox.
|
|
6
|
+
|
|
7
|
+
Returns full inbox details including associated template configuration.
|
|
8
|
+
|
|
9
|
+
**REQUIRED INPUT:**
|
|
10
|
+
- inboxUuid: The UUID of the inbox to fetch
|
|
11
|
+
|
|
12
|
+
**RESPONSE STRUCTURE:**
|
|
13
|
+
Returns complete inbox object with nested template details.
|
|
14
|
+
|
|
15
|
+
**USE CASES:**
|
|
16
|
+
- Get inbox email address for sharing
|
|
17
|
+
- Verify inbox template association before processing
|
|
18
|
+
- Check inbox activity status`,
|
|
6
19
|
inputSchema: {
|
|
7
20
|
type: "object",
|
|
8
21
|
properties: { uuid: { type: "string", description: "Inbox UUID" } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-inbox.js","sourceRoot":"","sources":["../../../src/tools/inboxes/fetch-inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"fetch-inbox.js","sourceRoot":"","sources":["../../../src/tools/inboxes/fetch-inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE;;;;;;;;;;;;;8BAae;IAC5B,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE;KACpE;IACD,OAAO,EAAE,KAAK,EAAE,KAAU,EAAE,WAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAC3D,IAAI,CAAC,QAAQ,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,kBAAkB,CAAC,CAAC;YAC7E,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,QAAQ,CAAC,IAAI;aACrB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;YAC/D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-domain.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/get-inbound-domain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,uBAAuB;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-inbound-domain.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/get-inbound-domain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,uBAAuB;;;;;;;qBAoBX,GAAG,eAAe,WAAW;;;;;;;;;;;CAarD,CAAC"}
|