@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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-proposal.ts
|
|
4
|
+
const NusiiProposalsDeleteProposalInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the proposal to delete") }).describe("Request model for deleting a proposal by its unique identifier.");
|
|
5
|
+
const NusiiProposalsDeleteProposal_ProposalAttributesSchema = zod.z.object({
|
|
6
|
+
title: zod.z.string().describe("Proposal title").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 ID").nullable().optional(),
|
|
11
|
+
sender_id: zod.z.number().int().describe("ID of user who sent the proposal").nullable().optional(),
|
|
12
|
+
account_id: zod.z.number().int().describe("Associated account ID").nullable().optional(),
|
|
13
|
+
prepared_by_id: zod.z.number().int().describe("ID of user who prepared the proposal").nullable().optional()
|
|
14
|
+
}).describe("Attributes of the deleted proposal.");
|
|
15
|
+
const NusiiProposalsDeleteProposal_ProposalDataSchema = zod.z.object({
|
|
16
|
+
id: zod.z.string().describe("Proposal identifier").nullable().optional(),
|
|
17
|
+
type: zod.z.string().describe("Resource type (always 'proposals')").nullable().optional(),
|
|
18
|
+
attributes: NusiiProposalsDeleteProposal_ProposalAttributesSchema.nullable().optional()
|
|
19
|
+
}).describe("Container for proposal data.");
|
|
20
|
+
const NusiiProposalsDeleteProposalOutput = zod.z.object({ data: NusiiProposalsDeleteProposal_ProposalDataSchema.nullable().optional() }).describe("Response schema for the delete proposal action.");
|
|
21
|
+
const nusiiProposalsDeleteProposal = require_action.action("NUSII_PROPOSALS_DELETE_PROPOSAL", {
|
|
22
|
+
slug: "nusii_proposals-delete-proposal",
|
|
23
|
+
name: "Delete a proposal",
|
|
24
|
+
description: "Tool to delete a proposal from the system. Use when you need to permanently remove a proposal by its ID.",
|
|
25
|
+
input: NusiiProposalsDeleteProposalInput,
|
|
26
|
+
output: NusiiProposalsDeleteProposalOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.nusiiProposalsDeleteProposal = nusiiProposalsDeleteProposal;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=delete-proposal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-proposal.cjs","names":["z","action"],"sources":["../../src/actions/delete-proposal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteProposalInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the proposal to delete\"),\n}).describe(\"Request model for deleting a proposal by its unique identifier.\");\nconst NusiiProposalsDeleteProposal_ProposalAttributesSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Proposal title\").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 ID\").nullable().optional(),\n sender_id: z.number().int().describe(\"ID of user who sent the proposal\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID\").nullable().optional(),\n prepared_by_id: z.number().int().describe(\"ID of user who prepared the proposal\").nullable().optional(),\n}).describe(\"Attributes of the deleted proposal.\");\nconst NusiiProposalsDeleteProposal_ProposalDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Proposal identifier\").nullable().optional(),\n type: z.string().describe(\"Resource type (always 'proposals')\").nullable().optional(),\n attributes: NusiiProposalsDeleteProposal_ProposalAttributesSchema.nullable().optional(),\n}).describe(\"Container for proposal data.\");\nexport const NusiiProposalsDeleteProposalOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteProposal_ProposalDataSchema.nullable().optional(),\n}).describe(\"Response schema for the delete proposal action.\");\n\nexport const nusiiProposalsDeleteProposal = action(\"NUSII_PROPOSALS_DELETE_PROPOSAL\", {\n slug: \"nusii_proposals-delete-proposal\",\n name: \"Delete a proposal\",\n description: \"Tool to delete a proposal from the system. Use when you need to permanently remove a proposal by its ID.\",\n input: NusiiProposalsDeleteProposalInput,\n output: NusiiProposalsDeleteProposalOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAA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AAS,EAC5E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,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/delete-proposal.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteProposalInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteProposalOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteProposal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteProposal };
|
|
9
|
+
//# sourceMappingURL=delete-proposal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-proposal.d.cts","names":[],"sources":["../../src/actions/delete-proposal.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAE4B;AAAA,cAgBjE,kCAAA,EAAoC,CAAA,CAAE,UAEW;AAAA,cAEjD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-proposal.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteProposalInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteProposalOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteProposal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteProposal };
|
|
9
|
+
//# sourceMappingURL=delete-proposal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-proposal.d.mts","names":[],"sources":["../../src/actions/delete-proposal.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAE4B;AAAA,cAgBjE,kCAAA,EAAoC,CAAA,CAAE,UAEW;AAAA,cAEjD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/delete-proposal.ts
|
|
4
|
+
const NusiiProposalsDeleteProposalInput = z.object({ id: z.string().describe("The unique identifier of the proposal to delete") }).describe("Request model for deleting a proposal by its unique identifier.");
|
|
5
|
+
const NusiiProposalsDeleteProposal_ProposalAttributesSchema = z.object({
|
|
6
|
+
title: z.string().describe("Proposal title").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 ID").nullable().optional(),
|
|
11
|
+
sender_id: z.number().int().describe("ID of user who sent the proposal").nullable().optional(),
|
|
12
|
+
account_id: z.number().int().describe("Associated account ID").nullable().optional(),
|
|
13
|
+
prepared_by_id: z.number().int().describe("ID of user who prepared the proposal").nullable().optional()
|
|
14
|
+
}).describe("Attributes of the deleted proposal.");
|
|
15
|
+
const NusiiProposalsDeleteProposal_ProposalDataSchema = z.object({
|
|
16
|
+
id: z.string().describe("Proposal identifier").nullable().optional(),
|
|
17
|
+
type: z.string().describe("Resource type (always 'proposals')").nullable().optional(),
|
|
18
|
+
attributes: NusiiProposalsDeleteProposal_ProposalAttributesSchema.nullable().optional()
|
|
19
|
+
}).describe("Container for proposal data.");
|
|
20
|
+
const nusiiProposalsDeleteProposal = action("NUSII_PROPOSALS_DELETE_PROPOSAL", {
|
|
21
|
+
slug: "nusii_proposals-delete-proposal",
|
|
22
|
+
name: "Delete a proposal",
|
|
23
|
+
description: "Tool to delete a proposal from the system. Use when you need to permanently remove a proposal by its ID.",
|
|
24
|
+
input: NusiiProposalsDeleteProposalInput,
|
|
25
|
+
output: z.object({ data: NusiiProposalsDeleteProposal_ProposalDataSchema.nullable().optional() }).describe("Response schema for the delete proposal action.")
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { nusiiProposalsDeleteProposal };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=delete-proposal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-proposal.mjs","names":[],"sources":["../../src/actions/delete-proposal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteProposalInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the proposal to delete\"),\n}).describe(\"Request model for deleting a proposal by its unique identifier.\");\nconst NusiiProposalsDeleteProposal_ProposalAttributesSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Proposal title\").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 ID\").nullable().optional(),\n sender_id: z.number().int().describe(\"ID of user who sent the proposal\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID\").nullable().optional(),\n prepared_by_id: z.number().int().describe(\"ID of user who prepared the proposal\").nullable().optional(),\n}).describe(\"Attributes of the deleted proposal.\");\nconst NusiiProposalsDeleteProposal_ProposalDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Proposal identifier\").nullable().optional(),\n type: z.string().describe(\"Resource type (always 'proposals')\").nullable().optional(),\n attributes: NusiiProposalsDeleteProposal_ProposalAttributesSchema.nullable().optional(),\n}).describe(\"Container for proposal data.\");\nexport const NusiiProposalsDeleteProposalOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteProposal_ProposalDataSchema.nullable().optional(),\n}).describe(\"Response schema for the delete proposal action.\");\n\nexport const nusiiProposalsDeleteProposal = action(\"NUSII_PROPOSALS_DELETE_PROPOSAL\", {\n slug: \"nusii_proposals-delete-proposal\",\n name: \"Delete a proposal\",\n description: \"Tool to delete a proposal from the system. Use when you need to permanently remove a proposal by its ID.\",\n input: NusiiProposalsDeleteProposalInput,\n output: NusiiProposalsDeleteProposalOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAsE,EAAE,OAAO;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAY,sDAAsD,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAK1C,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-section.ts
|
|
4
|
+
const NusiiProposalsDeleteSectionInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the section to delete") }).describe("Request parameters to delete a section.");
|
|
5
|
+
const NusiiProposalsDeleteSection_DeleteSectionAttributesSchema = zod.z.object({
|
|
6
|
+
body: zod.z.string().describe("The body content of the section").nullable().optional(),
|
|
7
|
+
name: zod.z.string().describe("The name of the section").nullable().optional(),
|
|
8
|
+
title: zod.z.string().describe("The title of the section").nullable().optional(),
|
|
9
|
+
currency: zod.z.string().describe("The currency used for pricing in the section").nullable().optional(),
|
|
10
|
+
optional: zod.z.boolean().describe("Whether the section is optional").nullable().optional(),
|
|
11
|
+
position: zod.z.number().int().describe("The position of the section within the proposal").nullable().optional(),
|
|
12
|
+
reusable: zod.z.boolean().describe("Whether the section is reusable").nullable().optional(),
|
|
13
|
+
selected: zod.z.boolean().describe("Whether the section is selected").nullable().optional(),
|
|
14
|
+
account_id: zod.z.number().int().describe("The account ID that owns this section").nullable().optional(),
|
|
15
|
+
created_at: zod.z.string().describe("ISO 8601 datetime when the section was created").nullable().optional(),
|
|
16
|
+
page_break: zod.z.boolean().describe("Whether a page break is applied after this section").nullable().optional(),
|
|
17
|
+
updated_at: zod.z.string().describe("ISO 8601 datetime when the section was last updated").nullable().optional(),
|
|
18
|
+
proposal_id: zod.z.number().int().describe("The proposal ID that contains this section").nullable().optional(),
|
|
19
|
+
template_id: zod.z.number().int().describe("The template ID if section is based on a template").nullable().optional(),
|
|
20
|
+
section_type: zod.z.string().describe("The type of section").nullable().optional(),
|
|
21
|
+
include_total: zod.z.boolean().describe("Whether to include the total in the section").nullable().optional(),
|
|
22
|
+
total_in_cents: zod.z.number().int().describe("The total amount in cents for the section").nullable().optional(),
|
|
23
|
+
total_formatted: zod.z.string().describe("The formatted total amount string").nullable().optional()
|
|
24
|
+
}).describe("Attributes of the deleted section.");
|
|
25
|
+
const NusiiProposalsDeleteSection_DeleteSectionDataSchema = zod.z.object({
|
|
26
|
+
id: zod.z.string().describe("The unique identifier of the deleted section").nullable().optional(),
|
|
27
|
+
type: zod.z.string().describe("The resource type, typically 'sections'").nullable().optional(),
|
|
28
|
+
attributes: NusiiProposalsDeleteSection_DeleteSectionAttributesSchema.nullable().optional()
|
|
29
|
+
}).describe("Data wrapper for the deleted section.");
|
|
30
|
+
const NusiiProposalsDeleteSectionOutput = zod.z.object({ data: NusiiProposalsDeleteSection_DeleteSectionDataSchema.nullable().optional() }).describe("Response schema for delete section action.");
|
|
31
|
+
const nusiiProposalsDeleteSection = require_action.action("NUSII_PROPOSALS_DELETE_SECTION", {
|
|
32
|
+
slug: "nusii_proposals-delete-section",
|
|
33
|
+
name: "Delete a section",
|
|
34
|
+
description: "Tool to delete a specific section from Nusii. Use when you need to remove a section from a proposal. Returns the deleted section data for confirmation purposes.",
|
|
35
|
+
input: NusiiProposalsDeleteSectionInput,
|
|
36
|
+
output: NusiiProposalsDeleteSectionOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.nusiiProposalsDeleteSection = nusiiProposalsDeleteSection;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=delete-section.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-section.cjs","names":["z","action"],"sources":["../../src/actions/delete-section.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteSectionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the section to delete\"),\n}).describe(\"Request parameters to delete a section.\");\nconst NusiiProposalsDeleteSection_DeleteSectionAttributesSchema: z.ZodTypeAny = z.object({\n body: z.string().describe(\"The body content of the section\").nullable().optional(),\n name: z.string().describe(\"The name of the section\").nullable().optional(),\n title: z.string().describe(\"The title of the section\").nullable().optional(),\n currency: z.string().describe(\"The currency used for pricing in the section\").nullable().optional(),\n optional: z.boolean().describe(\"Whether the section is optional\").nullable().optional(),\n position: z.number().int().describe(\"The position of the section within the proposal\").nullable().optional(),\n reusable: z.boolean().describe(\"Whether the section is reusable\").nullable().optional(),\n selected: z.boolean().describe(\"Whether the section is selected\").nullable().optional(),\n account_id: z.number().int().describe(\"The account ID that owns this section\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 datetime when the section was created\").nullable().optional(),\n page_break: z.boolean().describe(\"Whether a page break is applied after this section\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 datetime when the section was last updated\").nullable().optional(),\n proposal_id: z.number().int().describe(\"The proposal ID that contains this section\").nullable().optional(),\n template_id: z.number().int().describe(\"The template ID if section is based on a template\").nullable().optional(),\n section_type: z.string().describe(\"The type of section\").nullable().optional(),\n include_total: z.boolean().describe(\"Whether to include the total in the section\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"The total amount in cents for the section\").nullable().optional(),\n total_formatted: z.string().describe(\"The formatted total amount string\").nullable().optional(),\n}).describe(\"Attributes of the deleted section.\");\nconst NusiiProposalsDeleteSection_DeleteSectionDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted section\").nullable().optional(),\n type: z.string().describe(\"The resource type, typically 'sections'\").nullable().optional(),\n attributes: NusiiProposalsDeleteSection_DeleteSectionAttributesSchema.nullable().optional(),\n}).describe(\"Data wrapper for the deleted section.\");\nexport const NusiiProposalsDeleteSectionOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteSection_DeleteSectionDataSchema.nullable().optional(),\n}).describe(\"Response schema for delete section action.\");\n\nexport const nusiiProposalsDeleteSection = action(\"NUSII_PROPOSALS_DELETE_SECTION\", {\n slug: \"nusii_proposals-delete-section\",\n name: \"Delete a section\",\n description: \"Tool to delete a specific section from Nusii. Use when you need to remove a section from a proposal. Returns the deleted section data for confirmation purposes.\",\n input: NusiiProposalsDeleteSectionInput,\n output: NusiiProposalsDeleteSectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,4DAA0EA,IAAAA,EAAE,OAAO;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,0DAA0D,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAM,oDAAoD,SAAS,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,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/delete-section.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteSectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteSectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteSection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteSection };
|
|
9
|
+
//# sourceMappingURL=delete-section.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-section.d.cts","names":[],"sources":["../../src/actions/delete-section.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAEK;AAAA,cA0BzC,iCAAA,EAAmC,CAAA,CAAE,UAEO;AAAA,cAE5C,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-section.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteSectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteSectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteSection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteSection };
|
|
9
|
+
//# sourceMappingURL=delete-section.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-section.d.mts","names":[],"sources":["../../src/actions/delete-section.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAEK;AAAA,cA0BzC,iCAAA,EAAmC,CAAA,CAAE,UAEO;AAAA,cAE5C,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/delete-section.ts
|
|
4
|
+
const NusiiProposalsDeleteSectionInput = z.object({ id: z.string().describe("The unique identifier of the section to delete") }).describe("Request parameters to delete a section.");
|
|
5
|
+
const NusiiProposalsDeleteSection_DeleteSectionAttributesSchema = z.object({
|
|
6
|
+
body: z.string().describe("The body content of the section").nullable().optional(),
|
|
7
|
+
name: z.string().describe("The name of the section").nullable().optional(),
|
|
8
|
+
title: z.string().describe("The title of the section").nullable().optional(),
|
|
9
|
+
currency: z.string().describe("The currency used for pricing in the section").nullable().optional(),
|
|
10
|
+
optional: z.boolean().describe("Whether the section is optional").nullable().optional(),
|
|
11
|
+
position: z.number().int().describe("The position of the section within the proposal").nullable().optional(),
|
|
12
|
+
reusable: z.boolean().describe("Whether the section is reusable").nullable().optional(),
|
|
13
|
+
selected: z.boolean().describe("Whether the section is selected").nullable().optional(),
|
|
14
|
+
account_id: z.number().int().describe("The account ID that owns this section").nullable().optional(),
|
|
15
|
+
created_at: z.string().describe("ISO 8601 datetime when the section was created").nullable().optional(),
|
|
16
|
+
page_break: z.boolean().describe("Whether a page break is applied after this section").nullable().optional(),
|
|
17
|
+
updated_at: z.string().describe("ISO 8601 datetime when the section was last updated").nullable().optional(),
|
|
18
|
+
proposal_id: z.number().int().describe("The proposal ID that contains this section").nullable().optional(),
|
|
19
|
+
template_id: z.number().int().describe("The template ID if section is based on a template").nullable().optional(),
|
|
20
|
+
section_type: z.string().describe("The type of section").nullable().optional(),
|
|
21
|
+
include_total: z.boolean().describe("Whether to include the total in the section").nullable().optional(),
|
|
22
|
+
total_in_cents: z.number().int().describe("The total amount in cents for the section").nullable().optional(),
|
|
23
|
+
total_formatted: z.string().describe("The formatted total amount string").nullable().optional()
|
|
24
|
+
}).describe("Attributes of the deleted section.");
|
|
25
|
+
const NusiiProposalsDeleteSection_DeleteSectionDataSchema = z.object({
|
|
26
|
+
id: z.string().describe("The unique identifier of the deleted section").nullable().optional(),
|
|
27
|
+
type: z.string().describe("The resource type, typically 'sections'").nullable().optional(),
|
|
28
|
+
attributes: NusiiProposalsDeleteSection_DeleteSectionAttributesSchema.nullable().optional()
|
|
29
|
+
}).describe("Data wrapper for the deleted section.");
|
|
30
|
+
const nusiiProposalsDeleteSection = action("NUSII_PROPOSALS_DELETE_SECTION", {
|
|
31
|
+
slug: "nusii_proposals-delete-section",
|
|
32
|
+
name: "Delete a section",
|
|
33
|
+
description: "Tool to delete a specific section from Nusii. Use when you need to remove a section from a proposal. Returns the deleted section data for confirmation purposes.",
|
|
34
|
+
input: NusiiProposalsDeleteSectionInput,
|
|
35
|
+
output: z.object({ data: NusiiProposalsDeleteSection_DeleteSectionDataSchema.nullable().optional() }).describe("Response schema for delete section action.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { nusiiProposalsDeleteSection };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=delete-section.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-section.mjs","names":[],"sources":["../../src/actions/delete-section.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteSectionInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the section to delete\"),\n}).describe(\"Request parameters to delete a section.\");\nconst NusiiProposalsDeleteSection_DeleteSectionAttributesSchema: z.ZodTypeAny = z.object({\n body: z.string().describe(\"The body content of the section\").nullable().optional(),\n name: z.string().describe(\"The name of the section\").nullable().optional(),\n title: z.string().describe(\"The title of the section\").nullable().optional(),\n currency: z.string().describe(\"The currency used for pricing in the section\").nullable().optional(),\n optional: z.boolean().describe(\"Whether the section is optional\").nullable().optional(),\n position: z.number().int().describe(\"The position of the section within the proposal\").nullable().optional(),\n reusable: z.boolean().describe(\"Whether the section is reusable\").nullable().optional(),\n selected: z.boolean().describe(\"Whether the section is selected\").nullable().optional(),\n account_id: z.number().int().describe(\"The account ID that owns this section\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 datetime when the section was created\").nullable().optional(),\n page_break: z.boolean().describe(\"Whether a page break is applied after this section\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 datetime when the section was last updated\").nullable().optional(),\n proposal_id: z.number().int().describe(\"The proposal ID that contains this section\").nullable().optional(),\n template_id: z.number().int().describe(\"The template ID if section is based on a template\").nullable().optional(),\n section_type: z.string().describe(\"The type of section\").nullable().optional(),\n include_total: z.boolean().describe(\"Whether to include the total in the section\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"The total amount in cents for the section\").nullable().optional(),\n total_formatted: z.string().describe(\"The formatted total amount string\").nullable().optional(),\n}).describe(\"Attributes of the deleted section.\");\nconst NusiiProposalsDeleteSection_DeleteSectionDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted section\").nullable().optional(),\n type: z.string().describe(\"The resource type, typically 'sections'\").nullable().optional(),\n attributes: NusiiProposalsDeleteSection_DeleteSectionAttributesSchema.nullable().optional(),\n}).describe(\"Data wrapper for the deleted section.\");\nexport const NusiiProposalsDeleteSectionOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteSection_DeleteSectionDataSchema.nullable().optional(),\n}).describe(\"Response schema for delete section action.\");\n\nexport const nusiiProposalsDeleteSection = action(\"NUSII_PROPOSALS_DELETE_SECTION\", {\n slug: \"nusii_proposals-delete-section\",\n name: \"Delete a section\",\n description: \"Tool to delete a specific section from Nusii. Use when you need to remove a section from a proposal. Returns the deleted section data for confirmation purposes.\",\n input: NusiiProposalsDeleteSectionInput,\n output: NusiiProposalsDeleteSectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO,EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,4DAA0E,EAAE,OAAO;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SA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AO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,sDAAoE,EAAE,OAAO;CACjF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,0DAA0D,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAKnD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,oDAAoD,SAAS,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-webhook-endpoint.ts
|
|
4
|
+
const NusiiProposalsDeleteWebhookEndpointInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the webhook endpoint to delete") }).describe("Request model for deleting a webhook endpoint by its unique identifier.");
|
|
5
|
+
const NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema = zod.z.object({
|
|
6
|
+
events: zod.z.array(zod.z.string()).describe("Event types the endpoint was subscribed to").nullable().optional(),
|
|
7
|
+
target_url: zod.z.string().describe("The destination URL for webhook events").nullable().optional()
|
|
8
|
+
}).describe("Attributes of the webhook endpoint.");
|
|
9
|
+
const NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("The webhook endpoint identifier").nullable().optional(),
|
|
11
|
+
type: zod.z.string().describe("Resource type, always 'webhook_endpoints'").nullable().optional(),
|
|
12
|
+
attributes: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema.nullable().optional()
|
|
13
|
+
}).describe("Data structure for the deleted webhook endpoint.");
|
|
14
|
+
const NusiiProposalsDeleteWebhookEndpointOutput = zod.z.object({ data: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema.nullable().optional() }).describe("Response schema for the delete webhook endpoint action.");
|
|
15
|
+
const nusiiProposalsDeleteWebhookEndpoint = require_action.action("NUSII_PROPOSALS_DELETE_WEBHOOK_ENDPOINT", {
|
|
16
|
+
slug: "nusii_proposals-delete-webhook-endpoint",
|
|
17
|
+
name: "Delete Webhook Endpoint",
|
|
18
|
+
description: "Tool to delete a specific webhook endpoint from the system. Use when you need to remove a webhook endpoint.",
|
|
19
|
+
input: NusiiProposalsDeleteWebhookEndpointInput,
|
|
20
|
+
output: NusiiProposalsDeleteWebhookEndpointOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.nusiiProposalsDeleteWebhookEndpoint = nusiiProposalsDeleteWebhookEndpoint;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=delete-webhook-endpoint.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webhook-endpoint.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteWebhookEndpointInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the webhook endpoint to delete\"),\n}).describe(\"Request model for deleting a webhook endpoint by its unique identifier.\");\nconst NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Event types the endpoint was subscribed to\").nullable().optional(),\n target_url: z.string().describe(\"The destination URL for webhook events\").nullable().optional(),\n}).describe(\"Attributes of the webhook endpoint.\");\nconst NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The webhook endpoint identifier\").nullable().optional(),\n type: z.string().describe(\"Resource type, always 'webhook_endpoints'\").nullable().optional(),\n attributes: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema.nullable().optional(),\n}).describe(\"Data structure for the deleted webhook endpoint.\");\nexport const NusiiProposalsDeleteWebhookEndpointOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema.nullable().optional(),\n}).describe(\"Response schema for the delete webhook endpoint action.\");\n\nexport const nusiiProposalsDeleteWebhookEndpoint = action(\"NUSII_PROPOSALS_DELETE_WEBHOOK_ENDPOINT\", {\n slug: \"nusii_proposals-delete-webhook-endpoint\",\n name: \"Delete Webhook Endpoint\",\n description: \"Tool to delete a specific webhook endpoint from the system. Use when you need to remove a webhook endpoint.\",\n input: NusiiProposalsDeleteWebhookEndpointInput,\n output: NusiiProposalsDeleteWebhookEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACnF,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,sEAAoFA,IAAAA,EAAE,OAAO;CACjG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,oEAAoE,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4CAA0DA,IAAAA,EAAE,OAAO,EAC9E,MAAM,8DAA8D,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,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/delete-webhook-endpoint.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteWebhookEndpointInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteWebhookEndpointOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteWebhookEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteWebhookEndpoint };
|
|
9
|
+
//# sourceMappingURL=delete-webhook-endpoint.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webhook-endpoint.d.cts","names":[],"sources":["../../src/actions/delete-webhook-endpoint.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAE6B;AAAA,cAUzE,yCAAA,EAA2C,CAAA,CAAE,UAEY;AAAA,cAEzD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-webhook-endpoint.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteWebhookEndpointInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteWebhookEndpointOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteWebhookEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteWebhookEndpoint };
|
|
9
|
+
//# sourceMappingURL=delete-webhook-endpoint.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webhook-endpoint.d.mts","names":[],"sources":["../../src/actions/delete-webhook-endpoint.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAE6B;AAAA,cAUzE,yCAAA,EAA2C,CAAA,CAAE,UAEY;AAAA,cAEzD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/delete-webhook-endpoint.ts
|
|
4
|
+
const NusiiProposalsDeleteWebhookEndpointInput = z.object({ id: z.string().describe("The unique identifier of the webhook endpoint to delete") }).describe("Request model for deleting a webhook endpoint by its unique identifier.");
|
|
5
|
+
const NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema = z.object({
|
|
6
|
+
events: z.array(z.string()).describe("Event types the endpoint was subscribed to").nullable().optional(),
|
|
7
|
+
target_url: z.string().describe("The destination URL for webhook events").nullable().optional()
|
|
8
|
+
}).describe("Attributes of the webhook endpoint.");
|
|
9
|
+
const NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema = z.object({
|
|
10
|
+
id: z.string().describe("The webhook endpoint identifier").nullable().optional(),
|
|
11
|
+
type: z.string().describe("Resource type, always 'webhook_endpoints'").nullable().optional(),
|
|
12
|
+
attributes: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema.nullable().optional()
|
|
13
|
+
}).describe("Data structure for the deleted webhook endpoint.");
|
|
14
|
+
const nusiiProposalsDeleteWebhookEndpoint = action("NUSII_PROPOSALS_DELETE_WEBHOOK_ENDPOINT", {
|
|
15
|
+
slug: "nusii_proposals-delete-webhook-endpoint",
|
|
16
|
+
name: "Delete Webhook Endpoint",
|
|
17
|
+
description: "Tool to delete a specific webhook endpoint from the system. Use when you need to remove a webhook endpoint.",
|
|
18
|
+
input: NusiiProposalsDeleteWebhookEndpointInput,
|
|
19
|
+
output: z.object({ data: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema.nullable().optional() }).describe("Response schema for the delete webhook endpoint action.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { nusiiProposalsDeleteWebhookEndpoint };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=delete-webhook-endpoint.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-webhook-endpoint.mjs","names":[],"sources":["../../src/actions/delete-webhook-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteWebhookEndpointInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the webhook endpoint to delete\"),\n}).describe(\"Request model for deleting a webhook endpoint by its unique identifier.\");\nconst NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Event types the endpoint was subscribed to\").nullable().optional(),\n target_url: z.string().describe(\"The destination URL for webhook events\").nullable().optional(),\n}).describe(\"Attributes of the webhook endpoint.\");\nconst NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The webhook endpoint identifier\").nullable().optional(),\n type: z.string().describe(\"Resource type, always 'webhook_endpoints'\").nullable().optional(),\n attributes: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointAttributesSchema.nullable().optional(),\n}).describe(\"Data structure for the deleted webhook endpoint.\");\nexport const NusiiProposalsDeleteWebhookEndpointOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteWebhookEndpoint_WebhookEndpointDataSchema.nullable().optional(),\n}).describe(\"Response schema for the delete webhook endpoint action.\");\n\nexport const nusiiProposalsDeleteWebhookEndpoint = action(\"NUSII_PROPOSALS_DELETE_WEBHOOK_ENDPOINT\", {\n slug: \"nusii_proposals-delete-webhook-endpoint\",\n name: \"Delete Webhook Endpoint\",\n description: \"Tool to delete a specific webhook endpoint from the system. Use when you need to remove a webhook endpoint.\",\n input: NusiiProposalsDeleteWebhookEndpointInput,\n output: NusiiProposalsDeleteWebhookEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO,EAC7E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACnF,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,sEAAoF,EAAE,OAAO;CACjG,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gEAA8E,EAAE,OAAO;CAC3F,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,oEAAoE,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAK9D,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqE,EAAE,OAAO,EAC9E,MAAM,8DAA8D,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-account-me.ts
|
|
4
|
+
const NusiiProposalsGetAccountMeInput = zod.z.object({}).describe("Request model for retrieving personal account data. No parameters are required.");
|
|
5
|
+
const NusiiProposalsGetAccountMe_AccountAttributesSchema = zod.z.object({
|
|
6
|
+
web: zod.z.string().describe("Website URL").nullable().optional(),
|
|
7
|
+
city: zod.z.string().describe("City name").nullable().optional(),
|
|
8
|
+
name: zod.z.string().describe("Company or account name").nullable().optional(),
|
|
9
|
+
email: zod.z.string().describe("Account email address").nullable().optional(),
|
|
10
|
+
locale: zod.z.string().describe("Language/locale setting").nullable().optional(),
|
|
11
|
+
address: zod.z.string().describe("Street address").nullable().optional(),
|
|
12
|
+
currency: zod.z.string().describe("Default currency code (e.g., USD)").nullable().optional(),
|
|
13
|
+
postcode: zod.z.string().describe("Postal code").nullable().optional(),
|
|
14
|
+
subdomain: zod.z.string().describe("Nusii subdomain for the account").nullable().optional(),
|
|
15
|
+
telephone: zod.z.string().describe("Contact phone number").nullable().optional(),
|
|
16
|
+
address_state: zod.z.string().describe("State/province").nullable().optional(),
|
|
17
|
+
default_theme: zod.z.string().describe("Default proposal theme").nullable().optional(),
|
|
18
|
+
pdf_page_size: zod.z.string().describe("Default PDF page format (e.g., A4)").nullable().optional()
|
|
19
|
+
}).describe("Account attributes containing detailed account information.");
|
|
20
|
+
const NusiiProposalsGetAccountMe_AccountDataSchema = zod.z.object({
|
|
21
|
+
id: zod.z.string().describe("Unique account identifier"),
|
|
22
|
+
type: zod.z.string().describe("Resource type (e.g., \"accounts\")"),
|
|
23
|
+
attributes: NusiiProposalsGetAccountMe_AccountAttributesSchema.nullable()
|
|
24
|
+
}).describe("Account data wrapper.");
|
|
25
|
+
const NusiiProposalsGetAccountMeOutput = zod.z.object({ data: NusiiProposalsGetAccountMe_AccountDataSchema.nullable() }).describe("Response model for personal account data.");
|
|
26
|
+
const nusiiProposalsGetAccountMe = require_action.action("NUSII_PROPOSALS_GET_ACCOUNT_ME", {
|
|
27
|
+
slug: "nusii_proposals-get-account-me",
|
|
28
|
+
name: "Get Account Me",
|
|
29
|
+
description: "Tool to retrieve authenticated user's personal account information and settings. Use to get current account details including company info, currency, locale, and contact information.",
|
|
30
|
+
input: NusiiProposalsGetAccountMeInput,
|
|
31
|
+
output: NusiiProposalsGetAccountMeOutput
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.nusiiProposalsGetAccountMe = nusiiProposalsGetAccountMe;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=get-account-me.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account-me.cjs","names":["z","action"],"sources":["../../src/actions/get-account-me.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsGetAccountMeInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving personal account data. No parameters are required.\");\nconst NusiiProposalsGetAccountMe_AccountAttributesSchema: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Website URL\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n name: z.string().describe(\"Company or account name\").nullable().optional(),\n email: z.string().describe(\"Account email address\").nullable().optional(),\n locale: z.string().describe(\"Language/locale setting\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n currency: z.string().describe(\"Default currency code (e.g., USD)\").nullable().optional(),\n postcode: z.string().describe(\"Postal code\").nullable().optional(),\n subdomain: z.string().describe(\"Nusii subdomain for the account\").nullable().optional(),\n telephone: z.string().describe(\"Contact phone number\").nullable().optional(),\n address_state: z.string().describe(\"State/province\").nullable().optional(),\n default_theme: z.string().describe(\"Default proposal theme\").nullable().optional(),\n pdf_page_size: z.string().describe(\"Default PDF page format (e.g., A4)\").nullable().optional(),\n}).describe(\"Account attributes containing detailed account information.\");\nconst NusiiProposalsGetAccountMe_AccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique account identifier\"),\n type: z.string().describe(\"Resource type (e.g., \\\"accounts\\\")\"),\n attributes: NusiiProposalsGetAccountMe_AccountAttributesSchema.nullable(),\n}).describe(\"Account data wrapper.\");\nexport const NusiiProposalsGetAccountMeOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsGetAccountMe_AccountDataSchema.nullable(),\n}).describe(\"Response model for personal account data.\");\n\nexport const nusiiProposalsGetAccountMe = action(\"NUSII_PROPOSALS_GET_ACCOUNT_ME\", {\n slug: \"nusii_proposals-get-account-me\",\n name: \"Get Account Me\",\n description: \"Tool to retrieve authenticated user's personal account information and settings. Use to get current account details including company info, currency, locale, and contact information.\",\n input: NusiiProposalsGetAccountMeInput,\n output: NusiiProposalsGetAccountMeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;AACpK,MAAM,qDAAmEA,IAAAA,EAA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C,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,YAAY,mDAAmD,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,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/get-account-me.d.ts
|
|
4
|
+
declare const NusiiProposalsGetAccountMeInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsGetAccountMeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsGetAccountMe: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsGetAccountMe };
|
|
9
|
+
//# sourceMappingURL=get-account-me.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account-me.d.cts","names":[],"sources":["../../src/actions/get-account-me.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAAqH;AAAA,cAqBxJ,gCAAA,EAAkC,CAAA,CAAE,UAEO;AAAA,cAE3C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-account-me.d.ts
|
|
4
|
+
declare const NusiiProposalsGetAccountMeInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsGetAccountMeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsGetAccountMe: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsGetAccountMe };
|
|
9
|
+
//# sourceMappingURL=get-account-me.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account-me.d.mts","names":[],"sources":["../../src/actions/get-account-me.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAAqH;AAAA,cAqBxJ,gCAAA,EAAkC,CAAA,CAAE,UAEO;AAAA,cAE3C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-account-me.ts
|
|
4
|
+
const NusiiProposalsGetAccountMeInput = z.object({}).describe("Request model for retrieving personal account data. No parameters are required.");
|
|
5
|
+
const NusiiProposalsGetAccountMe_AccountAttributesSchema = z.object({
|
|
6
|
+
web: z.string().describe("Website URL").nullable().optional(),
|
|
7
|
+
city: z.string().describe("City name").nullable().optional(),
|
|
8
|
+
name: z.string().describe("Company or account name").nullable().optional(),
|
|
9
|
+
email: z.string().describe("Account email address").nullable().optional(),
|
|
10
|
+
locale: z.string().describe("Language/locale setting").nullable().optional(),
|
|
11
|
+
address: z.string().describe("Street address").nullable().optional(),
|
|
12
|
+
currency: z.string().describe("Default currency code (e.g., USD)").nullable().optional(),
|
|
13
|
+
postcode: z.string().describe("Postal code").nullable().optional(),
|
|
14
|
+
subdomain: z.string().describe("Nusii subdomain for the account").nullable().optional(),
|
|
15
|
+
telephone: z.string().describe("Contact phone number").nullable().optional(),
|
|
16
|
+
address_state: z.string().describe("State/province").nullable().optional(),
|
|
17
|
+
default_theme: z.string().describe("Default proposal theme").nullable().optional(),
|
|
18
|
+
pdf_page_size: z.string().describe("Default PDF page format (e.g., A4)").nullable().optional()
|
|
19
|
+
}).describe("Account attributes containing detailed account information.");
|
|
20
|
+
const NusiiProposalsGetAccountMe_AccountDataSchema = z.object({
|
|
21
|
+
id: z.string().describe("Unique account identifier"),
|
|
22
|
+
type: z.string().describe("Resource type (e.g., \"accounts\")"),
|
|
23
|
+
attributes: NusiiProposalsGetAccountMe_AccountAttributesSchema.nullable()
|
|
24
|
+
}).describe("Account data wrapper.");
|
|
25
|
+
const nusiiProposalsGetAccountMe = action("NUSII_PROPOSALS_GET_ACCOUNT_ME", {
|
|
26
|
+
slug: "nusii_proposals-get-account-me",
|
|
27
|
+
name: "Get Account Me",
|
|
28
|
+
description: "Tool to retrieve authenticated user's personal account information and settings. Use to get current account details including company info, currency, locale, and contact information.",
|
|
29
|
+
input: NusiiProposalsGetAccountMeInput,
|
|
30
|
+
output: z.object({ data: NusiiProposalsGetAccountMe_AccountDataSchema.nullable() }).describe("Response model for personal account data.")
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { nusiiProposalsGetAccountMe };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=get-account-me.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account-me.mjs","names":[],"sources":["../../src/actions/get-account-me.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsGetAccountMeInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving personal account data. No parameters are required.\");\nconst NusiiProposalsGetAccountMe_AccountAttributesSchema: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Website URL\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n name: z.string().describe(\"Company or account name\").nullable().optional(),\n email: z.string().describe(\"Account email address\").nullable().optional(),\n locale: z.string().describe(\"Language/locale setting\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n currency: z.string().describe(\"Default currency code (e.g., USD)\").nullable().optional(),\n postcode: z.string().describe(\"Postal code\").nullable().optional(),\n subdomain: z.string().describe(\"Nusii subdomain for the account\").nullable().optional(),\n telephone: z.string().describe(\"Contact phone number\").nullable().optional(),\n address_state: z.string().describe(\"State/province\").nullable().optional(),\n default_theme: z.string().describe(\"Default proposal theme\").nullable().optional(),\n pdf_page_size: z.string().describe(\"Default PDF page format (e.g., A4)\").nullable().optional(),\n}).describe(\"Account attributes containing detailed account information.\");\nconst NusiiProposalsGetAccountMe_AccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique account identifier\"),\n type: z.string().describe(\"Resource type (e.g., \\\"accounts\\\")\"),\n attributes: NusiiProposalsGetAccountMe_AccountAttributesSchema.nullable(),\n}).describe(\"Account data wrapper.\");\nexport const NusiiProposalsGetAccountMeOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsGetAccountMe_AccountDataSchema.nullable(),\n}).describe(\"Response model for personal account data.\");\n\nexport const nusiiProposalsGetAccountMe = action(\"NUSII_PROPOSALS_GET_ACCOUNT_ME\", {\n slug: \"nusii_proposals-get-account-me\",\n name: \"Get Account Me\",\n description: \"Tool to retrieve authenticated user's personal account information and settings. Use to get current account details including company info, currency, locale, and contact information.\",\n input: NusiiProposalsGetAccountMeInput,\n output: NusiiProposalsGetAccountMeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;AACpK,MAAM,qDAAmE,EAAE,OAAO;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,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AAC,CAAC,SAAS,oCAAoC;CAC9D,YAAY,mDAAmD,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,uBAAuB;AAKnC,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,MAAM,6CAA6C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-client.ts
|
|
4
|
+
const NusiiProposalsGetClientInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the client to retrieve") }).describe("Request model for retrieving a single client.");
|
|
5
|
+
const NusiiProposalsGetClient_ClientAttributesSchema = zod.z.object({
|
|
6
|
+
web: zod.z.string().describe("Client's website URL").nullable().optional(),
|
|
7
|
+
city: zod.z.string().describe("Client's city").nullable().optional(),
|
|
8
|
+
name: zod.z.string().describe("Client's first name").nullable().optional(),
|
|
9
|
+
email: zod.z.string().describe("Client's email address").nullable().optional(),
|
|
10
|
+
state: zod.z.string().describe("Client's state/province").nullable().optional(),
|
|
11
|
+
locale: zod.z.string().describe("Client's language preference").nullable().optional(),
|
|
12
|
+
address: zod.z.string().describe("Client's street address").nullable().optional(),
|
|
13
|
+
country: zod.z.string().describe("Client's country name").nullable().optional(),
|
|
14
|
+
surname: zod.z.string().describe("Client's last name").nullable().optional(),
|
|
15
|
+
business: zod.z.string().describe("Client's company name").nullable().optional(),
|
|
16
|
+
currency: zod.z.string().describe("Client's preferred currency (e.g., EUR, USD)").nullable().optional(),
|
|
17
|
+
postcode: zod.z.string().describe("Client's postal code").nullable().optional(),
|
|
18
|
+
full_name: zod.z.string().describe("Client's complete name").nullable().optional(),
|
|
19
|
+
telephone: zod.z.string().describe("Client's phone number").nullable().optional(),
|
|
20
|
+
pdf_page_size: zod.z.string().describe("PDF format preference (e.g., A4)").nullable().optional()
|
|
21
|
+
}).describe("Client attributes from the JSON:API response.");
|
|
22
|
+
const NusiiProposalsGetClient_ClientDataSchema = zod.z.object({
|
|
23
|
+
id: zod.z.string().describe("Unique client identifier"),
|
|
24
|
+
type: zod.z.string().describe("Resource type (always 'clients')"),
|
|
25
|
+
attributes: NusiiProposalsGetClient_ClientAttributesSchema.nullable()
|
|
26
|
+
}).describe("Client resource object from JSON:API format.");
|
|
27
|
+
const NusiiProposalsGetClientOutput = zod.z.object({ data: NusiiProposalsGetClient_ClientDataSchema.nullable() }).describe("Response model for retrieving a single client in JSON:API format.");
|
|
28
|
+
const nusiiProposalsGetClient = require_action.action("NUSII_PROPOSALS_GET_CLIENT", {
|
|
29
|
+
slug: "nusii_proposals-get-client",
|
|
30
|
+
name: "Get Client",
|
|
31
|
+
description: "Tool to retrieve a single client from Nusii using their unique identifier. Use when you need to fetch detailed information about a specific client including contact details, business information, and preferences.",
|
|
32
|
+
input: NusiiProposalsGetClientInput,
|
|
33
|
+
output: NusiiProposalsGetClientOutput
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.nusiiProposalsGetClient = nusiiProposalsGetClient;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=get-client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-client.cjs","names":["z","action"],"sources":["../../src/actions/get-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsGetClientInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the client to retrieve\"),\n}).describe(\"Request model for retrieving a single client.\");\nconst NusiiProposalsGetClient_ClientAttributesSchema: z.ZodTypeAny = z.object({\n web: z.string().describe(\"Client's website URL\").nullable().optional(),\n city: z.string().describe(\"Client's city\").nullable().optional(),\n name: z.string().describe(\"Client's first name\").nullable().optional(),\n email: z.string().describe(\"Client's email address\").nullable().optional(),\n state: z.string().describe(\"Client's state/province\").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 preferred currency (e.g., EUR, USD)\").nullable().optional(),\n postcode: z.string().describe(\"Client's postal code\").nullable().optional(),\n full_name: z.string().describe(\"Client's complete name\").nullable().optional(),\n telephone: z.string().describe(\"Client's phone number\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF format preference (e.g., A4)\").nullable().optional(),\n}).describe(\"Client attributes from the JSON:API response.\");\nconst NusiiProposalsGetClient_ClientDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique client identifier\"),\n type: z.string().describe(\"Resource type (always 'clients')\"),\n attributes: NusiiProposalsGetClient_ClientAttributesSchema.nullable(),\n}).describe(\"Client resource object from JSON:API format.\");\nexport const NusiiProposalsGetClientOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsGetClient_ClientDataSchema.nullable(),\n}).describe(\"Response model for retrieving a single client in JSON:API format.\");\n\nexport const nusiiProposalsGetClient = action(\"NUSII_PROPOSALS_GET_CLIENT\", {\n slug: \"nusii_proposals-get-client\",\n name: \"Get Client\",\n description: \"Tool to retrieve a single client from Nusii using their unique identifier. Use when you need to fetch detailed information about a specific client including contact details, business information, and preferences.\",\n input: NusiiProposalsGetClientInput,\n output: NusiiProposalsGetClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC3E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS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,SAAS,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,YAAY,+CAA+C,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,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/get-client.d.ts
|
|
4
|
+
declare const NusiiProposalsGetClientInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsGetClientOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsGetClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsGetClient };
|
|
9
|
+
//# sourceMappingURL=get-client.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-client.d.cts","names":[],"sources":["../../src/actions/get-client.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEe;AAAA,cAuB/C,6BAAA,EAA+B,CAAA,CAAE,UAEkC;AAAA,cAEnE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-client.d.ts
|
|
4
|
+
declare const NusiiProposalsGetClientInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsGetClientOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsGetClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsGetClient };
|
|
9
|
+
//# sourceMappingURL=get-client.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-client.d.mts","names":[],"sources":["../../src/actions/get-client.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEe;AAAA,cAuB/C,6BAAA,EAA+B,CAAA,CAAE,UAEkC;AAAA,cAEnE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|