@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-contacts.mjs","names":[],"sources":["../../src/actions/update-account-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountContactsInput = z.object({\n contacts: z.array(z.object({\n id: z.number().int().describe(\"The ID of the contact to update.\"),\n _dirty: z.boolean().default(false).describe(\"Internal flag indicating if the contact data has been modified.\").optional(),\n _deleted: z.boolean().default(false).describe(\"Whether the contact should be removed from the account. Set to true to delete the contact association.\").optional(),\n}).describe(\"Model representing a contact to be updated for an account.\")).describe(\"Array of contact objects to update. Each object must contain an id field and optional _deleted and _dirty flags.\"),\n account_id: z.number().int().describe(\"The ID of the account whose contacts will be updated.\"),\n}).describe(\"Request model for updating contacts associated with a Salesflare account.\");\nexport const SalesflareUpdateAccountContactsOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating the result of the operation.\").nullable(),\n}).describe(\"Response model for updating account contacts.\");\n\nexport const salesflareUpdateAccountContacts = action(\"SALESFLARE_UPDATE_ACCOUNT_CONTACTS\", {\n slug: \"salesflare-update-account-contacts\",\n name: \"Update Account Contacts\",\n description: \"Tool to update the contacts associated with a specific Salesflare account. Use when you need to add, modify, or remove contact associations for an account.\",\n input: SalesflareUpdateAccountContactsInput,\n output: SalesflareUpdateAccountContactsOutput,\n});\n"],"mappings":";;AAgBA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkD,EAAE,OAAO;EAC3D,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;GAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;GACxH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;EACnK,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,kHAAkH;
|
|
1
|
+
{"version":3,"file":"update-account-contacts.mjs","names":[],"sources":["../../src/actions/update-account-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountContactsInput = z.object({\n contacts: z.array(z.object({\n id: z.number().int().describe(\"The ID of the contact to update.\"),\n _dirty: z.boolean().default(false).describe(\"Internal flag indicating if the contact data has been modified.\").optional(),\n _deleted: z.boolean().default(false).describe(\"Whether the contact should be removed from the account. Set to true to delete the contact association.\").optional(),\n}).passthrough().describe(\"Model representing a contact to be updated for an account.\")).describe(\"Array of contact objects to update. Each object must contain an id field and optional _deleted and _dirty flags.\"),\n account_id: z.number().int().describe(\"The ID of the account whose contacts will be updated.\"),\n}).describe(\"Request model for updating contacts associated with a Salesflare account.\");\nexport const SalesflareUpdateAccountContactsOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating the result of the operation.\").nullable(),\n}).passthrough().describe(\"Response model for updating account contacts.\");\n\nexport const salesflareUpdateAccountContacts = action(\"SALESFLARE_UPDATE_ACCOUNT_CONTACTS\", {\n slug: \"salesflare-update-account-contacts\",\n name: \"Update Account Contacts\",\n description: \"Tool to update the contacts associated with a specific Salesflare account. Use when you need to add, modify, or remove contact associations for an account.\",\n input: SalesflareUpdateAccountContactsInput,\n output: SalesflareUpdateAccountContactsOutput,\n});\n"],"mappings":";;AAgBA,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkD,EAAE,OAAO;EAC3D,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;GAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;GACxH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;EACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,kHAAkH;EAClN,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;CAC/F,CAAC,CAAC,CAAC,SAAS,2EASH;CACP,QATmD,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -6,10 +6,10 @@ const SalesflareUpdateAccountUsersInput = zod.z.object({
|
|
|
6
6
|
id: zod.z.number().int().describe("The ID of the user to update."),
|
|
7
7
|
_dirty: zod.z.boolean().default(false).describe("Internal flag indicating if the user data has been modified.").optional(),
|
|
8
8
|
_deleted: zod.z.boolean().default(false).describe("Whether the user should be removed from the account. Set to true to delete the user association.").optional()
|
|
9
|
-
}).describe("Model representing a user to be updated for an account.")).describe("Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags."),
|
|
9
|
+
}).passthrough().describe("Model representing a user to be updated for an account.")).describe("Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags."),
|
|
10
10
|
account_id: zod.z.number().int().describe("The ID of the account whose users will be updated.")
|
|
11
11
|
}).describe("Request model for updating users associated with a Salesflare account.");
|
|
12
|
-
const SalesflareUpdateAccountUsersOutput = zod.z.object({ message: zod.z.string().describe("Response message from the API indicating the result of the operation.").nullable() }).describe("Response model for updating account users.");
|
|
12
|
+
const SalesflareUpdateAccountUsersOutput = zod.z.object({ message: zod.z.string().describe("Response message from the API indicating the result of the operation.").nullable() }).passthrough().describe("Response model for updating account users.");
|
|
13
13
|
const salesflareUpdateAccountUsers = require_action.action("SALESFLARE_UPDATE_ACCOUNT_USERS", {
|
|
14
14
|
slug: "salesflare-update-account-users",
|
|
15
15
|
name: "Update Account Users",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-account-users.cjs","names":["z","action"],"sources":["../../src/actions/update-account-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountUsersInput = z.object({\n users: z.array(z.object({\n id: z.number().int().describe(\"The ID of the user to update.\"),\n _dirty: z.boolean().default(false).describe(\"Internal flag indicating if the user data has been modified.\").optional(),\n _deleted: z.boolean().default(false).describe(\"Whether the user should be removed from the account. Set to true to delete the user association.\").optional(),\n}).describe(\"Model representing a user to be updated for an account.\")).describe(\"Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags.\"),\n account_id: z.number().int().describe(\"The ID of the account whose users will be updated.\"),\n}).describe(\"Request model for updating users associated with a Salesflare account.\");\nexport const SalesflareUpdateAccountUsersOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating the result of the operation.\").nullable(),\n}).describe(\"Response model for updating account users.\");\n\nexport const salesflareUpdateAccountUsers = action(\"SALESFLARE_UPDATE_ACCOUNT_USERS\", {\n slug: \"salesflare-update-account-users\",\n name: \"Update Account Users\",\n description: \"Tool to update the users associated with a specific Salesflare account. Use when you need to add, modify, or remove user associations for an account.\",\n input: SalesflareUpdateAccountUsersInput,\n output: SalesflareUpdateAccountUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EAC7D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACrH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,CAAC,SAAS,+GAA+G;
|
|
1
|
+
{"version":3,"file":"update-account-users.cjs","names":["z","action"],"sources":["../../src/actions/update-account-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountUsersInput = z.object({\n users: z.array(z.object({\n id: z.number().int().describe(\"The ID of the user to update.\"),\n _dirty: z.boolean().default(false).describe(\"Internal flag indicating if the user data has been modified.\").optional(),\n _deleted: z.boolean().default(false).describe(\"Whether the user should be removed from the account. Set to true to delete the user association.\").optional(),\n}).passthrough().describe(\"Model representing a user to be updated for an account.\")).describe(\"Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags.\"),\n account_id: z.number().int().describe(\"The ID of the account whose users will be updated.\"),\n}).describe(\"Request model for updating users associated with a Salesflare account.\");\nexport const SalesflareUpdateAccountUsersOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating the result of the operation.\").nullable(),\n}).passthrough().describe(\"Response model for updating account users.\");\n\nexport const salesflareUpdateAccountUsers = action(\"SALESFLARE_UPDATE_ACCOUNT_USERS\", {\n slug: \"salesflare-update-account-users\",\n name: \"Update Account Users\",\n description: \"Tool to update the users associated with a specific Salesflare account. Use when you need to add, modify, or remove user associations for an account.\",\n input: SalesflareUpdateAccountUsersInput,\n output: SalesflareUpdateAccountUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EAC7D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACrH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,CAAC,SAAS,+GAA+G;CAC5M,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AAC5F,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,14 +6,15 @@ declare const SalesflareUpdateAccountUsersInput: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodNumber;
|
|
7
7
|
_dirty: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
8
|
_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
10
|
account_id: z.ZodNumber;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const SalesflareUpdateAccountUsersOutput: z.ZodObject<{
|
|
13
13
|
message: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const salesflareUpdateAccountUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
users: {
|
|
17
|
+
[x: string]: unknown;
|
|
17
18
|
id: number;
|
|
18
19
|
_dirty?: boolean | undefined;
|
|
19
20
|
_deleted?: boolean | undefined;
|
|
@@ -6,14 +6,15 @@ declare const SalesflareUpdateAccountUsersInput: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodNumber;
|
|
7
7
|
_dirty: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
8
|
_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
10
|
account_id: z.ZodNumber;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const SalesflareUpdateAccountUsersOutput: z.ZodObject<{
|
|
13
13
|
message: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const salesflareUpdateAccountUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
users: {
|
|
17
|
+
[x: string]: unknown;
|
|
17
18
|
id: number;
|
|
18
19
|
_dirty?: boolean | undefined;
|
|
19
20
|
_deleted?: boolean | undefined;
|
|
@@ -9,10 +9,10 @@ const salesflareUpdateAccountUsers = action("SALESFLARE_UPDATE_ACCOUNT_USERS", {
|
|
|
9
9
|
id: z.number().int().describe("The ID of the user to update."),
|
|
10
10
|
_dirty: z.boolean().default(false).describe("Internal flag indicating if the user data has been modified.").optional(),
|
|
11
11
|
_deleted: z.boolean().default(false).describe("Whether the user should be removed from the account. Set to true to delete the user association.").optional()
|
|
12
|
-
}).describe("Model representing a user to be updated for an account.")).describe("Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags."),
|
|
12
|
+
}).passthrough().describe("Model representing a user to be updated for an account.")).describe("Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags."),
|
|
13
13
|
account_id: z.number().int().describe("The ID of the account whose users will be updated.")
|
|
14
14
|
}).describe("Request model for updating users associated with a Salesflare account."),
|
|
15
|
-
output: z.object({ message: z.string().describe("Response message from the API indicating the result of the operation.").nullable() }).describe("Response model for updating account users.")
|
|
15
|
+
output: z.object({ message: z.string().describe("Response message from the API indicating the result of the operation.").nullable() }).passthrough().describe("Response model for updating account users.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { salesflareUpdateAccountUsers };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-account-users.mjs","names":[],"sources":["../../src/actions/update-account-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountUsersInput = z.object({\n users: z.array(z.object({\n id: z.number().int().describe(\"The ID of the user to update.\"),\n _dirty: z.boolean().default(false).describe(\"Internal flag indicating if the user data has been modified.\").optional(),\n _deleted: z.boolean().default(false).describe(\"Whether the user should be removed from the account. Set to true to delete the user association.\").optional(),\n}).describe(\"Model representing a user to be updated for an account.\")).describe(\"Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags.\"),\n account_id: z.number().int().describe(\"The ID of the account whose users will be updated.\"),\n}).describe(\"Request model for updating users associated with a Salesflare account.\");\nexport const SalesflareUpdateAccountUsersOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating the result of the operation.\").nullable(),\n}).describe(\"Response model for updating account users.\");\n\nexport const salesflareUpdateAccountUsers = action(\"SALESFLARE_UPDATE_ACCOUNT_USERS\", {\n slug: \"salesflare-update-account-users\",\n name: \"Update Account Users\",\n description: \"Tool to update the users associated with a specific Salesflare account. Use when you need to add, modify, or remove user associations for an account.\",\n input: SalesflareUpdateAccountUsersInput,\n output: SalesflareUpdateAccountUsersOutput,\n});\n"],"mappings":";;AAgBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+C,EAAE,OAAO;EACxD,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;GAC7D,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;GACrH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC7J,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,CAAC,SAAS,+GAA+G;
|
|
1
|
+
{"version":3,"file":"update-account-users.mjs","names":[],"sources":["../../src/actions/update-account-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesflareUpdateAccountUsersInput = z.object({\n users: z.array(z.object({\n id: z.number().int().describe(\"The ID of the user to update.\"),\n _dirty: z.boolean().default(false).describe(\"Internal flag indicating if the user data has been modified.\").optional(),\n _deleted: z.boolean().default(false).describe(\"Whether the user should be removed from the account. Set to true to delete the user association.\").optional(),\n}).passthrough().describe(\"Model representing a user to be updated for an account.\")).describe(\"Array of user objects to update. Each object must contain an id field and optional _deleted and _dirty flags.\"),\n account_id: z.number().int().describe(\"The ID of the account whose users will be updated.\"),\n}).describe(\"Request model for updating users associated with a Salesflare account.\");\nexport const SalesflareUpdateAccountUsersOutput = z.object({\n message: z.string().describe(\"Response message from the API indicating the result of the operation.\").nullable(),\n}).passthrough().describe(\"Response model for updating account users.\");\n\nexport const salesflareUpdateAccountUsers = action(\"SALESFLARE_UPDATE_ACCOUNT_USERS\", {\n slug: \"salesflare-update-account-users\",\n name: \"Update Account Users\",\n description: \"Tool to update the users associated with a specific Salesflare account. Use when you need to add, modify, or remove user associations for an account.\",\n input: SalesflareUpdateAccountUsersInput,\n output: SalesflareUpdateAccountUsersOutput,\n});\n"],"mappings":";;AAgBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+C,EAAE,OAAO;EACxD,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;GAC7D,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;GACrH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,CAAC,SAAS,+GAA+G;EAC5M,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC5F,CAAC,CAAC,CAAC,SAAS,wEASH;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const SalesflareUpdateAccountInput = zod.z.object({
|
|
|
7
7
|
tags: zod.z.array(zod.z.string()).describe("List of tags to associate with the account").optional(),
|
|
8
8
|
email: zod.z.string().describe("Primary email address for the account").optional(),
|
|
9
9
|
links: zod.z.string().describe("Related links for the account").optional(),
|
|
10
|
-
custom: zod.z.
|
|
10
|
+
custom: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values as key-value pairs").optional(),
|
|
11
11
|
domain: zod.z.string().describe("Primary domain of the company").optional(),
|
|
12
12
|
address: zod.z.object({
|
|
13
13
|
zip: zod.z.string().describe("Postal/ZIP code").optional(),
|
|
@@ -24,22 +24,22 @@ const SalesflareUpdateAccountInput = zod.z.object({
|
|
|
24
24
|
street: zod.z.string().describe("Street address").optional(),
|
|
25
25
|
country: zod.z.string().describe("Country name").optional(),
|
|
26
26
|
state_region: zod.z.string().describe("State or region name").optional()
|
|
27
|
-
}).describe("Address information for an account.")).describe("List of addresses associated with the account").optional(),
|
|
27
|
+
}).passthrough().describe("Address information for an account.")).describe("List of addresses associated with the account").optional(),
|
|
28
28
|
account_id: zod.z.number().int().describe("Unique identifier of the account to update"),
|
|
29
29
|
description: zod.z.string().describe("Description of the account").optional(),
|
|
30
30
|
phone_number: zod.z.string().describe("Primary phone number for the account").optional(),
|
|
31
31
|
phone_numbers: zod.z.array(zod.z.object({
|
|
32
32
|
type: zod.z.string().describe("Type of phone number (e.g., work, mobile, home)").optional(),
|
|
33
33
|
number: zod.z.string().describe("Phone number")
|
|
34
|
-
}).describe("Phone number entry.")).describe("List of phone numbers associated with the account").optional(),
|
|
34
|
+
}).passthrough().describe("Phone number entry.")).describe("List of phone numbers associated with the account").optional(),
|
|
35
35
|
parent_account: zod.z.number().int().describe("ID of the parent account if this is a sub-account").optional(),
|
|
36
|
-
email_addresses: zod.z.array(zod.z.object({ email: zod.z.string().describe("Email address") }).describe("Email address entry.")).describe("List of email addresses associated with the account").optional(),
|
|
36
|
+
email_addresses: zod.z.array(zod.z.object({ email: zod.z.string().describe("Email address") }).passthrough().describe("Email address entry.")).describe("List of email addresses associated with the account").optional(),
|
|
37
37
|
social_profiles: zod.z.array(zod.z.string()).describe("List of social media profile URLs").optional()
|
|
38
38
|
}).describe("Request model for updating an existing account in Salesflare.");
|
|
39
39
|
const SalesflareUpdateAccount_UpdateAccountResponseTagSchema = zod.z.object({
|
|
40
40
|
id: zod.z.number().int().describe("Tag ID").nullable().optional(),
|
|
41
41
|
name: zod.z.string().describe("Tag name").nullable().optional()
|
|
42
|
-
}).describe("Tag information in response.");
|
|
42
|
+
}).passthrough().describe("Tag information in response.");
|
|
43
43
|
const SalesflareUpdateAccount_UpdateAccountResponseAddressSchema = zod.z.object({
|
|
44
44
|
id: zod.z.number().int().describe("Address ID").nullable().optional(),
|
|
45
45
|
zip: zod.z.string().describe("Postal/ZIP code").nullable().optional(),
|
|
@@ -48,28 +48,28 @@ const SalesflareUpdateAccount_UpdateAccountResponseAddressSchema = zod.z.object(
|
|
|
48
48
|
country: zod.z.string().describe("Country name").nullable().optional(),
|
|
49
49
|
archived: zod.z.boolean().describe("Whether the address is archived").nullable().optional(),
|
|
50
50
|
state_region: zod.z.string().describe("State or region name").nullable().optional()
|
|
51
|
-
}).describe("Address information in response.");
|
|
51
|
+
}).passthrough().describe("Address information in response.");
|
|
52
52
|
const SalesflareUpdateAccount_UpdateAccountResponseCustomerSchema = zod.z.object({
|
|
53
53
|
id: zod.z.number().int().describe("Customer ID").nullable().optional(),
|
|
54
54
|
name: zod.z.string().describe("Customer name").nullable().optional(),
|
|
55
55
|
email: zod.z.string().describe("Customer email").nullable().optional()
|
|
56
|
-
}).describe("Customer information in response.");
|
|
56
|
+
}).passthrough().describe("Customer information in response.");
|
|
57
57
|
const SalesflareUpdateAccount_UpdateAccountResponsePhoneNumberSchema = zod.z.object({
|
|
58
58
|
id: zod.z.number().int().describe("Phone number ID").nullable().optional(),
|
|
59
59
|
type: zod.z.string().describe("Type of phone number").nullable().optional(),
|
|
60
60
|
number: zod.z.string().describe("Phone number").nullable().optional(),
|
|
61
61
|
archived: zod.z.boolean().describe("Whether the phone number is archived").nullable().optional()
|
|
62
|
-
}).describe("Phone number entry in response.");
|
|
62
|
+
}).passthrough().describe("Phone number entry in response.");
|
|
63
63
|
const SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema = zod.z.object({
|
|
64
64
|
id: zod.z.number().int().describe("Email address ID").nullable().optional(),
|
|
65
65
|
email: zod.z.string().describe("Email address").nullable().optional(),
|
|
66
66
|
archived: zod.z.boolean().describe("Whether the email is archived").nullable().optional()
|
|
67
|
-
}).describe("Email address entry in response.");
|
|
67
|
+
}).passthrough().describe("Email address entry in response.");
|
|
68
68
|
const SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema = zod.z.object({
|
|
69
69
|
url: zod.z.string().describe("URL of the social profile").nullable().optional(),
|
|
70
70
|
type: zod.z.string().describe("Type of social profile (e.g., twitter, linkedin)").nullable().optional(),
|
|
71
71
|
username: zod.z.string().describe("Username on the social platform").nullable().optional()
|
|
72
|
-
}).describe("Social profile entry in response.");
|
|
72
|
+
}).passthrough().describe("Social profile entry in response.");
|
|
73
73
|
const SalesflareUpdateAccountOutput = zod.z.object({
|
|
74
74
|
id: zod.z.number().int().describe("Unique identifier of the account").nullable().optional(),
|
|
75
75
|
name: zod.z.string().describe("Name of the account/company").nullable().optional(),
|
|
@@ -78,7 +78,7 @@ const SalesflareUpdateAccountOutput = zod.z.object({
|
|
|
78
78
|
email: zod.z.string().describe("Primary email address for the account").nullable().optional(),
|
|
79
79
|
links: zod.z.string().describe("Related links for the account").nullable().optional(),
|
|
80
80
|
owner: zod.z.number().int().describe("User ID of the account owner").nullable().optional(),
|
|
81
|
-
custom: zod.z.
|
|
81
|
+
custom: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values").nullable().optional(),
|
|
82
82
|
domain: zod.z.string().describe("Primary domain of the company").nullable().optional(),
|
|
83
83
|
address: SalesflareUpdateAccount_UpdateAccountResponseAddressSchema.nullable().optional(),
|
|
84
84
|
picture: zod.z.string().describe("URL to the account's logo or picture").nullable().optional(),
|
|
@@ -91,7 +91,7 @@ const SalesflareUpdateAccountOutput = zod.z.object({
|
|
|
91
91
|
parent_account: zod.z.number().int().describe("Parent account ID").nullable().optional(),
|
|
92
92
|
email_addresses: zod.z.array(SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema).describe("List of email addresses associated with the account").nullable().optional(),
|
|
93
93
|
social_profiles: zod.z.array(SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema).describe("List of social media profiles").nullable().optional()
|
|
94
|
-
}).describe("Response model for the updated account.");
|
|
94
|
+
}).passthrough().describe("Response model for the updated account.");
|
|
95
95
|
const salesflareUpdateAccount = require_action.action("SALESFLARE_UPDATE_ACCOUNT", {
|
|
96
96
|
slug: "salesflare-update-account",
|
|
97
97
|
name: "Update Account",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-account.cjs","names":["z","action"],"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+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAA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AC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiBA,IAAAA,EAAE,MAAM,+DAA+D,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,iBAAiBA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-account.cjs","names":["z","action"],"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+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAA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,iBAAiBA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const SalesflareUpdateAccountInput: z.ZodObject<{
|
|
|
7
7
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
8
|
email: z.ZodOptional<z.ZodString>;
|
|
9
9
|
links: z.ZodOptional<z.ZodString>;
|
|
10
|
-
custom: z.ZodOptional<z.
|
|
10
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
11
|
domain: z.ZodOptional<z.ZodString>;
|
|
12
12
|
address: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
zip: z.ZodOptional<z.ZodString>;
|
|
@@ -24,18 +24,18 @@ declare const SalesflareUpdateAccountInput: z.ZodObject<{
|
|
|
24
24
|
street: z.ZodOptional<z.ZodString>;
|
|
25
25
|
country: z.ZodOptional<z.ZodString>;
|
|
26
26
|
state_region: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
account_id: z.ZodNumber;
|
|
29
29
|
description: z.ZodOptional<z.ZodString>;
|
|
30
30
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
31
31
|
phone_numbers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
32
|
type: z.ZodOptional<z.ZodString>;
|
|
33
33
|
number: z.ZodString;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
parent_account: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
email_addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
37
|
email: z.ZodString;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>>;
|
|
39
39
|
social_profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
@@ -45,11 +45,11 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
45
45
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
46
46
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
47
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>>>>;
|
|
49
49
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
links: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
owner: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
-
custom: z.ZodOptional<z.ZodNullable<z.
|
|
52
|
+
custom: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
53
53
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
55
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -59,7 +59,7 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
59
59
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
61
61
|
state_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
63
|
picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -70,12 +70,12 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
70
70
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
71
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
72
72
|
state_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
-
}, z.core.$
|
|
73
|
+
}, z.core.$loose>>>>;
|
|
74
74
|
customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
75
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
76
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$loose>>>>;
|
|
79
79
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
80
|
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
81
|
phone_numbers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -83,19 +83,19 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
83
83
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
84
|
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
85
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
86
|
-
}, z.core.$
|
|
86
|
+
}, z.core.$loose>>>>;
|
|
87
87
|
parent_account: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
88
88
|
email_addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
89
89
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
90
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
91
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
92
|
-
}, z.core.$
|
|
92
|
+
}, z.core.$loose>>>>;
|
|
93
93
|
social_profiles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
94
94
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
95
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
96
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
}, z.core.$
|
|
98
|
-
}, z.core.$
|
|
97
|
+
}, z.core.$loose>>>>;
|
|
98
|
+
}, z.core.$loose>;
|
|
99
99
|
declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
100
100
|
account_id: number;
|
|
101
101
|
name?: string | undefined;
|
|
@@ -103,7 +103,7 @@ declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowAct
|
|
|
103
103
|
tags?: string[] | undefined;
|
|
104
104
|
email?: string | undefined;
|
|
105
105
|
links?: string | undefined;
|
|
106
|
-
custom?: Record<string,
|
|
106
|
+
custom?: Record<string, unknown> | undefined;
|
|
107
107
|
domain?: string | undefined;
|
|
108
108
|
address?: {
|
|
109
109
|
zip?: string | undefined;
|
|
@@ -115,6 +115,7 @@ declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowAct
|
|
|
115
115
|
picture?: string | undefined;
|
|
116
116
|
website?: string | undefined;
|
|
117
117
|
addresses?: {
|
|
118
|
+
[x: string]: unknown;
|
|
118
119
|
zip?: string | undefined;
|
|
119
120
|
city?: string | undefined;
|
|
120
121
|
street?: string | undefined;
|
|
@@ -124,11 +125,13 @@ declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowAct
|
|
|
124
125
|
description?: string | undefined;
|
|
125
126
|
phone_number?: string | undefined;
|
|
126
127
|
phone_numbers?: {
|
|
128
|
+
[x: string]: unknown;
|
|
127
129
|
number: string;
|
|
128
130
|
type?: string | undefined;
|
|
129
131
|
}[] | undefined;
|
|
130
132
|
parent_account?: number | undefined;
|
|
131
133
|
email_addresses?: {
|
|
134
|
+
[x: string]: unknown;
|
|
132
135
|
email: string;
|
|
133
136
|
}[] | undefined;
|
|
134
137
|
social_profiles?: string[] | undefined;
|
|
@@ -7,7 +7,7 @@ declare const SalesflareUpdateAccountInput: z.ZodObject<{
|
|
|
7
7
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
8
|
email: z.ZodOptional<z.ZodString>;
|
|
9
9
|
links: z.ZodOptional<z.ZodString>;
|
|
10
|
-
custom: z.ZodOptional<z.
|
|
10
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
11
|
domain: z.ZodOptional<z.ZodString>;
|
|
12
12
|
address: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
zip: z.ZodOptional<z.ZodString>;
|
|
@@ -24,18 +24,18 @@ declare const SalesflareUpdateAccountInput: z.ZodObject<{
|
|
|
24
24
|
street: z.ZodOptional<z.ZodString>;
|
|
25
25
|
country: z.ZodOptional<z.ZodString>;
|
|
26
26
|
state_region: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
account_id: z.ZodNumber;
|
|
29
29
|
description: z.ZodOptional<z.ZodString>;
|
|
30
30
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
31
31
|
phone_numbers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
32
|
type: z.ZodOptional<z.ZodString>;
|
|
33
33
|
number: z.ZodString;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
parent_account: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
email_addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
37
|
email: z.ZodString;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>>;
|
|
39
39
|
social_profiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
@@ -45,11 +45,11 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
45
45
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
46
46
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
47
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>>>>;
|
|
49
49
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
links: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
owner: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
-
custom: z.ZodOptional<z.ZodNullable<z.
|
|
52
|
+
custom: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
53
53
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
55
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -59,7 +59,7 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
59
59
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
61
61
|
state_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
63
|
picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -70,12 +70,12 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
70
70
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
71
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
72
72
|
state_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
-
}, z.core.$
|
|
73
|
+
}, z.core.$loose>>>>;
|
|
74
74
|
customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
75
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
76
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$loose>>>>;
|
|
79
79
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
80
|
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
81
|
phone_numbers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -83,19 +83,19 @@ declare const SalesflareUpdateAccountOutput: z.ZodObject<{
|
|
|
83
83
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
84
|
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
85
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
86
|
-
}, z.core.$
|
|
86
|
+
}, z.core.$loose>>>>;
|
|
87
87
|
parent_account: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
88
88
|
email_addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
89
89
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
90
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
91
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
92
|
-
}, z.core.$
|
|
92
|
+
}, z.core.$loose>>>>;
|
|
93
93
|
social_profiles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
94
94
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
95
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
96
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
}, z.core.$
|
|
98
|
-
}, z.core.$
|
|
97
|
+
}, z.core.$loose>>>>;
|
|
98
|
+
}, z.core.$loose>;
|
|
99
99
|
declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
100
100
|
account_id: number;
|
|
101
101
|
name?: string | undefined;
|
|
@@ -103,7 +103,7 @@ declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowAct
|
|
|
103
103
|
tags?: string[] | undefined;
|
|
104
104
|
email?: string | undefined;
|
|
105
105
|
links?: string | undefined;
|
|
106
|
-
custom?: Record<string,
|
|
106
|
+
custom?: Record<string, unknown> | undefined;
|
|
107
107
|
domain?: string | undefined;
|
|
108
108
|
address?: {
|
|
109
109
|
zip?: string | undefined;
|
|
@@ -115,6 +115,7 @@ declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowAct
|
|
|
115
115
|
picture?: string | undefined;
|
|
116
116
|
website?: string | undefined;
|
|
117
117
|
addresses?: {
|
|
118
|
+
[x: string]: unknown;
|
|
118
119
|
zip?: string | undefined;
|
|
119
120
|
city?: string | undefined;
|
|
120
121
|
street?: string | undefined;
|
|
@@ -124,11 +125,13 @@ declare const salesflareUpdateAccount: import("@keystrokehq/action").WorkflowAct
|
|
|
124
125
|
description?: string | undefined;
|
|
125
126
|
phone_number?: string | undefined;
|
|
126
127
|
phone_numbers?: {
|
|
128
|
+
[x: string]: unknown;
|
|
127
129
|
number: string;
|
|
128
130
|
type?: string | undefined;
|
|
129
131
|
}[] | undefined;
|
|
130
132
|
parent_account?: number | undefined;
|
|
131
133
|
email_addresses?: {
|
|
134
|
+
[x: string]: unknown;
|
|
132
135
|
email: string;
|
|
133
136
|
}[] | undefined;
|
|
134
137
|
social_profiles?: string[] | undefined;
|
|
@@ -7,7 +7,7 @@ const SalesflareUpdateAccountInput = z.object({
|
|
|
7
7
|
tags: z.array(z.string()).describe("List of tags to associate with the account").optional(),
|
|
8
8
|
email: z.string().describe("Primary email address for the account").optional(),
|
|
9
9
|
links: z.string().describe("Related links for the account").optional(),
|
|
10
|
-
custom: z.
|
|
10
|
+
custom: z.record(z.string(), z.unknown()).describe("Custom field values as key-value pairs").optional(),
|
|
11
11
|
domain: z.string().describe("Primary domain of the company").optional(),
|
|
12
12
|
address: z.object({
|
|
13
13
|
zip: z.string().describe("Postal/ZIP code").optional(),
|
|
@@ -24,22 +24,22 @@ const SalesflareUpdateAccountInput = z.object({
|
|
|
24
24
|
street: z.string().describe("Street address").optional(),
|
|
25
25
|
country: z.string().describe("Country name").optional(),
|
|
26
26
|
state_region: z.string().describe("State or region name").optional()
|
|
27
|
-
}).describe("Address information for an account.")).describe("List of addresses associated with the account").optional(),
|
|
27
|
+
}).passthrough().describe("Address information for an account.")).describe("List of addresses associated with the account").optional(),
|
|
28
28
|
account_id: z.number().int().describe("Unique identifier of the account to update"),
|
|
29
29
|
description: z.string().describe("Description of the account").optional(),
|
|
30
30
|
phone_number: z.string().describe("Primary phone number for the account").optional(),
|
|
31
31
|
phone_numbers: z.array(z.object({
|
|
32
32
|
type: z.string().describe("Type of phone number (e.g., work, mobile, home)").optional(),
|
|
33
33
|
number: z.string().describe("Phone number")
|
|
34
|
-
}).describe("Phone number entry.")).describe("List of phone numbers associated with the account").optional(),
|
|
34
|
+
}).passthrough().describe("Phone number entry.")).describe("List of phone numbers associated with the account").optional(),
|
|
35
35
|
parent_account: z.number().int().describe("ID of the parent account if this is a sub-account").optional(),
|
|
36
|
-
email_addresses: z.array(z.object({ email: z.string().describe("Email address") }).describe("Email address entry.")).describe("List of email addresses associated with the account").optional(),
|
|
36
|
+
email_addresses: z.array(z.object({ email: z.string().describe("Email address") }).passthrough().describe("Email address entry.")).describe("List of email addresses associated with the account").optional(),
|
|
37
37
|
social_profiles: z.array(z.string()).describe("List of social media profile URLs").optional()
|
|
38
38
|
}).describe("Request model for updating an existing account in Salesflare.");
|
|
39
39
|
const SalesflareUpdateAccount_UpdateAccountResponseTagSchema = z.object({
|
|
40
40
|
id: z.number().int().describe("Tag ID").nullable().optional(),
|
|
41
41
|
name: z.string().describe("Tag name").nullable().optional()
|
|
42
|
-
}).describe("Tag information in response.");
|
|
42
|
+
}).passthrough().describe("Tag information in response.");
|
|
43
43
|
const SalesflareUpdateAccount_UpdateAccountResponseAddressSchema = z.object({
|
|
44
44
|
id: z.number().int().describe("Address ID").nullable().optional(),
|
|
45
45
|
zip: z.string().describe("Postal/ZIP code").nullable().optional(),
|
|
@@ -48,28 +48,28 @@ const SalesflareUpdateAccount_UpdateAccountResponseAddressSchema = z.object({
|
|
|
48
48
|
country: z.string().describe("Country name").nullable().optional(),
|
|
49
49
|
archived: z.boolean().describe("Whether the address is archived").nullable().optional(),
|
|
50
50
|
state_region: z.string().describe("State or region name").nullable().optional()
|
|
51
|
-
}).describe("Address information in response.");
|
|
51
|
+
}).passthrough().describe("Address information in response.");
|
|
52
52
|
const SalesflareUpdateAccount_UpdateAccountResponseCustomerSchema = z.object({
|
|
53
53
|
id: z.number().int().describe("Customer ID").nullable().optional(),
|
|
54
54
|
name: z.string().describe("Customer name").nullable().optional(),
|
|
55
55
|
email: z.string().describe("Customer email").nullable().optional()
|
|
56
|
-
}).describe("Customer information in response.");
|
|
56
|
+
}).passthrough().describe("Customer information in response.");
|
|
57
57
|
const SalesflareUpdateAccount_UpdateAccountResponsePhoneNumberSchema = z.object({
|
|
58
58
|
id: z.number().int().describe("Phone number ID").nullable().optional(),
|
|
59
59
|
type: z.string().describe("Type of phone number").nullable().optional(),
|
|
60
60
|
number: z.string().describe("Phone number").nullable().optional(),
|
|
61
61
|
archived: z.boolean().describe("Whether the phone number is archived").nullable().optional()
|
|
62
|
-
}).describe("Phone number entry in response.");
|
|
62
|
+
}).passthrough().describe("Phone number entry in response.");
|
|
63
63
|
const SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema = z.object({
|
|
64
64
|
id: z.number().int().describe("Email address ID").nullable().optional(),
|
|
65
65
|
email: z.string().describe("Email address").nullable().optional(),
|
|
66
66
|
archived: z.boolean().describe("Whether the email is archived").nullable().optional()
|
|
67
|
-
}).describe("Email address entry in response.");
|
|
67
|
+
}).passthrough().describe("Email address entry in response.");
|
|
68
68
|
const SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema = z.object({
|
|
69
69
|
url: z.string().describe("URL of the social profile").nullable().optional(),
|
|
70
70
|
type: z.string().describe("Type of social profile (e.g., twitter, linkedin)").nullable().optional(),
|
|
71
71
|
username: z.string().describe("Username on the social platform").nullable().optional()
|
|
72
|
-
}).describe("Social profile entry in response.");
|
|
72
|
+
}).passthrough().describe("Social profile entry in response.");
|
|
73
73
|
const salesflareUpdateAccount = action("SALESFLARE_UPDATE_ACCOUNT", {
|
|
74
74
|
slug: "salesflare-update-account",
|
|
75
75
|
name: "Update Account",
|
|
@@ -83,7 +83,7 @@ const salesflareUpdateAccount = action("SALESFLARE_UPDATE_ACCOUNT", {
|
|
|
83
83
|
email: z.string().describe("Primary email address for the account").nullable().optional(),
|
|
84
84
|
links: z.string().describe("Related links for the account").nullable().optional(),
|
|
85
85
|
owner: z.number().int().describe("User ID of the account owner").nullable().optional(),
|
|
86
|
-
custom: z.
|
|
86
|
+
custom: z.record(z.string(), z.unknown()).describe("Custom field values").nullable().optional(),
|
|
87
87
|
domain: z.string().describe("Primary domain of the company").nullable().optional(),
|
|
88
88
|
address: SalesflareUpdateAccount_UpdateAccountResponseAddressSchema.nullable().optional(),
|
|
89
89
|
picture: z.string().describe("URL to the account's logo or picture").nullable().optional(),
|
|
@@ -96,7 +96,7 @@ const salesflareUpdateAccount = action("SALESFLARE_UPDATE_ACCOUNT", {
|
|
|
96
96
|
parent_account: z.number().int().describe("Parent account ID").nullable().optional(),
|
|
97
97
|
email_addresses: z.array(SalesflareUpdateAccount_UpdateAccountResponseEmailAddressSchema).describe("List of email addresses associated with the account").nullable().optional(),
|
|
98
98
|
social_profiles: z.array(SalesflareUpdateAccount_UpdateAccountResponseSocialProfileSchema).describe("List of social media profiles").nullable().optional()
|
|
99
|
-
}).describe("Response model for the updated account.")
|
|
99
|
+
}).passthrough().describe("Response model for the updated account.")
|
|
100
100
|
});
|
|
101
101
|
//#endregion
|
|
102
102
|
export { salesflareUpdateAccount };
|