@keystrokehq/nusii_proposals 0.1.0
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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/archive-proposal.cjs +32 -0
- package/dist/actions/archive-proposal.cjs.map +1 -0
- package/dist/actions/archive-proposal.d.cts +9 -0
- package/dist/actions/archive-proposal.d.cts.map +1 -0
- package/dist/actions/archive-proposal.d.mts +9 -0
- package/dist/actions/archive-proposal.d.mts.map +1 -0
- package/dist/actions/archive-proposal.mjs +31 -0
- package/dist/actions/archive-proposal.mjs.map +1 -0
- package/dist/actions/create-client.cjs +49 -0
- package/dist/actions/create-client.cjs.map +1 -0
- package/dist/actions/create-client.d.cts +9 -0
- package/dist/actions/create-client.d.cts.map +1 -0
- package/dist/actions/create-client.d.mts +9 -0
- package/dist/actions/create-client.d.mts.map +1 -0
- package/dist/actions/create-client.mjs +46 -0
- package/dist/actions/create-client.mjs.map +1 -0
- package/dist/actions/create-line-item.cjs +40 -0
- package/dist/actions/create-line-item.cjs.map +1 -0
- package/dist/actions/create-line-item.d.cts +9 -0
- package/dist/actions/create-line-item.d.cts.map +1 -0
- package/dist/actions/create-line-item.d.mts +9 -0
- package/dist/actions/create-line-item.d.mts.map +1 -0
- package/dist/actions/create-line-item.mjs +39 -0
- package/dist/actions/create-line-item.mjs.map +1 -0
- package/dist/actions/create-proposal.cjs +41 -0
- package/dist/actions/create-proposal.cjs.map +1 -0
- package/dist/actions/create-proposal.d.cts +9 -0
- package/dist/actions/create-proposal.d.cts.map +1 -0
- package/dist/actions/create-proposal.d.mts +9 -0
- package/dist/actions/create-proposal.d.mts.map +1 -0
- package/dist/actions/create-proposal.mjs +38 -0
- package/dist/actions/create-proposal.mjs.map +1 -0
- package/dist/actions/create-section.cjs +46 -0
- package/dist/actions/create-section.cjs.map +1 -0
- package/dist/actions/create-section.d.cts +9 -0
- package/dist/actions/create-section.d.cts.map +1 -0
- package/dist/actions/create-section.d.mts +9 -0
- package/dist/actions/create-section.d.mts.map +1 -0
- package/dist/actions/create-section.mjs +45 -0
- package/dist/actions/create-section.mjs.map +1 -0
- package/dist/actions/create-webhook-endpoint.cjs +28 -0
- package/dist/actions/create-webhook-endpoint.cjs.map +1 -0
- package/dist/actions/create-webhook-endpoint.d.cts +9 -0
- package/dist/actions/create-webhook-endpoint.d.cts.map +1 -0
- package/dist/actions/create-webhook-endpoint.d.mts +9 -0
- package/dist/actions/create-webhook-endpoint.d.mts.map +1 -0
- package/dist/actions/create-webhook-endpoint.mjs +27 -0
- package/dist/actions/create-webhook-endpoint.mjs.map +1 -0
- package/dist/actions/delete-client.cjs +38 -0
- package/dist/actions/delete-client.cjs.map +1 -0
- package/dist/actions/delete-client.d.cts +9 -0
- package/dist/actions/delete-client.d.cts.map +1 -0
- package/dist/actions/delete-client.d.mts +9 -0
- package/dist/actions/delete-client.d.mts.map +1 -0
- package/dist/actions/delete-client.mjs +37 -0
- package/dist/actions/delete-client.mjs.map +1 -0
- package/dist/actions/delete-line-item.cjs +37 -0
- package/dist/actions/delete-line-item.cjs.map +1 -0
- package/dist/actions/delete-line-item.d.cts +9 -0
- package/dist/actions/delete-line-item.d.cts.map +1 -0
- package/dist/actions/delete-line-item.d.mts +9 -0
- package/dist/actions/delete-line-item.d.mts.map +1 -0
- package/dist/actions/delete-line-item.mjs +36 -0
- package/dist/actions/delete-line-item.mjs.map +1 -0
- package/dist/actions/delete-proposal.cjs +31 -0
- package/dist/actions/delete-proposal.cjs.map +1 -0
- package/dist/actions/delete-proposal.d.cts +9 -0
- package/dist/actions/delete-proposal.d.cts.map +1 -0
- package/dist/actions/delete-proposal.d.mts +9 -0
- package/dist/actions/delete-proposal.d.mts.map +1 -0
- package/dist/actions/delete-proposal.mjs +30 -0
- package/dist/actions/delete-proposal.mjs.map +1 -0
- package/dist/actions/delete-section.cjs +41 -0
- package/dist/actions/delete-section.cjs.map +1 -0
- package/dist/actions/delete-section.d.cts +9 -0
- package/dist/actions/delete-section.d.cts.map +1 -0
- package/dist/actions/delete-section.d.mts +9 -0
- package/dist/actions/delete-section.d.mts.map +1 -0
- package/dist/actions/delete-section.mjs +40 -0
- package/dist/actions/delete-section.mjs.map +1 -0
- package/dist/actions/delete-webhook-endpoint.cjs +25 -0
- package/dist/actions/delete-webhook-endpoint.cjs.map +1 -0
- package/dist/actions/delete-webhook-endpoint.d.cts +9 -0
- package/dist/actions/delete-webhook-endpoint.d.cts.map +1 -0
- package/dist/actions/delete-webhook-endpoint.d.mts +9 -0
- package/dist/actions/delete-webhook-endpoint.d.mts.map +1 -0
- package/dist/actions/delete-webhook-endpoint.mjs +24 -0
- package/dist/actions/delete-webhook-endpoint.mjs.map +1 -0
- package/dist/actions/get-account-me.cjs +36 -0
- package/dist/actions/get-account-me.cjs.map +1 -0
- package/dist/actions/get-account-me.d.cts +9 -0
- package/dist/actions/get-account-me.d.cts.map +1 -0
- package/dist/actions/get-account-me.d.mts +9 -0
- package/dist/actions/get-account-me.d.mts.map +1 -0
- package/dist/actions/get-account-me.mjs +35 -0
- package/dist/actions/get-account-me.mjs.map +1 -0
- package/dist/actions/get-client.cjs +38 -0
- package/dist/actions/get-client.cjs.map +1 -0
- package/dist/actions/get-client.d.cts +9 -0
- package/dist/actions/get-client.d.cts.map +1 -0
- package/dist/actions/get-client.d.mts +9 -0
- package/dist/actions/get-client.d.mts.map +1 -0
- package/dist/actions/get-client.mjs +37 -0
- package/dist/actions/get-client.mjs.map +1 -0
- package/dist/actions/get-proposal.cjs +33 -0
- package/dist/actions/get-proposal.cjs.map +1 -0
- package/dist/actions/get-proposal.d.cts +9 -0
- package/dist/actions/get-proposal.d.cts.map +1 -0
- package/dist/actions/get-proposal.d.mts +9 -0
- package/dist/actions/get-proposal.d.mts.map +1 -0
- package/dist/actions/get-proposal.mjs +32 -0
- package/dist/actions/get-proposal.mjs.map +1 -0
- package/dist/actions/get-section.cjs +41 -0
- package/dist/actions/get-section.cjs.map +1 -0
- package/dist/actions/get-section.d.cts +9 -0
- package/dist/actions/get-section.d.cts.map +1 -0
- package/dist/actions/get-section.d.mts +9 -0
- package/dist/actions/get-section.d.mts.map +1 -0
- package/dist/actions/get-section.mjs +40 -0
- package/dist/actions/get-section.mjs.map +1 -0
- package/dist/actions/get-webhook-endpoint.cjs +25 -0
- package/dist/actions/get-webhook-endpoint.cjs.map +1 -0
- package/dist/actions/get-webhook-endpoint.d.cts +9 -0
- package/dist/actions/get-webhook-endpoint.d.cts.map +1 -0
- package/dist/actions/get-webhook-endpoint.d.mts +9 -0
- package/dist/actions/get-webhook-endpoint.d.mts.map +1 -0
- package/dist/actions/get-webhook-endpoint.mjs +24 -0
- package/dist/actions/get-webhook-endpoint.mjs.map +1 -0
- package/dist/actions/index.cjs +59 -0
- package/dist/actions/index.d.cts +30 -0
- package/dist/actions/index.d.mts +30 -0
- package/dist/actions/index.mjs +30 -0
- package/dist/actions/list-clients.cjs +51 -0
- package/dist/actions/list-clients.cjs.map +1 -0
- package/dist/actions/list-clients.d.cts +9 -0
- package/dist/actions/list-clients.d.cts.map +1 -0
- package/dist/actions/list-clients.d.mts +9 -0
- package/dist/actions/list-clients.d.mts.map +1 -0
- package/dist/actions/list-clients.mjs +50 -0
- package/dist/actions/list-clients.mjs.map +1 -0
- package/dist/actions/list-line-items.cjs +50 -0
- package/dist/actions/list-line-items.cjs.map +1 -0
- package/dist/actions/list-line-items.d.cts +9 -0
- package/dist/actions/list-line-items.d.cts.map +1 -0
- package/dist/actions/list-line-items.d.mts +9 -0
- package/dist/actions/list-line-items.d.mts.map +1 -0
- package/dist/actions/list-line-items.mjs +49 -0
- package/dist/actions/list-line-items.mjs.map +1 -0
- package/dist/actions/list-proposal-activities.cjs +53 -0
- package/dist/actions/list-proposal-activities.cjs.map +1 -0
- package/dist/actions/list-proposal-activities.d.cts +9 -0
- package/dist/actions/list-proposal-activities.d.cts.map +1 -0
- package/dist/actions/list-proposal-activities.d.mts +9 -0
- package/dist/actions/list-proposal-activities.d.mts.map +1 -0
- package/dist/actions/list-proposal-activities.mjs +52 -0
- package/dist/actions/list-proposal-activities.mjs.map +1 -0
- package/dist/actions/list-proposals.cjs +59 -0
- package/dist/actions/list-proposals.cjs.map +1 -0
- package/dist/actions/list-proposals.d.cts +9 -0
- package/dist/actions/list-proposals.d.cts.map +1 -0
- package/dist/actions/list-proposals.d.mts +9 -0
- package/dist/actions/list-proposals.d.mts.map +1 -0
- package/dist/actions/list-proposals.mjs +58 -0
- package/dist/actions/list-proposals.mjs.map +1 -0
- package/dist/actions/list-section-line-items.cjs +37 -0
- package/dist/actions/list-section-line-items.cjs.map +1 -0
- package/dist/actions/list-section-line-items.d.cts +9 -0
- package/dist/actions/list-section-line-items.d.cts.map +1 -0
- package/dist/actions/list-section-line-items.d.mts +9 -0
- package/dist/actions/list-section-line-items.d.mts.map +1 -0
- package/dist/actions/list-section-line-items.mjs +36 -0
- package/dist/actions/list-section-line-items.mjs.map +1 -0
- package/dist/actions/list-sections.cjs +64 -0
- package/dist/actions/list-sections.cjs.map +1 -0
- package/dist/actions/list-sections.d.cts +9 -0
- package/dist/actions/list-sections.d.cts.map +1 -0
- package/dist/actions/list-sections.d.mts +9 -0
- package/dist/actions/list-sections.d.mts.map +1 -0
- package/dist/actions/list-sections.mjs +63 -0
- package/dist/actions/list-sections.mjs.map +1 -0
- package/dist/actions/list-themes.cjs +20 -0
- package/dist/actions/list-themes.cjs.map +1 -0
- package/dist/actions/list-themes.d.cts +9 -0
- package/dist/actions/list-themes.d.cts.map +1 -0
- package/dist/actions/list-themes.d.mts +9 -0
- package/dist/actions/list-themes.d.mts.map +1 -0
- package/dist/actions/list-themes.mjs +19 -0
- package/dist/actions/list-themes.mjs.map +1 -0
- package/dist/actions/list-users.cjs +38 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +37 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/list-webhook-endpoints.cjs +38 -0
- package/dist/actions/list-webhook-endpoints.cjs.map +1 -0
- package/dist/actions/list-webhook-endpoints.d.cts +9 -0
- package/dist/actions/list-webhook-endpoints.d.cts.map +1 -0
- package/dist/actions/list-webhook-endpoints.d.mts +9 -0
- package/dist/actions/list-webhook-endpoints.d.mts.map +1 -0
- package/dist/actions/list-webhook-endpoints.mjs +37 -0
- package/dist/actions/list-webhook-endpoints.mjs.map +1 -0
- package/dist/actions/update-client.cjs +58 -0
- package/dist/actions/update-client.cjs.map +1 -0
- package/dist/actions/update-client.d.cts +9 -0
- package/dist/actions/update-client.d.cts.map +1 -0
- package/dist/actions/update-client.d.mts +9 -0
- package/dist/actions/update-client.d.mts.map +1 -0
- package/dist/actions/update-client.mjs +57 -0
- package/dist/actions/update-client.mjs.map +1 -0
- package/dist/actions/update-line-item.cjs +59 -0
- package/dist/actions/update-line-item.cjs.map +1 -0
- package/dist/actions/update-line-item.d.cts +9 -0
- package/dist/actions/update-line-item.d.cts.map +1 -0
- package/dist/actions/update-line-item.d.mts +9 -0
- package/dist/actions/update-line-item.d.mts.map +1 -0
- package/dist/actions/update-line-item.mjs +56 -0
- package/dist/actions/update-line-item.mjs.map +1 -0
- package/dist/actions/update-proposal.cjs +55 -0
- package/dist/actions/update-proposal.cjs.map +1 -0
- package/dist/actions/update-proposal.d.cts +9 -0
- package/dist/actions/update-proposal.d.cts.map +1 -0
- package/dist/actions/update-proposal.d.mts +9 -0
- package/dist/actions/update-proposal.d.mts.map +1 -0
- package/dist/actions/update-proposal.mjs +54 -0
- package/dist/actions/update-proposal.mjs.map +1 -0
- package/dist/actions/update-section.cjs +49 -0
- package/dist/actions/update-section.cjs.map +1 -0
- package/dist/actions/update-section.d.cts +9 -0
- package/dist/actions/update-section.d.cts.map +1 -0
- package/dist/actions/update-section.d.mts +9 -0
- package/dist/actions/update-section.d.mts.map +1 -0
- package/dist/actions/update-section.mjs +46 -0
- package/dist/actions/update-section.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +64 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.mts +32 -0
- package/dist/index.mjs +33 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/nusii_proposals
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `nusii_proposals`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 29
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { nusiiProposalsArchiveProposal } from "@keystrokehq/nusii_proposals/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "nusii_proposals-agent",
|
|
15
|
+
tools: [nusiiProposalsArchiveProposal],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.nusiiProposals.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeNusiiProposalsTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["nusiiProposals","executeNusiiProposalsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nusiiProposals } from \"./app\";\nimport { executeNusiiProposalsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return nusiiProposals.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNusiiProposalsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,eAAe,OAAO;EAC3B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,0BAA0B,MAAM,KAAgC,CAAC;EACjG;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { nusiiProposals } from "./app.mjs";
|
|
2
|
+
import { executeNusiiProposalsTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return nusiiProposals.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeNusiiProposalsTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nusiiProposals } from \"./app\";\nimport { executeNusiiProposalsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return nusiiProposals.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNusiiProposalsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,eAAe,OAAO;EAC3B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,0BAA0B,MAAM,KAAgC,CAAC;EACjG;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/archive-proposal.ts
|
|
4
|
+
const NusiiProposalsArchiveProposalInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the proposal to archive.") }).describe("Request model for archiving a proposal.");
|
|
5
|
+
const NusiiProposalsArchiveProposal_ProposalAttributesSchema = zod.z.object({
|
|
6
|
+
title: zod.z.string().describe("Title of the proposal.").nullable().optional(),
|
|
7
|
+
status: zod.z.string().describe("Current proposal status (e.g., 'draft').").nullable().optional(),
|
|
8
|
+
currency: zod.z.string().describe("Proposal currency code (e.g., 'USD').").nullable().optional(),
|
|
9
|
+
client_id: zod.z.number().int().describe("Associated client ID.").nullable().optional(),
|
|
10
|
+
public_id: zod.z.string().describe("Public-facing proposal identifier.").nullable().optional(),
|
|
11
|
+
sender_id: zod.z.number().int().describe("ID of user sending the proposal.").nullable().optional(),
|
|
12
|
+
account_id: zod.z.number().int().describe("Associated account ID.").nullable().optional(),
|
|
13
|
+
archived_at: zod.z.string().describe("Timestamp when proposal was archived (ISO 8601 format).").nullable().optional(),
|
|
14
|
+
prepared_by_id: zod.z.number().int().describe("ID of user who created the proposal.").nullable().optional()
|
|
15
|
+
}).describe("Attributes of the archived proposal.");
|
|
16
|
+
const NusiiProposalsArchiveProposal_ProposalDataSchema = zod.z.object({
|
|
17
|
+
id: zod.z.string().describe("Proposal identifier."),
|
|
18
|
+
type: zod.z.string().describe("Resource type, value is 'proposals'."),
|
|
19
|
+
attributes: NusiiProposalsArchiveProposal_ProposalAttributesSchema.nullable()
|
|
20
|
+
}).describe("Data object containing proposal information.");
|
|
21
|
+
const NusiiProposalsArchiveProposalOutput = zod.z.object({ data: NusiiProposalsArchiveProposal_ProposalDataSchema.nullable() }).describe("Response model for archiving a proposal.");
|
|
22
|
+
const nusiiProposalsArchiveProposal = require_action.action("NUSII_PROPOSALS_ARCHIVE_PROPOSAL", {
|
|
23
|
+
slug: "nusii_proposals-archive-proposal",
|
|
24
|
+
name: "Archive Proposal",
|
|
25
|
+
description: "Tool to archive a specific proposal in Nusii. Use when you need to archive a proposal that is no longer active.",
|
|
26
|
+
input: NusiiProposalsArchiveProposalInput,
|
|
27
|
+
output: NusiiProposalsArchiveProposalOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.nusiiProposalsArchiveProposal = nusiiProposalsArchiveProposal;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=archive-proposal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-proposal.cjs","names":["z","action"],"sources":["../../src/actions/archive-proposal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsArchiveProposalInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the proposal to archive.\"),\n}).describe(\"Request model for archiving a proposal.\");\nconst NusiiProposalsArchiveProposal_ProposalAttributesSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the proposal.\").nullable().optional(),\n status: z.string().describe(\"Current proposal status (e.g., 'draft').\").nullable().optional(),\n currency: z.string().describe(\"Proposal currency code (e.g., 'USD').\").nullable().optional(),\n client_id: z.number().int().describe(\"Associated client ID.\").nullable().optional(),\n public_id: z.string().describe(\"Public-facing proposal identifier.\").nullable().optional(),\n sender_id: z.number().int().describe(\"ID of user sending the proposal.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n archived_at: z.string().describe(\"Timestamp when proposal was archived (ISO 8601 format).\").nullable().optional(),\n prepared_by_id: z.number().int().describe(\"ID of user who created the proposal.\").nullable().optional(),\n}).describe(\"Attributes of the archived proposal.\");\nconst NusiiProposalsArchiveProposal_ProposalDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Proposal identifier.\"),\n type: z.string().describe(\"Resource type, value is 'proposals'.\"),\n attributes: NusiiProposalsArchiveProposal_ProposalAttributesSchema.nullable(),\n}).describe(\"Data object containing proposal information.\");\nexport const NusiiProposalsArchiveProposalOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsArchiveProposal_ProposalDataSchema.nullable(),\n}).describe(\"Response model for archiving a proposal.\");\n\nexport const nusiiProposalsArchiveProposal = action(\"NUSII_PROPOSALS_ARCHIVE_PROPOSAL\", {\n slug: \"nusii_proposals-archive-proposal\",\n name: \"Archive Proposal\",\n description: \"Tool to archive a specific proposal in Nusii. Use when you need to archive a proposal that is no longer active.\",\n input: NusiiProposalsArchiveProposalInput,\n output: NusiiProposalsArchiveProposalOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EAC7E,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,YAAY,uDAAuD,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,MAAM,iDAAiD,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/archive-proposal.d.ts
|
|
4
|
+
declare const NusiiProposalsArchiveProposalInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsArchiveProposalOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsArchiveProposal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsArchiveProposal };
|
|
9
|
+
//# sourceMappingURL=archive-proposal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-proposal.d.cts","names":[],"sources":["../../src/actions/archive-proposal.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEG;AAAA,cAiBzC,mCAAA,EAAqC,CAAA,CAAE,UAEG;AAAA,cAE1C,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/archive-proposal.d.ts
|
|
4
|
+
declare const NusiiProposalsArchiveProposalInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsArchiveProposalOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsArchiveProposal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsArchiveProposal };
|
|
9
|
+
//# sourceMappingURL=archive-proposal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-proposal.d.mts","names":[],"sources":["../../src/actions/archive-proposal.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEG;AAAA,cAiBzC,mCAAA,EAAqC,CAAA,CAAE,UAEG;AAAA,cAE1C,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/archive-proposal.ts
|
|
4
|
+
const NusiiProposalsArchiveProposalInput = z.object({ id: z.string().describe("The unique identifier of the proposal to archive.") }).describe("Request model for archiving a proposal.");
|
|
5
|
+
const NusiiProposalsArchiveProposal_ProposalAttributesSchema = z.object({
|
|
6
|
+
title: z.string().describe("Title of the proposal.").nullable().optional(),
|
|
7
|
+
status: z.string().describe("Current proposal status (e.g., 'draft').").nullable().optional(),
|
|
8
|
+
currency: z.string().describe("Proposal currency code (e.g., 'USD').").nullable().optional(),
|
|
9
|
+
client_id: z.number().int().describe("Associated client ID.").nullable().optional(),
|
|
10
|
+
public_id: z.string().describe("Public-facing proposal identifier.").nullable().optional(),
|
|
11
|
+
sender_id: z.number().int().describe("ID of user sending the proposal.").nullable().optional(),
|
|
12
|
+
account_id: z.number().int().describe("Associated account ID.").nullable().optional(),
|
|
13
|
+
archived_at: z.string().describe("Timestamp when proposal was archived (ISO 8601 format).").nullable().optional(),
|
|
14
|
+
prepared_by_id: z.number().int().describe("ID of user who created the proposal.").nullable().optional()
|
|
15
|
+
}).describe("Attributes of the archived proposal.");
|
|
16
|
+
const NusiiProposalsArchiveProposal_ProposalDataSchema = z.object({
|
|
17
|
+
id: z.string().describe("Proposal identifier."),
|
|
18
|
+
type: z.string().describe("Resource type, value is 'proposals'."),
|
|
19
|
+
attributes: NusiiProposalsArchiveProposal_ProposalAttributesSchema.nullable()
|
|
20
|
+
}).describe("Data object containing proposal information.");
|
|
21
|
+
const nusiiProposalsArchiveProposal = action("NUSII_PROPOSALS_ARCHIVE_PROPOSAL", {
|
|
22
|
+
slug: "nusii_proposals-archive-proposal",
|
|
23
|
+
name: "Archive Proposal",
|
|
24
|
+
description: "Tool to archive a specific proposal in Nusii. Use when you need to archive a proposal that is no longer active.",
|
|
25
|
+
input: NusiiProposalsArchiveProposalInput,
|
|
26
|
+
output: z.object({ data: NusiiProposalsArchiveProposal_ProposalDataSchema.nullable() }).describe("Response model for archiving a proposal.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { nusiiProposalsArchiveProposal };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=archive-proposal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-proposal.mjs","names":[],"sources":["../../src/actions/archive-proposal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsArchiveProposalInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the proposal to archive.\"),\n}).describe(\"Request model for archiving a proposal.\");\nconst NusiiProposalsArchiveProposal_ProposalAttributesSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the proposal.\").nullable().optional(),\n status: z.string().describe(\"Current proposal status (e.g., 'draft').\").nullable().optional(),\n currency: z.string().describe(\"Proposal currency code (e.g., 'USD').\").nullable().optional(),\n client_id: z.number().int().describe(\"Associated client ID.\").nullable().optional(),\n public_id: z.string().describe(\"Public-facing proposal identifier.\").nullable().optional(),\n sender_id: z.number().int().describe(\"ID of user sending the proposal.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n archived_at: z.string().describe(\"Timestamp when proposal was archived (ISO 8601 format).\").nullable().optional(),\n prepared_by_id: z.number().int().describe(\"ID of user who created the proposal.\").nullable().optional(),\n}).describe(\"Attributes of the archived proposal.\");\nconst NusiiProposalsArchiveProposal_ProposalDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Proposal identifier.\"),\n type: z.string().describe(\"Resource type, value is 'proposals'.\"),\n attributes: NusiiProposalsArchiveProposal_ProposalAttributesSchema.nullable(),\n}).describe(\"Data object containing proposal information.\");\nexport const NusiiProposalsArchiveProposalOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsArchiveProposal_ProposalDataSchema.nullable(),\n}).describe(\"Response model for archiving a proposal.\");\n\nexport const nusiiProposalsArchiveProposal = action(\"NUSII_PROPOSALS_ARCHIVE_PROPOSAL\", {\n slug: \"nusii_proposals-archive-proposal\",\n name: \"Archive Proposal\",\n description: \"Tool to archive a specific proposal in Nusii. Use when you need to archive a proposal that is no longer active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OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,YAAY,uDAAuD,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAK1D,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+D,EAAE,OAAO,EACxE,MAAM,iDAAiD,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-client.ts
|
|
4
|
+
const NusiiProposalsCreateClientInput = zod.z.object({
|
|
5
|
+
web: zod.z.string().describe("Client's website").optional(),
|
|
6
|
+
city: zod.z.string().describe("Client's city").optional(),
|
|
7
|
+
name: zod.z.string().describe("Client's first name (required)"),
|
|
8
|
+
email: zod.z.string().describe("Client's email address (required)"),
|
|
9
|
+
state: zod.z.string().describe("Client's state name").optional(),
|
|
10
|
+
locale: zod.z.string().describe("Client's language preference for proposals").optional(),
|
|
11
|
+
address: zod.z.string().describe("Client's street address").optional(),
|
|
12
|
+
country: zod.z.string().describe("Client's country name").optional(),
|
|
13
|
+
surname: zod.z.string().describe("Client's last name").optional(),
|
|
14
|
+
business: zod.z.string().describe("Client's company name").optional(),
|
|
15
|
+
currency: zod.z.string().describe("Client's currency (defaults to account's default or USD)").optional(),
|
|
16
|
+
postcode: zod.z.string().describe("Client's postal code").optional(),
|
|
17
|
+
telephone: zod.z.string().describe("Client's phone number").optional(),
|
|
18
|
+
pdf_page_size: zod.z.string().describe("PDF page size preference (default: A4)").optional()
|
|
19
|
+
});
|
|
20
|
+
const NusiiProposalsCreateClientOutput = zod.z.object({
|
|
21
|
+
id: zod.z.string().describe("Client's unique identifier").nullable().optional(),
|
|
22
|
+
web: zod.z.string().describe("Client's website").nullable().optional(),
|
|
23
|
+
city: zod.z.string().describe("Client's city").nullable().optional(),
|
|
24
|
+
name: zod.z.string().describe("Client's first name").nullable().optional(),
|
|
25
|
+
type: zod.z.string().describe("Resource type").nullable().optional(),
|
|
26
|
+
email: zod.z.string().describe("Client's email address").nullable().optional(),
|
|
27
|
+
state: zod.z.string().describe("Client's state name").nullable().optional(),
|
|
28
|
+
locale: zod.z.string().describe("Client's language preference").nullable().optional(),
|
|
29
|
+
address: zod.z.string().describe("Client's street address").nullable().optional(),
|
|
30
|
+
country: zod.z.string().describe("Client's country name").nullable().optional(),
|
|
31
|
+
surname: zod.z.string().describe("Client's last name").nullable().optional(),
|
|
32
|
+
business: zod.z.string().describe("Client's company name").nullable().optional(),
|
|
33
|
+
currency: zod.z.string().describe("Client's currency").nullable().optional(),
|
|
34
|
+
postcode: zod.z.string().describe("Client's postal code").nullable().optional(),
|
|
35
|
+
full_name: zod.z.string().describe("Client's full name").nullable().optional(),
|
|
36
|
+
telephone: zod.z.string().describe("Client's phone number").nullable().optional(),
|
|
37
|
+
pdf_page_size: zod.z.string().describe("PDF page size preference").nullable().optional()
|
|
38
|
+
});
|
|
39
|
+
const nusiiProposalsCreateClient = require_action.action("NUSII_PROPOSALS_CREATE_CLIENT", {
|
|
40
|
+
slug: "nusii_proposals-create-client",
|
|
41
|
+
name: "Create Client",
|
|
42
|
+
description: "Tool to create a new client in Nusii Proposals. Use when you need to add a client with their contact and business details. Returns the created client's information including unique identifier.",
|
|
43
|
+
input: NusiiProposalsCreateClientInput,
|
|
44
|
+
output: NusiiProposalsCreateClientOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.nusiiProposalsCreateClient = nusiiProposalsCreateClient;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=create-client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client.cjs","names":["z","action"],"sources":["../../src/actions/create-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateClientInput: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Client's website\").optional(),\n city: z.string().describe(\"Client's city\").optional(),\n name: z.string().describe(\"Client's first name (required)\"),\n email: z.string().describe(\"Client's email address (required)\"),\n state: z.string().describe(\"Client's state name\").optional(),\n locale: z.string().describe(\"Client's language preference for proposals\").optional(),\n address: z.string().describe(\"Client's street address\").optional(),\n country: z.string().describe(\"Client's country name\").optional(),\n surname: z.string().describe(\"Client's last name\").optional(),\n business: z.string().describe(\"Client's company name\").optional(),\n currency: z.string().describe(\"Client's currency (defaults to account's default or USD)\").optional(),\n postcode: z.string().describe(\"Client's postal code\").optional(),\n telephone: z.string().describe(\"Client's phone number\").optional(),\n pdf_page_size: z.string().describe(\"PDF page size preference (default: A4)\").optional(),\n});\nexport const NusiiProposalsCreateClientOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Client's unique identifier\").nullable().optional(),\n web: z.string().describe(\"Client's website\").nullable().optional(),\n city: z.string().describe(\"Client's city\").nullable().optional(),\n name: z.string().describe(\"Client's first name\").nullable().optional(),\n type: z.string().describe(\"Resource type\").nullable().optional(),\n email: z.string().describe(\"Client's email address\").nullable().optional(),\n state: z.string().describe(\"Client's state name\").nullable().optional(),\n locale: z.string().describe(\"Client's language preference\").nullable().optional(),\n address: z.string().describe(\"Client's street address\").nullable().optional(),\n country: z.string().describe(\"Client's country name\").nullable().optional(),\n surname: z.string().describe(\"Client's last name\").nullable().optional(),\n business: z.string().describe(\"Client's company name\").nullable().optional(),\n currency: z.string().describe(\"Client's currency\").nullable().optional(),\n postcode: z.string().describe(\"Client's postal code\").nullable().optional(),\n full_name: z.string().describe(\"Client's full name\").nullable().optional(),\n telephone: z.string().describe(\"Client's phone number\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF page size preference\").nullable().optional(),\n});\n\nexport const nusiiProposalsCreateClient = action(\"NUSII_PROPOSALS_CREATE_CLIENT\", {\n slug: \"nusii_proposals-create-client\",\n name: \"Create Client\",\n description: \"Tool to create a new client in Nusii Proposals. Use when you need to add a client with their contact and business details. Returns the created client's information including unique identifier.\",\n input: NusiiProposalsCreateClientInput,\n output: NusiiProposalsCreateClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAa,mCAAiDA,IAAA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AAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-client.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateClientInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateClientOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateClient };
|
|
9
|
+
//# sourceMappingURL=create-client.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client.d.cts","names":[],"sources":["../../src/actions/create-client.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAe9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAkB/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-client.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateClientInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateClientOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateClient };
|
|
9
|
+
//# sourceMappingURL=create-client.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client.d.mts","names":[],"sources":["../../src/actions/create-client.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAe9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAkB/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const nusiiProposalsCreateClient = action("NUSII_PROPOSALS_CREATE_CLIENT", {
|
|
4
|
+
slug: "nusii_proposals-create-client",
|
|
5
|
+
name: "Create Client",
|
|
6
|
+
description: "Tool to create a new client in Nusii Proposals. Use when you need to add a client with their contact and business details. Returns the created client's information including unique identifier.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
web: z.string().describe("Client's website").optional(),
|
|
9
|
+
city: z.string().describe("Client's city").optional(),
|
|
10
|
+
name: z.string().describe("Client's first name (required)"),
|
|
11
|
+
email: z.string().describe("Client's email address (required)"),
|
|
12
|
+
state: z.string().describe("Client's state name").optional(),
|
|
13
|
+
locale: z.string().describe("Client's language preference for proposals").optional(),
|
|
14
|
+
address: z.string().describe("Client's street address").optional(),
|
|
15
|
+
country: z.string().describe("Client's country name").optional(),
|
|
16
|
+
surname: z.string().describe("Client's last name").optional(),
|
|
17
|
+
business: z.string().describe("Client's company name").optional(),
|
|
18
|
+
currency: z.string().describe("Client's currency (defaults to account's default or USD)").optional(),
|
|
19
|
+
postcode: z.string().describe("Client's postal code").optional(),
|
|
20
|
+
telephone: z.string().describe("Client's phone number").optional(),
|
|
21
|
+
pdf_page_size: z.string().describe("PDF page size preference (default: A4)").optional()
|
|
22
|
+
}),
|
|
23
|
+
output: z.object({
|
|
24
|
+
id: z.string().describe("Client's unique identifier").nullable().optional(),
|
|
25
|
+
web: z.string().describe("Client's website").nullable().optional(),
|
|
26
|
+
city: z.string().describe("Client's city").nullable().optional(),
|
|
27
|
+
name: z.string().describe("Client's first name").nullable().optional(),
|
|
28
|
+
type: z.string().describe("Resource type").nullable().optional(),
|
|
29
|
+
email: z.string().describe("Client's email address").nullable().optional(),
|
|
30
|
+
state: z.string().describe("Client's state name").nullable().optional(),
|
|
31
|
+
locale: z.string().describe("Client's language preference").nullable().optional(),
|
|
32
|
+
address: z.string().describe("Client's street address").nullable().optional(),
|
|
33
|
+
country: z.string().describe("Client's country name").nullable().optional(),
|
|
34
|
+
surname: z.string().describe("Client's last name").nullable().optional(),
|
|
35
|
+
business: z.string().describe("Client's company name").nullable().optional(),
|
|
36
|
+
currency: z.string().describe("Client's currency").nullable().optional(),
|
|
37
|
+
postcode: z.string().describe("Client's postal code").nullable().optional(),
|
|
38
|
+
full_name: z.string().describe("Client's full name").nullable().optional(),
|
|
39
|
+
telephone: z.string().describe("Client's phone number").nullable().optional(),
|
|
40
|
+
pdf_page_size: z.string().describe("PDF page size preference").nullable().optional()
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { nusiiProposalsCreateClient };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=create-client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-client.mjs","names":[],"sources":["../../src/actions/create-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateClientInput: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Client's website\").optional(),\n city: z.string().describe(\"Client's city\").optional(),\n name: z.string().describe(\"Client's first name (required)\"),\n email: z.string().describe(\"Client's email address (required)\"),\n state: z.string().describe(\"Client's state name\").optional(),\n locale: z.string().describe(\"Client's language preference for proposals\").optional(),\n address: z.string().describe(\"Client's street address\").optional(),\n country: z.string().describe(\"Client's country name\").optional(),\n surname: z.string().describe(\"Client's last name\").optional(),\n business: z.string().describe(\"Client's company name\").optional(),\n currency: z.string().describe(\"Client's currency (defaults to account's default or USD)\").optional(),\n postcode: z.string().describe(\"Client's postal code\").optional(),\n telephone: z.string().describe(\"Client's phone number\").optional(),\n pdf_page_size: z.string().describe(\"PDF page size preference (default: A4)\").optional(),\n});\nexport const NusiiProposalsCreateClientOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Client's unique identifier\").nullable().optional(),\n web: z.string().describe(\"Client's website\").nullable().optional(),\n city: z.string().describe(\"Client's city\").nullable().optional(),\n name: z.string().describe(\"Client's first name\").nullable().optional(),\n type: z.string().describe(\"Resource type\").nullable().optional(),\n email: z.string().describe(\"Client's email address\").nullable().optional(),\n state: z.string().describe(\"Client's state name\").nullable().optional(),\n locale: z.string().describe(\"Client's language preference\").nullable().optional(),\n address: z.string().describe(\"Client's street address\").nullable().optional(),\n country: z.string().describe(\"Client's country name\").nullable().optional(),\n surname: z.string().describe(\"Client's last name\").nullable().optional(),\n business: z.string().describe(\"Client's company name\").nullable().optional(),\n currency: z.string().describe(\"Client's currency\").nullable().optional(),\n postcode: z.string().describe(\"Client's postal code\").nullable().optional(),\n full_name: z.string().describe(\"Client's full name\").nullable().optional(),\n telephone: z.string().describe(\"Client's phone number\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF page size preference\").nullable().optional(),\n});\n\nexport const nusiiProposalsCreateClient = action(\"NUSII_PROPOSALS_CREATE_CLIENT\", {\n slug: \"nusii_proposals-create-client\",\n name: \"Create Client\",\n description: \"Tool to create a new client in Nusii Proposals. Use when you need to add a client with their contact and business details. Returns the created client's information including unique identifier.\",\n input: NusiiProposalsCreateClientInput,\n output: NusiiProposalsCreateClientOutput,\n});\n"],"mappings":";;AAwCA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxC2D,EAAE,OAAO;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,eAAe,EAAE,OAAO,CAAC,CAAC,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AAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-line-item.ts
|
|
4
|
+
const NusiiProposalsCreateLineItemInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Descriptive name/body of the line item.").optional(),
|
|
6
|
+
amount: zod.z.number().int().describe("Cost amount in cents (e.g., 10000 for $100.00).").optional(),
|
|
7
|
+
per_type: zod.z.string().describe("For per-type costs - 'year', 'month', 'week', 'day', 'hour', 'item', or 'unit'. Only applicable when cost_type is 'per'.").optional(),
|
|
8
|
+
position: zod.z.number().int().describe("Order position of the line item within the section.").optional(),
|
|
9
|
+
quantity: zod.z.number().int().describe("Multiplier for per-type costs (total = quantity × amount). Only applicable when cost_type is 'per'.").optional(),
|
|
10
|
+
cost_type: zod.z.string().describe("Type of cost - 'fixed', 'recurring', or 'per'. Default is 'fixed'.").optional(),
|
|
11
|
+
section_id: zod.z.number().int().describe("The ID of the section to create the line item in."),
|
|
12
|
+
recurring_type: zod.z.string().describe("For recurring costs - 'yearly', 'semiannually', 'trimester', 'monthly', 'weekly', 'daily', or 'hourly'. Only applicable when cost_type is 'recurring'.").optional()
|
|
13
|
+
}).describe("Request parameters for creating a line item within a proposal section.");
|
|
14
|
+
const NusiiProposalsCreateLineItem_LineItemAttributesSchema = zod.z.object({
|
|
15
|
+
name: zod.z.string().describe("Line item description/name.").nullable().optional(),
|
|
16
|
+
currency: zod.z.string().describe("Currency code (e.g., 'GBP', 'USD').").nullable().optional(),
|
|
17
|
+
created_at: zod.z.string().describe("Creation timestamp.").nullable().optional(),
|
|
18
|
+
section_id: zod.z.number().int().describe("ID of the parent section.").nullable().optional(),
|
|
19
|
+
total_in_cents: zod.z.number().int().describe("Total cost calculation in cents.").nullable().optional(),
|
|
20
|
+
amount_in_cents: zod.z.number().int().describe("Cost amount in cents.").nullable().optional(),
|
|
21
|
+
total_formatted: zod.z.string().describe("Human-readable formatted total.").nullable().optional(),
|
|
22
|
+
amount_formatted: zod.z.string().describe("Human-readable formatted cost (e.g., '£100.00').").nullable().optional()
|
|
23
|
+
}).describe("Attributes of a line item in the response.");
|
|
24
|
+
const NusiiProposalsCreateLineItem_LineItemDataSchema = zod.z.object({
|
|
25
|
+
id: zod.z.string().describe("Unique identifier for the line item.").nullable().optional(),
|
|
26
|
+
type: zod.z.string().describe("Resource type ('line_items').").nullable().optional(),
|
|
27
|
+
attributes: NusiiProposalsCreateLineItem_LineItemAttributesSchema.nullable().optional()
|
|
28
|
+
}).describe("Data container for a line item in JSON:API format.");
|
|
29
|
+
const NusiiProposalsCreateLineItemOutput = zod.z.object({ data: NusiiProposalsCreateLineItem_LineItemDataSchema.nullable().optional() }).describe("Response schema for creating a line item.");
|
|
30
|
+
const nusiiProposalsCreateLineItem = require_action.action("NUSII_PROPOSALS_CREATE_LINE_ITEM", {
|
|
31
|
+
slug: "nusii_proposals-create-line-item",
|
|
32
|
+
name: "Create Line Item",
|
|
33
|
+
description: "Tool to create a line item within a proposal section. Use when you need to add a cost item to a specific section of a proposal.",
|
|
34
|
+
input: NusiiProposalsCreateLineItemInput,
|
|
35
|
+
output: NusiiProposalsCreateLineItemOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.nusiiProposalsCreateLineItem = nusiiProposalsCreateLineItem;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=create-line-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-line-item.cjs","names":["z","action"],"sources":["../../src/actions/create-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateLineItemInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Descriptive name/body of the line item.\").optional(),\n amount: z.number().int().describe(\"Cost amount in cents (e.g., 10000 for $100.00).\").optional(),\n per_type: z.string().describe(\"For per-type costs - 'year', 'month', 'week', 'day', 'hour', 'item', or 'unit'. Only applicable when cost_type is 'per'.\").optional(),\n position: z.number().int().describe(\"Order position of the line item within the section.\").optional(),\n quantity: z.number().int().describe(\"Multiplier for per-type costs (total = quantity × amount). Only applicable when cost_type is 'per'.\").optional(),\n cost_type: z.string().describe(\"Type of cost - 'fixed', 'recurring', or 'per'. Default is 'fixed'.\").optional(),\n section_id: z.number().int().describe(\"The ID of the section to create the line item in.\"),\n recurring_type: z.string().describe(\"For recurring costs - 'yearly', 'semiannually', 'trimester', 'monthly', 'weekly', 'daily', or 'hourly'. Only applicable when cost_type is 'recurring'.\").optional(),\n}).describe(\"Request parameters for creating a line item within a proposal section.\");\nconst NusiiProposalsCreateLineItem_LineItemAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Line item description/name.\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., 'GBP', 'USD').\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n section_id: z.number().int().describe(\"ID of the parent section.\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Total cost calculation in cents.\").nullable().optional(),\n amount_in_cents: z.number().int().describe(\"Cost amount in cents.\").nullable().optional(),\n total_formatted: z.string().describe(\"Human-readable formatted total.\").nullable().optional(),\n amount_formatted: z.string().describe(\"Human-readable formatted cost (e.g., '£100.00').\").nullable().optional(),\n}).describe(\"Attributes of a line item in the response.\");\nconst NusiiProposalsCreateLineItem_LineItemDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the line item.\").nullable().optional(),\n type: z.string().describe(\"Resource type ('line_items').\").nullable().optional(),\n attributes: NusiiProposalsCreateLineItem_LineItemAttributesSchema.nullable().optional(),\n}).describe(\"Data container for a line item in JSON:API format.\");\nexport const NusiiProposalsCreateLineItemOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsCreateLineItem_LineItemDataSchema.nullable().optional(),\n}).describe(\"Response schema for creating a line item.\");\n\nexport const nusiiProposalsCreateLineItem = action(\"NUSII_PROPOSALS_CREATE_LINE_ITEM\", {\n slug: \"nusii_proposals-create-line-item\",\n name: \"Create Line Item\",\n description: \"Tool to create a line item within a proposal section. Use when you need to add a cost item to a specific section of a proposal.\",\n input: NusiiProposalsCreateLineItemInput,\n output: NusiiProposalsCreateLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACnK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACpJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ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CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-line-item.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateLineItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateLineItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateLineItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateLineItem };
|
|
9
|
+
//# sourceMappingURL=create-line-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-line-item.d.cts","names":[],"sources":["../../src/actions/create-line-item.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UASmC;AAAA,cAgBxE,kCAAA,EAAoC,CAAA,CAAE,UAEK;AAAA,cAE3C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-line-item.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateLineItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateLineItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateLineItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateLineItem };
|
|
9
|
+
//# sourceMappingURL=create-line-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-line-item.d.mts","names":[],"sources":["../../src/actions/create-line-item.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UASmC;AAAA,cAgBxE,kCAAA,EAAoC,CAAA,CAAE,UAEK;AAAA,cAE3C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-line-item.ts
|
|
4
|
+
const NusiiProposalsCreateLineItemInput = z.object({
|
|
5
|
+
name: z.string().describe("Descriptive name/body of the line item.").optional(),
|
|
6
|
+
amount: z.number().int().describe("Cost amount in cents (e.g., 10000 for $100.00).").optional(),
|
|
7
|
+
per_type: z.string().describe("For per-type costs - 'year', 'month', 'week', 'day', 'hour', 'item', or 'unit'. Only applicable when cost_type is 'per'.").optional(),
|
|
8
|
+
position: z.number().int().describe("Order position of the line item within the section.").optional(),
|
|
9
|
+
quantity: z.number().int().describe("Multiplier for per-type costs (total = quantity × amount). Only applicable when cost_type is 'per'.").optional(),
|
|
10
|
+
cost_type: z.string().describe("Type of cost - 'fixed', 'recurring', or 'per'. Default is 'fixed'.").optional(),
|
|
11
|
+
section_id: z.number().int().describe("The ID of the section to create the line item in."),
|
|
12
|
+
recurring_type: z.string().describe("For recurring costs - 'yearly', 'semiannually', 'trimester', 'monthly', 'weekly', 'daily', or 'hourly'. Only applicable when cost_type is 'recurring'.").optional()
|
|
13
|
+
}).describe("Request parameters for creating a line item within a proposal section.");
|
|
14
|
+
const NusiiProposalsCreateLineItem_LineItemAttributesSchema = z.object({
|
|
15
|
+
name: z.string().describe("Line item description/name.").nullable().optional(),
|
|
16
|
+
currency: z.string().describe("Currency code (e.g., 'GBP', 'USD').").nullable().optional(),
|
|
17
|
+
created_at: z.string().describe("Creation timestamp.").nullable().optional(),
|
|
18
|
+
section_id: z.number().int().describe("ID of the parent section.").nullable().optional(),
|
|
19
|
+
total_in_cents: z.number().int().describe("Total cost calculation in cents.").nullable().optional(),
|
|
20
|
+
amount_in_cents: z.number().int().describe("Cost amount in cents.").nullable().optional(),
|
|
21
|
+
total_formatted: z.string().describe("Human-readable formatted total.").nullable().optional(),
|
|
22
|
+
amount_formatted: z.string().describe("Human-readable formatted cost (e.g., '£100.00').").nullable().optional()
|
|
23
|
+
}).describe("Attributes of a line item in the response.");
|
|
24
|
+
const NusiiProposalsCreateLineItem_LineItemDataSchema = z.object({
|
|
25
|
+
id: z.string().describe("Unique identifier for the line item.").nullable().optional(),
|
|
26
|
+
type: z.string().describe("Resource type ('line_items').").nullable().optional(),
|
|
27
|
+
attributes: NusiiProposalsCreateLineItem_LineItemAttributesSchema.nullable().optional()
|
|
28
|
+
}).describe("Data container for a line item in JSON:API format.");
|
|
29
|
+
const nusiiProposalsCreateLineItem = action("NUSII_PROPOSALS_CREATE_LINE_ITEM", {
|
|
30
|
+
slug: "nusii_proposals-create-line-item",
|
|
31
|
+
name: "Create Line Item",
|
|
32
|
+
description: "Tool to create a line item within a proposal section. Use when you need to add a cost item to a specific section of a proposal.",
|
|
33
|
+
input: NusiiProposalsCreateLineItemInput,
|
|
34
|
+
output: z.object({ data: NusiiProposalsCreateLineItem_LineItemDataSchema.nullable().optional() }).describe("Response schema for creating a line item.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { nusiiProposalsCreateLineItem };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=create-line-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-line-item.mjs","names":[],"sources":["../../src/actions/create-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateLineItemInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Descriptive name/body of the line item.\").optional(),\n amount: z.number().int().describe(\"Cost amount in cents (e.g., 10000 for $100.00).\").optional(),\n per_type: z.string().describe(\"For per-type costs - 'year', 'month', 'week', 'day', 'hour', 'item', or 'unit'. Only applicable when cost_type is 'per'.\").optional(),\n position: z.number().int().describe(\"Order position of the line item within the section.\").optional(),\n quantity: z.number().int().describe(\"Multiplier for per-type costs (total = quantity × amount). Only applicable when cost_type is 'per'.\").optional(),\n cost_type: z.string().describe(\"Type of cost - 'fixed', 'recurring', or 'per'. Default is 'fixed'.\").optional(),\n section_id: z.number().int().describe(\"The ID of the section to create the line item in.\"),\n recurring_type: z.string().describe(\"For recurring costs - 'yearly', 'semiannually', 'trimester', 'monthly', 'weekly', 'daily', or 'hourly'. Only applicable when cost_type is 'recurring'.\").optional(),\n}).describe(\"Request parameters for creating a line item within a proposal section.\");\nconst NusiiProposalsCreateLineItem_LineItemAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Line item description/name.\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., 'GBP', 'USD').\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n section_id: z.number().int().describe(\"ID of the parent section.\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Total cost calculation in cents.\").nullable().optional(),\n amount_in_cents: z.number().int().describe(\"Cost amount in cents.\").nullable().optional(),\n total_formatted: z.string().describe(\"Human-readable formatted total.\").nullable().optional(),\n amount_formatted: z.string().describe(\"Human-readable formatted cost (e.g., '£100.00').\").nullable().optional(),\n}).describe(\"Attributes of a line item in the response.\");\nconst NusiiProposalsCreateLineItem_LineItemDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the line item.\").nullable().optional(),\n type: z.string().describe(\"Resource type ('line_items').\").nullable().optional(),\n attributes: NusiiProposalsCreateLineItem_LineItemAttributesSchema.nullable().optional(),\n}).describe(\"Data container for a line item in JSON:API format.\");\nexport const NusiiProposalsCreateLineItemOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsCreateLineItem_LineItemDataSchema.nullable().optional(),\n}).describe(\"Response schema for creating a line item.\");\n\nexport const nusiiProposalsCreateLineItem = action(\"NUSII_PROPOSALS_CREATE_LINE_ITEM\", {\n slug: \"nusii_proposals-create-line-item\",\n name: \"Create Line Item\",\n description: \"Tool to create a line item within a proposal section. Use when you need to add a cost item to a specific section of a proposal.\",\n input: NusiiProposalsCreateLineItemInput,\n output: NusiiProposalsCreateLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACnK,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACpJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;AACzM,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,wDAAsE,EAAE,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,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-proposal.ts
|
|
4
|
+
const NusiiProposalsCreateProposalInput = zod.z.object({
|
|
5
|
+
theme: zod.z.string().describe("Proposal visual theme. Defaults to 'clean' if not specified.").optional(),
|
|
6
|
+
title: zod.z.string().describe("The proposal's title.").optional(),
|
|
7
|
+
report: zod.z.boolean().describe("Converts the proposal to report format. Defaults to false.").optional(),
|
|
8
|
+
client_id: zod.z.number().int().describe("Associated client identifier. If provided, client_email is ignored.").optional(),
|
|
9
|
+
expires_at: zod.z.string().describe("Proposal expiration date in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').").optional(),
|
|
10
|
+
template_id: zod.z.number().int().describe("Copies sections from the specified template into the new proposal.").optional(),
|
|
11
|
+
client_email: zod.z.string().describe("Client email address. Creates a new client if none exists. Ignored when client_id is provided.").optional(),
|
|
12
|
+
display_date: zod.z.string().describe("Date displayed on the proposal in ISO 8601 format. Defaults to send date if not specified.").optional(),
|
|
13
|
+
exclude_total: zod.z.boolean().describe("Removes the total from the proposal. Defaults to false.").optional(),
|
|
14
|
+
prepared_by_id: zod.z.number().int().describe("User ID of the person who prepared the proposal.").optional(),
|
|
15
|
+
exclude_total_in_pdf: zod.z.boolean().describe("Removes the total from the PDF version of the proposal. Defaults to false.").optional(),
|
|
16
|
+
document_section_title: zod.z.string().describe("Documents section heading. Defaults to 'Documents' if not specified.").optional()
|
|
17
|
+
}).describe("Request model for creating a new proposal in Nusii.\nAll parameters are optional, but at least title or client information is recommended.");
|
|
18
|
+
const NusiiProposalsCreateProposalOutput = zod.z.object({
|
|
19
|
+
id: zod.z.string().describe("Unique proposal identifier.").nullable().optional(),
|
|
20
|
+
type: zod.z.string().describe("Resource type, typically 'proposals'.").nullable().optional(),
|
|
21
|
+
title: zod.z.string().describe("The proposal title.").nullable().optional(),
|
|
22
|
+
status: zod.z.string().describe("Current proposal status (e.g., 'draft', 'sent', 'viewed').").nullable().optional(),
|
|
23
|
+
currency: zod.z.string().describe("Proposal currency code (e.g., 'USD', 'EUR').").nullable().optional(),
|
|
24
|
+
sections: zod.z.array(zod.z.object({})).describe("Array of related proposal sections.").nullable().optional(),
|
|
25
|
+
client_id: zod.z.number().int().describe("Associated client ID.").nullable().optional(),
|
|
26
|
+
public_id: zod.z.string().describe("Public-facing proposal identifier.").nullable().optional(),
|
|
27
|
+
sender_id: zod.z.number().int().describe("Email sender's user ID.").nullable().optional(),
|
|
28
|
+
account_id: zod.z.number().int().describe("Associated account identifier.").nullable().optional(),
|
|
29
|
+
prepared_by_id: zod.z.number().int().describe("ID of the user who prepared the proposal.").nullable().optional()
|
|
30
|
+
}).describe("Response model for creating a new proposal.");
|
|
31
|
+
const nusiiProposalsCreateProposal = require_action.action("NUSII_PROPOSALS_CREATE_PROPOSAL", {
|
|
32
|
+
slug: "nusii_proposals-create-proposal",
|
|
33
|
+
name: "Create Proposal",
|
|
34
|
+
description: "Tool to create a new proposal in Nusii. Use when you need to initialize a proposal with title, client information, and optional configuration settings.",
|
|
35
|
+
input: NusiiProposalsCreateProposalInput,
|
|
36
|
+
output: NusiiProposalsCreateProposalOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.nusiiProposalsCreateProposal = nusiiProposalsCreateProposal;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=create-proposal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-proposal.cjs","names":["z","action"],"sources":["../../src/actions/create-proposal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateProposalInput: z.ZodTypeAny = z.object({\n theme: z.string().describe(\"Proposal visual theme. Defaults to 'clean' if not specified.\").optional(),\n title: z.string().describe(\"The proposal's title.\").optional(),\n report: z.boolean().describe(\"Converts the proposal to report format. Defaults to false.\").optional(),\n client_id: z.number().int().describe(\"Associated client identifier. If provided, client_email is ignored.\").optional(),\n expires_at: z.string().describe(\"Proposal expiration date in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').\").optional(),\n template_id: z.number().int().describe(\"Copies sections from the specified template into the new proposal.\").optional(),\n client_email: z.string().describe(\"Client email address. Creates a new client if none exists. Ignored when client_id is provided.\").optional(),\n display_date: z.string().describe(\"Date displayed on the proposal in ISO 8601 format. Defaults to send date if not specified.\").optional(),\n exclude_total: z.boolean().describe(\"Removes the total from the proposal. Defaults to false.\").optional(),\n prepared_by_id: z.number().int().describe(\"User ID of the person who prepared the proposal.\").optional(),\n exclude_total_in_pdf: z.boolean().describe(\"Removes the total from the PDF version of the proposal. Defaults to false.\").optional(),\n document_section_title: z.string().describe(\"Documents section heading. Defaults to 'Documents' if not specified.\").optional(),\n}).describe(\"Request model for creating a new proposal in Nusii.\\nAll parameters are optional, but at least title or client information is recommended.\");\nexport const NusiiProposalsCreateProposalOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique proposal identifier.\").nullable().optional(),\n type: z.string().describe(\"Resource type, typically 'proposals'.\").nullable().optional(),\n title: z.string().describe(\"The proposal title.\").nullable().optional(),\n status: z.string().describe(\"Current proposal status (e.g., 'draft', 'sent', 'viewed').\").nullable().optional(),\n currency: z.string().describe(\"Proposal currency code (e.g., 'USD', 'EUR').\").nullable().optional(),\n sections: z.array(z.object({})).describe(\"Array of related proposal sections.\").nullable().optional(),\n client_id: z.number().int().describe(\"Associated client ID.\").nullable().optional(),\n public_id: z.string().describe(\"Public-facing proposal identifier.\").nullable().optional(),\n sender_id: z.number().int().describe(\"Email sender's user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account identifier.\").nullable().optional(),\n prepared_by_id: z.number().int().describe(\"ID of the user who prepared the proposal.\").nullable().optional(),\n}).describe(\"Response model for creating a new proposal.\");\n\nexport const nusiiProposalsCreateProposal = action(\"NUSII_PROPOSALS_CREATE_PROPOSAL\", {\n slug: \"nusii_proposals-create-proposal\",\n name: \"Create Proposal\",\n description: \"Tool to create a new proposal in Nusii. Use when you need to initialize a proposal with title, client information, and optional configuration settings.\",\n input: NusiiProposalsCreateProposalInput,\n output: NusiiProposalsCreateProposalOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC7I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACzI,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAClI,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAs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C,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-proposal.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateProposalInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateProposalOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateProposal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateProposal };
|
|
9
|
+
//# sourceMappingURL=create-proposal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-proposal.d.cts","names":[],"sources":["../../src/actions/create-proposal.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAauG;AAAA,cAC5I,kCAAA,EAAoC,CAAA,CAAE,UAYO;AAAA,cAE7C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-proposal.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateProposalInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateProposalOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateProposal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateProposal };
|
|
9
|
+
//# sourceMappingURL=create-proposal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-proposal.d.mts","names":[],"sources":["../../src/actions/create-proposal.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAauG;AAAA,cAC5I,kCAAA,EAAoC,CAAA,CAAE,UAYO;AAAA,cAE7C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|