@activepieces/piece-microsoft-outlook 0.2.13 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/package.json +7 -5
  2. package/src/i18n/de.json +102 -0
  3. package/src/i18n/es.json +102 -0
  4. package/src/i18n/fr.json +102 -0
  5. package/src/i18n/ja.json +102 -0
  6. package/src/i18n/nl.json +102 -0
  7. package/src/i18n/pt.json +102 -0
  8. package/src/i18n/ru.json +41 -0
  9. package/src/i18n/translation.json +102 -0
  10. package/src/i18n/vi.json +41 -0
  11. package/src/i18n/zh.json +102 -0
  12. package/src/index.d.ts +1 -0
  13. package/src/index.d.ts.map +1 -0
  14. package/src/index.js +6 -1
  15. package/src/index.js.map +1 -1
  16. package/src/lib/actions/add-label-to-email.d.ts +1 -0
  17. package/src/lib/actions/add-label-to-email.d.ts.map +1 -0
  18. package/src/lib/actions/add-label-to-email.js +4 -0
  19. package/src/lib/actions/add-label-to-email.js.map +1 -1
  20. package/src/lib/actions/create-draft-email.d.ts +1 -0
  21. package/src/lib/actions/create-draft-email.d.ts.map +1 -0
  22. package/src/lib/actions/create-draft-email.js +4 -0
  23. package/src/lib/actions/create-draft-email.js.map +1 -1
  24. package/src/lib/actions/download-email-attachment.d.ts +1 -0
  25. package/src/lib/actions/download-email-attachment.d.ts.map +1 -0
  26. package/src/lib/actions/download-email-attachment.js +4 -0
  27. package/src/lib/actions/download-email-attachment.js.map +1 -1
  28. package/src/lib/actions/find-email.d.ts +1 -0
  29. package/src/lib/actions/find-email.d.ts.map +1 -0
  30. package/src/lib/actions/find-email.js +4 -0
  31. package/src/lib/actions/find-email.js.map +1 -1
  32. package/src/lib/actions/forward-email.d.ts +1 -0
  33. package/src/lib/actions/forward-email.d.ts.map +1 -0
  34. package/src/lib/actions/forward-email.js +4 -0
  35. package/src/lib/actions/forward-email.js.map +1 -1
  36. package/src/lib/actions/move-email-to-folder.d.ts +1 -0
  37. package/src/lib/actions/move-email-to-folder.d.ts.map +1 -0
  38. package/src/lib/actions/move-email-to-folder.js +4 -0
  39. package/src/lib/actions/move-email-to-folder.js.map +1 -1
  40. package/src/lib/actions/remove-label-from-email.d.ts +1 -0
  41. package/src/lib/actions/remove-label-from-email.d.ts.map +1 -0
  42. package/src/lib/actions/remove-label-from-email.js +4 -0
  43. package/src/lib/actions/remove-label-from-email.js.map +1 -1
  44. package/src/lib/actions/reply-email.d.ts +1 -0
  45. package/src/lib/actions/reply-email.d.ts.map +1 -0
  46. package/src/lib/actions/reply-email.js +7 -0
  47. package/src/lib/actions/reply-email.js.map +1 -1
  48. package/src/lib/actions/request-approval-send-email.d.ts +1 -0
  49. package/src/lib/actions/request-approval-send-email.d.ts.map +1 -0
  50. package/src/lib/actions/request-approval-send-email.js +4 -0
  51. package/src/lib/actions/request-approval-send-email.js.map +1 -1
  52. package/src/lib/actions/send-draft-email.d.ts +1 -0
  53. package/src/lib/actions/send-draft-email.d.ts.map +1 -0
  54. package/src/lib/actions/send-draft-email.js +4 -0
  55. package/src/lib/actions/send-draft-email.js.map +1 -1
  56. package/src/lib/actions/send-email.d.ts +1 -0
  57. package/src/lib/actions/send-email.d.ts.map +1 -0
  58. package/src/lib/actions/send-email.js +4 -0
  59. package/src/lib/actions/send-email.js.map +1 -1
  60. package/src/lib/common/auth.d.ts +1 -0
  61. package/src/lib/common/auth.d.ts.map +1 -0
  62. package/src/lib/common/auth.js +8 -2
  63. package/src/lib/common/auth.js.map +1 -1
  64. package/src/lib/common/microsoft-cloud.d.ts +5 -0
  65. package/src/lib/common/microsoft-cloud.d.ts.map +1 -0
  66. package/src/lib/common/microsoft-cloud.js +38 -0
  67. package/src/lib/common/microsoft-cloud.js.map +1 -0
  68. package/src/lib/common/props.d.ts +1 -0
  69. package/src/lib/common/props.d.ts.map +1 -0
  70. package/src/lib/common/props.js +10 -0
  71. package/src/lib/common/props.js.map +1 -1
  72. package/src/lib/triggers/new-attachment.d.ts +1 -0
  73. package/src/lib/triggers/new-attachment.d.ts.map +1 -0
  74. package/src/lib/triggers/new-attachment.js +7 -0
  75. package/src/lib/triggers/new-attachment.js.map +1 -1
  76. package/src/lib/triggers/new-email-in-folder.d.ts +1 -0
  77. package/src/lib/triggers/new-email-in-folder.d.ts.map +1 -0
  78. package/src/lib/triggers/new-email-in-folder.js +4 -0
  79. package/src/lib/triggers/new-email-in-folder.js.map +1 -1
  80. package/src/lib/triggers/new-email.d.ts +1 -0
  81. package/src/lib/triggers/new-email.d.ts.map +1 -0
  82. package/src/lib/triggers/new-email.js +4 -0
  83. package/src/lib/triggers/new-email.js.map +1 -1
@@ -0,0 +1,102 @@
1
+ {
2
+ "\nIf you’d like to use your own custom Azure app instead of the default Activepieces app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),\n set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:\n - User.Read\n - Mail.ReadWrite\n - Mail.Send\n - Calendars.Read\n - offline_access\n": "\nIf you’d like to use your own custom Azure app instead of the default Activepieces app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),\n set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:\n - User.Read\n - Mail.ReadWrite\n - Mail.Send\n - Calendars.Read\n - offline_access\n",
3
+ "Send Email": "Enviar e-mail",
4
+ "Download Attachment": "Baixar anexo",
5
+ "Reply to Email": "Responder para o E-mail",
6
+ "Create Draft Email": "Criar e-mail de rascunho",
7
+ "Add Label to Email": "Adicionar etiqueta ao e-mail",
8
+ "Remove Label from Email": "Remover etiqueta do e-mail",
9
+ "Request Approval in Email": "Solicitar aprovação no e-mail",
10
+ "Move Email to Folder": "Mover e-mail para pasta",
11
+ "Send Draft Email": "Enviar e-mail de rascunho",
12
+ "Forward Email": "Encaminhar Email",
13
+ "Find Email": "Encontrar E-mail",
14
+ "Custom API Call": "Chamada de API personalizada",
15
+ "Sends an email using Microsoft Outlook.": "Envia um email usando o Microsoft Outlook.",
16
+ "Download attachments from a specific email message.": "Download de anexos de uma mensagem de e-mail específica.",
17
+ "Reply to an outlook email.": "Responde a um e-mail de antecipação.",
18
+ "Creates a draft email message.": "Cria uma mensagem de e-mail de rascunho.",
19
+ "Adds a category (label) to an email message.": "Adiciona uma categoria (etiqueta) a uma mensagem de e-mail.",
20
+ "Removes a category (label) from an email message.": "Remove uma categoria (etiqueta) de uma mensagem de e-mail.",
21
+ "Send approval request email and then wait until the email is approved or disapproved": "Enviar e-mail de solicitação de aprovação e esperar até que o e-mail seja aprovado ou desaprovado",
22
+ "Moves an email message to a specific folder.": "Move uma mensagem de e-mail para uma pasta específica.",
23
+ "Sends a draft email message.": "Envia uma mensagem de e-mail de rascunho.",
24
+ "Forwards an email message.": "Envia uma mensagem de e-mail.",
25
+ "Searches for emails using full-text search.": "Pesquisa por e-mails usando pesquisa de texto completo.",
26
+ "Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
27
+ "To Email(s)": "Para e-mail(s)",
28
+ "CC Email(s)": "CC Email(s)",
29
+ "BCC Email(s)": "E-mail(s) BCC",
30
+ "Subject": "Cargo",
31
+ "Body Format": "Formato do Corpo",
32
+ "Body": "Conteúdo",
33
+ "Attachments": "Anexos",
34
+ "Message ID": "ID da mensagem",
35
+ "Email": "e-mail",
36
+ "Reply Body": "Corpo da Resposta",
37
+ "CC Recipients": "Destinatários CC",
38
+ "BCC Recipients": "Destinatários do BCC",
39
+ "Create Draft": "Criar rascunho",
40
+ "Categories": "categorias",
41
+ "Categories to Remove": "Categorias para Remover",
42
+ "To Email Address": "Endereço de E-mail",
43
+ "Destination Folder": "Pasta de destino",
44
+ "Draft Email": "E-mail do rascunho",
45
+ "Comment": "Comentar",
46
+ "Search Query": "Consulta de Pesquisa",
47
+ "Folder": "Pasta",
48
+ "Max Results": "Resultados no Máx.",
49
+ "Method": "Método",
50
+ "Headers": "Cabeçalhos",
51
+ "Query Parameters": "Parâmetros da consulta",
52
+ "Body Type": "Tipo de Corpo",
53
+ "Response is Binary ?": "A resposta é binária ?",
54
+ "No Error on Failure": "Nenhum erro no Failure",
55
+ "Timeout (in seconds)": "Tempo limite (em segundos)",
56
+ "Follow redirects": "Seguir redirecionamentos",
57
+ "The ID of the email message containing the attachment.": "A identificação da mensagem de e-mail que contém o anexo.",
58
+ "Select the email message to reply to.": "Selecione a mensagem de e-mail para responder.",
59
+ "If enabled, creates draft without sending.": "Se ativado, cria rascunho sem enviar.",
60
+ "Select the email message to add the label to.": "Selecione a mensagem de e-mail para adicionar a etiqueta.",
61
+ "Categories to add to the email.": "Categorias para adicionar ao e-mail.",
62
+ "Select the email message to remove the label from.": "Selecione a mensagem de e-mail para remover a etiqueta.",
63
+ "Categories to remove from the email.": "Categorias para remover do e-mail.",
64
+ "The email address of the recipient who will receive the approval request.": "O endereço de e-mail do destinatário que receberá a solicitação de aprovação.",
65
+ "The subject of the approval request email.": "O assunto do e-mail de solicitação de aprovação.",
66
+ "The main content of the email. You can include details about the approval request here in the html format or plain text.": "O conteúdo principal do e-mail. Você pode incluir detalhes sobre a solicitação de aprovação aqui no formato html ou em texto simples.",
67
+ "Select the email message to move.": "Selecione a mensagem de e-mail para mover",
68
+ "The folder to move the email to.": "A pasta para mover o e-mail para.",
69
+ "Select the draft email message to send.": "Selecione rascunho da mensagem de e-mail para enviar.",
70
+ "Select the email message to forward.": "Selecione a mensagem de e-mail para avançar.",
71
+ "Optional comment to include with the forwarded message.": "Comentário opcional para incluir com a mensagem encaminhada.",
72
+ "Search terms to find emails (e.g., \"from:john@example.com\", \"subject:urgent\", \"hasAttachments:true\")": "Termos de pesquisa para encontrar e-mails (por exemplo, \"from:john@example.com\", \"subject:urgent\", \"hasAttachments:true\")",
73
+ "Search in a specific folder. Leave empty to search all folders.": "Pesquisar em uma pasta específica. Deixe em branco para pesquisar todas as pastas.",
74
+ "Maximum number of results to return (1-1000).": "Número máximo de resultados a retornar (1-1000).",
75
+ "Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
76
+ "Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
77
+ "HTML": "HTML",
78
+ "Text": "texto",
79
+ "GET": "OBTER",
80
+ "POST": "POSTAR",
81
+ "PATCH": "COMPRAR",
82
+ "PUT": "COLOCAR",
83
+ "DELETE": "EXCLUIR",
84
+ "HEAD": "CABEÇA",
85
+ "None": "Nenhuma",
86
+ "JSON": "JSON",
87
+ "Form Data": "Dados de Formulário",
88
+ "Raw": "RAW",
89
+ "New Email": "Novo E-mail",
90
+ "New Email in Folder": "Novo e-mail na pasta",
91
+ "New Attachment": "Novo Anexo",
92
+ "Triggers when a new email is received in the inbox.": "Aciona quando um novo e-mail é recebido na caixa de entrada.",
93
+ "Triggers when a new email is delivered into the specified folder.": "Aciona quando um novo e-mail é entregue na pasta especificada.",
94
+ "Triggers when a new email containing one or more attachments arrives.": "Dispara quando um novo email contendo um ou mais anexos chegar.",
95
+ "From (Sender Email)": "De (Email do Remetente)",
96
+ "To (Recipient Email)": "Para (Email do Destinatário)",
97
+ "Attachment Name Filter": "Filtro de Nome de Anexo",
98
+ "Filter emails from a specific sender (optional). Leave empty to for all senders.": "Filtrar e-mails de um remetente específico (opcional). Deixe em branco para todos os remetentes.",
99
+ "Filter emails to a specific recipient (optional). Leave empty to for all recipients.": "Filtrar e-mails para um destinatário específico (opcional). Deixe em branco para todos os destinatários.",
100
+ "Monitor attachments in a specific folder. Leave empty to monitor all folders.": "Monitora anexos em uma pasta específica. Deixe em branco para monitorar todas as pastas.",
101
+ "Filter attachments by name (contains). Leave empty to include all attachments.": "Filtrar anexos por nome (contém). Deixe em branco para incluir todos os anexos."
102
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "Microsoft Outlook": "Microsoft Outlook",
3
+ "Send Email": "Отправить письмо",
4
+ "Download Attachment": "Загрузить вложение",
5
+ "Reply to Email": "Ответить на E-mail",
6
+ "Custom API Call": "Пользовательский вызов API",
7
+ "Sends an email using Microsoft Outlook.": "Отправляет письмо с помощью Microsoft Outlook.",
8
+ "Download attachments from a specific email message.": "Загрузить вложения из определенного сообщения электронной почты.",
9
+ "Reply to an outlook email.": "Ответить на письмо с прогнозами.",
10
+ "Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
11
+ "To Email(s)": "К E-mail(ам)",
12
+ "CC Email(s)": "CC Email(s)",
13
+ "BCC Email(s)": "BCC E-mail(ы)",
14
+ "Subject": "Тема",
15
+ "Body Format": "Формат тела",
16
+ "Body": "Тело",
17
+ "Attachments": "Вложения",
18
+ "Message ID": "ID сообщения",
19
+ "Reply Body": "Текст ответа",
20
+ "CC Recipients": "Получатели СС",
21
+ "BCC Recipients": "Получатели BCC",
22
+ "Create Draft": "Создать черновик",
23
+ "Method": "Метод",
24
+ "Headers": "Заголовки",
25
+ "Query Parameters": "Параметры запроса",
26
+ "No Error on Failure": "Нет ошибок при ошибке",
27
+ "Timeout (in seconds)": "Таймаут (в секундах)",
28
+ "The ID of the email message containing the attachment.": "ID сообщения электронной почты, содержащего вложение.",
29
+ "If enabled, creates draft without sending.": "Если включено, создаёт черновик без отправки.",
30
+ "Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
31
+ "HTML": "HTML",
32
+ "Text": "Текст",
33
+ "GET": "ПОЛУЧИТЬ",
34
+ "POST": "ПОСТ",
35
+ "PATCH": "ПАТЧ",
36
+ "PUT": "ПОКУПИТЬ",
37
+ "DELETE": "УДАЛИТЬ",
38
+ "HEAD": "HEAD",
39
+ "New Email": "Новое письмо",
40
+ "Triggers when a new email is received in the inbox.": "Срабатывает при получении нового письма во входящих."
41
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "\nIf you’d like to use your own custom Azure app instead of the default Activepieces app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),\n set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:\n - User.Read\n - Mail.ReadWrite\n - Mail.Send\n - Calendars.Read\n - offline_access\n": "\nIf you’d like to use your own custom Azure app instead of the default Activepieces app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),\n set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:\n - User.Read\n - Mail.ReadWrite\n - Mail.Send\n - Calendars.Read\n - offline_access\n",
3
+ "Send Email": "Send Email",
4
+ "Download Attachment": "Download Attachment",
5
+ "Reply to Email": "Reply to Email",
6
+ "Create Draft Email": "Create Draft Email",
7
+ "Add Label to Email": "Add Label to Email",
8
+ "Remove Label from Email": "Remove Label from Email",
9
+ "Request Approval in Email": "Request Approval in Email",
10
+ "Move Email to Folder": "Move Email to Folder",
11
+ "Send Draft Email": "Send Draft Email",
12
+ "Forward Email": "Forward Email",
13
+ "Find Email": "Find Email",
14
+ "Custom API Call": "Custom API Call",
15
+ "Sends an email using Microsoft Outlook.": "Sends an email using Microsoft Outlook.",
16
+ "Download attachments from a specific email message.": "Download attachments from a specific email message.",
17
+ "Reply to an outlook email.": "Reply to an outlook email.",
18
+ "Creates a draft email message.": "Creates a draft email message.",
19
+ "Adds a category (label) to an email message.": "Adds a category (label) to an email message.",
20
+ "Removes a category (label) from an email message.": "Removes a category (label) from an email message.",
21
+ "Send approval request email and then wait until the email is approved or disapproved": "Send approval request email and then wait until the email is approved or disapproved",
22
+ "Moves an email message to a specific folder.": "Moves an email message to a specific folder.",
23
+ "Sends a draft email message.": "Sends a draft email message.",
24
+ "Forwards an email message.": "Forwards an email message.",
25
+ "Searches for emails using full-text search.": "Searches for emails using full-text search.",
26
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
27
+ "To Email(s)": "To Email(s)",
28
+ "CC Email(s)": "CC Email(s)",
29
+ "BCC Email(s)": "BCC Email(s)",
30
+ "Subject": "Subject",
31
+ "Body Format": "Body Format",
32
+ "Body": "Body",
33
+ "Attachments": "Attachments",
34
+ "Message ID": "Message ID",
35
+ "Email": "Email",
36
+ "Reply Body": "Reply Body",
37
+ "CC Recipients": "CC Recipients",
38
+ "BCC Recipients": "BCC Recipients",
39
+ "Create Draft": "Create Draft",
40
+ "Categories": "Categories",
41
+ "Categories to Remove": "Categories to Remove",
42
+ "To Email Address": "To Email Address",
43
+ "Destination Folder": "Destination Folder",
44
+ "Draft Email": "Draft Email",
45
+ "Comment": "Comment",
46
+ "Search Query": "Search Query",
47
+ "Folder": "Folder",
48
+ "Max Results": "Max Results",
49
+ "Method": "Method",
50
+ "Headers": "Headers",
51
+ "Query Parameters": "Query Parameters",
52
+ "Body Type": "Body Type",
53
+ "Response is Binary ?": "Response is Binary ?",
54
+ "No Error on Failure": "No Error on Failure",
55
+ "Timeout (in seconds)": "Timeout (in seconds)",
56
+ "Follow redirects": "Follow redirects",
57
+ "The ID of the email message containing the attachment.": "The ID of the email message containing the attachment.",
58
+ "Select the email message to reply to.": "Select the email message to reply to.",
59
+ "If enabled, creates draft without sending.": "If enabled, creates draft without sending.",
60
+ "Select the email message to add the label to.": "Select the email message to add the label to.",
61
+ "Categories to add to the email.": "Categories to add to the email.",
62
+ "Select the email message to remove the label from.": "Select the email message to remove the label from.",
63
+ "Categories to remove from the email.": "Categories to remove from the email.",
64
+ "The email address of the recipient who will receive the approval request.": "The email address of the recipient who will receive the approval request.",
65
+ "The subject of the approval request email.": "The subject of the approval request email.",
66
+ "The main content of the email. You can include details about the approval request here in the html format or plain text.": "The main content of the email. You can include details about the approval request here in the html format or plain text.",
67
+ "Select the email message to move.": "Select the email message to move.",
68
+ "The folder to move the email to.": "The folder to move the email to.",
69
+ "Select the draft email message to send.": "Select the draft email message to send.",
70
+ "Select the email message to forward.": "Select the email message to forward.",
71
+ "Optional comment to include with the forwarded message.": "Optional comment to include with the forwarded message.",
72
+ "Search terms to find emails (e.g., \"from:john@example.com\", \"subject:urgent\", \"hasAttachments:true\")": "Search terms to find emails (e.g., \"from:john@example.com\", \"subject:urgent\", \"hasAttachments:true\")",
73
+ "Search in a specific folder. Leave empty to search all folders.": "Search in a specific folder. Leave empty to search all folders.",
74
+ "Maximum number of results to return (1-1000).": "Maximum number of results to return (1-1000).",
75
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
76
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
77
+ "HTML": "HTML",
78
+ "Text": "Text",
79
+ "GET": "GET",
80
+ "POST": "POST",
81
+ "PATCH": "PATCH",
82
+ "PUT": "PUT",
83
+ "DELETE": "DELETE",
84
+ "HEAD": "HEAD",
85
+ "None": "None",
86
+ "JSON": "JSON",
87
+ "Form Data": "Form Data",
88
+ "Raw": "Raw",
89
+ "New Email": "New Email",
90
+ "New Email in Folder": "New Email in Folder",
91
+ "New Attachment": "New Attachment",
92
+ "Triggers when a new email is received in the inbox.": "Triggers when a new email is received in the inbox.",
93
+ "Triggers when a new email is delivered into the specified folder.": "Triggers when a new email is delivered into the specified folder.",
94
+ "Triggers when a new email containing one or more attachments arrives.": "Triggers when a new email containing one or more attachments arrives.",
95
+ "From (Sender Email)": "From (Sender Email)",
96
+ "To (Recipient Email)": "To (Recipient Email)",
97
+ "Attachment Name Filter": "Attachment Name Filter",
98
+ "Filter emails from a specific sender (optional). Leave empty to for all senders.": "Filter emails from a specific sender (optional). Leave empty to for all senders.",
99
+ "Filter emails to a specific recipient (optional). Leave empty to for all recipients.": "Filter emails to a specific recipient (optional). Leave empty to for all recipients.",
100
+ "Monitor attachments in a specific folder. Leave empty to monitor all folders.": "Monitor attachments in a specific folder. Leave empty to monitor all folders.",
101
+ "Filter attachments by name (contains). Leave empty to include all attachments.": "Filter attachments by name (contains). Leave empty to include all attachments."
102
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "Microsoft Outlook": "Microsoft Outlook",
3
+ "Send Email": "Send Email",
4
+ "Download Attachment": "Download Attachment",
5
+ "Reply to Email": "Reply to Email",
6
+ "Custom API Call": "Custom API Call",
7
+ "Sends an email using Microsoft Outlook.": "Sends an email using Microsoft Outlook.",
8
+ "Download attachments from a specific email message.": "Download attachments from a specific email message.",
9
+ "Reply to an outlook email.": "Reply to an outlook email.",
10
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
11
+ "To Email(s)": "To Email(s)",
12
+ "CC Email(s)": "CC Email(s)",
13
+ "BCC Email(s)": "BCC Email(s)",
14
+ "Subject": "Subject",
15
+ "Body Format": "Body Format",
16
+ "Body": "Body",
17
+ "Attachments": "Attachments",
18
+ "Message ID": "Message ID",
19
+ "Reply Body": "Reply Body",
20
+ "CC Recipients": "CC Recipients",
21
+ "BCC Recipients": "BCC Recipients",
22
+ "Create Draft": "Create Draft",
23
+ "Method": "Method",
24
+ "Headers": "Headers",
25
+ "Query Parameters": "Query Parameters",
26
+ "No Error on Failure": "No Error on Failure",
27
+ "Timeout (in seconds)": "Timeout (in seconds)",
28
+ "The ID of the email message containing the attachment.": "The ID of the email message containing the attachment.",
29
+ "If enabled, creates draft without sending.": "If enabled, creates draft without sending.",
30
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
31
+ "HTML": "HTML",
32
+ "Text": "Text",
33
+ "GET": "GET",
34
+ "POST": "POST",
35
+ "PATCH": "PATCH",
36
+ "PUT": "PUT",
37
+ "DELETE": "DELETE",
38
+ "HEAD": "HEAD",
39
+ "New Email": "New Email",
40
+ "Triggers when a new email is received in the inbox.": "Triggers when a new email is received in the inbox."
41
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "\nIf you’d like to use your own custom Azure app instead of the default Activepieces app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),\n set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:\n - User.Read\n - Mail.ReadWrite\n - Mail.Send\n - Calendars.Read\n - offline_access\n": "\nIf you’d like to use your own custom Azure app instead of the default Activepieces app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),\n set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:\n - User.Read\n - Mail.ReadWrite\n - Mail.Send\n - Calendars.Read\n - offline_access\n",
3
+ "Send Email": "Send Email",
4
+ "Download Attachment": "Download Attachment",
5
+ "Reply to Email": "Reply to Email",
6
+ "Create Draft Email": "Create Draft Email",
7
+ "Add Label to Email": "Add Label to Email",
8
+ "Remove Label from Email": "Remove Label from Email",
9
+ "Request Approval in Email": "Request Approval in Email",
10
+ "Move Email to Folder": "Move Email to Folder",
11
+ "Send Draft Email": "Send Draft Email",
12
+ "Forward Email": "Forward Email",
13
+ "Find Email": "Find Email",
14
+ "Custom API Call": "自定义 API 呼叫",
15
+ "Sends an email using Microsoft Outlook.": "Sends an email using Microsoft Outlook.",
16
+ "Download attachments from a specific email message.": "Download attachments from a specific email message.",
17
+ "Reply to an outlook email.": "Reply to an outlook email.",
18
+ "Creates a draft email message.": "Creates a draft email message.",
19
+ "Adds a category (label) to an email message.": "Adds a category (label) to an email message.",
20
+ "Removes a category (label) from an email message.": "Removes a category (label) from an email message.",
21
+ "Send approval request email and then wait until the email is approved or disapproved": "Send approval request email and then wait until the email is approved or disapproved",
22
+ "Moves an email message to a specific folder.": "Moves an email message to a specific folder.",
23
+ "Sends a draft email message.": "Sends a draft email message.",
24
+ "Forwards an email message.": "Forwards an email message.",
25
+ "Searches for emails using full-text search.": "Searches for emails using full-text search.",
26
+ "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
27
+ "To Email(s)": "To Email(s)",
28
+ "CC Email(s)": "CC Email(s)",
29
+ "BCC Email(s)": "BCC Email(s)",
30
+ "Subject": "Subject",
31
+ "Body Format": "Body Format",
32
+ "Body": "正文内容",
33
+ "Attachments": "Attachments",
34
+ "Message ID": "Message ID",
35
+ "Email": "电子邮件地址",
36
+ "Reply Body": "Reply Body",
37
+ "CC Recipients": "CC Recipients",
38
+ "BCC Recipients": "BCC Recipients",
39
+ "Create Draft": "Create Draft",
40
+ "Categories": "Categories",
41
+ "Categories to Remove": "Categories to Remove",
42
+ "To Email Address": "To Email Address",
43
+ "Destination Folder": "Destination Folder",
44
+ "Draft Email": "Draft Email",
45
+ "Comment": "Comment",
46
+ "Search Query": "Search Query",
47
+ "Folder": "Folder",
48
+ "Max Results": "Max Results",
49
+ "Method": "方法",
50
+ "Headers": "信头",
51
+ "Query Parameters": "查询参数",
52
+ "Body Type": "Body Type",
53
+ "Response is Binary ?": "Response is Binary ?",
54
+ "No Error on Failure": "失败时没有错误",
55
+ "Timeout (in seconds)": "超时(秒)",
56
+ "Follow redirects": "Follow redirects",
57
+ "The ID of the email message containing the attachment.": "The ID of the email message containing the attachment.",
58
+ "Select the email message to reply to.": "Select the email message to reply to.",
59
+ "If enabled, creates draft without sending.": "If enabled, creates draft without sending.",
60
+ "Select the email message to add the label to.": "Select the email message to add the label to.",
61
+ "Categories to add to the email.": "Categories to add to the email.",
62
+ "Select the email message to remove the label from.": "Select the email message to remove the label from.",
63
+ "Categories to remove from the email.": "Categories to remove from the email.",
64
+ "The email address of the recipient who will receive the approval request.": "The email address of the recipient who will receive the approval request.",
65
+ "The subject of the approval request email.": "The subject of the approval request email.",
66
+ "The main content of the email. You can include details about the approval request here in the html format or plain text.": "The main content of the email. You can include details about the approval request here in the html format or plain text.",
67
+ "Select the email message to move.": "Select the email message to move.",
68
+ "The folder to move the email to.": "The folder to move the email to.",
69
+ "Select the draft email message to send.": "Select the draft email message to send.",
70
+ "Select the email message to forward.": "Select the email message to forward.",
71
+ "Optional comment to include with the forwarded message.": "Optional comment to include with the forwarded message.",
72
+ "Search terms to find emails (e.g., \"from:john@example.com\", \"subject:urgent\", \"hasAttachments:true\")": "Search terms to find emails (e.g., \"from:john@example.com\", \"subject:urgent\", \"hasAttachments:true\")",
73
+ "Search in a specific folder. Leave empty to search all folders.": "Search in a specific folder. Leave empty to search all folders.",
74
+ "Maximum number of results to return (1-1000).": "Maximum number of results to return (1-1000).",
75
+ "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
76
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
77
+ "HTML": "HTML",
78
+ "Text": "文本",
79
+ "GET": "获取",
80
+ "POST": "帖子",
81
+ "PATCH": "PATCH",
82
+ "PUT": "弹出",
83
+ "DELETE": "删除",
84
+ "HEAD": "黑色",
85
+ "None": "无",
86
+ "JSON": "JSON",
87
+ "Form Data": "表单数据",
88
+ "Raw": "原始文件",
89
+ "New Email": "New Email",
90
+ "New Email in Folder": "New Email in Folder",
91
+ "New Attachment": "New Attachment",
92
+ "Triggers when a new email is received in the inbox.": "Triggers when a new email is received in the inbox.",
93
+ "Triggers when a new email is delivered into the specified folder.": "Triggers when a new email is delivered into the specified folder.",
94
+ "Triggers when a new email containing one or more attachments arrives.": "Triggers when a new email containing one or more attachments arrives.",
95
+ "From (Sender Email)": "From (Sender Email)",
96
+ "To (Recipient Email)": "To (Recipient Email)",
97
+ "Attachment Name Filter": "Attachment Name Filter",
98
+ "Filter emails from a specific sender (optional). Leave empty to for all senders.": "Filter emails from a specific sender (optional). Leave empty to for all senders.",
99
+ "Filter emails to a specific recipient (optional). Leave empty to for all recipients.": "Filter emails to a specific recipient (optional). Leave empty to for all recipients.",
100
+ "Monitor attachments in a specific folder. Leave empty to monitor all folders.": "Monitor attachments in a specific folder. Leave empty to monitor all folders.",
101
+ "Filter attachments by name (contains). Leave empty to include all attachments.": "Filter attachments by name (contains). Leave empty to include all attachments."
102
+ }
package/src/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare const microsoftOutlook: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gBAAgB,+JAmC3B,CAAC"}
package/src/index.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.microsoftOutlook = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const microsoft_cloud_1 = require("./lib/common/microsoft-cloud");
6
7
  const pieces_framework_1 = require("@activepieces/pieces-framework");
7
8
  const shared_1 = require("@activepieces/shared");
8
9
  const add_label_to_email_1 = require("./lib/actions/add-label-to-email");
@@ -41,7 +42,11 @@ exports.microsoftOutlook = (0, pieces_framework_1.createPiece)({
41
42
  find_email_1.findEmailAction,
42
43
  (0, pieces_common_1.createCustomApiCallAction)({
43
44
  auth: auth_1.microsoftOutlookAuth,
44
- baseUrl: () => 'https://graph.microsoft.com/v1.0/',
45
+ baseUrl: (auth) => {
46
+ var _a;
47
+ const cloud = (_a = auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
48
+ return (0, microsoft_cloud_1.getGraphBaseUrl)(cloud) + '/v1.0/';
49
+ },
45
50
  authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
46
51
  return ({
47
52
  Authorization: `Bearer ${auth.access_token}`,
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAAkF;AAClF,iDAAqD;AACrD,yEAAyE;AACzE,yEAA0E;AAC1E,uFAAmF;AACnF,yDAA2D;AAC3D,+DAAiE;AACjE,6EAA6E;AAC7E,mFAAmF;AACnF,2DAA6D;AAC7D,qEAAsE;AACtE,yDAA2D;AAC3D,4CAAyD;AACzD,kEAAqE;AACrE,4EAA6E;AAC7E,wDAA2D;AAC3D,2FAAkF;AA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AAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,2DAA2D;IACpE,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAC,aAAa,CAAC;IACvD,OAAO,EAAE;QACR,4BAAe;QACf,oDAAwB;QACxB,8BAAgB;QAChB,2CAAsB;QACtB,0CAAqB;QACrB,oDAA0B;QAC1B,mDAAqB;QACrB,8CAAuB;QACvB,uCAAoB;QACpB,kCAAkB;QAClB,4BAAe;QACf,IAAA,yCAAyB,EAAC;YACzB,IAAI,EAAE,2BAAoB;YAC1B,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;;gBACjB,MAAM,KAAK,GAAG,MAAC,IAA4B,CAAC,KAAK,0CAAG,OAAO,CAAuB,CAAC;gBACnF,OAAO,IAAA,iCAAe,EAAC,KAAK,CAAC,GAAG,QAAQ,CAAC;YAC1C,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC7B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACrE,CAAC,CAAA;cAAA;SACF,CAAC;KACF;IACD,QAAQ,EAAE;QACT,2BAAe;QACf,6CAAuB;QACvB,qCAAoB;KACpB;CACD,CAAC,CAAC"}
@@ -2,3 +2,4 @@ export declare const addLabelToEmailAction: import("@activepieces/pieces-framewo
2
2
  messageId: import("@activepieces/pieces-framework").DropdownProperty<string | undefined, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string | undefined, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
3
  categories: import("@activepieces/pieces-framework").ArrayProperty<true>;
4
4
  }>;
5
+ //# sourceMappingURL=add-label-to-email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-label-to-email.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/add-label-to-email.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;EAuChC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addLabelToEmailAction = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const microsoft_cloud_1 = require("../common/microsoft-cloud");
6
7
  const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
7
8
  const auth_1 = require("../common/auth");
8
9
  const props_1 = require("../common/props");
@@ -25,11 +26,14 @@ exports.addLabelToEmailAction = (0, pieces_framework_1.createAction)({
25
26
  },
26
27
  run(context) {
27
28
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
+ var _a;
28
30
  const { messageId, categories } = context.propsValue;
31
+ const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
29
32
  const client = microsoft_graph_client_1.Client.initWithMiddleware({
30
33
  authProvider: {
31
34
  getAccessToken: () => Promise.resolve(context.auth.access_token),
32
35
  },
36
+ baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
33
37
  });
34
38
  const message = yield client.api(`/me/messages/${messageId}`).get();
35
39
  const existingCategories = message.categories || [];
@@ -1 +1 @@
1
- {"version":3,"file":"add-label-to-email.js","sourceRoot":"","sources":["../../../../src/lib/actions/add-label-to-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,8EAA2D;AAC3D,yCAAsD;AACtD,2CAAoD;AAEvC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,2BAAoB;IAC1B,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,8CAA8C;IAC3D,KAAK,EAAE;QACN,SAAS,EAAE,IAAA,yBAAiB,EAAC;YAC5B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAA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C"}
@@ -7,3 +7,4 @@ export declare const createDraftEmailAction: import("@activepieces/pieces-framew
7
7
  body: import("@activepieces/pieces-framework").LongTextProperty<true>;
8
8
  attachments: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
9
9
  }>;
10
+ //# sourceMappingURL=create-draft-email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-draft-email.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-draft-email.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB;;;;;;;;EAwGjC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createDraftEmailAction = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const microsoft_cloud_1 = require("../common/microsoft-cloud");
6
7
  const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
7
8
  const auth_1 = require("../common/auth");
8
9
  exports.createDraftEmailAction = (0, pieces_framework_1.createAction)({
@@ -63,6 +64,7 @@ exports.createDraftEmailAction = (0, pieces_framework_1.createAction)({
63
64
  },
64
65
  run(context) {
65
66
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
67
+ var _a;
66
68
  const recipients = context.propsValue.recipients;
67
69
  const ccRecipients = context.propsValue.ccRecipients;
68
70
  const bccRecipients = context.propsValue.bccRecipients;
@@ -95,10 +97,12 @@ exports.createDraftEmailAction = (0, pieces_framework_1.createAction)({
95
97
  contentBytes: attachment.file.base64,
96
98
  })),
97
99
  };
100
+ const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
98
101
  const client = microsoft_graph_client_1.Client.initWithMiddleware({
99
102
  authProvider: {
100
103
  getAccessToken: () => Promise.resolve(context.auth.access_token),
101
104
  },
105
+ baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
102
106
  });
103
107
  const response = yield client.api('/me/messages').post(mailPayload);
104
108
  return response;
@@ -1 +1 @@
1
- {"version":3,"file":"create-draft-email.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-draft-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,8EAA2D;AAE3D,yCAAsD;AAEzC,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,2BAAoB;IAC1B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE;QACN,UAAU,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC1B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SAChB,CAAC;QACF,aAAa,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC7B,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SAChB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACnC,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,MAAM;YACpB,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;iBAChC;aACD;SACD,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACd,CAA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BAChE;gBACD,OAAO,EAAE,IAAA,iCAAe,EAAC,KAAK,CAAC;aAC/B,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAEpE,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export declare const downloadAttachmentAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
2
  messageId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
3
  }>;
4
+ //# sourceMappingURL=download-email-attachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download-email-attachment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/download-email-attachment.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,wBAAwB;;EA4CnC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.downloadAttachmentAction = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const microsoft_cloud_1 = require("../common/microsoft-cloud");
6
7
  const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
7
8
  const auth_1 = require("../common/auth");
8
9
  exports.downloadAttachmentAction = (0, pieces_framework_1.createAction)({
@@ -19,11 +20,14 @@ exports.downloadAttachmentAction = (0, pieces_framework_1.createAction)({
19
20
  },
20
21
  run(context) {
21
22
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ var _a;
22
24
  const { messageId } = context.propsValue;
25
+ const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
23
26
  const client = microsoft_graph_client_1.Client.initWithMiddleware({
24
27
  authProvider: {
25
28
  getAccessToken: () => Promise.resolve(context.auth.access_token),
26
29
  },
30
+ baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
27
31
  });
28
32
  const response = yield client
29
33
  .api(`/me/messages/${messageId}/attachments`)
@@ -1 +1 @@
1
- {"version":3,"file":"download-email-attachment.js","sourceRoot":"","sources":["../../../../src/lib/actions/download-email-attachment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,8EAA2E;AAE3E,yCAAsD;AAEzC,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,2BAAoB;IAC1B,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,qDAAqD;IAClE,KAAK,EAAE;QACN,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEzC,MAAM,MAAM,GAAG,+BAAM,CAAC,kBAAkB,CAAC;gBACxC,YAAY,EAAE;oBACb,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;iBAChE;aACD,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAmB,MAAM,MAAM;iBAC3C,GAAG,CAAC,gBAAgB,SAAS,cAAc,CAAC;iBAC5C,GAAG,EAAE,CAAC;YAER,MAAM,WAAW,GAAG,EAAE,CAAC;YAEvB,KAAK,MAAM,UAAU,IAAI,QAAQ,CAAC,KAAyB,EAAE,CAAC;gBAC7D,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,YAAY,EAAE,CAAC;oBAChD,WAAW,CAAC,IAAI,iCACZ,UAAU,KACb,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;4BAC/B,QAAQ,EAAE,UAAU,CAAC,IAAI,IAAI,UAAU;4BACvC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC;yBACpD,CAAC,IACD,CAAC;gBACJ,CAAC;YACF,CAAC;YAGD,OAAO,WAAW,CAAC;QACpB,CAAC;KAAA;CACD,CAAC,CAAC"}
1
+ {"version":3,"file":"download-email-attachment.js","sourceRoot":"","sources":["../../../../src/lib/actions/download-email-attachment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAA4D;AAC5D,8EAA2E;AAE3E,yCAAsD;AAEzC,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,2BAAoB;IAC1B,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,qDAAqD;IAClE,KAAK,EAAE;QACN,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;;YAChB,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEzC,MAAM,KAAK,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,KAAK,0CAAG,OAAO,CAAuB,CAAC;YAClE,MAAM,MAAM,GAAG,+BAAM,CAAC,kBAAkB,CAAC;gBACxC,YAAY,EAAE;oBACb,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;iBAChE;gBACD,OAAO,EAAE,IAAA,iCAAe,EAAC,KAAK,CAAC;aAC/B,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAmB,MAAM,MAAM;iBAC3C,GAAG,CAAC,gBAAgB,SAAS,cAAc,CAAC;iBAC5C,GAAG,EAAE,CAAC;YAER,MAAM,WAAW,GAAG,EAAE,CAAC;YAEvB,KAAK,MAAM,UAAU,IAAI,QAAQ,CAAC,KAAyB,EAAE,CAAC;gBAC7D,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,YAAY,EAAE,CAAC;oBAChD,WAAW,CAAC,IAAI,iCACZ,UAAU,KACb,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;4BAC/B,QAAQ,EAAE,UAAU,CAAC,IAAI,IAAI,UAAU;4BACvC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC;yBACpD,CAAC,IACD,CAAC;gBACJ,CAAC;YACF,CAAC;YAGD,OAAO,WAAW,CAAC;QACpB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -3,3 +3,4 @@ export declare const findEmailAction: import("@activepieces/pieces-framework").I
3
3
  folderId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
4
  top: import("@activepieces/pieces-framework").NumberProperty<false>;
5
5
  }>;
6
+ //# sourceMappingURL=find-email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-email.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-email.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe;;;;EAmE1B,CAAC"}