@keystrokehq/salesflare 0.1.2 → 0.1.3
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/actions/add-account-contacts.cjs +2 -2
- package/dist/actions/add-account-contacts.cjs.map +1 -1
- package/dist/actions/add-account-contacts.d.cts +3 -2
- package/dist/actions/add-account-contacts.d.mts +3 -2
- package/dist/actions/add-account-contacts.mjs +2 -2
- package/dist/actions/add-account-contacts.mjs.map +1 -1
- package/dist/actions/create-account.cjs +10 -10
- package/dist/actions/create-account.cjs.map +1 -1
- package/dist/actions/create-account.d.cts +15 -11
- package/dist/actions/create-account.d.mts +15 -11
- package/dist/actions/create-account.mjs +10 -10
- package/dist/actions/create-account.mjs.map +1 -1
- package/dist/actions/create-call.cjs +3 -3
- package/dist/actions/create-call.cjs.map +1 -1
- package/dist/actions/create-call.d.cts +4 -3
- package/dist/actions/create-call.d.mts +4 -3
- package/dist/actions/create-call.mjs +3 -3
- package/dist/actions/create-call.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +6 -6
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +11 -8
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +11 -8
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +6 -6
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +2 -2
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +5 -4
- package/dist/actions/create-custom-field.d.mts +5 -4
- package/dist/actions/create-custom-field.mjs +2 -2
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-internal-note.cjs +1 -1
- package/dist/actions/create-internal-note.cjs.map +1 -1
- package/dist/actions/create-internal-note.d.cts +1 -1
- package/dist/actions/create-internal-note.d.mts +1 -1
- package/dist/actions/create-internal-note.mjs +1 -1
- package/dist/actions/create-internal-note.mjs.map +1 -1
- package/dist/actions/create-meeting.cjs +1 -1
- package/dist/actions/create-meeting.cjs.map +1 -1
- package/dist/actions/create-meeting.d.cts +1 -1
- package/dist/actions/create-meeting.d.mts +1 -1
- package/dist/actions/create-meeting.mjs +1 -1
- package/dist/actions/create-meeting.mjs.map +1 -1
- package/dist/actions/create-opportunity.cjs +2 -2
- package/dist/actions/create-opportunity.cjs.map +1 -1
- package/dist/actions/create-opportunity.d.cts +3 -3
- package/dist/actions/create-opportunity.d.mts +3 -3
- package/dist/actions/create-opportunity.mjs +2 -2
- package/dist/actions/create-opportunity.mjs.map +1 -1
- package/dist/actions/create-tag.cjs +1 -1
- package/dist/actions/create-tag.cjs.map +1 -1
- package/dist/actions/create-tag.d.cts +1 -1
- package/dist/actions/create-tag.d.mts +1 -1
- package/dist/actions/create-tag.mjs +1 -1
- package/dist/actions/create-tag.mjs.map +1 -1
- package/dist/actions/create-task.cjs +1 -1
- package/dist/actions/create-task.cjs.map +1 -1
- package/dist/actions/create-task.d.cts +1 -1
- package/dist/actions/create-task.d.mts +1 -1
- package/dist/actions/create-task.mjs +1 -1
- package/dist/actions/create-task.mjs.map +1 -1
- package/dist/actions/create-workflow.cjs +4 -4
- package/dist/actions/create-workflow.cjs.map +1 -1
- package/dist/actions/create-workflow.d.cts +7 -4
- package/dist/actions/create-workflow.d.mts +7 -4
- package/dist/actions/create-workflow.mjs +4 -4
- package/dist/actions/create-workflow.mjs.map +1 -1
- package/dist/actions/delete-account.cjs +1 -1
- package/dist/actions/delete-account.cjs.map +1 -1
- package/dist/actions/delete-account.d.cts +1 -1
- package/dist/actions/delete-account.d.mts +1 -1
- package/dist/actions/delete-account.mjs +1 -1
- package/dist/actions/delete-account.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +1 -1
- package/dist/actions/delete-contact.d.mts +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +3 -3
- package/dist/actions/delete-custom-field.d.mts +3 -3
- package/dist/actions/delete-custom-field.mjs +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-internal-note.cjs +1 -1
- package/dist/actions/delete-internal-note.cjs.map +1 -1
- package/dist/actions/delete-internal-note.d.cts +1 -1
- package/dist/actions/delete-internal-note.d.mts +1 -1
- package/dist/actions/delete-internal-note.mjs +1 -1
- package/dist/actions/delete-internal-note.mjs.map +1 -1
- package/dist/actions/delete-meeting.cjs +1 -1
- package/dist/actions/delete-meeting.cjs.map +1 -1
- package/dist/actions/delete-meeting.d.cts +1 -1
- package/dist/actions/delete-meeting.d.mts +1 -1
- package/dist/actions/delete-meeting.mjs +1 -1
- package/dist/actions/delete-meeting.mjs.map +1 -1
- package/dist/actions/delete-opportunity.cjs +1 -1
- package/dist/actions/delete-opportunity.cjs.map +1 -1
- package/dist/actions/delete-opportunity.d.cts +1 -1
- package/dist/actions/delete-opportunity.d.mts +1 -1
- package/dist/actions/delete-opportunity.mjs +1 -1
- package/dist/actions/delete-opportunity.mjs.map +1 -1
- package/dist/actions/delete-tag.cjs +1 -1
- package/dist/actions/delete-tag.cjs.map +1 -1
- package/dist/actions/delete-tag.d.cts +1 -1
- package/dist/actions/delete-tag.d.mts +1 -1
- package/dist/actions/delete-tag.mjs +1 -1
- package/dist/actions/delete-tag.mjs.map +1 -1
- package/dist/actions/delete-task.cjs +1 -1
- package/dist/actions/delete-task.cjs.map +1 -1
- package/dist/actions/delete-task.d.cts +1 -1
- package/dist/actions/delete-task.d.mts +1 -1
- package/dist/actions/delete-task.mjs +1 -1
- package/dist/actions/delete-task.mjs.map +1 -1
- package/dist/actions/get-account.cjs +9 -9
- package/dist/actions/get-account.cjs.map +1 -1
- package/dist/actions/get-account.d.cts +10 -10
- package/dist/actions/get-account.d.mts +10 -10
- package/dist/actions/get-account.mjs +9 -9
- package/dist/actions/get-account.mjs.map +1 -1
- package/dist/actions/get-ai-settings.cjs +3 -3
- package/dist/actions/get-ai-settings.cjs.map +1 -1
- package/dist/actions/get-ai-settings.d.cts +3 -3
- package/dist/actions/get-ai-settings.d.mts +3 -3
- package/dist/actions/get-ai-settings.mjs +3 -3
- package/dist/actions/get-ai-settings.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +11 -11
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +13 -13
- package/dist/actions/get-contact.d.mts +13 -13
- package/dist/actions/get-contact.mjs +11 -11
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +15 -15
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +16 -16
- package/dist/actions/get-current-user.d.mts +16 -16
- package/dist/actions/get-current-user.mjs +15 -15
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-custom-field.cjs +3 -3
- package/dist/actions/get-custom-field.cjs.map +1 -1
- package/dist/actions/get-custom-field.d.cts +5 -5
- package/dist/actions/get-custom-field.d.mts +5 -5
- package/dist/actions/get-custom-field.mjs +3 -3
- package/dist/actions/get-custom-field.mjs.map +1 -1
- package/dist/actions/get-meeting.cjs +1 -1
- package/dist/actions/get-meeting.cjs.map +1 -1
- package/dist/actions/get-meeting.d.cts +1 -1
- package/dist/actions/get-meeting.d.mts +1 -1
- package/dist/actions/get-meeting.mjs +1 -1
- package/dist/actions/get-meeting.mjs.map +1 -1
- package/dist/actions/get-opportunity.cjs +14 -14
- package/dist/actions/get-opportunity.cjs.map +1 -1
- package/dist/actions/get-opportunity.d.cts +14 -14
- package/dist/actions/get-opportunity.d.mts +14 -14
- package/dist/actions/get-opportunity.mjs +14 -14
- package/dist/actions/get-opportunity.mjs.map +1 -1
- package/dist/actions/get-stage.cjs +2 -2
- package/dist/actions/get-stage.cjs.map +1 -1
- package/dist/actions/get-stage.d.cts +2 -2
- package/dist/actions/get-stage.d.mts +2 -2
- package/dist/actions/get-stage.mjs +2 -2
- package/dist/actions/get-stage.mjs.map +1 -1
- package/dist/actions/get-tag-usage.cjs +4 -4
- package/dist/actions/get-tag-usage.cjs.map +1 -1
- package/dist/actions/get-tag-usage.d.cts +4 -4
- package/dist/actions/get-tag-usage.d.mts +4 -4
- package/dist/actions/get-tag-usage.mjs +4 -4
- package/dist/actions/get-tag-usage.mjs.map +1 -1
- package/dist/actions/get-user.cjs +8 -8
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +8 -8
- package/dist/actions/get-user.d.mts +8 -8
- package/dist/actions/get-user.mjs +8 -8
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-workflow-merge-fields.cjs +2 -2
- package/dist/actions/get-workflow-merge-fields.cjs.map +1 -1
- package/dist/actions/get-workflow-merge-fields.d.cts +3 -3
- package/dist/actions/get-workflow-merge-fields.d.mts +3 -3
- package/dist/actions/get-workflow-merge-fields.mjs +2 -2
- package/dist/actions/get-workflow-merge-fields.mjs.map +1 -1
- package/dist/actions/get-workflow.cjs +7 -7
- package/dist/actions/get-workflow.cjs.map +1 -1
- package/dist/actions/get-workflow.d.cts +12 -12
- package/dist/actions/get-workflow.d.mts +12 -12
- package/dist/actions/get-workflow.mjs +7 -7
- package/dist/actions/get-workflow.mjs.map +1 -1
- package/dist/actions/list-account-messages.cjs +3 -3
- package/dist/actions/list-account-messages.cjs.map +1 -1
- package/dist/actions/list-account-messages.d.cts +3 -3
- package/dist/actions/list-account-messages.d.mts +3 -3
- package/dist/actions/list-account-messages.mjs +3 -3
- package/dist/actions/list-account-messages.mjs.map +1 -1
- package/dist/actions/list-accounts.cjs +7 -7
- package/dist/actions/list-accounts.cjs.map +1 -1
- package/dist/actions/list-accounts.d.cts +8 -8
- package/dist/actions/list-accounts.d.mts +8 -8
- package/dist/actions/list-accounts.mjs +7 -7
- package/dist/actions/list-accounts.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +11 -11
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +11 -11
- package/dist/actions/list-contacts.d.mts +11 -11
- package/dist/actions/list-contacts.mjs +11 -11
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +2 -2
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +2 -2
- package/dist/actions/list-currencies.d.mts +2 -2
- package/dist/actions/list-currencies.mjs +2 -2
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-custom-field-options.cjs +1 -1
- package/dist/actions/list-custom-field-options.cjs.map +1 -1
- package/dist/actions/list-custom-field-options.d.cts +3 -3
- package/dist/actions/list-custom-field-options.d.mts +3 -3
- package/dist/actions/list-custom-field-options.mjs +1 -1
- package/dist/actions/list-custom-field-options.mjs.map +1 -1
- package/dist/actions/list-custom-field-types.cjs +2 -2
- package/dist/actions/list-custom-field-types.cjs.map +1 -1
- package/dist/actions/list-custom-field-types.d.cts +2 -2
- package/dist/actions/list-custom-field-types.d.mts +2 -2
- package/dist/actions/list-custom-field-types.mjs +2 -2
- package/dist/actions/list-custom-field-types.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +4 -4
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +6 -6
- package/dist/actions/list-custom-fields.d.mts +6 -6
- package/dist/actions/list-custom-fields.mjs +4 -4
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-email-datasources.cjs +3 -3
- package/dist/actions/list-email-datasources.cjs.map +1 -1
- package/dist/actions/list-email-datasources.d.cts +3 -3
- package/dist/actions/list-email-datasources.d.mts +3 -3
- package/dist/actions/list-email-datasources.mjs +3 -3
- package/dist/actions/list-email-datasources.mjs.map +1 -1
- package/dist/actions/list-filter-fields.cjs +5 -5
- package/dist/actions/list-filter-fields.cjs.map +1 -1
- package/dist/actions/list-filter-fields.d.cts +13 -13
- package/dist/actions/list-filter-fields.d.mts +13 -13
- package/dist/actions/list-filter-fields.mjs +5 -5
- package/dist/actions/list-filter-fields.mjs.map +1 -1
- package/dist/actions/list-groups.cjs +2 -2
- package/dist/actions/list-groups.cjs.map +1 -1
- package/dist/actions/list-groups.d.cts +2 -2
- package/dist/actions/list-groups.d.mts +2 -2
- package/dist/actions/list-groups.mjs +2 -2
- package/dist/actions/list-groups.mjs.map +1 -1
- package/dist/actions/list-my-contacts.cjs +11 -11
- package/dist/actions/list-my-contacts.cjs.map +1 -1
- package/dist/actions/list-my-contacts.d.cts +11 -11
- package/dist/actions/list-my-contacts.d.mts +11 -11
- package/dist/actions/list-my-contacts.mjs +11 -11
- package/dist/actions/list-my-contacts.mjs.map +1 -1
- package/dist/actions/list-opportunities.cjs +8 -8
- package/dist/actions/list-opportunities.cjs.map +1 -1
- package/dist/actions/list-opportunities.d.cts +10 -10
- package/dist/actions/list-opportunities.d.mts +10 -10
- package/dist/actions/list-opportunities.mjs +8 -8
- package/dist/actions/list-opportunities.mjs.map +1 -1
- package/dist/actions/list-persons.cjs +6 -6
- package/dist/actions/list-persons.cjs.map +1 -1
- package/dist/actions/list-persons.d.cts +6 -6
- package/dist/actions/list-persons.d.mts +6 -6
- package/dist/actions/list-persons.mjs +6 -6
- package/dist/actions/list-persons.mjs.map +1 -1
- package/dist/actions/list-pipelines.cjs +5 -5
- package/dist/actions/list-pipelines.cjs.map +1 -1
- package/dist/actions/list-pipelines.d.cts +5 -5
- package/dist/actions/list-pipelines.d.mts +5 -5
- package/dist/actions/list-pipelines.mjs +5 -5
- package/dist/actions/list-pipelines.mjs.map +1 -1
- package/dist/actions/list-stages.cjs +3 -3
- package/dist/actions/list-stages.cjs.map +1 -1
- package/dist/actions/list-stages.d.cts +3 -3
- package/dist/actions/list-stages.d.mts +3 -3
- package/dist/actions/list-stages.mjs +3 -3
- package/dist/actions/list-stages.mjs.map +1 -1
- package/dist/actions/list-tags.cjs +2 -2
- package/dist/actions/list-tags.cjs.map +1 -1
- package/dist/actions/list-tags.d.cts +2 -2
- package/dist/actions/list-tags.d.mts +2 -2
- package/dist/actions/list-tags.mjs +2 -2
- package/dist/actions/list-tags.mjs.map +1 -1
- package/dist/actions/list-tasks.cjs +7 -7
- package/dist/actions/list-tasks.cjs.map +1 -1
- package/dist/actions/list-tasks.d.cts +7 -7
- package/dist/actions/list-tasks.d.mts +7 -7
- package/dist/actions/list-tasks.mjs +7 -7
- package/dist/actions/list-tasks.mjs.map +1 -1
- package/dist/actions/list-users.cjs +9 -9
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +9 -9
- package/dist/actions/list-users.d.mts +9 -9
- package/dist/actions/list-users.mjs +9 -9
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-workflows.cjs +11 -11
- package/dist/actions/list-workflows.cjs.map +1 -1
- package/dist/actions/list-workflows.d.cts +12 -12
- package/dist/actions/list-workflows.d.mts +12 -12
- package/dist/actions/list-workflows.mjs +11 -11
- package/dist/actions/list-workflows.mjs.map +1 -1
- package/dist/actions/update-account-contacts.cjs +2 -2
- package/dist/actions/update-account-contacts.cjs.map +1 -1
- package/dist/actions/update-account-contacts.d.cts +3 -2
- package/dist/actions/update-account-contacts.d.mts +3 -2
- package/dist/actions/update-account-contacts.mjs +2 -2
- package/dist/actions/update-account-contacts.mjs.map +1 -1
- package/dist/actions/update-account-users.cjs +2 -2
- package/dist/actions/update-account-users.cjs.map +1 -1
- package/dist/actions/update-account-users.d.cts +3 -2
- package/dist/actions/update-account-users.d.mts +3 -2
- package/dist/actions/update-account-users.mjs +2 -2
- package/dist/actions/update-account-users.mjs.map +1 -1
- package/dist/actions/update-account.cjs +12 -12
- package/dist/actions/update-account.cjs.map +1 -1
- package/dist/actions/update-account.d.cts +17 -14
- package/dist/actions/update-account.d.mts +17 -14
- package/dist/actions/update-account.mjs +12 -12
- package/dist/actions/update-account.mjs.map +1 -1
- package/dist/actions/update-ai-settings.cjs +1 -1
- package/dist/actions/update-ai-settings.cjs.map +1 -1
- package/dist/actions/update-ai-settings.d.cts +1 -1
- package/dist/actions/update-ai-settings.d.mts +1 -1
- package/dist/actions/update-ai-settings.mjs +1 -1
- package/dist/actions/update-ai-settings.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +4 -4
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +7 -4
- package/dist/actions/update-contact.d.mts +7 -4
- package/dist/actions/update-contact.mjs +4 -4
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +3 -3
- package/dist/actions/update-custom-field.cjs.map +1 -1
- package/dist/actions/update-custom-field.d.cts +6 -5
- package/dist/actions/update-custom-field.d.mts +6 -5
- package/dist/actions/update-custom-field.mjs +3 -3
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-email-datasource.cjs +1 -1
- package/dist/actions/update-email-datasource.cjs.map +1 -1
- package/dist/actions/update-email-datasource.d.cts +1 -1
- package/dist/actions/update-email-datasource.d.mts +1 -1
- package/dist/actions/update-email-datasource.mjs +1 -1
- package/dist/actions/update-email-datasource.mjs.map +1 -1
- package/dist/actions/update-internal-note.cjs +1 -1
- package/dist/actions/update-internal-note.cjs.map +1 -1
- package/dist/actions/update-internal-note.d.cts +1 -1
- package/dist/actions/update-internal-note.d.mts +1 -1
- package/dist/actions/update-internal-note.mjs +1 -1
- package/dist/actions/update-internal-note.mjs.map +1 -1
- package/dist/actions/update-opportunity.cjs +3 -3
- package/dist/actions/update-opportunity.cjs.map +1 -1
- package/dist/actions/update-opportunity.d.cts +5 -5
- package/dist/actions/update-opportunity.d.mts +5 -5
- package/dist/actions/update-opportunity.mjs +3 -3
- package/dist/actions/update-opportunity.mjs.map +1 -1
- package/dist/actions/update-tag.cjs +1 -1
- package/dist/actions/update-tag.cjs.map +1 -1
- package/dist/actions/update-tag.d.cts +1 -1
- package/dist/actions/update-tag.d.mts +1 -1
- package/dist/actions/update-tag.mjs +1 -1
- package/dist/actions/update-tag.mjs.map +1 -1
- package/dist/actions/update-task.cjs +1 -1
- package/dist/actions/update-task.cjs.map +1 -1
- package/dist/actions/update-task.d.cts +1 -1
- package/dist/actions/update-task.d.mts +1 -1
- package/dist/actions/update-task.mjs +1 -1
- package/dist/actions/update-task.mjs.map +1 -1
- package/dist/actions/update-workflow-audience.cjs +1 -1
- package/dist/actions/update-workflow-audience.cjs.map +1 -1
- package/dist/actions/update-workflow-audience.d.cts +1 -1
- package/dist/actions/update-workflow-audience.d.mts +1 -1
- package/dist/actions/update-workflow-audience.mjs +1 -1
- package/dist/actions/update-workflow-audience.mjs.map +1 -1
- package/dist/actions/update-workflow.cjs +7 -7
- package/dist/actions/update-workflow.cjs.map +1 -1
- package/dist/actions/update-workflow.d.cts +13 -12
- package/dist/actions/update-workflow.d.mts +13 -12
- package/dist/actions/update-workflow.mjs +7 -7
- package/dist/actions/update-workflow.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-account.mjs","names":[],"sources":["../../src/actions/update-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountInput = z.object({\n name: z.string().describe(\"Name of the account/company\").optional(),\n size: z.number().int().describe(\"Company size (number of employees)\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to associate with the account\").optional(),\n email: z.string().describe(\"Primary email address for the account\").optional(),\n links: z.string().describe(\"Related links for the account\").optional(),\n custom: z.object({}).describe(\"Custom field values as key-value pairs\").optional(),\n domain: z.string().describe(\"Primary domain of the company\").optional(),\n address: z.object({\n zip: z.string().describe(\"Postal/ZIP code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region name\").optional(),\n}).describe(\"Address information for an account.\").optional(),\n picture: z.string().describe(\"URL to the account's logo or picture\").optional(),\n website: z.string().describe(\"Company website URL\").optional(),\n addresses: z.array(z.object({\n zip: z.string().describe(\"Postal/ZIP code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region name\").optional(),\n}).describe(\"Address information for an account.\")).describe(\"List of addresses associated with the account\").optional(),\n account_id: z.number().int().describe(\"Unique identifier of the account to update\"),\n description: z.string().describe(\"Description of the account\").optional(),\n phone_number: z.string().describe(\"Primary phone number for the account\").optional(),\n phone_numbers: z.array(z.object({\n type: z.string().describe(\"Type of phone number (e.g., work, mobile, home)\").optional(),\n number: z.string().describe(\"Phone number\"),\n}).describe(\"Phone number entry.\")).describe(\"List of phone numbers associated with the account\").optional(),\n parent_account: z.number().int().describe(\"ID of the parent account if this is a sub-account\").optional(),\n email_addresses: z.array(z.object({\n email: z.string().describe(\"Email address\"),\n}).describe(\"Email address entry.\")).describe(\"List of email addresses associated with the account\").optional(),\n social_profiles: z.array(z.string()).describe(\"List of social media profile URLs\").optional(),\n}).describe(\"Request model for updating an existing account in Salesflare.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseTagSchema = z.object({\n id: z.number().int().describe(\"Tag ID\").nullable().optional(),\n name: z.string().describe(\"Tag name\").nullable().optional(),\n}).describe(\"Tag information in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseAddressSchema = z.object({\n id: z.number().int().describe(\"Address ID\").nullable().optional(),\n zip: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the address is archived\").nullable().optional(),\n state_region: z.string().describe(\"State or region name\").nullable().optional(),\n}).describe(\"Address information in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseCustomerSchema = z.object({\n id: z.number().int().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email\").nullable().optional(),\n}).describe(\"Customer information in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponsePhoneNumberSchema = z.object({\n id: z.number().int().describe(\"Phone number ID\").nullable().optional(),\n type: z.string().describe(\"Type of phone number\").nullable().optional(),\n number: z.string().describe(\"Phone number\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the phone number is archived\").nullable().optional(),\n}).describe(\"Phone number entry in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema = z.object({\n id: z.number().int().describe(\"Email address ID\").nullable().optional(),\n email: z.string().describe(\"Email address\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the email is archived\").nullable().optional(),\n}).describe(\"Email address entry in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema = z.object({\n url: z.string().describe(\"URL of the social profile\").nullable().optional(),\n type: z.string().describe(\"Type of social profile (e.g., twitter, linkedin)\").nullable().optional(),\n username: z.string().describe(\"Username on the social platform\").nullable().optional(),\n}).describe(\"Social profile entry in response.\");\nexport const SalesflareUpdateAccountOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the account\").nullable().optional(),\n name: z.string().describe(\"Name of the account/company\").nullable().optional(),\n size: z.number().int().describe(\"Company size (number of employees)\").nullable().optional(),\n tags: z.array(SalesflareUpdateAccount_UpdateAccountResponseTagSchema).describe(\"List of tags associated with the account\").nullable().optional(),\n email: z.string().describe(\"Primary email address for the account\").nullable().optional(),\n links: z.string().describe(\"Related links for the account\").nullable().optional(),\n owner: z.number().int().describe(\"User ID of the account owner\").nullable().optional(),\n custom: z.object({}).describe(\"Custom field values\").nullable().optional(),\n domain: z.string().describe(\"Primary domain of the company\").nullable().optional(),\n address: SalesflareUpdateAccount_UpdateAccountResponseAddressSchema.nullable().optional(),\n picture: z.string().describe(\"URL to the account's logo or picture\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n addresses: z.array(SalesflareUpdateAccount_UpdateAccountResponseAddressSchema).describe(\"List of addresses associated with the account\").nullable().optional(),\n customers: z.array(SalesflareUpdateAccount_UpdateAccountResponseCustomerSchema).describe(\"List of customers associated with the account\").nullable().optional(),\n description: z.string().describe(\"Description of the account\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number for the account\").nullable().optional(),\n phone_numbers: z.array(SalesflareUpdateAccount_UpdateAccountResponsePhoneNumberSchema).describe(\"List of phone numbers associated with the account\").nullable().optional(),\n parent_account: z.number().int().describe(\"Parent account ID\").nullable().optional(),\n email_addresses: z.array(SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema).describe(\"List of email addresses associated with the account\").nullable().optional(),\n social_profiles: z.array(SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema).describe(\"List of social media profiles\").nullable().optional(),\n}).describe(\"Response model for the updated account.\");\n\nexport const salesflareUpdateAccount = action(\"SALESFLARE_UPDATE_ACCOUNT\", {\n slug: \"salesflare-update-account\",\n name: \"Update Account\",\n description: \"Tool to update an existing account in Salesflare. Use when you need to modify account details such as name, contact information, address, or custom fields.\",\n input: SalesflareUpdateAccountInput,\n output: SalesflareUpdateAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAA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AS,CAAC,CAAC,SAAS;EACnF,iBAAiB,EAAE,MAAM,+DAA+D,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9K,iBAAiB,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-account.mjs","names":[],"sources":["../../src/actions/update-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountInput = z.object({\n name: z.string().describe(\"Name of the account/company\").optional(),\n size: z.number().int().describe(\"Company size (number of employees)\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to associate with the account\").optional(),\n email: z.string().describe(\"Primary email address for the account\").optional(),\n links: z.string().describe(\"Related links for the account\").optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom field values as key-value pairs\").optional(),\n domain: z.string().describe(\"Primary domain of the company\").optional(),\n address: z.object({\n zip: z.string().describe(\"Postal/ZIP code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region name\").optional(),\n}).describe(\"Address information for an account.\").optional(),\n picture: z.string().describe(\"URL to the account's logo or picture\").optional(),\n website: z.string().describe(\"Company website URL\").optional(),\n addresses: z.array(z.object({\n zip: z.string().describe(\"Postal/ZIP code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region name\").optional(),\n}).passthrough().describe(\"Address information for an account.\")).describe(\"List of addresses associated with the account\").optional(),\n account_id: z.number().int().describe(\"Unique identifier of the account to update\"),\n description: z.string().describe(\"Description of the account\").optional(),\n phone_number: z.string().describe(\"Primary phone number for the account\").optional(),\n phone_numbers: z.array(z.object({\n type: z.string().describe(\"Type of phone number (e.g., work, mobile, home)\").optional(),\n number: z.string().describe(\"Phone number\"),\n}).passthrough().describe(\"Phone number entry.\")).describe(\"List of phone numbers associated with the account\").optional(),\n parent_account: z.number().int().describe(\"ID of the parent account if this is a sub-account\").optional(),\n email_addresses: z.array(z.object({\n email: z.string().describe(\"Email address\"),\n}).passthrough().describe(\"Email address entry.\")).describe(\"List of email addresses associated with the account\").optional(),\n social_profiles: z.array(z.string()).describe(\"List of social media profile URLs\").optional(),\n}).describe(\"Request model for updating an existing account in Salesflare.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseTagSchema = z.object({\n id: z.number().int().describe(\"Tag ID\").nullable().optional(),\n name: z.string().describe(\"Tag name\").nullable().optional(),\n}).passthrough().describe(\"Tag information in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseAddressSchema = z.object({\n id: z.number().int().describe(\"Address ID\").nullable().optional(),\n zip: z.string().describe(\"Postal/ZIP code\").nullable().optional(),\n city: z.string().describe(\"City name\").nullable().optional(),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the address is archived\").nullable().optional(),\n state_region: z.string().describe(\"State or region name\").nullable().optional(),\n}).passthrough().describe(\"Address information in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseCustomerSchema = z.object({\n id: z.number().int().describe(\"Customer ID\").nullable().optional(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email\").nullable().optional(),\n}).passthrough().describe(\"Customer information in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponsePhoneNumberSchema = z.object({\n id: z.number().int().describe(\"Phone number ID\").nullable().optional(),\n type: z.string().describe(\"Type of phone number\").nullable().optional(),\n number: z.string().describe(\"Phone number\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the phone number is archived\").nullable().optional(),\n}).passthrough().describe(\"Phone number entry in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema = z.object({\n id: z.number().int().describe(\"Email address ID\").nullable().optional(),\n email: z.string().describe(\"Email address\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the email is archived\").nullable().optional(),\n}).passthrough().describe(\"Email address entry in response.\");\nconst SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema = z.object({\n url: z.string().describe(\"URL of the social profile\").nullable().optional(),\n type: z.string().describe(\"Type of social profile (e.g., twitter, linkedin)\").nullable().optional(),\n username: z.string().describe(\"Username on the social platform\").nullable().optional(),\n}).passthrough().describe(\"Social profile entry in response.\");\nexport const SalesflareUpdateAccountOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the account\").nullable().optional(),\n name: z.string().describe(\"Name of the account/company\").nullable().optional(),\n size: z.number().int().describe(\"Company size (number of employees)\").nullable().optional(),\n tags: z.array(SalesflareUpdateAccount_UpdateAccountResponseTagSchema).describe(\"List of tags associated with the account\").nullable().optional(),\n email: z.string().describe(\"Primary email address for the account\").nullable().optional(),\n links: z.string().describe(\"Related links for the account\").nullable().optional(),\n owner: z.number().int().describe(\"User ID of the account owner\").nullable().optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom field values\").nullable().optional(),\n domain: z.string().describe(\"Primary domain of the company\").nullable().optional(),\n address: SalesflareUpdateAccount_UpdateAccountResponseAddressSchema.nullable().optional(),\n picture: z.string().describe(\"URL to the account's logo or picture\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n addresses: z.array(SalesflareUpdateAccount_UpdateAccountResponseAddressSchema).describe(\"List of addresses associated with the account\").nullable().optional(),\n customers: z.array(SalesflareUpdateAccount_UpdateAccountResponseCustomerSchema).describe(\"List of customers associated with the account\").nullable().optional(),\n description: z.string().describe(\"Description of the account\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number for the account\").nullable().optional(),\n phone_numbers: z.array(SalesflareUpdateAccount_UpdateAccountResponsePhoneNumberSchema).describe(\"List of phone numbers associated with the account\").nullable().optional(),\n parent_account: z.number().int().describe(\"Parent account ID\").nullable().optional(),\n email_addresses: z.array(SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema).describe(\"List of email addresses associated with the account\").nullable().optional(),\n social_profiles: z.array(SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema).describe(\"List of social media profiles\").nullable().optional(),\n}).passthrough().describe(\"Response model for the updated account.\");\n\nexport const salesflareUpdateAccount = action(\"SALESFLARE_UPDATE_ACCOUNT\", {\n slug: \"salesflare-update-account\",\n name: \"Update Account\",\n description: \"Tool to update an existing account in Salesflare. Use when you need to modify account details such as name, contact information, address, or custom fields.\",\n input: SalesflareUpdateAccountInput,\n output: SalesflareUpdateAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,Q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CAAC,SAAS;EAC9K,iBAAiB,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const SalesflareUpdateAiSettingsInput = zod.z.object({
|
|
|
12
12
|
generated: zod.z.boolean().describe("Whether the company information is AI-generated").optional()
|
|
13
13
|
}).describe("Company AI settings.").optional()
|
|
14
14
|
}).describe("Request model for updating AI settings in Salesflare.");
|
|
15
|
-
const SalesflareUpdateAiSettingsOutput = zod.z.object({ result: zod.z.string().describe("Result message from updating AI settings").nullable().optional() }).describe("Response model for updating AI settings.");
|
|
15
|
+
const SalesflareUpdateAiSettingsOutput = zod.z.object({ result: zod.z.string().describe("Result message from updating AI settings").nullable().optional() }).passthrough().describe("Response model for updating AI settings.");
|
|
16
16
|
const salesflareUpdateAiSettings = require_action.action("SALESFLARE_UPDATE_AI_SETTINGS", {
|
|
17
17
|
slug: "salesflare-update-ai-settings",
|
|
18
18
|
name: "Update AI Settings",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-ai-settings.cjs","names":["z","action"],"sources":["../../src/actions/update-ai-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAiSettingsInput = z.object({\n user: z.object({\n name: z.string().describe(\"Name of the user for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the user for AI context\").optional(),\n}).describe(\"User AI settings.\").optional(),\n company: z.object({\n name: z.string().describe(\"Name of the company for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the company for AI context\").optional(),\n generated: z.boolean().describe(\"Whether the company information is AI-generated\").optional(),\n}).describe(\"Company AI settings.\").optional(),\n}).describe(\"Request model for updating AI settings in Salesflare.\");\nexport const SalesflareUpdateAiSettingsOutput = z.object({\n result: z.string().describe(\"Result message from updating AI settings\").nullable().optional(),\n}).describe(\"Response model for updating AI settings.\");\n\nexport const salesflareUpdateAiSettings = action(\"SALESFLARE_UPDATE_AI_SETTINGS\", {\n slug: \"salesflare-update-ai-settings\",\n name: \"Update AI Settings\",\n description: \"Tool to update AI settings for the Salesflare team. Use when you need to configure AI context information for company or user profiles.\",\n input: SalesflareUpdateAiSettingsInput,\n output: SalesflareUpdateAiSettingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxC,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC9F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC7C,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"update-ai-settings.cjs","names":["z","action"],"sources":["../../src/actions/update-ai-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAiSettingsInput = z.object({\n user: z.object({\n name: z.string().describe(\"Name of the user for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the user for AI context\").optional(),\n}).describe(\"User AI settings.\").optional(),\n company: z.object({\n name: z.string().describe(\"Name of the company for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the company for AI context\").optional(),\n generated: z.boolean().describe(\"Whether the company information is AI-generated\").optional(),\n}).describe(\"Company AI settings.\").optional(),\n}).describe(\"Request model for updating AI settings in Salesflare.\");\nexport const SalesflareUpdateAiSettingsOutput = z.object({\n result: z.string().describe(\"Result message from updating AI settings\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating AI settings.\");\n\nexport const salesflareUpdateAiSettings = action(\"SALESFLARE_UPDATE_AI_SETTINGS\", {\n slug: \"salesflare-update-ai-settings\",\n name: \"Update AI Settings\",\n description: \"Tool to update AI settings for the Salesflare team. Use when you need to configure AI context information for company or user profiles.\",\n input: SalesflareUpdateAiSettingsInput,\n output: SalesflareUpdateAiSettingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxC,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC9F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC7C,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ declare const SalesflareUpdateAiSettingsInput: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const SalesflareUpdateAiSettingsOutput: z.ZodObject<{
|
|
16
16
|
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const salesflareUpdateAiSettings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
user?: {
|
|
20
20
|
name?: string | undefined;
|
|
@@ -14,7 +14,7 @@ declare const SalesflareUpdateAiSettingsInput: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const SalesflareUpdateAiSettingsOutput: z.ZodObject<{
|
|
16
16
|
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const salesflareUpdateAiSettings: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
user?: {
|
|
20
20
|
name?: string | undefined;
|
|
@@ -15,7 +15,7 @@ const salesflareUpdateAiSettings = action("SALESFLARE_UPDATE_AI_SETTINGS", {
|
|
|
15
15
|
generated: z.boolean().describe("Whether the company information is AI-generated").optional()
|
|
16
16
|
}).describe("Company AI settings.").optional()
|
|
17
17
|
}).describe("Request model for updating AI settings in Salesflare."),
|
|
18
|
-
output: z.object({ result: z.string().describe("Result message from updating AI settings").nullable().optional() }).describe("Response model for updating AI settings.")
|
|
18
|
+
output: z.object({ result: z.string().describe("Result message from updating AI settings").nullable().optional() }).passthrough().describe("Response model for updating AI settings.")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { salesflareUpdateAiSettings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-ai-settings.mjs","names":[],"sources":["../../src/actions/update-ai-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAiSettingsInput = z.object({\n user: z.object({\n name: z.string().describe(\"Name of the user for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the user for AI context\").optional(),\n}).describe(\"User AI settings.\").optional(),\n company: z.object({\n name: z.string().describe(\"Name of the company for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the company for AI context\").optional(),\n generated: z.boolean().describe(\"Whether the company information is AI-generated\").optional(),\n}).describe(\"Company AI settings.\").optional(),\n}).describe(\"Request model for updating AI settings in Salesflare.\");\nexport const SalesflareUpdateAiSettingsOutput = z.object({\n result: z.string().describe(\"Result message from updating AI settings\").nullable().optional(),\n}).describe(\"Response model for updating AI settings.\");\n\nexport const salesflareUpdateAiSettings = action(\"SALESFLARE_UPDATE_AI_SETTINGS\", {\n slug: \"salesflare-update-ai-settings\",\n name: \"Update AI Settings\",\n description: \"Tool to update AI settings for the Salesflare team. Use when you need to configure AI context information for company or user profiles.\",\n input: SalesflareUpdateAiSettingsInput,\n output: SalesflareUpdateAiSettingsOutput,\n});\n"],"mappings":";;AAmBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7F,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EACxC,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GAC9F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9F,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC7C,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"update-ai-settings.mjs","names":[],"sources":["../../src/actions/update-ai-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAiSettingsInput = z.object({\n user: z.object({\n name: z.string().describe(\"Name of the user for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the user for AI context\").optional(),\n}).describe(\"User AI settings.\").optional(),\n company: z.object({\n name: z.string().describe(\"Name of the company for AI context\").optional(),\n summary: z.string().describe(\"Summary or description of the company for AI context\").optional(),\n generated: z.boolean().describe(\"Whether the company information is AI-generated\").optional(),\n}).describe(\"Company AI settings.\").optional(),\n}).describe(\"Request model for updating AI settings in Salesflare.\");\nexport const SalesflareUpdateAiSettingsOutput = z.object({\n result: z.string().describe(\"Result message from updating AI settings\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating AI settings.\");\n\nexport const salesflareUpdateAiSettings = action(\"SALESFLARE_UPDATE_AI_SETTINGS\", {\n slug: \"salesflare-update-ai-settings\",\n name: \"Update AI Settings\",\n description: \"Tool to update AI settings for the Salesflare team. Use when you need to configure AI context information for company or user profiles.\",\n input: SalesflareUpdateAiSettingsInput,\n output: SalesflareUpdateAiSettingsOutput,\n});\n"],"mappings":";;AAmBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7F,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EACxC,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GAC9F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9F,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC7C,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -37,12 +37,12 @@ const SalesflareUpdateContactInput = zod.z.object({
|
|
|
37
37
|
street: zod.z.string().describe("Street address").optional(),
|
|
38
38
|
country: zod.z.string().describe("Country name").optional(),
|
|
39
39
|
state_region: zod.z.string().describe("State or region").optional()
|
|
40
|
-
}).describe("Address information for a contact")).describe("List of all addresses for the contact.").optional(),
|
|
40
|
+
}).passthrough().describe("Address information for a contact")).describe("List of all addresses for the contact.").optional(),
|
|
41
41
|
firstname: zod.z.string().describe("First name of the contact.").optional(),
|
|
42
42
|
positions: zod.z.array(zod.z.object({
|
|
43
43
|
role: zod.z.string().describe("Role or job title at the organization").optional(),
|
|
44
44
|
organisation: zod.z.string().describe("Organization name").optional()
|
|
45
|
-
}).describe("Position information for a contact")).describe("List of all positions for the contact.").optional(),
|
|
45
|
+
}).passthrough().describe("Position information for a contact")).describe("List of all positions for the contact.").optional(),
|
|
46
46
|
birth_date: zod.z.string().describe("Birth date of the contact in ISO 8601 format (e.g., '1990-01-15T00:00:00Z').").optional(),
|
|
47
47
|
contact_id: zod.z.number().int().describe("The unique identifier of the contact to update (used in the URL path)."),
|
|
48
48
|
fax_number: zod.z.string().describe("Fax number of the contact.").optional(),
|
|
@@ -52,7 +52,7 @@ const SalesflareUpdateContactInput = zod.z.object({
|
|
|
52
52
|
phone_numbers: zod.z.array(zod.z.object({
|
|
53
53
|
type: zod.z.string().describe("Type of phone number (e.g., 'work', 'mobile', 'home')").optional(),
|
|
54
54
|
number: zod.z.string().describe("Phone number").optional()
|
|
55
|
-
}).describe("Phone number information for a contact")).describe("List of all phone numbers for the contact.").optional(),
|
|
55
|
+
}).passthrough().describe("Phone number information for a contact")).describe("List of all phone numbers for the contact.").optional(),
|
|
56
56
|
social_profiles: zod.z.array(zod.z.string()).describe("List of social media profile URLs.").optional(),
|
|
57
57
|
"opt-out_campaign": zod.z.string().describe("Campaign from which the contact opted out.").optional(),
|
|
58
58
|
home_phone_number: zod.z.string().describe("Home phone number of the contact.").optional(),
|
|
@@ -74,7 +74,7 @@ const SalesflareUpdateContactOutput = zod.z.object({
|
|
|
74
74
|
phone_number: zod.z.string().describe("Primary phone number of the contact.").nullable().optional(),
|
|
75
75
|
creation_date: zod.z.string().describe("Date when the contact was created in ISO 8601 format.").nullable().optional(),
|
|
76
76
|
mobile_phone_number: zod.z.string().describe("Mobile phone number of the contact.").nullable().optional()
|
|
77
|
-
}).describe("Response model for updating a Salesflare contact");
|
|
77
|
+
}).passthrough().describe("Response model for updating a Salesflare contact");
|
|
78
78
|
const salesflareUpdateContact = require_action.action("SALESFLARE_UPDATE_CONTACT", {
|
|
79
79
|
slug: "salesflare-update-contact",
|
|
80
80
|
name: "Update Contact",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateContactInput = z.object({\n name: z.string().describe(\"Full name of the contact.\").optional(),\n role: z.string().describe(\"Job role or title of the contact.\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to apply to the contact.\").optional(),\n email: z.string().describe(\"Primary email address of the contact.\").optional(),\n force: z.boolean().default(true).describe(\"When false, the contact's name will not be updated if the name in the update is just the first part of the email address. Default is true.\").optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").optional(),\n middle: z.string().describe(\"Middle name of the contact.\").optional(),\n prefix: z.string().describe(\"Name prefix (e.g., 'Mr.', 'Ms.', 'Dr.').\").optional(),\n suffix: z.string().describe(\"Name suffix (e.g., 'Jr.', 'Sr.', 'III').\").optional(),\n account: z.number().int().describe(\"Account ID to associate with the contact. Pass null to remove the existing account association.\").optional(),\n address: z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).describe(\"Address information for a contact\").optional(),\n bounced: z.boolean().describe(\"Whether email to this contact has bounced.\").optional(),\n \"opt-out\": z.boolean().describe(\"Whether the contact has opted out of communications.\").optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").optional(),\n lastname: z.string().describe(\"Last name of the contact.\").optional(),\n position: z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).describe(\"Position information for a contact\").optional(),\n addresses: z.array(z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).describe(\"Address information for a contact\")).describe(\"List of all addresses for the contact.\").optional(),\n firstname: z.string().describe(\"First name of the contact.\").optional(),\n positions: z.array(z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).describe(\"Position information for a contact\")).describe(\"List of all positions for the contact.\").optional(),\n birth_date: z.string().describe(\"Birth date of the contact in ISO 8601 format (e.g., '1990-01-15T00:00:00Z').\").optional(),\n contact_id: z.number().int().describe(\"The unique identifier of the contact to update (used in the URL path).\"),\n fax_number: z.string().describe(\"Fax number of the contact.\").optional(),\n bounced_date: z.string().describe(\"Date when email bounced in ISO 8601 format.\").optional(),\n \"opt-out_date\": z.string().describe(\"Date when the contact opted out in ISO 8601 format.\").optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").optional(),\n phone_numbers: z.array(z.object({\n type: z.string().describe(\"Type of phone number (e.g., 'work', 'mobile', 'home')\").optional(),\n number: z.string().describe(\"Phone number\").optional(),\n}).describe(\"Phone number information for a contact\")).describe(\"List of all phone numbers for the contact.\").optional(),\n social_profiles: z.array(z.string()).describe(\"List of social media profile URLs.\").optional(),\n \"opt-out_campaign\": z.string().describe(\"Campaign from which the contact opted out.\").optional(),\n home_phone_number: z.string().describe(\"Home phone number of the contact.\").optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").optional(),\n}).describe(\"Request model for updating a Salesflare contact\");\nexport const SalesflareUpdateContactOutput = z.object({\n id: z.number().int().describe(\"The unique identifier of the updated contact.\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags applied to the contact.\").nullable().optional(),\n email: z.string().describe(\"Primary email address of the contact.\").nullable().optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").nullable().optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").nullable().optional(),\n account: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").nullable().optional(),\n lastname: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n firstname: z.string().describe(\"First name of the contact.\").nullable().optional(),\n update_date: z.string().describe(\"Date when the contact was last updated in ISO 8601 format.\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").nullable().optional(),\n creation_date: z.string().describe(\"Date when the contact was created in ISO 8601 format.\").nullable().optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").nullable().optional(),\n}).describe(\"Response model for updating a Salesflare contact\");\n\nexport const salesflareUpdateContact = action(\"SALESFLARE_UPDATE_CONTACT\", {\n slug: \"salesflare-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Salesflare. Use when you need to modify contact details such as name, email, phone, tags, or custom fields.\",\n input: SalesflareUpdateContactInput,\n output: SalesflareUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACrF,OAA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateContactInput = z.object({\n name: z.string().describe(\"Full name of the contact.\").optional(),\n role: z.string().describe(\"Job role or title of the contact.\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to apply to the contact.\").optional(),\n email: z.string().describe(\"Primary email address of the contact.\").optional(),\n force: z.boolean().default(true).describe(\"When false, the contact's name will not be updated if the name in the update is just the first part of the email address. Default is true.\").optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").optional(),\n middle: z.string().describe(\"Middle name of the contact.\").optional(),\n prefix: z.string().describe(\"Name prefix (e.g., 'Mr.', 'Ms.', 'Dr.').\").optional(),\n suffix: z.string().describe(\"Name suffix (e.g., 'Jr.', 'Sr.', 'III').\").optional(),\n account: z.number().int().describe(\"Account ID to associate with the contact. Pass null to remove the existing account association.\").optional(),\n address: z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).describe(\"Address information for a contact\").optional(),\n bounced: z.boolean().describe(\"Whether email to this contact has bounced.\").optional(),\n \"opt-out\": z.boolean().describe(\"Whether the contact has opted out of communications.\").optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").optional(),\n lastname: z.string().describe(\"Last name of the contact.\").optional(),\n position: z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).describe(\"Position information for a contact\").optional(),\n addresses: z.array(z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).passthrough().describe(\"Address information for a contact\")).describe(\"List of all addresses for the contact.\").optional(),\n firstname: z.string().describe(\"First name of the contact.\").optional(),\n positions: z.array(z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).passthrough().describe(\"Position information for a contact\")).describe(\"List of all positions for the contact.\").optional(),\n birth_date: z.string().describe(\"Birth date of the contact in ISO 8601 format (e.g., '1990-01-15T00:00:00Z').\").optional(),\n contact_id: z.number().int().describe(\"The unique identifier of the contact to update (used in the URL path).\"),\n fax_number: z.string().describe(\"Fax number of the contact.\").optional(),\n bounced_date: z.string().describe(\"Date when email bounced in ISO 8601 format.\").optional(),\n \"opt-out_date\": z.string().describe(\"Date when the contact opted out in ISO 8601 format.\").optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").optional(),\n phone_numbers: z.array(z.object({\n type: z.string().describe(\"Type of phone number (e.g., 'work', 'mobile', 'home')\").optional(),\n number: z.string().describe(\"Phone number\").optional(),\n}).passthrough().describe(\"Phone number information for a contact\")).describe(\"List of all phone numbers for the contact.\").optional(),\n social_profiles: z.array(z.string()).describe(\"List of social media profile URLs.\").optional(),\n \"opt-out_campaign\": z.string().describe(\"Campaign from which the contact opted out.\").optional(),\n home_phone_number: z.string().describe(\"Home phone number of the contact.\").optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").optional(),\n}).describe(\"Request model for updating a Salesflare contact\");\nexport const SalesflareUpdateContactOutput = z.object({\n id: z.number().int().describe(\"The unique identifier of the updated contact.\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags applied to the contact.\").nullable().optional(),\n email: z.string().describe(\"Primary email address of the contact.\").nullable().optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").nullable().optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").nullable().optional(),\n account: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").nullable().optional(),\n lastname: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n firstname: z.string().describe(\"First name of the contact.\").nullable().optional(),\n update_date: z.string().describe(\"Date when the contact was last updated in ISO 8601 format.\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").nullable().optional(),\n creation_date: z.string().describe(\"Date when the contact was created in ISO 8601 format.\").nullable().optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating a Salesflare contact\");\n\nexport const salesflareUpdateContact = action(\"SALESFLARE_UPDATE_CONTACT\", {\n slug: \"salesflare-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Salesflare. Use when you need to modify contact details such as name, email, phone, tags, or custom fields.\",\n input: SalesflareUpdateContactInput,\n output: SalesflareUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACjM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC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AAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -37,12 +37,12 @@ declare const SalesflareUpdateContactInput: z.ZodObject<{
|
|
|
37
37
|
street: z.ZodOptional<z.ZodString>;
|
|
38
38
|
country: z.ZodOptional<z.ZodString>;
|
|
39
39
|
state_region: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
firstname: z.ZodOptional<z.ZodString>;
|
|
42
42
|
positions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
43
|
role: z.ZodOptional<z.ZodString>;
|
|
44
44
|
organisation: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
birth_date: z.ZodOptional<z.ZodString>;
|
|
47
47
|
contact_id: z.ZodNumber;
|
|
48
48
|
fax_number: z.ZodOptional<z.ZodString>;
|
|
@@ -52,7 +52,7 @@ declare const SalesflareUpdateContactInput: z.ZodObject<{
|
|
|
52
52
|
phone_numbers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
53
|
type: z.ZodOptional<z.ZodString>;
|
|
54
54
|
number: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
56
|
social_profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
57
|
"opt-out_campaign": z.ZodOptional<z.ZodString>;
|
|
58
58
|
home_phone_number: z.ZodOptional<z.ZodString>;
|
|
@@ -74,7 +74,7 @@ declare const SalesflareUpdateContactOutput: z.ZodObject<{
|
|
|
74
74
|
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
75
|
creation_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
76
|
mobile_phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$loose>;
|
|
78
78
|
declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
79
79
|
contact_id: number;
|
|
80
80
|
name?: string | undefined;
|
|
@@ -106,6 +106,7 @@ declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowAct
|
|
|
106
106
|
organisation?: string | undefined;
|
|
107
107
|
} | undefined;
|
|
108
108
|
addresses?: {
|
|
109
|
+
[x: string]: unknown;
|
|
109
110
|
zip?: string | undefined;
|
|
110
111
|
city?: string | undefined;
|
|
111
112
|
type?: string | undefined;
|
|
@@ -115,6 +116,7 @@ declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowAct
|
|
|
115
116
|
}[] | undefined;
|
|
116
117
|
firstname?: string | undefined;
|
|
117
118
|
positions?: {
|
|
119
|
+
[x: string]: unknown;
|
|
118
120
|
role?: string | undefined;
|
|
119
121
|
organisation?: string | undefined;
|
|
120
122
|
}[] | undefined;
|
|
@@ -124,6 +126,7 @@ declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowAct
|
|
|
124
126
|
"opt-out_date"?: string | undefined;
|
|
125
127
|
phone_number?: string | undefined;
|
|
126
128
|
phone_numbers?: {
|
|
129
|
+
[x: string]: unknown;
|
|
127
130
|
type?: string | undefined;
|
|
128
131
|
number?: string | undefined;
|
|
129
132
|
}[] | undefined;
|
|
@@ -37,12 +37,12 @@ declare const SalesflareUpdateContactInput: z.ZodObject<{
|
|
|
37
37
|
street: z.ZodOptional<z.ZodString>;
|
|
38
38
|
country: z.ZodOptional<z.ZodString>;
|
|
39
39
|
state_region: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
firstname: z.ZodOptional<z.ZodString>;
|
|
42
42
|
positions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
43
|
role: z.ZodOptional<z.ZodString>;
|
|
44
44
|
organisation: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
birth_date: z.ZodOptional<z.ZodString>;
|
|
47
47
|
contact_id: z.ZodNumber;
|
|
48
48
|
fax_number: z.ZodOptional<z.ZodString>;
|
|
@@ -52,7 +52,7 @@ declare const SalesflareUpdateContactInput: z.ZodObject<{
|
|
|
52
52
|
phone_numbers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
53
|
type: z.ZodOptional<z.ZodString>;
|
|
54
54
|
number: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
56
|
social_profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
57
|
"opt-out_campaign": z.ZodOptional<z.ZodString>;
|
|
58
58
|
home_phone_number: z.ZodOptional<z.ZodString>;
|
|
@@ -74,7 +74,7 @@ declare const SalesflareUpdateContactOutput: z.ZodObject<{
|
|
|
74
74
|
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
75
|
creation_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
76
|
mobile_phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$loose>;
|
|
78
78
|
declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
79
79
|
contact_id: number;
|
|
80
80
|
name?: string | undefined;
|
|
@@ -106,6 +106,7 @@ declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowAct
|
|
|
106
106
|
organisation?: string | undefined;
|
|
107
107
|
} | undefined;
|
|
108
108
|
addresses?: {
|
|
109
|
+
[x: string]: unknown;
|
|
109
110
|
zip?: string | undefined;
|
|
110
111
|
city?: string | undefined;
|
|
111
112
|
type?: string | undefined;
|
|
@@ -115,6 +116,7 @@ declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowAct
|
|
|
115
116
|
}[] | undefined;
|
|
116
117
|
firstname?: string | undefined;
|
|
117
118
|
positions?: {
|
|
119
|
+
[x: string]: unknown;
|
|
118
120
|
role?: string | undefined;
|
|
119
121
|
organisation?: string | undefined;
|
|
120
122
|
}[] | undefined;
|
|
@@ -124,6 +126,7 @@ declare const salesflareUpdateContact: import("@keystrokehq/action").WorkflowAct
|
|
|
124
126
|
"opt-out_date"?: string | undefined;
|
|
125
127
|
phone_number?: string | undefined;
|
|
126
128
|
phone_numbers?: {
|
|
129
|
+
[x: string]: unknown;
|
|
127
130
|
type?: string | undefined;
|
|
128
131
|
number?: string | undefined;
|
|
129
132
|
}[] | undefined;
|
|
@@ -40,12 +40,12 @@ const salesflareUpdateContact = action("SALESFLARE_UPDATE_CONTACT", {
|
|
|
40
40
|
street: z.string().describe("Street address").optional(),
|
|
41
41
|
country: z.string().describe("Country name").optional(),
|
|
42
42
|
state_region: z.string().describe("State or region").optional()
|
|
43
|
-
}).describe("Address information for a contact")).describe("List of all addresses for the contact.").optional(),
|
|
43
|
+
}).passthrough().describe("Address information for a contact")).describe("List of all addresses for the contact.").optional(),
|
|
44
44
|
firstname: z.string().describe("First name of the contact.").optional(),
|
|
45
45
|
positions: z.array(z.object({
|
|
46
46
|
role: z.string().describe("Role or job title at the organization").optional(),
|
|
47
47
|
organisation: z.string().describe("Organization name").optional()
|
|
48
|
-
}).describe("Position information for a contact")).describe("List of all positions for the contact.").optional(),
|
|
48
|
+
}).passthrough().describe("Position information for a contact")).describe("List of all positions for the contact.").optional(),
|
|
49
49
|
birth_date: z.string().describe("Birth date of the contact in ISO 8601 format (e.g., '1990-01-15T00:00:00Z').").optional(),
|
|
50
50
|
contact_id: z.number().int().describe("The unique identifier of the contact to update (used in the URL path)."),
|
|
51
51
|
fax_number: z.string().describe("Fax number of the contact.").optional(),
|
|
@@ -55,7 +55,7 @@ const salesflareUpdateContact = action("SALESFLARE_UPDATE_CONTACT", {
|
|
|
55
55
|
phone_numbers: z.array(z.object({
|
|
56
56
|
type: z.string().describe("Type of phone number (e.g., 'work', 'mobile', 'home')").optional(),
|
|
57
57
|
number: z.string().describe("Phone number").optional()
|
|
58
|
-
}).describe("Phone number information for a contact")).describe("List of all phone numbers for the contact.").optional(),
|
|
58
|
+
}).passthrough().describe("Phone number information for a contact")).describe("List of all phone numbers for the contact.").optional(),
|
|
59
59
|
social_profiles: z.array(z.string()).describe("List of social media profile URLs.").optional(),
|
|
60
60
|
"opt-out_campaign": z.string().describe("Campaign from which the contact opted out.").optional(),
|
|
61
61
|
home_phone_number: z.string().describe("Home phone number of the contact.").optional(),
|
|
@@ -77,7 +77,7 @@ const salesflareUpdateContact = action("SALESFLARE_UPDATE_CONTACT", {
|
|
|
77
77
|
phone_number: z.string().describe("Primary phone number of the contact.").nullable().optional(),
|
|
78
78
|
creation_date: z.string().describe("Date when the contact was created in ISO 8601 format.").nullable().optional(),
|
|
79
79
|
mobile_phone_number: z.string().describe("Mobile phone number of the contact.").nullable().optional()
|
|
80
|
-
}).describe("Response model for updating a Salesflare contact")
|
|
80
|
+
}).passthrough().describe("Response model for updating a Salesflare contact")
|
|
81
81
|
});
|
|
82
82
|
//#endregion
|
|
83
83
|
export { salesflareUpdateContact };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateContactInput = z.object({\n name: z.string().describe(\"Full name of the contact.\").optional(),\n role: z.string().describe(\"Job role or title of the contact.\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to apply to the contact.\").optional(),\n email: z.string().describe(\"Primary email address of the contact.\").optional(),\n force: z.boolean().default(true).describe(\"When false, the contact's name will not be updated if the name in the update is just the first part of the email address. Default is true.\").optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").optional(),\n middle: z.string().describe(\"Middle name of the contact.\").optional(),\n prefix: z.string().describe(\"Name prefix (e.g., 'Mr.', 'Ms.', 'Dr.').\").optional(),\n suffix: z.string().describe(\"Name suffix (e.g., 'Jr.', 'Sr.', 'III').\").optional(),\n account: z.number().int().describe(\"Account ID to associate with the contact. Pass null to remove the existing account association.\").optional(),\n address: z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).describe(\"Address information for a contact\").optional(),\n bounced: z.boolean().describe(\"Whether email to this contact has bounced.\").optional(),\n \"opt-out\": z.boolean().describe(\"Whether the contact has opted out of communications.\").optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").optional(),\n lastname: z.string().describe(\"Last name of the contact.\").optional(),\n position: z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).describe(\"Position information for a contact\").optional(),\n addresses: z.array(z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).describe(\"Address information for a contact\")).describe(\"List of all addresses for the contact.\").optional(),\n firstname: z.string().describe(\"First name of the contact.\").optional(),\n positions: z.array(z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).describe(\"Position information for a contact\")).describe(\"List of all positions for the contact.\").optional(),\n birth_date: z.string().describe(\"Birth date of the contact in ISO 8601 format (e.g., '1990-01-15T00:00:00Z').\").optional(),\n contact_id: z.number().int().describe(\"The unique identifier of the contact to update (used in the URL path).\"),\n fax_number: z.string().describe(\"Fax number of the contact.\").optional(),\n bounced_date: z.string().describe(\"Date when email bounced in ISO 8601 format.\").optional(),\n \"opt-out_date\": z.string().describe(\"Date when the contact opted out in ISO 8601 format.\").optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").optional(),\n phone_numbers: z.array(z.object({\n type: z.string().describe(\"Type of phone number (e.g., 'work', 'mobile', 'home')\").optional(),\n number: z.string().describe(\"Phone number\").optional(),\n}).describe(\"Phone number information for a contact\")).describe(\"List of all phone numbers for the contact.\").optional(),\n social_profiles: z.array(z.string()).describe(\"List of social media profile URLs.\").optional(),\n \"opt-out_campaign\": z.string().describe(\"Campaign from which the contact opted out.\").optional(),\n home_phone_number: z.string().describe(\"Home phone number of the contact.\").optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").optional(),\n}).describe(\"Request model for updating a Salesflare contact\");\nexport const SalesflareUpdateContactOutput = z.object({\n id: z.number().int().describe(\"The unique identifier of the updated contact.\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags applied to the contact.\").nullable().optional(),\n email: z.string().describe(\"Primary email address of the contact.\").nullable().optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").nullable().optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").nullable().optional(),\n account: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").nullable().optional(),\n lastname: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n firstname: z.string().describe(\"First name of the contact.\").nullable().optional(),\n update_date: z.string().describe(\"Date when the contact was last updated in ISO 8601 format.\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").nullable().optional(),\n creation_date: z.string().describe(\"Date when the contact was created in ISO 8601 format.\").nullable().optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").nullable().optional(),\n}).describe(\"Response model for updating a Salesflare contact\");\n\nexport const salesflareUpdateContact = action(\"SALESFLARE_UPDATE_CONTACT\", {\n slug: \"salesflare-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Salesflare. Use when you need to modify contact details such as name, email, phone, tags, or custom fields.\",\n input: SalesflareUpdateContactInput,\n output: SalesflareUpdateContactOutput,\n});\n"],"mappings":";;AA+EA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/E0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EACjM,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,E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AAS,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateContactInput = z.object({\n name: z.string().describe(\"Full name of the contact.\").optional(),\n role: z.string().describe(\"Job role or title of the contact.\").optional(),\n tags: z.array(z.string()).describe(\"List of tags to apply to the contact.\").optional(),\n email: z.string().describe(\"Primary email address of the contact.\").optional(),\n force: z.boolean().default(true).describe(\"When false, the contact's name will not be updated if the name in the update is just the first part of the email address. Default is true.\").optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").optional(),\n middle: z.string().describe(\"Middle name of the contact.\").optional(),\n prefix: z.string().describe(\"Name prefix (e.g., 'Mr.', 'Ms.', 'Dr.').\").optional(),\n suffix: z.string().describe(\"Name suffix (e.g., 'Jr.', 'Sr.', 'III').\").optional(),\n account: z.number().int().describe(\"Account ID to associate with the contact. Pass null to remove the existing account association.\").optional(),\n address: z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).describe(\"Address information for a contact\").optional(),\n bounced: z.boolean().describe(\"Whether email to this contact has bounced.\").optional(),\n \"opt-out\": z.boolean().describe(\"Whether the contact has opted out of communications.\").optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").optional(),\n lastname: z.string().describe(\"Last name of the contact.\").optional(),\n position: z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).describe(\"Position information for a contact\").optional(),\n addresses: z.array(z.object({\n zip: z.string().describe(\"ZIP or postal code\").optional(),\n city: z.string().describe(\"City name\").optional(),\n type: z.string().describe(\"Type of address (e.g., 'work', 'home')\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n state_region: z.string().describe(\"State or region\").optional(),\n}).passthrough().describe(\"Address information for a contact\")).describe(\"List of all addresses for the contact.\").optional(),\n firstname: z.string().describe(\"First name of the contact.\").optional(),\n positions: z.array(z.object({\n role: z.string().describe(\"Role or job title at the organization\").optional(),\n organisation: z.string().describe(\"Organization name\").optional(),\n}).passthrough().describe(\"Position information for a contact\")).describe(\"List of all positions for the contact.\").optional(),\n birth_date: z.string().describe(\"Birth date of the contact in ISO 8601 format (e.g., '1990-01-15T00:00:00Z').\").optional(),\n contact_id: z.number().int().describe(\"The unique identifier of the contact to update (used in the URL path).\"),\n fax_number: z.string().describe(\"Fax number of the contact.\").optional(),\n bounced_date: z.string().describe(\"Date when email bounced in ISO 8601 format.\").optional(),\n \"opt-out_date\": z.string().describe(\"Date when the contact opted out in ISO 8601 format.\").optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").optional(),\n phone_numbers: z.array(z.object({\n type: z.string().describe(\"Type of phone number (e.g., 'work', 'mobile', 'home')\").optional(),\n number: z.string().describe(\"Phone number\").optional(),\n}).passthrough().describe(\"Phone number information for a contact\")).describe(\"List of all phone numbers for the contact.\").optional(),\n social_profiles: z.array(z.string()).describe(\"List of social media profile URLs.\").optional(),\n \"opt-out_campaign\": z.string().describe(\"Campaign from which the contact opted out.\").optional(),\n home_phone_number: z.string().describe(\"Home phone number of the contact.\").optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").optional(),\n}).describe(\"Request model for updating a Salesflare contact\");\nexport const SalesflareUpdateContactOutput = z.object({\n id: z.number().int().describe(\"The unique identifier of the updated contact.\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags applied to the contact.\").nullable().optional(),\n email: z.string().describe(\"Primary email address of the contact.\").nullable().optional(),\n owner: z.number().int().describe(\"User ID of the contact owner.\").nullable().optional(),\n custom: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs.\").nullable().optional(),\n account: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n picture: z.string().describe(\"URL to the contact's picture.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the contact is archived.\").nullable().optional(),\n lastname: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n firstname: z.string().describe(\"First name of the contact.\").nullable().optional(),\n update_date: z.string().describe(\"Date when the contact was last updated in ISO 8601 format.\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number of the contact.\").nullable().optional(),\n creation_date: z.string().describe(\"Date when the contact was created in ISO 8601 format.\").nullable().optional(),\n mobile_phone_number: z.string().describe(\"Mobile phone number of the contact.\").nullable().optional(),\n}).passthrough().describe(\"Response model for updating a Salesflare contact\");\n\nexport const salesflareUpdateContact = action(\"SALESFLARE_UPDATE_CONTACT\", {\n slug: \"salesflare-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Salesflare. Use when you need to modify contact details such as name, email, phone, tags, or custom fields.\",\n input: SalesflareUpdateContactInput,\n output: SalesflareUpdateContactOutput,\n});\n"],"mappings":";;AA+EA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/E0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EACjM,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,QAA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11,7 @@ const SalesflareUpdateCustomFieldInput = zod.z.object({
|
|
|
11
11
|
name: zod.z.string().describe("Name of the option."),
|
|
12
12
|
order: zod.z.number().int().describe("Display order of the option.").optional(),
|
|
13
13
|
archived: zod.z.boolean().describe("Whether the option is archived.").optional()
|
|
14
|
-
}).describe("Option for select/multi-select type custom fields.")).describe("List of options for select/multi-select type fields.").optional(),
|
|
14
|
+
}).passthrough().describe("Option for select/multi-select type custom fields.")).describe("List of options for select/multi-select type fields.").optional(),
|
|
15
15
|
archived: zod.z.boolean().describe("Whether the custom field is archived.").optional(),
|
|
16
16
|
max_date: zod.z.string().describe("Maximum date for date type fields in ISO 8601 format.").optional(),
|
|
17
17
|
min_date: zod.z.string().describe("Minimum date for date type fields in ISO 8601 format.").optional(),
|
|
@@ -34,7 +34,7 @@ const SalesflareUpdateCustomField_CustomFieldOptionSchema = zod.z.object({
|
|
|
34
34
|
name: zod.z.string().describe("Name of the option.").nullable(),
|
|
35
35
|
order: zod.z.number().int().describe("Display order of the option.").nullable().optional(),
|
|
36
36
|
archived: zod.z.boolean().describe("Whether the option is archived.").nullable().optional()
|
|
37
|
-
}).describe("Option for select/multi-select type custom fields.");
|
|
37
|
+
}).passthrough().describe("Option for select/multi-select type custom fields.");
|
|
38
38
|
const SalesflareUpdateCustomFieldOutput = zod.z.object({
|
|
39
39
|
id: zod.z.number().int().describe("Unique identifier of the updated custom field.").nullable().optional(),
|
|
40
40
|
name: zod.z.string().describe("Name of the custom field.").nullable().optional(),
|
|
@@ -53,7 +53,7 @@ const SalesflareUpdateCustomFieldOutput = zod.z.object({
|
|
|
53
53
|
order_alphabetically: zod.z.boolean().describe("Whether options are ordered alphabetically.").nullable().optional(),
|
|
54
54
|
users_can_add_options: zod.z.boolean().describe("Whether users can add new options.").nullable().optional(),
|
|
55
55
|
predefined_customfield: zod.z.number().int().describe("ID of a predefined custom field template.").nullable().optional()
|
|
56
|
-
}).describe("Response from updating a custom field in Salesflare.");
|
|
56
|
+
}).passthrough().describe("Response from updating a custom field in Salesflare.");
|
|
57
57
|
const salesflareUpdateCustomField = require_action.action("SALESFLARE_UPDATE_CUSTOM_FIELD", {
|
|
58
58
|
slug: "salesflare-update-custom-field",
|
|
59
59
|
name: "Update Custom Field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateCustomFieldInput = z.object({\n id: z.number().int().describe(\"ID of the custom field to update.\"),\n name: z.string().describe(\"Updated name of the custom field.\").optional(),\n order: z.number().int().describe(\"Display order of the custom field.\").optional(),\n enabled: z.boolean().describe(\"Whether the custom field is enabled.\").optional(),\n options: z.array(z.object({\n id: z.number().int().describe(\"ID of the option (for updates).\").optional(),\n name: z.string().describe(\"Name of the option.\"),\n order: z.number().int().describe(\"Display order of the option.\").optional(),\n archived: z.boolean().describe(\"Whether the option is archived.\").optional(),\n}).describe(\"Option for select/multi-select type custom fields.\")).describe(\"List of options for select/multi-select type fields.\").optional(),\n archived: z.boolean().describe(\"Whether the custom field is archived.\").optional(),\n max_date: z.string().describe(\"Maximum date for date type fields in ISO 8601 format.\").optional(),\n min_date: z.string().describe(\"Minimum date for date type fields in ISO 8601 format.\").optional(),\n pipeline: z.number().int().describe(\"Pipeline ID to associate with the custom field (for opportunities).\").optional(),\n required: z.boolean().describe(\"Whether the custom field is required.\").optional(),\n item_class: z.enum([\"accounts\", \"contacts\", \"opportunities\"]).describe(\"The entity type for which the custom field is being updated. Must be one of: accounts, contacts, or opportunities.\"),\n max_number: z.number().describe(\"Maximum value for number type fields.\").optional(),\n min_number: z.number().describe(\"Minimum value for number type fields.\").optional(),\n pipelineName: z.string().describe(\"Name of the pipeline associated with the custom field.\").optional(),\n order_alphabetically: z.boolean().describe(\"Whether options should be ordered alphabetically.\").optional(),\n users_can_add_options: z.boolean().describe(\"Whether users can add new options to select/multi-select fields.\").optional(),\n predefined_customfield: z.number().int().describe(\"ID of a predefined custom field template.\").optional(),\n}).describe(\"Request schema for updating a custom field in Salesflare.\");\nconst SalesflareUpdateCustomField_CustomFieldOptionSchema = z.object({\n id: z.number().int().describe(\"ID of the option (for updates).\").nullable().optional(),\n name: z.string().describe(\"Name of the option.\").nullable(),\n order: z.number().int().describe(\"Display order of the option.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the option is archived.\").nullable().optional(),\n}).describe(\"Option for select/multi-select type custom fields.\");\nexport const SalesflareUpdateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the updated custom field.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom field.\").nullable().optional(),\n type: z.number().int().describe(\"Type of the custom field.\").nullable().optional(),\n order: z.number().int().describe(\"Display order of the custom field.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the custom field is enabled.\").nullable().optional(),\n options: z.array(SalesflareUpdateCustomField_CustomFieldOptionSchema).describe(\"List of options for select/multi-select type fields.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the custom field is archived.\").nullable().optional(),\n max_date: z.string().describe(\"Maximum date for date type fields.\").nullable().optional(),\n min_date: z.string().describe(\"Minimum date for date type fields.\").nullable().optional(),\n pipeline: z.number().int().describe(\"Pipeline ID associated with the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the custom field is required.\").nullable().optional(),\n max_number: z.number().describe(\"Maximum value for number type fields.\").nullable().optional(),\n min_number: z.number().describe(\"Minimum value for number type fields.\").nullable().optional(),\n pipelineName: z.string().describe(\"Name of the pipeline associated with the custom field.\").nullable().optional(),\n order_alphabetically: z.boolean().describe(\"Whether options are ordered alphabetically.\").nullable().optional(),\n users_can_add_options: z.boolean().describe(\"Whether users can add new options.\").nullable().optional(),\n predefined_customfield: z.number().int().describe(\"ID of a predefined custom field template.\").nullable().optional(),\n}).describe(\"Response from updating a custom field in Salesflare.\");\n\nexport const salesflareUpdateCustomField = action(\"SALESFLARE_UPDATE_CUSTOM_FIELD\", {\n slug: \"salesflare-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Updates an existing custom field for accounts, contacts, or opportunities in Salesflare. Use when you need to modify the properties or settings of a custom field.\",\n input: SalesflareUpdateCustomFieldInput,\n output: SalesflareUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateCustomFieldInput = z.object({\n id: z.number().int().describe(\"ID of the custom field to update.\"),\n name: z.string().describe(\"Updated name of the custom field.\").optional(),\n order: z.number().int().describe(\"Display order of the custom field.\").optional(),\n enabled: z.boolean().describe(\"Whether the custom field is enabled.\").optional(),\n options: z.array(z.object({\n id: z.number().int().describe(\"ID of the option (for updates).\").optional(),\n name: z.string().describe(\"Name of the option.\"),\n order: z.number().int().describe(\"Display order of the option.\").optional(),\n archived: z.boolean().describe(\"Whether the option is archived.\").optional(),\n}).passthrough().describe(\"Option for select/multi-select type custom fields.\")).describe(\"List of options for select/multi-select type fields.\").optional(),\n archived: z.boolean().describe(\"Whether the custom field is archived.\").optional(),\n max_date: z.string().describe(\"Maximum date for date type fields in ISO 8601 format.\").optional(),\n min_date: z.string().describe(\"Minimum date for date type fields in ISO 8601 format.\").optional(),\n pipeline: z.number().int().describe(\"Pipeline ID to associate with the custom field (for opportunities).\").optional(),\n required: z.boolean().describe(\"Whether the custom field is required.\").optional(),\n item_class: z.enum([\"accounts\", \"contacts\", \"opportunities\"]).describe(\"The entity type for which the custom field is being updated. Must be one of: accounts, contacts, or opportunities.\"),\n max_number: z.number().describe(\"Maximum value for number type fields.\").optional(),\n min_number: z.number().describe(\"Minimum value for number type fields.\").optional(),\n pipelineName: z.string().describe(\"Name of the pipeline associated with the custom field.\").optional(),\n order_alphabetically: z.boolean().describe(\"Whether options should be ordered alphabetically.\").optional(),\n users_can_add_options: z.boolean().describe(\"Whether users can add new options to select/multi-select fields.\").optional(),\n predefined_customfield: z.number().int().describe(\"ID of a predefined custom field template.\").optional(),\n}).describe(\"Request schema for updating a custom field in Salesflare.\");\nconst SalesflareUpdateCustomField_CustomFieldOptionSchema = z.object({\n id: z.number().int().describe(\"ID of the option (for updates).\").nullable().optional(),\n name: z.string().describe(\"Name of the option.\").nullable(),\n order: z.number().int().describe(\"Display order of the option.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the option is archived.\").nullable().optional(),\n}).passthrough().describe(\"Option for select/multi-select type custom fields.\");\nexport const SalesflareUpdateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the updated custom field.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom field.\").nullable().optional(),\n type: z.number().int().describe(\"Type of the custom field.\").nullable().optional(),\n order: z.number().int().describe(\"Display order of the custom field.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the custom field is enabled.\").nullable().optional(),\n options: z.array(SalesflareUpdateCustomField_CustomFieldOptionSchema).describe(\"List of options for select/multi-select type fields.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the custom field is archived.\").nullable().optional(),\n max_date: z.string().describe(\"Maximum date for date type fields.\").nullable().optional(),\n min_date: z.string().describe(\"Minimum date for date type fields.\").nullable().optional(),\n pipeline: z.number().int().describe(\"Pipeline ID associated with the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the custom field is required.\").nullable().optional(),\n max_number: z.number().describe(\"Maximum value for number type fields.\").nullable().optional(),\n min_number: z.number().describe(\"Minimum value for number type fields.\").nullable().optional(),\n pipelineName: z.string().describe(\"Name of the pipeline associated with the custom field.\").nullable().optional(),\n order_alphabetically: z.boolean().describe(\"Whether options are ordered alphabetically.\").nullable().optional(),\n users_can_add_options: z.boolean().describe(\"Whether users can add new options.\").nullable().optional(),\n predefined_customfield: z.number().int().describe(\"ID of a predefined custom field template.\").nullable().optional(),\n}).passthrough().describe(\"Response from updating a custom field in Salesflare.\");\n\nexport const salesflareUpdateCustomField = action(\"SALESFLARE_UPDATE_CUSTOM_FIELD\", {\n slug: \"salesflare-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Updates an existing custom field for accounts, contacts, or opportunities in Salesflare. Use when you need to modify the properties or settings of a custom field.\",\n input: SalesflareUpdateCustomFieldInput,\n output: SalesflareUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,MAAMA,IAAA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AAC,CAAC,SAAS;CAChH,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,15 +11,15 @@ declare const SalesflareUpdateCustomFieldInput: z.ZodObject<{
|
|
|
11
11
|
name: z.ZodString;
|
|
12
12
|
order: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
15
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
max_date: z.ZodOptional<z.ZodString>;
|
|
17
17
|
min_date: z.ZodOptional<z.ZodString>;
|
|
18
18
|
pipeline: z.ZodOptional<z.ZodNumber>;
|
|
19
19
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
20
20
|
item_class: z.ZodEnum<{
|
|
21
|
-
contacts: "contacts";
|
|
22
21
|
accounts: "accounts";
|
|
22
|
+
contacts: "contacts";
|
|
23
23
|
opportunities: "opportunities";
|
|
24
24
|
}>;
|
|
25
25
|
max_number: z.ZodOptional<z.ZodNumber>;
|
|
@@ -40,7 +40,7 @@ declare const SalesflareUpdateCustomFieldOutput: z.ZodObject<{
|
|
|
40
40
|
name: z.ZodNullable<z.ZodString>;
|
|
41
41
|
order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
44
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
45
|
max_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
min_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -52,14 +52,15 @@ declare const SalesflareUpdateCustomFieldOutput: z.ZodObject<{
|
|
|
52
52
|
order_alphabetically: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
53
53
|
users_can_add_options: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
54
54
|
predefined_customfield: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>;
|
|
56
56
|
declare const salesflareUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
id: number;
|
|
58
|
-
item_class: "
|
|
58
|
+
item_class: "accounts" | "contacts" | "opportunities";
|
|
59
59
|
name?: string | undefined;
|
|
60
60
|
order?: number | undefined;
|
|
61
61
|
enabled?: boolean | undefined;
|
|
62
62
|
options?: {
|
|
63
|
+
[x: string]: unknown;
|
|
63
64
|
name: string;
|
|
64
65
|
id?: number | undefined;
|
|
65
66
|
order?: number | undefined;
|