@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,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const nusiiProposalsCreateProposal = action("NUSII_PROPOSALS_CREATE_PROPOSAL", {
|
|
4
|
+
slug: "nusii_proposals-create-proposal",
|
|
5
|
+
name: "Create Proposal",
|
|
6
|
+
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.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
theme: z.string().describe("Proposal visual theme. Defaults to 'clean' if not specified.").optional(),
|
|
9
|
+
title: z.string().describe("The proposal's title.").optional(),
|
|
10
|
+
report: z.boolean().describe("Converts the proposal to report format. Defaults to false.").optional(),
|
|
11
|
+
client_id: z.number().int().describe("Associated client identifier. If provided, client_email is ignored.").optional(),
|
|
12
|
+
expires_at: z.string().describe("Proposal expiration date in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').").optional(),
|
|
13
|
+
template_id: z.number().int().describe("Copies sections from the specified template into the new proposal.").optional(),
|
|
14
|
+
client_email: z.string().describe("Client email address. Creates a new client if none exists. Ignored when client_id is provided.").optional(),
|
|
15
|
+
display_date: z.string().describe("Date displayed on the proposal in ISO 8601 format. Defaults to send date if not specified.").optional(),
|
|
16
|
+
exclude_total: z.boolean().describe("Removes the total from the proposal. Defaults to false.").optional(),
|
|
17
|
+
prepared_by_id: z.number().int().describe("User ID of the person who prepared the proposal.").optional(),
|
|
18
|
+
exclude_total_in_pdf: z.boolean().describe("Removes the total from the PDF version of the proposal. Defaults to false.").optional(),
|
|
19
|
+
document_section_title: z.string().describe("Documents section heading. Defaults to 'Documents' if not specified.").optional()
|
|
20
|
+
}).describe("Request model for creating a new proposal in Nusii.\nAll parameters are optional, but at least title or client information is recommended."),
|
|
21
|
+
output: z.object({
|
|
22
|
+
id: z.string().describe("Unique proposal identifier.").nullable().optional(),
|
|
23
|
+
type: z.string().describe("Resource type, typically 'proposals'.").nullable().optional(),
|
|
24
|
+
title: z.string().describe("The proposal title.").nullable().optional(),
|
|
25
|
+
status: z.string().describe("Current proposal status (e.g., 'draft', 'sent', 'viewed').").nullable().optional(),
|
|
26
|
+
currency: z.string().describe("Proposal currency code (e.g., 'USD', 'EUR').").nullable().optional(),
|
|
27
|
+
sections: z.array(z.object({})).describe("Array of related proposal sections.").nullable().optional(),
|
|
28
|
+
client_id: z.number().int().describe("Associated client ID.").nullable().optional(),
|
|
29
|
+
public_id: z.string().describe("Public-facing proposal identifier.").nullable().optional(),
|
|
30
|
+
sender_id: z.number().int().describe("Email sender's user ID.").nullable().optional(),
|
|
31
|
+
account_id: z.number().int().describe("Associated account identifier.").nullable().optional(),
|
|
32
|
+
prepared_by_id: z.number().int().describe("ID of the user who prepared the proposal.").nullable().optional()
|
|
33
|
+
}).describe("Response model for creating a new proposal.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { nusiiProposalsCreateProposal };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=create-proposal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-proposal.mjs","names":[],"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":";;AAgCA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhC6D,EAAE,OAAO;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC7D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACtH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC7I,cAAc,EAAE,OAAO,CAAC,CAAC,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AAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-section.ts
|
|
4
|
+
const NusiiProposalsCreateSectionInput = zod.z.object({
|
|
5
|
+
body: zod.z.string().describe("Section content").optional(),
|
|
6
|
+
name: zod.z.string().describe("Internal section identifier").optional(),
|
|
7
|
+
title: zod.z.string().describe("Section heading").optional(),
|
|
8
|
+
optional: zod.z.boolean().default(false).describe("Client can choose the price package when true (default: false)").optional(),
|
|
9
|
+
position: zod.z.number().int().describe("Display order in proposal/template").optional(),
|
|
10
|
+
reusable: zod.z.boolean().default(false).describe("Reusable sections can be reused to any template/proposal (default: false)").optional(),
|
|
11
|
+
page_break: zod.z.boolean().default(false).describe("PDF page break indicator (default: false)").optional(),
|
|
12
|
+
proposal_id: zod.z.number().int().describe("The proposal identifier. Either proposal_id or template_id should be provided.").optional(),
|
|
13
|
+
template_id: zod.z.number().int().describe("The template identifier. Either proposal_id or template_id should be provided.").optional(),
|
|
14
|
+
section_type: zod.z.string().describe("Either 'text' or 'cost'; defaults to 'text'").optional(),
|
|
15
|
+
include_total: zod.z.boolean().default(false).describe("Display subtotal within section (default: false)").optional()
|
|
16
|
+
}).describe("Request parameters for creating a section in Nusii Proposals.");
|
|
17
|
+
const NusiiProposalsCreateSection_SectionAttributesSchema = zod.z.object({
|
|
18
|
+
title: zod.z.string().describe("Section title").nullable().optional(),
|
|
19
|
+
currency: zod.z.string().describe("Section currency code").nullable().optional(),
|
|
20
|
+
position: zod.z.number().int().describe("Display order").nullable().optional(),
|
|
21
|
+
account_id: zod.z.number().int().describe("Account identifier").nullable().optional(),
|
|
22
|
+
created_at: zod.z.string().describe("Creation timestamp").nullable().optional(),
|
|
23
|
+
updated_at: zod.z.string().describe("Last modification timestamp").nullable().optional(),
|
|
24
|
+
proposal_id: zod.z.number().int().describe("Associated proposal ID").nullable().optional(),
|
|
25
|
+
template_id: zod.z.string().describe("Associated template ID").nullable().optional(),
|
|
26
|
+
section_type: zod.z.string().describe("Type of section").nullable().optional(),
|
|
27
|
+
total_in_cents: zod.z.number().int().describe("Section total in cents").nullable().optional(),
|
|
28
|
+
total_formatted: zod.z.string().describe("Formatted currency total").nullable().optional()
|
|
29
|
+
}).describe("Attributes of a section in the response.");
|
|
30
|
+
const NusiiProposalsCreateSection_SectionDataSchema = zod.z.object({
|
|
31
|
+
id: zod.z.string().describe("Unique section identifier"),
|
|
32
|
+
type: zod.z.string().describe("Resource type ('sections')"),
|
|
33
|
+
attributes: NusiiProposalsCreateSection_SectionAttributesSchema.nullable()
|
|
34
|
+
}).describe("Data structure containing section information.");
|
|
35
|
+
const NusiiProposalsCreateSectionOutput = zod.z.object({ data: NusiiProposalsCreateSection_SectionDataSchema.nullable() }).describe("Response schema from creating a section in Nusii Proposals.");
|
|
36
|
+
const nusiiProposalsCreateSection = require_action.action("NUSII_PROPOSALS_CREATE_SECTION", {
|
|
37
|
+
slug: "nusii_proposals-create-section",
|
|
38
|
+
name: "Create Section",
|
|
39
|
+
description: "Tool to create a section for a proposal or template in Nusii Proposals. Use when you need to add a new section to a proposal or template.",
|
|
40
|
+
input: NusiiProposalsCreateSectionInput,
|
|
41
|
+
output: NusiiProposalsCreateSectionOutput
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.nusiiProposalsCreateSection = nusiiProposalsCreateSection;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=create-section.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-section.cjs","names":["z","action"],"sources":["../../src/actions/create-section.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateSectionInput: z.ZodTypeAny = z.object({\n body: z.string().describe(\"Section content\").optional(),\n name: z.string().describe(\"Internal section identifier\").optional(),\n title: z.string().describe(\"Section heading\").optional(),\n optional: z.boolean().default(false).describe(\"Client can choose the price package when true (default: false)\").optional(),\n position: z.number().int().describe(\"Display order in proposal/template\").optional(),\n reusable: z.boolean().default(false).describe(\"Reusable sections can be reused to any template/proposal (default: false)\").optional(),\n page_break: z.boolean().default(false).describe(\"PDF page break indicator (default: false)\").optional(),\n proposal_id: z.number().int().describe(\"The proposal identifier. Either proposal_id or template_id should be provided.\").optional(),\n template_id: z.number().int().describe(\"The template identifier. Either proposal_id or template_id should be provided.\").optional(),\n section_type: z.string().describe(\"Either 'text' or 'cost'; defaults to 'text'\").optional(),\n include_total: z.boolean().default(false).describe(\"Display subtotal within section (default: false)\").optional(),\n}).describe(\"Request parameters for creating a section in Nusii Proposals.\");\nconst NusiiProposalsCreateSection_SectionAttributesSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Section title\").nullable().optional(),\n currency: z.string().describe(\"Section currency code\").nullable().optional(),\n position: z.number().int().describe(\"Display order\").nullable().optional(),\n account_id: z.number().int().describe(\"Account identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n proposal_id: z.number().int().describe(\"Associated proposal ID\").nullable().optional(),\n template_id: z.string().describe(\"Associated template ID\").nullable().optional(),\n section_type: z.string().describe(\"Type of section\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Section total in cents\").nullable().optional(),\n total_formatted: z.string().describe(\"Formatted currency total\").nullable().optional(),\n}).describe(\"Attributes of a section in the response.\");\nconst NusiiProposalsCreateSection_SectionDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique section identifier\"),\n type: z.string().describe(\"Resource type ('sections')\"),\n attributes: NusiiProposalsCreateSection_SectionAttributesSchema.nullable(),\n}).describe(\"Data structure containing section information.\");\nexport const NusiiProposalsCreateSectionOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsCreateSection_SectionDataSchema.nullable(),\n}).describe(\"Response schema from creating a section in Nusii Proposals.\");\n\nexport const nusiiProposalsCreateSection = action(\"NUSII_PROPOSALS_CREATE_SECTION\", {\n slug: \"nusii_proposals-create-section\",\n name: \"Create Section\",\n description: \"Tool to create a section for a proposal or template in Nusii Proposals. Use when you need to add a new section to a proposal or template.\",\n input: NusiiProposalsCreateSectionInput,\n output: NusiiProposalsCreateSectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACpI,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAA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AAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,YAAY,oDAAoD,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAM,8CAA8C,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,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/create-section.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateSectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateSectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateSection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateSection };
|
|
9
|
+
//# sourceMappingURL=create-section.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-section.d.cts","names":[],"sources":["../../src/actions/create-section.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAY2B;AAAA,cAmB/D,iCAAA,EAAmC,CAAA,CAAE,UAEwB;AAAA,cAE7D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-section.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateSectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateSectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateSection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateSection };
|
|
9
|
+
//# sourceMappingURL=create-section.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-section.d.mts","names":[],"sources":["../../src/actions/create-section.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAY2B;AAAA,cAmB/D,iCAAA,EAAmC,CAAA,CAAE,UAEwB;AAAA,cAE7D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-section.ts
|
|
4
|
+
const NusiiProposalsCreateSectionInput = z.object({
|
|
5
|
+
body: z.string().describe("Section content").optional(),
|
|
6
|
+
name: z.string().describe("Internal section identifier").optional(),
|
|
7
|
+
title: z.string().describe("Section heading").optional(),
|
|
8
|
+
optional: z.boolean().default(false).describe("Client can choose the price package when true (default: false)").optional(),
|
|
9
|
+
position: z.number().int().describe("Display order in proposal/template").optional(),
|
|
10
|
+
reusable: z.boolean().default(false).describe("Reusable sections can be reused to any template/proposal (default: false)").optional(),
|
|
11
|
+
page_break: z.boolean().default(false).describe("PDF page break indicator (default: false)").optional(),
|
|
12
|
+
proposal_id: z.number().int().describe("The proposal identifier. Either proposal_id or template_id should be provided.").optional(),
|
|
13
|
+
template_id: z.number().int().describe("The template identifier. Either proposal_id or template_id should be provided.").optional(),
|
|
14
|
+
section_type: z.string().describe("Either 'text' or 'cost'; defaults to 'text'").optional(),
|
|
15
|
+
include_total: z.boolean().default(false).describe("Display subtotal within section (default: false)").optional()
|
|
16
|
+
}).describe("Request parameters for creating a section in Nusii Proposals.");
|
|
17
|
+
const NusiiProposalsCreateSection_SectionAttributesSchema = z.object({
|
|
18
|
+
title: z.string().describe("Section title").nullable().optional(),
|
|
19
|
+
currency: z.string().describe("Section currency code").nullable().optional(),
|
|
20
|
+
position: z.number().int().describe("Display order").nullable().optional(),
|
|
21
|
+
account_id: z.number().int().describe("Account identifier").nullable().optional(),
|
|
22
|
+
created_at: z.string().describe("Creation timestamp").nullable().optional(),
|
|
23
|
+
updated_at: z.string().describe("Last modification timestamp").nullable().optional(),
|
|
24
|
+
proposal_id: z.number().int().describe("Associated proposal ID").nullable().optional(),
|
|
25
|
+
template_id: z.string().describe("Associated template ID").nullable().optional(),
|
|
26
|
+
section_type: z.string().describe("Type of section").nullable().optional(),
|
|
27
|
+
total_in_cents: z.number().int().describe("Section total in cents").nullable().optional(),
|
|
28
|
+
total_formatted: z.string().describe("Formatted currency total").nullable().optional()
|
|
29
|
+
}).describe("Attributes of a section in the response.");
|
|
30
|
+
const NusiiProposalsCreateSection_SectionDataSchema = z.object({
|
|
31
|
+
id: z.string().describe("Unique section identifier"),
|
|
32
|
+
type: z.string().describe("Resource type ('sections')"),
|
|
33
|
+
attributes: NusiiProposalsCreateSection_SectionAttributesSchema.nullable()
|
|
34
|
+
}).describe("Data structure containing section information.");
|
|
35
|
+
const nusiiProposalsCreateSection = action("NUSII_PROPOSALS_CREATE_SECTION", {
|
|
36
|
+
slug: "nusii_proposals-create-section",
|
|
37
|
+
name: "Create Section",
|
|
38
|
+
description: "Tool to create a section for a proposal or template in Nusii Proposals. Use when you need to add a new section to a proposal or template.",
|
|
39
|
+
input: NusiiProposalsCreateSectionInput,
|
|
40
|
+
output: z.object({ data: NusiiProposalsCreateSection_SectionDataSchema.nullable() }).describe("Response schema from creating a section in Nusii Proposals.")
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { nusiiProposalsCreateSection };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=create-section.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-section.mjs","names":[],"sources":["../../src/actions/create-section.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateSectionInput: z.ZodTypeAny = z.object({\n body: z.string().describe(\"Section content\").optional(),\n name: z.string().describe(\"Internal section identifier\").optional(),\n title: z.string().describe(\"Section heading\").optional(),\n optional: z.boolean().default(false).describe(\"Client can choose the price package when true (default: false)\").optional(),\n position: z.number().int().describe(\"Display order in proposal/template\").optional(),\n reusable: z.boolean().default(false).describe(\"Reusable sections can be reused to any template/proposal (default: false)\").optional(),\n page_break: z.boolean().default(false).describe(\"PDF page break indicator (default: false)\").optional(),\n proposal_id: z.number().int().describe(\"The proposal identifier. Either proposal_id or template_id should be provided.\").optional(),\n template_id: z.number().int().describe(\"The template identifier. Either proposal_id or template_id should be provided.\").optional(),\n section_type: z.string().describe(\"Either 'text' or 'cost'; defaults to 'text'\").optional(),\n include_total: z.boolean().default(false).describe(\"Display subtotal within section (default: false)\").optional(),\n}).describe(\"Request parameters for creating a section in Nusii Proposals.\");\nconst NusiiProposalsCreateSection_SectionAttributesSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Section title\").nullable().optional(),\n currency: z.string().describe(\"Section currency code\").nullable().optional(),\n position: z.number().int().describe(\"Display order\").nullable().optional(),\n account_id: z.number().int().describe(\"Account identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable().optional(),\n updated_at: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n proposal_id: z.number().int().describe(\"Associated proposal ID\").nullable().optional(),\n template_id: z.string().describe(\"Associated template ID\").nullable().optional(),\n section_type: z.string().describe(\"Type of section\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Section total in cents\").nullable().optional(),\n total_formatted: z.string().describe(\"Formatted currency total\").nullable().optional(),\n}).describe(\"Attributes of a section in the response.\");\nconst NusiiProposalsCreateSection_SectionDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique section identifier\"),\n type: z.string().describe(\"Resource type ('sections')\"),\n attributes: NusiiProposalsCreateSection_SectionAttributesSchema.nullable(),\n}).describe(\"Data structure containing section information.\");\nexport const NusiiProposalsCreateSectionOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsCreateSection_SectionDataSchema.nullable(),\n}).describe(\"Response schema from creating a section in Nusii Proposals.\");\n\nexport const nusiiProposalsCreateSection = action(\"NUSII_PROPOSALS_CREATE_SECTION\", {\n slug: \"nusii_proposals-create-section\",\n name: \"Create Section\",\n description: \"Tool to create a section for a proposal or template in Nusii Proposals. Use when you need to add a new section to a proposal or template.\",\n input: NusiiProposalsCreateSectionInput,\n output: NusiiProposalsCreateSectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,YAAY,oDAAoD,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAK5D,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,8CAA8C,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-webhook-endpoint.ts
|
|
4
|
+
const NusiiProposalsCreateWebhookEndpointInput = zod.z.object({
|
|
5
|
+
events: zod.z.array(zod.z.string()).describe("Array of event names to subscribe to (e.g., [\"proposal_created\", \"client_created\"])."),
|
|
6
|
+
target_url: zod.z.string().describe("Destination URL of the webhook request. This is where webhook events will be sent.")
|
|
7
|
+
}).describe("Request model for creating a webhook endpoint.");
|
|
8
|
+
const NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema = zod.z.object({
|
|
9
|
+
events: zod.z.array(zod.z.string()).describe("Array of subscribed event names."),
|
|
10
|
+
target_url: zod.z.string().describe("The configured destination URL.")
|
|
11
|
+
}).describe("Attributes of the webhook endpoint.");
|
|
12
|
+
const NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema = zod.z.object({
|
|
13
|
+
id: zod.z.string().describe("Unique identifier for the webhook endpoint."),
|
|
14
|
+
type: zod.z.string().describe("Resource type (always \"webhook_endpoints\")."),
|
|
15
|
+
attributes: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema.nullable()
|
|
16
|
+
}).describe("Data object containing webhook endpoint details.");
|
|
17
|
+
const NusiiProposalsCreateWebhookEndpointOutput = zod.z.object({ data: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema.nullable() }).describe("Response schema for creating a webhook endpoint.");
|
|
18
|
+
const nusiiProposalsCreateWebhookEndpoint = require_action.action("NUSII_PROPOSALS_CREATE_WEBHOOK_ENDPOINT", {
|
|
19
|
+
slug: "nusii_proposals-create-webhook-endpoint",
|
|
20
|
+
name: "Create Webhook Endpoint",
|
|
21
|
+
description: "Tool to create a webhook endpoint to subscribe to Nusii events. Use when you need to register a new webhook for receiving event notifications.",
|
|
22
|
+
input: NusiiProposalsCreateWebhookEndpointInput,
|
|
23
|
+
output: NusiiProposalsCreateWebhookEndpointOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.nusiiProposalsCreateWebhookEndpoint = nusiiProposalsCreateWebhookEndpoint;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=create-webhook-endpoint.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook-endpoint.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateWebhookEndpointInput: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Array of event names to subscribe to (e.g., [\\\"proposal_created\\\", \\\"client_created\\\"]).\"),\n target_url: z.string().describe(\"Destination URL of the webhook request. This is where webhook events will be sent.\"),\n}).describe(\"Request model for creating a webhook endpoint.\");\nconst NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Array of subscribed event names.\"),\n target_url: z.string().describe(\"The configured destination URL.\"),\n}).describe(\"Attributes of the webhook endpoint.\");\nconst NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webhook endpoint.\"),\n type: z.string().describe(\"Resource type (always \\\"webhook_endpoints\\\").\"),\n attributes: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema.nullable(),\n}).describe(\"Data object containing webhook endpoint details.\");\nexport const NusiiProposalsCreateWebhookEndpointOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema.nullable(),\n}).describe(\"Response schema for creating a webhook endpoint.\");\n\nexport const nusiiProposalsCreateWebhookEndpoint = action(\"NUSII_PROPOSALS_CREATE_WEBHOOK_ENDPOINT\", {\n slug: \"nusii_proposals-create-webhook-endpoint\",\n name: \"Create Webhook Endpoint\",\n description: \"Tool to create a webhook endpoint to subscribe to Nusii events. Use when you need to register a new webhook for receiving event notifications.\",\n input: NusiiProposalsCreateWebhookEndpointInput,\n output: NusiiProposalsCreateWebhookEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;CAC/H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACtH,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sEAAoFA,IAAAA,EAAE,OAAO;CACjG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,YAAY,oEAAoE,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4CAA0DA,IAAAA,EAAE,OAAO,EAC9E,MAAM,8DAA8D,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,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/create-webhook-endpoint.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateWebhookEndpointInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateWebhookEndpointOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateWebhookEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateWebhookEndpoint };
|
|
9
|
+
//# sourceMappingURL=create-webhook-endpoint.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook-endpoint.d.cts","names":[],"sources":["../../src/actions/create-webhook-endpoint.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGI;AAAA,cAUhD,yCAAA,EAA2C,CAAA,CAAE,UAEK;AAAA,cAElD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-webhook-endpoint.d.ts
|
|
4
|
+
declare const NusiiProposalsCreateWebhookEndpointInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsCreateWebhookEndpointOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsCreateWebhookEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsCreateWebhookEndpoint };
|
|
9
|
+
//# sourceMappingURL=create-webhook-endpoint.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook-endpoint.d.mts","names":[],"sources":["../../src/actions/create-webhook-endpoint.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGI;AAAA,cAUhD,yCAAA,EAA2C,CAAA,CAAE,UAEK;AAAA,cAElD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-webhook-endpoint.ts
|
|
4
|
+
const NusiiProposalsCreateWebhookEndpointInput = z.object({
|
|
5
|
+
events: z.array(z.string()).describe("Array of event names to subscribe to (e.g., [\"proposal_created\", \"client_created\"])."),
|
|
6
|
+
target_url: z.string().describe("Destination URL of the webhook request. This is where webhook events will be sent.")
|
|
7
|
+
}).describe("Request model for creating a webhook endpoint.");
|
|
8
|
+
const NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema = z.object({
|
|
9
|
+
events: z.array(z.string()).describe("Array of subscribed event names."),
|
|
10
|
+
target_url: z.string().describe("The configured destination URL.")
|
|
11
|
+
}).describe("Attributes of the webhook endpoint.");
|
|
12
|
+
const NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema = z.object({
|
|
13
|
+
id: z.string().describe("Unique identifier for the webhook endpoint."),
|
|
14
|
+
type: z.string().describe("Resource type (always \"webhook_endpoints\")."),
|
|
15
|
+
attributes: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema.nullable()
|
|
16
|
+
}).describe("Data object containing webhook endpoint details.");
|
|
17
|
+
const nusiiProposalsCreateWebhookEndpoint = action("NUSII_PROPOSALS_CREATE_WEBHOOK_ENDPOINT", {
|
|
18
|
+
slug: "nusii_proposals-create-webhook-endpoint",
|
|
19
|
+
name: "Create Webhook Endpoint",
|
|
20
|
+
description: "Tool to create a webhook endpoint to subscribe to Nusii events. Use when you need to register a new webhook for receiving event notifications.",
|
|
21
|
+
input: NusiiProposalsCreateWebhookEndpointInput,
|
|
22
|
+
output: z.object({ data: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema.nullable() }).describe("Response schema for creating a webhook endpoint.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { nusiiProposalsCreateWebhookEndpoint };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=create-webhook-endpoint.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook-endpoint.mjs","names":[],"sources":["../../src/actions/create-webhook-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsCreateWebhookEndpointInput: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Array of event names to subscribe to (e.g., [\\\"proposal_created\\\", \\\"client_created\\\"]).\"),\n target_url: z.string().describe(\"Destination URL of the webhook request. This is where webhook events will be sent.\"),\n}).describe(\"Request model for creating a webhook endpoint.\");\nconst NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema: z.ZodTypeAny = z.object({\n events: z.array(z.string()).describe(\"Array of subscribed event names.\"),\n target_url: z.string().describe(\"The configured destination URL.\"),\n}).describe(\"Attributes of the webhook endpoint.\");\nconst NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webhook endpoint.\"),\n type: z.string().describe(\"Resource type (always \\\"webhook_endpoints\\\").\"),\n attributes: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointAttributesSchema.nullable(),\n}).describe(\"Data object containing webhook endpoint details.\");\nexport const NusiiProposalsCreateWebhookEndpointOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsCreateWebhookEndpoint_WebhookEndpointDataSchema.nullable(),\n}).describe(\"Response schema for creating a webhook endpoint.\");\n\nexport const nusiiProposalsCreateWebhookEndpoint = action(\"NUSII_PROPOSALS_CREATE_WEBHOOK_ENDPOINT\", {\n slug: \"nusii_proposals-create-webhook-endpoint\",\n name: \"Create Webhook Endpoint\",\n description: \"Tool to create a webhook endpoint to subscribe to Nusii events. Use when you need to register a new webhook for receiving event notifications.\",\n input: NusiiProposalsCreateWebhookEndpointInput,\n output: NusiiProposalsCreateWebhookEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;CAC/H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACtH,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,sEAAoF,EAAE,OAAO;CACjG,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACnE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gEAA8E,EAAE,OAAO;CAC3F,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,YAAY,oEAAoE,SAAS;AAC3F,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,EAC/E,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-client.ts
|
|
4
|
+
const NusiiProposalsDeleteClientInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the client to delete") }).describe("Request parameters to delete a client.");
|
|
5
|
+
const NusiiProposalsDeleteClient_DeleteClientAttributesSchema = 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("Client first name").nullable().optional(),
|
|
9
|
+
email: zod.z.string().describe("Client email address").nullable().optional(),
|
|
10
|
+
state: zod.z.string().describe("State/region name").nullable().optional(),
|
|
11
|
+
locale: zod.z.string().describe("Locale code (e.g., nl, en)").nullable().optional(),
|
|
12
|
+
address: zod.z.string().describe("Street address").nullable().optional(),
|
|
13
|
+
country: zod.z.string().describe("Country name").nullable().optional(),
|
|
14
|
+
surname: zod.z.string().describe("Client last name").nullable().optional(),
|
|
15
|
+
business: zod.z.string().describe("Business/company name").nullable().optional(),
|
|
16
|
+
currency: zod.z.string().describe("Currency code (e.g., EUR, USD)").nullable().optional(),
|
|
17
|
+
postcode: zod.z.string().describe("Postal/ZIP code").nullable().optional(),
|
|
18
|
+
full_name: zod.z.string().describe("Full name of the client").nullable().optional(),
|
|
19
|
+
telephone: zod.z.string().describe("Phone number").nullable().optional(),
|
|
20
|
+
pdf_page_size: zod.z.string().describe("PDF page size preference (e.g., A4)").nullable().optional()
|
|
21
|
+
}).describe("Client attributes returned after deletion.");
|
|
22
|
+
const NusiiProposalsDeleteClient_DeleteClientDataSchema = zod.z.object({
|
|
23
|
+
id: zod.z.string().describe("The unique identifier of the deleted client").nullable().optional(),
|
|
24
|
+
type: zod.z.string().describe("Resource type, always 'clients'").nullable().optional(),
|
|
25
|
+
attributes: NusiiProposalsDeleteClient_DeleteClientAttributesSchema.nullable().optional()
|
|
26
|
+
}).describe("Container for the deleted client data.");
|
|
27
|
+
const NusiiProposalsDeleteClientOutput = zod.z.object({ data: NusiiProposalsDeleteClient_DeleteClientDataSchema.nullable().optional() }).describe("Response schema for delete client action.");
|
|
28
|
+
const nusiiProposalsDeleteClient = require_action.action("NUSII_PROPOSALS_DELETE_CLIENT", {
|
|
29
|
+
slug: "nusii_proposals-delete-client",
|
|
30
|
+
name: "Delete a client",
|
|
31
|
+
description: "Tool to delete a specific client from Nusii account. Use when you need to permanently remove a client record.",
|
|
32
|
+
input: NusiiProposalsDeleteClientInput,
|
|
33
|
+
output: NusiiProposalsDeleteClientOutput
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.nusiiProposalsDeleteClient = nusiiProposalsDeleteClient;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=delete-client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-client.cjs","names":["z","action"],"sources":["../../src/actions/delete-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteClientInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the client to delete\"),\n}).describe(\"Request parameters to delete a client.\");\nconst NusiiProposalsDeleteClient_DeleteClientAttributesSchema: 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(\"Client first name\").nullable().optional(),\n email: z.string().describe(\"Client email address\").nullable().optional(),\n state: z.string().describe(\"State/region name\").nullable().optional(),\n locale: z.string().describe(\"Locale code (e.g., nl, en)\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n surname: z.string().describe(\"Client last name\").nullable().optional(),\n business: z.string().describe(\"Business/company name\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., EUR, USD)\").nullable().optional(),\n postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the client\").nullable().optional(),\n telephone: z.string().describe(\"Phone number\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF page size preference (e.g., A4)\").nullable().optional(),\n}).describe(\"Client attributes returned after deletion.\");\nconst NusiiProposalsDeleteClient_DeleteClientDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted client\").nullable().optional(),\n type: z.string().describe(\"Resource type, always 'clients'\").nullable().optional(),\n attributes: NusiiProposalsDeleteClient_DeleteClientAttributesSchema.nullable().optional(),\n}).describe(\"Container for the deleted client data.\");\nexport const NusiiProposalsDeleteClientOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteClient_DeleteClientDataSchema.nullable().optional(),\n}).describe(\"Response schema for delete client action.\");\n\nexport const nusiiProposalsDeleteClient = action(\"NUSII_PROPOSALS_DELETE_CLIENT\", {\n slug: \"nusii_proposals-delete-client\",\n name: \"Delete a client\",\n description: \"Tool to delete a specific client from Nusii account. Use when you need to permanently remove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,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,oDAAkEA,IAAAA,EAAE,OAAO;CAC/E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,kDAAkD,SAAS,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,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/delete-client.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteClientInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteClientOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteClient };
|
|
9
|
+
//# sourceMappingURL=delete-client.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-client.d.cts","names":[],"sources":["../../src/actions/delete-client.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEK;AAAA,cAuBxC,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/delete-client.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteClientInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteClientOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteClient: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteClient };
|
|
9
|
+
//# sourceMappingURL=delete-client.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-client.d.mts","names":[],"sources":["../../src/actions/delete-client.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEK;AAAA,cAuBxC,gCAAA,EAAkC,CAAA,CAAE,UAEO;AAAA,cAE3C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/delete-client.ts
|
|
4
|
+
const NusiiProposalsDeleteClientInput = z.object({ id: z.string().describe("The unique identifier of the client to delete") }).describe("Request parameters to delete a client.");
|
|
5
|
+
const NusiiProposalsDeleteClient_DeleteClientAttributesSchema = 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("Client first name").nullable().optional(),
|
|
9
|
+
email: z.string().describe("Client email address").nullable().optional(),
|
|
10
|
+
state: z.string().describe("State/region name").nullable().optional(),
|
|
11
|
+
locale: z.string().describe("Locale code (e.g., nl, en)").nullable().optional(),
|
|
12
|
+
address: z.string().describe("Street address").nullable().optional(),
|
|
13
|
+
country: z.string().describe("Country name").nullable().optional(),
|
|
14
|
+
surname: z.string().describe("Client last name").nullable().optional(),
|
|
15
|
+
business: z.string().describe("Business/company name").nullable().optional(),
|
|
16
|
+
currency: z.string().describe("Currency code (e.g., EUR, USD)").nullable().optional(),
|
|
17
|
+
postcode: z.string().describe("Postal/ZIP code").nullable().optional(),
|
|
18
|
+
full_name: z.string().describe("Full name of the client").nullable().optional(),
|
|
19
|
+
telephone: z.string().describe("Phone number").nullable().optional(),
|
|
20
|
+
pdf_page_size: z.string().describe("PDF page size preference (e.g., A4)").nullable().optional()
|
|
21
|
+
}).describe("Client attributes returned after deletion.");
|
|
22
|
+
const NusiiProposalsDeleteClient_DeleteClientDataSchema = z.object({
|
|
23
|
+
id: z.string().describe("The unique identifier of the deleted client").nullable().optional(),
|
|
24
|
+
type: z.string().describe("Resource type, always 'clients'").nullable().optional(),
|
|
25
|
+
attributes: NusiiProposalsDeleteClient_DeleteClientAttributesSchema.nullable().optional()
|
|
26
|
+
}).describe("Container for the deleted client data.");
|
|
27
|
+
const nusiiProposalsDeleteClient = action("NUSII_PROPOSALS_DELETE_CLIENT", {
|
|
28
|
+
slug: "nusii_proposals-delete-client",
|
|
29
|
+
name: "Delete a client",
|
|
30
|
+
description: "Tool to delete a specific client from Nusii account. Use when you need to permanently remove a client record.",
|
|
31
|
+
input: NusiiProposalsDeleteClientInput,
|
|
32
|
+
output: z.object({ data: NusiiProposalsDeleteClient_DeleteClientDataSchema.nullable().optional() }).describe("Response schema for delete client action.")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { nusiiProposalsDeleteClient };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=delete-client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-client.mjs","names":[],"sources":["../../src/actions/delete-client.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteClientInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the client to delete\"),\n}).describe(\"Request parameters to delete a client.\");\nconst NusiiProposalsDeleteClient_DeleteClientAttributesSchema: 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(\"Client first name\").nullable().optional(),\n email: z.string().describe(\"Client email address\").nullable().optional(),\n state: z.string().describe(\"State/region name\").nullable().optional(),\n locale: z.string().describe(\"Locale code (e.g., nl, en)\").nullable().optional(),\n address: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n surname: z.string().describe(\"Client last name\").nullable().optional(),\n business: z.string().describe(\"Business/company name\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., EUR, USD)\").nullable().optional(),\n postcode: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the client\").nullable().optional(),\n telephone: z.string().describe(\"Phone number\").nullable().optional(),\n pdf_page_size: z.string().describe(\"PDF page size preference (e.g., A4)\").nullable().optional(),\n}).describe(\"Client attributes returned after deletion.\");\nconst NusiiProposalsDeleteClient_DeleteClientDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the deleted client\").nullable().optional(),\n type: z.string().describe(\"Resource type, always 'clients'\").nullable().optional(),\n attributes: NusiiProposalsDeleteClient_DeleteClientAttributesSchema.nullable().optional(),\n}).describe(\"Container for the deleted client data.\");\nexport const NusiiProposalsDeleteClientOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteClient_DeleteClientDataSchema.nullable().optional(),\n}).describe(\"Response schema for delete client action.\");\n\nexport const nusiiProposalsDeleteClient = action(\"NUSII_PROPOSALS_DELETE_CLIENT\", {\n slug: \"nusii_proposals-delete-client\",\n name: \"Delete a client\",\n description: \"Tool to delete a specific client from Nusii account. Use when you need to permanently remove a client record.\",\n input: NusiiProposalsDeleteClientInput,\n output: NusiiProposalsDeleteClientOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO,EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EACzE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,0DAAwE,EAAE,OAAO;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CA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AM,kDAAkD,SAAS,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-line-item.ts
|
|
4
|
+
const NusiiProposalsDeleteLineItemInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the line item to delete") }).describe("Request model for deleting a line item by its unique identifier.");
|
|
5
|
+
const NusiiProposalsDeleteLineItem_LineItemAttributesSchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the line item").nullable().optional(),
|
|
7
|
+
currency: zod.z.string().describe("Currency code (e.g., 'GBP')").nullable().optional(),
|
|
8
|
+
per_type: zod.z.string().describe("Unit type if applicable").nullable().optional(),
|
|
9
|
+
position: zod.z.number().int().describe("Position in the list").nullable().optional(),
|
|
10
|
+
quantity: zod.z.number().describe("Quantity if applicable").nullable().optional(),
|
|
11
|
+
cost_type: zod.z.string().describe("Type of cost (e.g., 'fixed')").nullable().optional(),
|
|
12
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp of creation").nullable().optional(),
|
|
13
|
+
section_id: zod.z.number().int().describe("ID of the parent section").nullable().optional(),
|
|
14
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp of last update").nullable().optional(),
|
|
15
|
+
recurring_type: zod.z.string().describe("Recurring frequency if applicable").nullable().optional(),
|
|
16
|
+
total_in_cents: zod.z.number().int().describe("Total in smallest currency unit").nullable().optional(),
|
|
17
|
+
amount_in_cents: zod.z.number().int().describe("Amount in smallest currency unit").nullable().optional(),
|
|
18
|
+
total_formatted: zod.z.string().describe("Formatted total with currency symbol").nullable().optional(),
|
|
19
|
+
amount_formatted: zod.z.string().describe("Formatted amount with currency symbol").nullable().optional()
|
|
20
|
+
}).describe("Attributes of the deleted line item.");
|
|
21
|
+
const NusiiProposalsDeleteLineItem_LineItemDataSchema = zod.z.object({
|
|
22
|
+
id: zod.z.string().describe("The line item identifier").nullable().optional(),
|
|
23
|
+
type: zod.z.string().describe("Resource type (e.g., 'line_items')").nullable().optional(),
|
|
24
|
+
attributes: NusiiProposalsDeleteLineItem_LineItemAttributesSchema.nullable().optional()
|
|
25
|
+
}).describe("Container for line item data.");
|
|
26
|
+
const NusiiProposalsDeleteLineItemOutput = zod.z.object({ data: NusiiProposalsDeleteLineItem_LineItemDataSchema.nullable().optional() }).describe("Response model for deleted line item.");
|
|
27
|
+
const nusiiProposalsDeleteLineItem = require_action.action("NUSII_PROPOSALS_DELETE_LINE_ITEM", {
|
|
28
|
+
slug: "nusii_proposals-delete-line-item",
|
|
29
|
+
name: "Delete Line Item",
|
|
30
|
+
description: "Tool to delete a line item from Nusii. Use when you need to remove a specific line item by its ID.",
|
|
31
|
+
input: NusiiProposalsDeleteLineItemInput,
|
|
32
|
+
output: NusiiProposalsDeleteLineItemOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.nusiiProposalsDeleteLineItem = nusiiProposalsDeleteLineItem;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=delete-line-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-line-item.cjs","names":["z","action"],"sources":["../../src/actions/delete-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteLineItemInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the line item to delete\"),\n}).describe(\"Request model for deleting a line item by its unique identifier.\");\nconst NusiiProposalsDeleteLineItem_LineItemAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the line item\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., 'GBP')\").nullable().optional(),\n per_type: z.string().describe(\"Unit type if applicable\").nullable().optional(),\n position: z.number().int().describe(\"Position in the list\").nullable().optional(),\n quantity: z.number().describe(\"Quantity if applicable\").nullable().optional(),\n cost_type: z.string().describe(\"Type of cost (e.g., 'fixed')\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable().optional(),\n section_id: z.number().int().describe(\"ID of the parent section\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n recurring_type: z.string().describe(\"Recurring frequency if applicable\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Total in smallest currency unit\").nullable().optional(),\n amount_in_cents: z.number().int().describe(\"Amount in smallest currency unit\").nullable().optional(),\n total_formatted: z.string().describe(\"Formatted total with currency symbol\").nullable().optional(),\n amount_formatted: z.string().describe(\"Formatted amount with currency symbol\").nullable().optional(),\n}).describe(\"Attributes of the deleted line item.\");\nconst NusiiProposalsDeleteLineItem_LineItemDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The line item identifier\").nullable().optional(),\n type: z.string().describe(\"Resource type (e.g., 'line_items')\").nullable().optional(),\n attributes: NusiiProposalsDeleteLineItem_LineItemAttributesSchema.nullable().optional(),\n}).describe(\"Container for line item data.\");\nexport const NusiiProposalsDeleteLineItemOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteLineItem_LineItemDataSchema.nullable().optional(),\n}).describe(\"Response model for deleted line item.\");\n\nexport const nusiiProposalsDeleteLineItem = action(\"NUSII_PROPOSALS_DELETE_LINE_ITEM\", {\n slug: \"nusii_proposals-delete-line-item\",\n name: \"Delete Line Item\",\n description: \"Tool to delete a line item from Nusii. Use when you need to remove a specific line item by its ID.\",\n input: NusiiProposalsDeleteLineItemInput,\n output: NusiiProposalsDeleteLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EAC5E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,MAAMA,IAAAA,EAAE,O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AAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAY,sDAAsD,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,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/delete-line-item.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteLineItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteLineItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteLineItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteLineItem };
|
|
9
|
+
//# sourceMappingURL=delete-line-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-line-item.d.cts","names":[],"sources":["../../src/actions/delete-line-item.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAE6B;AAAA,cAsBlE,kCAAA,EAAoC,CAAA,CAAE,UAEC;AAAA,cAEvC,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-line-item.d.ts
|
|
4
|
+
declare const NusiiProposalsDeleteLineItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const NusiiProposalsDeleteLineItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nusiiProposalsDeleteLineItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nusiiProposalsDeleteLineItem };
|
|
9
|
+
//# sourceMappingURL=delete-line-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-line-item.d.mts","names":[],"sources":["../../src/actions/delete-line-item.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAE6B;AAAA,cAsBlE,kCAAA,EAAoC,CAAA,CAAE,UAEC;AAAA,cAEvC,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/delete-line-item.ts
|
|
4
|
+
const NusiiProposalsDeleteLineItemInput = z.object({ id: z.string().describe("The unique identifier of the line item to delete") }).describe("Request model for deleting a line item by its unique identifier.");
|
|
5
|
+
const NusiiProposalsDeleteLineItem_LineItemAttributesSchema = z.object({
|
|
6
|
+
name: z.string().describe("Name of the line item").nullable().optional(),
|
|
7
|
+
currency: z.string().describe("Currency code (e.g., 'GBP')").nullable().optional(),
|
|
8
|
+
per_type: z.string().describe("Unit type if applicable").nullable().optional(),
|
|
9
|
+
position: z.number().int().describe("Position in the list").nullable().optional(),
|
|
10
|
+
quantity: z.number().describe("Quantity if applicable").nullable().optional(),
|
|
11
|
+
cost_type: z.string().describe("Type of cost (e.g., 'fixed')").nullable().optional(),
|
|
12
|
+
created_at: z.string().describe("ISO 8601 timestamp of creation").nullable().optional(),
|
|
13
|
+
section_id: z.number().int().describe("ID of the parent section").nullable().optional(),
|
|
14
|
+
updated_at: z.string().describe("ISO 8601 timestamp of last update").nullable().optional(),
|
|
15
|
+
recurring_type: z.string().describe("Recurring frequency if applicable").nullable().optional(),
|
|
16
|
+
total_in_cents: z.number().int().describe("Total in smallest currency unit").nullable().optional(),
|
|
17
|
+
amount_in_cents: z.number().int().describe("Amount in smallest currency unit").nullable().optional(),
|
|
18
|
+
total_formatted: z.string().describe("Formatted total with currency symbol").nullable().optional(),
|
|
19
|
+
amount_formatted: z.string().describe("Formatted amount with currency symbol").nullable().optional()
|
|
20
|
+
}).describe("Attributes of the deleted line item.");
|
|
21
|
+
const NusiiProposalsDeleteLineItem_LineItemDataSchema = z.object({
|
|
22
|
+
id: z.string().describe("The line item identifier").nullable().optional(),
|
|
23
|
+
type: z.string().describe("Resource type (e.g., 'line_items')").nullable().optional(),
|
|
24
|
+
attributes: NusiiProposalsDeleteLineItem_LineItemAttributesSchema.nullable().optional()
|
|
25
|
+
}).describe("Container for line item data.");
|
|
26
|
+
const nusiiProposalsDeleteLineItem = action("NUSII_PROPOSALS_DELETE_LINE_ITEM", {
|
|
27
|
+
slug: "nusii_proposals-delete-line-item",
|
|
28
|
+
name: "Delete Line Item",
|
|
29
|
+
description: "Tool to delete a line item from Nusii. Use when you need to remove a specific line item by its ID.",
|
|
30
|
+
input: NusiiProposalsDeleteLineItemInput,
|
|
31
|
+
output: z.object({ data: NusiiProposalsDeleteLineItem_LineItemDataSchema.nullable().optional() }).describe("Response model for deleted line item.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { nusiiProposalsDeleteLineItem };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=delete-line-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-line-item.mjs","names":[],"sources":["../../src/actions/delete-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NusiiProposalsDeleteLineItemInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the line item to delete\"),\n}).describe(\"Request model for deleting a line item by its unique identifier.\");\nconst NusiiProposalsDeleteLineItem_LineItemAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the line item\").nullable().optional(),\n currency: z.string().describe(\"Currency code (e.g., 'GBP')\").nullable().optional(),\n per_type: z.string().describe(\"Unit type if applicable\").nullable().optional(),\n position: z.number().int().describe(\"Position in the list\").nullable().optional(),\n quantity: z.number().describe(\"Quantity if applicable\").nullable().optional(),\n cost_type: z.string().describe(\"Type of cost (e.g., 'fixed')\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable().optional(),\n section_id: z.number().int().describe(\"ID of the parent section\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n recurring_type: z.string().describe(\"Recurring frequency if applicable\").nullable().optional(),\n total_in_cents: z.number().int().describe(\"Total in smallest currency unit\").nullable().optional(),\n amount_in_cents: z.number().int().describe(\"Amount in smallest currency unit\").nullable().optional(),\n total_formatted: z.string().describe(\"Formatted total with currency symbol\").nullable().optional(),\n amount_formatted: z.string().describe(\"Formatted amount with currency symbol\").nullable().optional(),\n}).describe(\"Attributes of the deleted line item.\");\nconst NusiiProposalsDeleteLineItem_LineItemDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The line item identifier\").nullable().optional(),\n type: z.string().describe(\"Resource type (e.g., 'line_items')\").nullable().optional(),\n attributes: NusiiProposalsDeleteLineItem_LineItemAttributesSchema.nullable().optional(),\n}).describe(\"Container for line item data.\");\nexport const NusiiProposalsDeleteLineItemOutput: z.ZodTypeAny = z.object({\n data: NusiiProposalsDeleteLineItem_LineItemDataSchema.nullable().optional(),\n}).describe(\"Response model for deleted line item.\");\n\nexport const nusiiProposalsDeleteLineItem = action(\"NUSII_PROPOSALS_DELETE_LINE_ITEM\", {\n slug: \"nusii_proposals-delete-line-item\",\n name: \"Delete Line Item\",\n description: \"Tool to delete a line item from Nusii. Use when you need to remove a specific line item by its ID.\",\n input: NusiiProposalsDeleteLineItemInput,\n output: NusiiProposalsDeleteLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EAC5E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,wDAAsE,EAAE,OAAO;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAY,EAA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