@keystrokehq/simplero 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-tag-to-contact.cjs +1 -0
- package/dist/actions/add-tag-to-contact.cjs.map +1 -1
- package/dist/actions/add-tag-to-contact.d.cts +3 -16
- package/dist/actions/add-tag-to-contact.d.cts.map +1 -1
- package/dist/actions/add-tag-to-contact.d.mts +3 -16
- package/dist/actions/add-tag-to-contact.d.mts.map +1 -1
- package/dist/actions/add-tag-to-contact.mjs +1 -0
- package/dist/actions/add-tag-to-contact.mjs.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.cjs +1 -0
- package/dist/actions/bulk-subscribe-to-list.cjs.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.d.cts +3 -31
- package/dist/actions/bulk-subscribe-to-list.d.cts.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.d.mts +3 -31
- package/dist/actions/bulk-subscribe-to-list.d.mts.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.mjs +1 -0
- package/dist/actions/bulk-subscribe-to-list.mjs.map +1 -1
- package/dist/actions/create-or-update-administrator.cjs +1 -0
- package/dist/actions/create-or-update-administrator.cjs.map +1 -1
- package/dist/actions/create-or-update-administrator.d.cts +3 -22
- package/dist/actions/create-or-update-administrator.d.cts.map +1 -1
- package/dist/actions/create-or-update-administrator.d.mts +3 -22
- package/dist/actions/create-or-update-administrator.d.mts.map +1 -1
- package/dist/actions/create-or-update-administrator.mjs +1 -0
- package/dist/actions/create-or-update-administrator.mjs.map +1 -1
- package/dist/actions/create-or-update-contact.cjs +1 -0
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +3 -30
- package/dist/actions/create-or-update-contact.d.cts.map +1 -1
- package/dist/actions/create-or-update-contact.d.mts +3 -30
- package/dist/actions/create-or-update-contact.d.mts.map +1 -1
- package/dist/actions/create-or-update-contact.mjs +1 -0
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/find-contact-by-email.cjs +1 -0
- package/dist/actions/find-contact-by-email.cjs.map +1 -1
- package/dist/actions/find-contact-by-email.d.cts +3 -15
- package/dist/actions/find-contact-by-email.d.cts.map +1 -1
- package/dist/actions/find-contact-by-email.d.mts +3 -15
- package/dist/actions/find-contact-by-email.d.mts.map +1 -1
- package/dist/actions/find-contact-by-email.mjs +1 -0
- package/dist/actions/find-contact-by-email.mjs.map +1 -1
- package/dist/actions/find-subscription-by-email.cjs +1 -0
- package/dist/actions/find-subscription-by-email.cjs.map +1 -1
- package/dist/actions/find-subscription-by-email.d.cts +3 -16
- package/dist/actions/find-subscription-by-email.d.cts.map +1 -1
- package/dist/actions/find-subscription-by-email.d.mts +3 -16
- package/dist/actions/find-subscription-by-email.d.mts.map +1 -1
- package/dist/actions/find-subscription-by-email.mjs +1 -0
- package/dist/actions/find-subscription-by-email.mjs.map +1 -1
- package/dist/actions/get-admin-roles.cjs +1 -0
- package/dist/actions/get-admin-roles.cjs.map +1 -1
- package/dist/actions/get-admin-roles.d.cts +3 -13
- package/dist/actions/get-admin-roles.d.cts.map +1 -1
- package/dist/actions/get-admin-roles.d.mts +3 -13
- package/dist/actions/get-admin-roles.d.mts.map +1 -1
- package/dist/actions/get-admin-roles.mjs +1 -0
- package/dist/actions/get-admin-roles.mjs.map +1 -1
- package/dist/actions/get-administrator-by-id.cjs +1 -0
- package/dist/actions/get-administrator-by-id.cjs.map +1 -1
- package/dist/actions/get-administrator-by-id.d.cts +3 -15
- package/dist/actions/get-administrator-by-id.d.cts.map +1 -1
- package/dist/actions/get-administrator-by-id.d.mts +3 -15
- package/dist/actions/get-administrator-by-id.d.mts.map +1 -1
- package/dist/actions/get-administrator-by-id.mjs +1 -0
- package/dist/actions/get-administrator-by-id.mjs.map +1 -1
- package/dist/actions/get-administrators.cjs +1 -0
- package/dist/actions/get-administrators.cjs.map +1 -1
- package/dist/actions/get-administrators.d.cts +3 -13
- package/dist/actions/get-administrators.d.cts.map +1 -1
- package/dist/actions/get-administrators.d.mts +3 -13
- package/dist/actions/get-administrators.d.mts.map +1 -1
- package/dist/actions/get-administrators.mjs +1 -0
- package/dist/actions/get-administrators.mjs.map +1 -1
- package/dist/actions/get-async-request-status.cjs +1 -0
- package/dist/actions/get-async-request-status.cjs.map +1 -1
- package/dist/actions/get-async-request-status.d.cts +3 -15
- package/dist/actions/get-async-request-status.d.cts.map +1 -1
- package/dist/actions/get-async-request-status.d.mts +3 -15
- package/dist/actions/get-async-request-status.d.mts.map +1 -1
- package/dist/actions/get-async-request-status.mjs +1 -0
- package/dist/actions/get-async-request-status.mjs.map +1 -1
- package/dist/actions/get-contact-by-id.cjs +1 -0
- package/dist/actions/get-contact-by-id.cjs.map +1 -1
- package/dist/actions/get-contact-by-id.d.cts +3 -15
- package/dist/actions/get-contact-by-id.d.cts.map +1 -1
- package/dist/actions/get-contact-by-id.d.mts +3 -15
- package/dist/actions/get-contact-by-id.d.mts.map +1 -1
- package/dist/actions/get-contact-by-id.mjs +1 -0
- package/dist/actions/get-contact-by-id.mjs.map +1 -1
- package/dist/actions/get-invoices.cjs +1 -0
- package/dist/actions/get-invoices.cjs.map +1 -1
- package/dist/actions/get-invoices.d.cts +3 -20
- package/dist/actions/get-invoices.d.cts.map +1 -1
- package/dist/actions/get-invoices.d.mts +3 -20
- package/dist/actions/get-invoices.d.mts.map +1 -1
- package/dist/actions/get-invoices.mjs +1 -0
- package/dist/actions/get-invoices.mjs.map +1 -1
- package/dist/actions/get-lists.cjs +1 -0
- package/dist/actions/get-lists.cjs.map +1 -1
- package/dist/actions/get-lists.d.cts +3 -13
- package/dist/actions/get-lists.d.cts.map +1 -1
- package/dist/actions/get-lists.d.mts +3 -13
- package/dist/actions/get-lists.d.mts.map +1 -1
- package/dist/actions/get-lists.mjs +1 -0
- package/dist/actions/get-lists.mjs.map +1 -1
- package/dist/actions/get-products.cjs +1 -0
- package/dist/actions/get-products.cjs.map +1 -1
- package/dist/actions/get-products.d.cts +3 -13
- package/dist/actions/get-products.d.cts.map +1 -1
- package/dist/actions/get-products.d.mts +3 -13
- package/dist/actions/get-products.d.mts.map +1 -1
- package/dist/actions/get-products.mjs +1 -0
- package/dist/actions/get-products.mjs.map +1 -1
- package/dist/actions/remove-administrator.cjs +1 -0
- package/dist/actions/remove-administrator.cjs.map +1 -1
- package/dist/actions/remove-administrator.d.cts +3 -15
- package/dist/actions/remove-administrator.d.cts.map +1 -1
- package/dist/actions/remove-administrator.d.mts +3 -15
- package/dist/actions/remove-administrator.d.mts.map +1 -1
- package/dist/actions/remove-administrator.mjs +1 -0
- package/dist/actions/remove-administrator.mjs.map +1 -1
- package/dist/actions/remove-tag-from-contact.cjs +1 -0
- package/dist/actions/remove-tag-from-contact.cjs.map +1 -1
- package/dist/actions/remove-tag-from-contact.d.cts +3 -16
- package/dist/actions/remove-tag-from-contact.d.cts.map +1 -1
- package/dist/actions/remove-tag-from-contact.d.mts +3 -16
- package/dist/actions/remove-tag-from-contact.d.mts.map +1 -1
- package/dist/actions/remove-tag-from-contact.mjs +1 -0
- package/dist/actions/remove-tag-from-contact.mjs.map +1 -1
- package/dist/actions/subscribe-to-list.cjs +1 -0
- package/dist/actions/subscribe-to-list.cjs.map +1 -1
- package/dist/actions/subscribe-to-list.d.cts +3 -28
- package/dist/actions/subscribe-to-list.d.cts.map +1 -1
- package/dist/actions/subscribe-to-list.d.mts +3 -28
- package/dist/actions/subscribe-to-list.d.mts.map +1 -1
- package/dist/actions/subscribe-to-list.mjs +1 -0
- package/dist/actions/subscribe-to-list.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-list.cjs +1 -0
- package/dist/actions/unsubscribe-from-list.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-list.d.cts +3 -16
- package/dist/actions/unsubscribe-from-list.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-list.d.mts +3 -16
- package/dist/actions/unsubscribe-from-list.d.mts.map +1 -1
- package/dist/actions/unsubscribe-from-list.mjs +1 -0
- package/dist/actions/unsubscribe-from-list.mjs.map +1 -1
- package/dist/actions/update-contact-credentials.cjs +1 -0
- package/dist/actions/update-contact-credentials.cjs.map +1 -1
- package/dist/actions/update-contact-credentials.d.cts +3 -20
- package/dist/actions/update-contact-credentials.d.cts.map +1 -1
- package/dist/actions/update-contact-credentials.d.mts +3 -20
- package/dist/actions/update-contact-credentials.d.mts.map +1 -1
- package/dist/actions/update-contact-credentials.mjs +1 -0
- package/dist/actions/update-contact-credentials.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-administrator-by-id.d.ts
|
|
@@ -31,21 +33,7 @@ declare const SimpleroGetAdministratorByIdOutput: z.ZodObject<{
|
|
|
31
33
|
second_to_last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
34
|
can_self_grant_super_admin: z.ZodNullable<z.ZodBoolean>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const simpleroGetAdministratorById:
|
|
35
|
-
id: number;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
43
|
-
connectionId: z.ZodString;
|
|
44
|
-
entityId: z.ZodString;
|
|
45
|
-
instanceId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
generic_api_key: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const simpleroGetAdministratorById: AppAction<typeof SimpleroGetAdministratorByIdInput, typeof SimpleroGetAdministratorByIdOutput, typeof simplero.credential>;
|
|
49
37
|
//#endregion
|
|
50
38
|
export { simpleroGetAdministratorById };
|
|
51
39
|
//# sourceMappingURL=get-administrator-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-administrator-by-id.d.mts","names":[],"sources":["../../src/actions/get-administrator-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-administrator-by-id.d.mts","names":[],"sources":["../../src/actions/get-administrator-by-id.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-administrator-by-id.mjs","names":[],"sources":["../../src/actions/get-administrator-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAdministratorByIdInput = z.object({\n id: z.number().int().describe(\"The administratorship ID to retrieve.\"),\n}).describe(\"Request model for retrieving an administratorship by ID.\");\nconst SimpleroGetAdministratorById_UserInfoSchema = z.object({\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n last_name: z.string().describe(\"User's last name.\").nullable().optional(),\n first_names: z.string().describe(\"User's first name(s).\").nullable().optional(),\n}).passthrough().describe(\"User information details.\");\nconst SimpleroGetAdministratorById_AdminRoleSchema = z.object({\n name: z.string().describe(\"Name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role details.\");\nexport const SimpleroGetAdministratorByIdOutput = z.object({\n id: z.number().int().describe(\"Administratorship identifier.\").nullable(),\n user: SimpleroGetAdministratorById_UserInfoSchema.nullable().optional(),\n enabled: z.boolean().describe(\"Account status (enabled/disabled).\").nullable(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable(),\n admin_role: SimpleroGetAdministratorById_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO-8601 datetime).\").nullable(),\n num_logins: z.number().int().describe(\"Total login count.\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp (ISO-8601 datetime).\").nullable(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Associated invitation ID, if any.\").nullable().optional(),\n last_login_at: z.string().describe(\"Most recent login (ISO-8601 datetime).\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Visibility in ticket system.\").nullable(),\n ticket_assignee: z.boolean().describe(\"Whether assignable to support tickets.\").nullable(),\n ticket_sms_alerts: z.boolean().describe(\"SMS notification preference for tickets.\").nullable(),\n notifications_seen: z.array(z.string()).describe(\"Array of viewed notifications.\").nullable().optional(),\n accessible_object_ids: z.record(z.string(), z.unknown()).describe(\"Resource access mapping by type. Values can be 'all' or a list of IDs.\"),\n second_to_last_login_at: z.string().describe(\"Previous login timestamp (ISO-8601 datetime).\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Privilege escalation permission.\").nullable(),\n}).passthrough().describe(\"Response model for administratorship details.\");\n\nexport const simpleroGetAdministratorById = action(\"SIMPLERO_GET_ADMINISTRATOR_BY_ID\", {\n slug: \"simplero-get-administrator-by-id\",\n name: \"Get Administrator By ID\",\n description: \"Tool to retrieve a single administratorship by internal ID. Use when you need detailed information about a specific administrator including user, account, role, and permission details.\",\n input: SimpleroGetAdministratorByIdInput,\n output: SimpleroGetAdministratorByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-administrator-by-id.mjs","names":[],"sources":["../../src/actions/get-administrator-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetAdministratorByIdInput = z.object({\n id: z.number().int().describe(\"The administratorship ID to retrieve.\"),\n}).describe(\"Request model for retrieving an administratorship by ID.\");\nconst SimpleroGetAdministratorById_UserInfoSchema = z.object({\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n last_name: z.string().describe(\"User's last name.\").nullable().optional(),\n first_names: z.string().describe(\"User's first name(s).\").nullable().optional(),\n}).passthrough().describe(\"User information details.\");\nconst SimpleroGetAdministratorById_AdminRoleSchema = z.object({\n name: z.string().describe(\"Name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role details.\");\nexport const SimpleroGetAdministratorByIdOutput = z.object({\n id: z.number().int().describe(\"Administratorship identifier.\").nullable(),\n user: SimpleroGetAdministratorById_UserInfoSchema.nullable().optional(),\n enabled: z.boolean().describe(\"Account status (enabled/disabled).\").nullable(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable(),\n admin_role: SimpleroGetAdministratorById_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO-8601 datetime).\").nullable(),\n num_logins: z.number().int().describe(\"Total login count.\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp (ISO-8601 datetime).\").nullable(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Associated invitation ID, if any.\").nullable().optional(),\n last_login_at: z.string().describe(\"Most recent login (ISO-8601 datetime).\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Visibility in ticket system.\").nullable(),\n ticket_assignee: z.boolean().describe(\"Whether assignable to support tickets.\").nullable(),\n ticket_sms_alerts: z.boolean().describe(\"SMS notification preference for tickets.\").nullable(),\n notifications_seen: z.array(z.string()).describe(\"Array of viewed notifications.\").nullable().optional(),\n accessible_object_ids: z.record(z.string(), z.unknown()).describe(\"Resource access mapping by type. Values can be 'all' or a list of IDs.\"),\n second_to_last_login_at: z.string().describe(\"Previous login timestamp (ISO-8601 datetime).\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Privilege escalation permission.\").nullable(),\n}).passthrough().describe(\"Response model for administratorship details.\");\n\nexport const simpleroGetAdministratorById: AppAction<\n typeof SimpleroGetAdministratorByIdInput,\n typeof SimpleroGetAdministratorByIdOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_ADMINISTRATOR_BY_ID\", {\n slug: \"simplero-get-administrator-by-id\",\n name: \"Get Administrator By ID\",\n description: \"Tool to retrieve a single administratorship by internal ID. Use when you need detailed information about a specific administrator including user, account, role, and permission details.\",\n input: SimpleroGetAdministratorByIdInput,\n output: SimpleroGetAdministratorByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO,EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,EACvE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SA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EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC9E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACzF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC7F,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,uBAAuB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;EAC1I,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-administrators.cjs","names":["z","action"],"sources":["../../src/actions/get-administrators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAdministratorsInput = z.object({}).describe(\"Request model for retrieving administratorships. No parameters are required.\");\nconst SimpleroGetAdministrators_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({\n site: z.array(z.number().int()).describe(\"List of accessible site IDs.\").nullable().optional(),\n course: z.array(z.number().int()).describe(\"List of accessible course IDs.\").nullable().optional(),\n product: z.array(z.number().int()).describe(\"List of accessible product IDs.\").nullable().optional(),\n worksheet: z.array(z.number().int()).describe(\"List of accessible worksheet IDs.\").nullable().optional(),\n landing_page: z.array(z.number().int()).describe(\"List of accessible landing page IDs.\").nullable().optional(),\n affiliate_program: z.array(z.number().int()).describe(\"List of accessible affiliate program IDs.\").nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types.\");\nconst SimpleroGetAdministrators_AdministratorshipSchema = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroGetAdministrators_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Administratorship object representing the relationship between a user and an account.\");\nexport const SimpleroGetAdministratorsOutput = z.object({\n administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe(\"List of administratorship objects.\"),\n}).passthrough().describe(\"Response model containing all administratorships for the account.\");\n\nexport const simpleroGetAdministrators = action(\"SIMPLERO_GET_ADMINISTRATORS\", {\n slug: \"simplero-get-administrators\",\n name: \"Get Administrators\",\n description: \"Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.\",\n input: SimpleroGetAdministratorsInput,\n output: SimpleroGetAdministratorsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-administrators.cjs","names":["z","action"],"sources":["../../src/actions/get-administrators.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetAdministratorsInput = z.object({}).describe(\"Request model for retrieving administratorships. No parameters are required.\");\nconst SimpleroGetAdministrators_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({\n site: z.array(z.number().int()).describe(\"List of accessible site IDs.\").nullable().optional(),\n course: z.array(z.number().int()).describe(\"List of accessible course IDs.\").nullable().optional(),\n product: z.array(z.number().int()).describe(\"List of accessible product IDs.\").nullable().optional(),\n worksheet: z.array(z.number().int()).describe(\"List of accessible worksheet IDs.\").nullable().optional(),\n landing_page: z.array(z.number().int()).describe(\"List of accessible landing page IDs.\").nullable().optional(),\n affiliate_program: z.array(z.number().int()).describe(\"List of accessible affiliate program IDs.\").nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types.\");\nconst SimpleroGetAdministrators_AdministratorshipSchema = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroGetAdministrators_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Administratorship object representing the relationship between a user and an account.\");\nexport const SimpleroGetAdministratorsOutput = z.object({\n administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe(\"List of administratorship objects.\"),\n}).passthrough().describe(\"Response model containing all administratorships for the account.\");\n\nexport const simpleroGetAdministrators: AppAction<\n typeof SimpleroGetAdministratorsInput,\n typeof SimpleroGetAdministratorsOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_ADMINISTRATORS\", {\n slug: \"simplero-get-administrators\",\n name: \"Get Administrators\",\n description: \"Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.\",\n input: SimpleroGetAdministratorsInput,\n output: SimpleroGetAdministratorsOutput,\n});\n"],"mappings":";;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ClH,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,uBAAuB,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,4BAA4BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAAuF;AACjH,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,oBAAoBA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,oCAAoC,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-administrators.d.ts
|
|
@@ -33,19 +35,7 @@ declare const SimpleroGetAdministratorsOutput: z.ZodObject<{
|
|
|
33
35
|
can_self_grant_super_admin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const simpleroGetAdministrators:
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
43
|
-
connectionId: z.ZodString;
|
|
44
|
-
entityId: z.ZodString;
|
|
45
|
-
instanceId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
generic_api_key: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const simpleroGetAdministrators: AppAction<typeof SimpleroGetAdministratorsInput, typeof SimpleroGetAdministratorsOutput, typeof simplero.credential>;
|
|
49
39
|
//#endregion
|
|
50
40
|
export { simpleroGetAdministrators };
|
|
51
41
|
//# sourceMappingURL=get-administrators.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-administrators.d.cts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-administrators.d.cts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-administrators.d.ts
|
|
@@ -33,19 +35,7 @@ declare const SimpleroGetAdministratorsOutput: z.ZodObject<{
|
|
|
33
35
|
can_self_grant_super_admin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const simpleroGetAdministrators:
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
43
|
-
connectionId: z.ZodString;
|
|
44
|
-
entityId: z.ZodString;
|
|
45
|
-
instanceId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
generic_api_key: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const simpleroGetAdministrators: AppAction<typeof SimpleroGetAdministratorsInput, typeof SimpleroGetAdministratorsOutput, typeof simplero.credential>;
|
|
49
39
|
//#endregion
|
|
50
40
|
export { simpleroGetAdministrators };
|
|
51
41
|
//# sourceMappingURL=get-administrators.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-administrators.d.mts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-administrators.d.mts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-administrators.mjs","names":[],"sources":["../../src/actions/get-administrators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAdministratorsInput = z.object({}).describe(\"Request model for retrieving administratorships. No parameters are required.\");\nconst SimpleroGetAdministrators_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({\n site: z.array(z.number().int()).describe(\"List of accessible site IDs.\").nullable().optional(),\n course: z.array(z.number().int()).describe(\"List of accessible course IDs.\").nullable().optional(),\n product: z.array(z.number().int()).describe(\"List of accessible product IDs.\").nullable().optional(),\n worksheet: z.array(z.number().int()).describe(\"List of accessible worksheet IDs.\").nullable().optional(),\n landing_page: z.array(z.number().int()).describe(\"List of accessible landing page IDs.\").nullable().optional(),\n affiliate_program: z.array(z.number().int()).describe(\"List of accessible affiliate program IDs.\").nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types.\");\nconst SimpleroGetAdministrators_AdministratorshipSchema = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroGetAdministrators_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Administratorship object representing the relationship between a user and an account.\");\nexport const SimpleroGetAdministratorsOutput = z.object({\n administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe(\"List of administratorship objects.\"),\n}).passthrough().describe(\"Response model containing all administratorships for the account.\");\n\nexport const simpleroGetAdministrators = action(\"SIMPLERO_GET_ADMINISTRATORS\", {\n slug: \"simplero-get-administrators\",\n name: \"Get Administrators\",\n description: \"Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.\",\n input: SimpleroGetAdministratorsInput,\n output: SimpleroGetAdministratorsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-administrators.mjs","names":[],"sources":["../../src/actions/get-administrators.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetAdministratorsInput = z.object({}).describe(\"Request model for retrieving administratorships. No parameters are required.\");\nconst SimpleroGetAdministrators_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({\n site: z.array(z.number().int()).describe(\"List of accessible site IDs.\").nullable().optional(),\n course: z.array(z.number().int()).describe(\"List of accessible course IDs.\").nullable().optional(),\n product: z.array(z.number().int()).describe(\"List of accessible product IDs.\").nullable().optional(),\n worksheet: z.array(z.number().int()).describe(\"List of accessible worksheet IDs.\").nullable().optional(),\n landing_page: z.array(z.number().int()).describe(\"List of accessible landing page IDs.\").nullable().optional(),\n affiliate_program: z.array(z.number().int()).describe(\"List of accessible affiliate program IDs.\").nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types.\");\nconst SimpleroGetAdministrators_AdministratorshipSchema = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroGetAdministrators_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Administratorship object representing the relationship between a user and an account.\");\nexport const SimpleroGetAdministratorsOutput = z.object({\n administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe(\"List of administratorship objects.\"),\n}).passthrough().describe(\"Response model containing all administratorships for the account.\");\n\nexport const simpleroGetAdministrators: AppAction<\n typeof SimpleroGetAdministratorsInput,\n typeof SimpleroGetAdministratorsOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_ADMINISTRATORS\", {\n slug: \"simplero-get-administrators\",\n name: \"Get Administrators\",\n description: \"Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.\",\n input: SimpleroGetAdministratorsInput,\n output: SimpleroGetAdministratorsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAClJ,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MAAM,sDAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC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,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,uBAAuB,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAAuF;AAKjH,MAAa,4BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,oBAAoB,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,oCAAoC,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-request-status.cjs","names":["z","action"],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAsyncRequestStatusInput = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput = z.object({\n token: z.string().describe(\"Request identifier\").nullable(),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\").nullable(),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\").nullable(),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-request-status.cjs","names":["z","action"],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetAsyncRequestStatusInput = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput = z.object({\n token: z.string().describe(\"Request identifier\").nullable(),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\").nullable(),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\").nullable(),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus: AppAction<\n typeof SimpleroGetAsyncRequestStatusInput,\n typeof SimpleroGetAsyncRequestStatusOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACxK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACrM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAExG,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-async-request-status.d.ts
|
|
@@ -13,21 +15,7 @@ declare const SimpleroGetAsyncRequestStatusOutput: z.ZodObject<{
|
|
|
13
15
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
processing_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const simpleroGetAsyncRequestStatus:
|
|
17
|
-
token: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const simpleroGetAsyncRequestStatus: AppAction<typeof SimpleroGetAsyncRequestStatusInput, typeof SimpleroGetAsyncRequestStatusOutput, typeof simplero.credential>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { simpleroGetAsyncRequestStatus };
|
|
33
21
|
//# sourceMappingURL=get-async-request-status.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-request-status.d.cts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-request-status.d.cts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAGlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAUnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-async-request-status.d.ts
|
|
@@ -13,21 +15,7 @@ declare const SimpleroGetAsyncRequestStatusOutput: z.ZodObject<{
|
|
|
13
15
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
processing_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const simpleroGetAsyncRequestStatus:
|
|
17
|
-
token: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const simpleroGetAsyncRequestStatus: AppAction<typeof SimpleroGetAsyncRequestStatusInput, typeof SimpleroGetAsyncRequestStatusOutput, typeof simplero.credential>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { simpleroGetAsyncRequestStatus };
|
|
33
21
|
//# sourceMappingURL=get-async-request-status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-request-status.d.mts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-request-status.d.mts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAGlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAUnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-async-request-status.mjs","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAsyncRequestStatusInput = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput = z.object({\n token: z.string().describe(\"Request identifier\").nullable(),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\").nullable(),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\").nullable(),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-async-request-status.mjs","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetAsyncRequestStatusInput = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput = z.object({\n token: z.string().describe(\"Request identifier\").nullable(),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\").nullable(),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\").nullable(),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus: AppAction<\n typeof SimpleroGetAsyncRequestStatusInput,\n typeof SimpleroGetAsyncRequestStatusOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":";;;AAmBA,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBgD,EAAE,OAAO,EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACxK,CAAC,CAAC,CAAC,SAAS,uEAmBH;CACP,QAnBiD,EAAE,OAAO;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;EACrM,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetContactByIdInput = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable(),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetContactByIdInput = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable(),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById: AppAction<\n typeof SimpleroGetContactByIdInput,\n typeof SimpleroGetContactByIdOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,EAC1H,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,yBAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-contact-by-id.d.ts
|
|
@@ -19,21 +21,7 @@ declare const SimpleroGetContactByIdOutput: z.ZodObject<{
|
|
|
19
21
|
contact_since: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
do_not_contact: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const simpleroGetContactById:
|
|
23
|
-
id: number;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const simpleroGetContactById: AppAction<typeof SimpleroGetContactByIdInput, typeof SimpleroGetContactByIdOutput, typeof simplero.credential>;
|
|
37
25
|
//#endregion
|
|
38
26
|
export { simpleroGetContactById };
|
|
39
27
|
//# sourceMappingURL=get-contact-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-contact-by-id.d.ts
|
|
@@ -19,21 +21,7 @@ declare const SimpleroGetContactByIdOutput: z.ZodObject<{
|
|
|
19
21
|
contact_since: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
do_not_contact: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const simpleroGetContactById:
|
|
23
|
-
id: number;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const simpleroGetContactById: AppAction<typeof SimpleroGetContactByIdInput, typeof SimpleroGetContactByIdOutput, typeof simplero.credential>;
|
|
37
25
|
//#endregion
|
|
38
26
|
export { simpleroGetContactById };
|
|
39
27
|
//# sourceMappingURL=get-contact-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contact-by-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetContactByIdInput = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable(),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contact-by-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetContactByIdInput = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable(),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById: AppAction<\n typeof SimpleroGetContactByIdInput,\n typeof SimpleroGetContactByIdOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":";;;AAyBA,MAAa,yBAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3ByC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,EAC1H,CAAC,CAAC,CAAC,SAAS,wDAyBH;CACP,QAzB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invoices.cjs","names":["z","action"],"sources":["../../src/actions/get-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetInvoicesInput = z.object({\n dir: z.string().describe(\"Sort direction for results. Use 'asc' for ascending or 'desc' for descending (case-insensitive). Defaults to 'asc' if not specified.\").optional(),\n page: z.number().int().describe(\"Page number for pagination. Returns 20 invoices per page. Defaults to 1 if not specified.\").optional(),\n created_at_to: z.string().describe(\"Return invoices created before this time. Must be an ISO-8601 datetime string (e.g., '2024-12-31T23:59:59Z').\").optional(),\n created_at_from: z.string().describe(\"Return invoices created at or after this time. Must be an ISO-8601 datetime string (e.g., '2024-01-01T00:00:00Z').\").optional(),\n invoice_number_to: z.string().describe(\"Return invoices with an invoice number alphabetically less than this value.\").optional(),\n invoice_number_from: z.string().describe(\"Return invoices with an invoice number alphabetically equal to or greater than this value.\").optional(),\n}).describe(\"Request model for retrieving invoices with optional filtering.\");\nconst SimpleroGetInvoices_InvoiceSchema = z.object({\n id: z.number().int().describe(\"Invoice identifier\").nullable().optional(),\n status: z.string().describe(\"Invoice status\").nullable().optional(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when invoice was paid\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of invoice creation\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable().optional(),\n amount_cents: z.number().int().describe(\"Invoice amount in cents\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n}).passthrough().describe(\"Model representing an invoice object.\");\nexport const SimpleroGetInvoicesOutput = z.object({\n invoices: z.array(SimpleroGetInvoices_InvoiceSchema).describe(\"List of invoice objects. Each invoice contains invoice details. Returns up to 20 invoices per page ordered by invoice number.\"),\n}).passthrough().describe(\"Response model containing a list of invoices.\");\n\nexport const simpleroGetInvoices = action(\"SIMPLERO_GET_INVOICES\", {\n slug: \"simplero-get-invoices\",\n name: \"Get Invoices\",\n description: \"Tool to get invoice information with optional filtering by date and invoice number. Use when you need to retrieve invoices from Simplero. Returns 20 invoices per page ordered by invoice number.\",\n input: SimpleroGetInvoicesInput,\n output: SimpleroGetInvoicesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invoices.cjs","names":["z","action"],"sources":["../../src/actions/get-invoices.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroGetInvoicesInput = z.object({\n dir: z.string().describe(\"Sort direction for results. Use 'asc' for ascending or 'desc' for descending (case-insensitive). Defaults to 'asc' if not specified.\").optional(),\n page: z.number().int().describe(\"Page number for pagination. Returns 20 invoices per page. Defaults to 1 if not specified.\").optional(),\n created_at_to: z.string().describe(\"Return invoices created before this time. Must be an ISO-8601 datetime string (e.g., '2024-12-31T23:59:59Z').\").optional(),\n created_at_from: z.string().describe(\"Return invoices created at or after this time. Must be an ISO-8601 datetime string (e.g., '2024-01-01T00:00:00Z').\").optional(),\n invoice_number_to: z.string().describe(\"Return invoices with an invoice number alphabetically less than this value.\").optional(),\n invoice_number_from: z.string().describe(\"Return invoices with an invoice number alphabetically equal to or greater than this value.\").optional(),\n}).describe(\"Request model for retrieving invoices with optional filtering.\");\nconst SimpleroGetInvoices_InvoiceSchema = z.object({\n id: z.number().int().describe(\"Invoice identifier\").nullable().optional(),\n status: z.string().describe(\"Invoice status\").nullable().optional(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when invoice was paid\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of invoice creation\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable().optional(),\n amount_cents: z.number().int().describe(\"Invoice amount in cents\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n}).passthrough().describe(\"Model representing an invoice object.\");\nexport const SimpleroGetInvoicesOutput = z.object({\n invoices: z.array(SimpleroGetInvoices_InvoiceSchema).describe(\"List of invoice objects. Each invoice contains invoice details. Returns up to 20 invoices per page ordered by invoice number.\"),\n}).passthrough().describe(\"Response model containing a list of invoices.\");\n\nexport const simpleroGetInvoices: AppAction<\n typeof SimpleroGetInvoicesInput,\n typeof SimpleroGetInvoicesOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_GET_INVOICES\", {\n slug: \"simplero-get-invoices\",\n name: \"Get Invoices\",\n description: \"Tool to get invoice information with optional filtering by date and invoice number. Use when you need to retrieve invoices from Simplero. Returns 20 invoices per page ordered by invoice number.\",\n input: SimpleroGetInvoicesInput,\n output: SimpleroGetInvoicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC1K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACtI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC7J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC/H,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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|
//#region src/actions/get-invoices.d.ts
|
|
@@ -22,26 +24,7 @@ declare const SimpleroGetInvoicesOutput: z.ZodObject<{
|
|
|
22
24
|
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const simpleroGetInvoices:
|
|
26
|
-
dir?: string | undefined;
|
|
27
|
-
page?: number | undefined;
|
|
28
|
-
created_at_to?: string | undefined;
|
|
29
|
-
created_at_from?: string | undefined;
|
|
30
|
-
invoice_number_to?: string | undefined;
|
|
31
|
-
invoice_number_from?: string | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>;
|
|
27
|
+
declare const simpleroGetInvoices: AppAction<typeof SimpleroGetInvoicesInput, typeof SimpleroGetInvoicesOutput, typeof simplero.credential>;
|
|
45
28
|
//#endregion
|
|
46
29
|
export { simpleroGetInvoices };
|
|
47
30
|
//# sourceMappingURL=get-invoices.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invoices.d.cts","names":[],"sources":["../../src/actions/get-invoices.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invoices.d.cts","names":[],"sources":["../../src/actions/get-invoices.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAmBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-invoices.d.ts
|
|
@@ -22,26 +24,7 @@ declare const SimpleroGetInvoicesOutput: z.ZodObject<{
|
|
|
22
24
|
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const simpleroGetInvoices:
|
|
26
|
-
dir?: string | undefined;
|
|
27
|
-
page?: number | undefined;
|
|
28
|
-
created_at_to?: string | undefined;
|
|
29
|
-
created_at_from?: string | undefined;
|
|
30
|
-
invoice_number_to?: string | undefined;
|
|
31
|
-
invoice_number_from?: string | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplero", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>;
|
|
27
|
+
declare const simpleroGetInvoices: AppAction<typeof SimpleroGetInvoicesInput, typeof SimpleroGetInvoicesOutput, typeof simplero.credential>;
|
|
45
28
|
//#endregion
|
|
46
29
|
export { simpleroGetInvoices };
|
|
47
30
|
//# sourceMappingURL=get-invoices.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invoices.d.mts","names":[],"sources":["../../src/actions/get-invoices.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invoices.d.mts","names":[],"sources":["../../src/actions/get-invoices.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAmBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|