@activepieces/piece-microsoft-excel-365 0.0.19 → 0.1.1

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 (50) hide show
  1. package/package.json +2 -2
  2. package/src/i18n/de.json +52 -3
  3. package/src/i18n/es.json +52 -3
  4. package/src/i18n/fr.json +52 -3
  5. package/src/i18n/ja.json +52 -3
  6. package/src/i18n/nl.json +52 -3
  7. package/src/i18n/pt.json +52 -3
  8. package/src/i18n/translation.json +52 -3
  9. package/src/i18n/zh.json +52 -3
  10. package/src/index.js +43 -17
  11. package/src/index.js.map +1 -1
  12. package/src/lib/actions/clear-cells-by-range.d.ts +6 -0
  13. package/src/lib/actions/clear-cells-by-range.js +68 -0
  14. package/src/lib/actions/clear-cells-by-range.js.map +1 -0
  15. package/src/lib/actions/clear-column-by-index.d.ts +6 -0
  16. package/src/lib/actions/clear-column-by-index.js +74 -0
  17. package/src/lib/actions/clear-column-by-index.js.map +1 -0
  18. package/src/lib/actions/clear-row-by-id.d.ts +6 -0
  19. package/src/lib/actions/clear-row-by-id.js +70 -0
  20. package/src/lib/actions/clear-row-by-id.js.map +1 -0
  21. package/src/lib/actions/create-worksheet.d.ts +5 -0
  22. package/src/lib/actions/create-worksheet.js +81 -0
  23. package/src/lib/actions/create-worksheet.js.map +1 -0
  24. package/src/lib/actions/find-row.d.ts +7 -0
  25. package/src/lib/actions/find-row.js +107 -0
  26. package/src/lib/actions/find-row.js.map +1 -0
  27. package/src/lib/actions/get-cells-in-range.d.ts +5 -0
  28. package/src/lib/actions/get-cells-in-range.js +44 -0
  29. package/src/lib/actions/get-cells-in-range.js.map +1 -0
  30. package/src/lib/actions/get-row-by-id.d.ts +6 -0
  31. package/src/lib/actions/get-row-by-id.js +61 -0
  32. package/src/lib/actions/get-row-by-id.js.map +1 -0
  33. package/src/lib/actions/get-worksheet-by-id.d.ts +4 -0
  34. package/src/lib/actions/get-worksheet-by-id.js +37 -0
  35. package/src/lib/actions/get-worksheet-by-id.js.map +1 -0
  36. package/src/lib/actions/rename-worksheet.d.ts +5 -0
  37. package/src/lib/actions/rename-worksheet.js +51 -0
  38. package/src/lib/actions/rename-worksheet.js.map +1 -0
  39. package/src/lib/common/common.d.ts +3 -3
  40. package/src/lib/common/common.js +55 -71
  41. package/src/lib/common/common.js.map +1 -1
  42. package/src/lib/trigger/new-row-in-table.d.ts +17 -0
  43. package/src/lib/trigger/new-row-in-table.js +139 -0
  44. package/src/lib/trigger/new-row-in-table.js.map +1 -0
  45. package/src/lib/trigger/new-worksheet.d.ts +8 -0
  46. package/src/lib/trigger/new-worksheet.js +94 -0
  47. package/src/lib/trigger/new-worksheet.js.map +1 -0
  48. package/src/lib/trigger/updated-row.d.ts +14 -0
  49. package/src/lib/trigger/updated-row.js +129 -0
  50. package/src/lib/trigger/updated-row.js.map +1 -0
package/src/i18n/pt.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "Spreadsheet software by Microsoft": "Software de planilha da Microsoft",
3
- "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and ad": "\n1. Entre no [Microsoft Azure Portal](https://portal.azure.com/).\n. Na barra lateral esquerda, vá até **Microsoft Enfra ID**.\n3. Sob **Gerenciar**, clique em **Aplicativos registrados**.\n4. Clique no botão **Novo registro**.\n5. Digite um **Nome** para o seu aplicativo.\n6. Para **Tipos de conta suportados**, escolha:\n - **Contas em qualquer diretório organizacional (qualquer inquilino de ID da Microsoft Entra - Multitenant) e contas pessoais da Microsoft**\n - Ou selecione com base nos seus requisitos.\n7. Em **URI de redirecionamento**, selecione **Web** e adicione a URL fornecida.\n8. Clique em **Registrar**.\n9. Após o registro, você será redirecionado para a página de visão geral do aplicativo. Copie o **aplicativo (cliente) ID**.\n10. Do menu à esquerda, vá para **Certificados e segredos**.\n - Em **Segredos do Cliente**, clique em **Novo segredo do Cliente**.\n - Fornece uma descrição, define um vencimento e clique em **Adicionar**.\n - Copiar o **Valor** do segredo do cliente (não será mostrado novamente).\n11. Vá para **Permissões da API** no menu à esquerda.\n - Clique em **Adicionar permissão**.\n - Selecione **Microsoft Graph** → **Delegated permissions**.\n - Adicione os seguintes escopos:\n - Arquivos. eadWrite\n - offline_access \n - Clique em **Adicionar permissões**.\n12. Copie seu **ID do Cliente** e **Segredo do Cliente**.\n",
3
+ "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add ": "\n1. Entre no [Microsoft Azure Portal](https://portal.azure.com/).\n. Na barra lateral esquerda, vá até **Microsoft Enfra ID**.\n3. Sob **Gerenciar**, clique em **Aplicativos registrados**.\n4. Clique no botão **Novo registro**.\n5. Digite um **Nome** para o seu aplicativo.\n6. Para **Tipos de conta suportados**, escolha:\n - **Contas em qualquer diretório organizacional (qualquer inquilino de ID da Microsoft Entra - Multitenant) e contas pessoais da Microsoft**\n - Ou selecione com base nos seus requisitos.\n7. Em **URI de redirecionamento**, selecione **Web** e adicione a URL fornecida.\n8. Clique em **Registrar**.\n9. Após o registro, você será redirecionado para a página de visão geral do aplicativo. Copie o **aplicativo (cliente) ID**.\n10. Do menu à esquerda, vá para **Certificados e segredos**.\n - Em **Segredos do Cliente**, clique em **Novo segredo do Cliente**.\n - Fornece uma descrição, define um vencimento e clique em **Adicionar**.\n - Copiar o **Valor** do segredo do cliente (não será mostrado novamente).\n11. Vá para **Permissões da API** no menu à esquerda.\n - Clique em **Adicionar permissão**.\n - Selecione **Microsoft Graph** → **Delegated permissions**.\n - Adicione os seguintes escopos:\n - Arquivos. eadWrite\n - offline_access \n - Clique em **Adicionar permissões**.\n12. Copie seu **ID do Cliente** e **Segredo do Cliente**.\n",
4
4
  "Append Row to Worksheet": "Acrescentar linha à planilha",
5
5
  "Get Worksheets": "Obter planilhas",
6
6
  "Get Worksheet Rows": "Obter Linhas de Planilha",
@@ -18,6 +18,15 @@
18
18
  "Append Rows to a Table": "Acrescentar linhas a uma tabela",
19
19
  "Convert to Range": "Converter em gama",
20
20
  "Create Workbook": "Criar Workbook",
21
+ "Clear Column by Index": "Limpar coluna por índice",
22
+ "Clear Cells by Range": "Limpar células por faixa",
23
+ "Clear Row by ID": "Limpar Linha por ID",
24
+ "Create Worksheet": "Criar planilha",
25
+ "Find Row": "Encontrar linha",
26
+ "Get Cells in Range": "Obtenha Células ao longo do alcance",
27
+ "Get Row by ID": "Obter linha por ID",
28
+ "Get Worksheet by ID": "Obter planilha por ID",
29
+ "Rename Worksheet": "Renomear planilha",
21
30
  "Custom API Call": "Chamada de API personalizada",
22
31
  "Append row of values to a worksheet": "Acrescentar a linha de valores a uma planilha",
23
32
  "Retrieve worksheets from a workbook": "Recuperar planilhas de um livro de trabalho",
@@ -36,6 +45,15 @@
36
45
  "Append rows to a table": "Acrescentar linhas a uma tabela",
37
46
  "Converts a table to a range": "Converte uma tabela em uma faixa",
38
47
  "Create a new workbook at the specified location": "Criar uma nova pasta de trabalho no local especificado",
48
+ "Clear contents/formatting of a column by its index.": "Limpar conteúdo/formatação de uma coluna pelo seu índice.",
49
+ "Clear a block of cells (range) content or formatting.": "Limpa um bloco de conteúdo de células (de alcance) ou formatação.",
50
+ "Clear contents/formatting of an entire row by its ID.": "Limpar conteúdos/formatação de uma linha inteira por sua ID.",
51
+ "Add a new worksheet (tab) to an existing workbook with optional default headers.": "Adicionar uma nova planilha (guia) para um caderno de trabalho existente com cabeçalhos padrão opcional.",
52
+ "Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Localizar uma linha especificando uma coluna e um valor de pesquisa (por exemplo, encontra uma linha onde \"ID\" = 123).",
53
+ "Retrieve the values in a given cell range (e.g., “A1:C10”).": "Recupere os valores em uma determinada faixa de células (por exemplo, \"A1:C10\").",
54
+ "  Retrieve the entire content of a row by its row ID.": " Recuperar todo o conteúdo da linha pela sua ID de linha.",
55
+ "Retrieve metadata of a worksheet by its ID.": "Recuperar metadados de uma planilha por sua ID.",
56
+ "Change the name of an existing worksheet.": "Mudar o nome de uma planilha existente.",
39
57
  "Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
40
58
  "Workbook": "Workbook",
41
59
  "Worksheet": "Planilha",
@@ -56,8 +74,13 @@
56
74
  "Return All Matches": "Retornar Todas as Partidas",
57
75
  "Name": "Nome",
58
76
  "Parent Folder": "Pasta pai",
59
- "Method": "Método",
77
+ "Column Index": "Índice da coluna",
78
+ "Clear Type": "Limpar Tipo",
79
+ "Row Number": "Número da linha",
60
80
  "Headers": "Cabeçalhos",
81
+ "Row ID (Index)": "ID da Linha (Índice)",
82
+ "New Worksheet Name": "Nome da Nova Planilha",
83
+ "Method": "Método",
61
84
  "Query Parameters": "Parâmetros da consulta",
62
85
  "Body": "Conteúdo",
63
86
  "Response is Binary ?": "A resposta é binária ?",
@@ -84,8 +107,24 @@
84
107
  "If checked, all matching rows will be returned": "Se marcada, todas as linhas correspondentes serão devolvidas",
85
108
  "The name of the new workbook": "O nome da nova pasta de trabalho",
86
109
  "The parent folder to use": "A pasta pai a ser usada",
110
+ "The 1-based index of the column to be cleared (e.g., 1 for column A, 2 for column B).": "O índice de 1 na coluna a ser limpo (por exemplo, 1 para a coluna A, 2 para a coluna B).",
111
+ "Specify what to clear from the column.": "Especifique o que limpar da coluna.",
112
+ "The range of cells to clear, in A1 notation (e.g., \"A1:C5\").": "A variedade de células para limpar, na notação A1 (ex.: \"A1:C5\").",
113
+ "Specify what to clear from the range.": "Especifique o que remover do intervalo.",
114
+ "The number of the row to be cleared (e.g., 5 for the 5th row).": "O número da linha a ser limpa (por exemplo, 5 para a quinta linha).",
115
+ "Specify what to clear from the row.": "Especifique o que limpar da linha.",
116
+ "The name for the new worksheet. If not provided, a default name like 'Sheet1' will be assigned.": "O nome da nova planilha. Se não for fornecido, um nome padrão como 'Folha1' será atribuído.",
117
+ "Optional: A list of headers to add to the first row. A table will be created from these headers.": "Opcional: Uma lista de cabeçalhos para adicionar à primeira linha. Uma tabela será criada a partir destes cabeçalhos.",
118
+ "The column to search in.": "A coluna para pesquisar.",
119
+ "The value to find in the lookup column.": "O valor a ser encontrado na coluna de pesquisa.",
120
+ "The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "O intervalo de células a recuperar, na notação A1 (ex.: \"A1:C10\").",
121
+ "The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "O índice baseado em zero da linha a ser recuperada (por exemplo, 0 para a primeira linha, 1 para o segundo).",
122
+ "\nThe new name for the worksheet. The name must adhere to the following rules:\n- Cannot be blank.\n- Cannot exceed 31 characters.\n- Must not contain any of the following characters: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- The name \"History\" is reserved by Excel and cannot be used.\n": "\nThe new name for the worksheet. The name must adhere to the following rules:\n- Cannot be blank.\n- Cannot exceed 31 characters.\n- Must not contain any of the following characters: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- The name \"History\" is reserved by Excel and cannot be used.\n",
87
123
  "Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
88
124
  "Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
125
+ "All (Contents and Formatting)": "Todos (Conteúdo e Formatação)",
126
+ "Contents Only": "Apenas conteúdo",
127
+ "Formats Only": "Apenas formatos",
89
128
  "GET": "OBTER",
90
129
  "POST": "POSTAR",
91
130
  "PATCH": "COMPRAR",
@@ -93,7 +132,17 @@
93
132
  "DELETE": "EXCLUIR",
94
133
  "HEAD": "CABEÇA",
95
134
  "New Row": "Nova linha",
135
+ "New Row in Table": "Nova linha na tabela",
136
+ "New Worksheet": "Nova Planilha",
137
+ "Updated Row": "Linha atualizada",
96
138
  "Trigger when a new row is added, and it can include existing rows as well.": "Disparar quando uma nova linha é adicionada, e pode incluir linhas existentes também.",
139
+ "Fires when a new row is added to a table within a worksheet.": "Atira quando uma nova linha é adicionada a uma tabela dentro de uma planilha.",
140
+ "Fires when a new worksheet is created in a workbook.": "Efetua quando uma nova planilha é criada em um livro de trabalho.",
141
+ "Fires when a row (in a worksheet) is added or updated.": "Efetua quando uma linha (em planilha) é adicionada ou atualizada.",
97
142
  "Max Rows to Poll": "Máximo de linhas para enquete",
98
- "The maximum number of rows to poll, the rest will be polled on the next run.": "O número máximo de linhas para enquete, o resto será enquete na próxima execução."
143
+ "My table has headers": "Minha mesa tem cabeçalhos",
144
+ "First row has headers": "Primeira linha tem cabeçalhos",
145
+ "The maximum number of rows to poll, the rest will be polled on the next run.": "O número máximo de linhas para enquete, o resto será enquete na próxima execução.",
146
+ "Enable this if the first row of your table is a header row.": "Ative esta opção se a primeira linha da sua tabela é uma linha de cabeçalho.",
147
+ "Enable this if the first row of your worksheet should be treated as headers.": "Ative esta opção se a primeira linha da sua planilha deve ser tratada como cabeçalhos."
99
148
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "Spreadsheet software by Microsoft": "Spreadsheet software by Microsoft",
3
- "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and ad": "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add the given URL.\n8. Click **Register**.\n9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.\n10. From the left menu, go to **Certificates & secrets**.\n - Under **Client secrets**, click **New client secret**.\n - Provide a description, set an expiry, and click **Add**.\n - Copy the **Value** of the client secret (this will not be shown again).\n11. Go to **API permissions** from the left menu.\n - Click **Add a permission**.\n - Select **Microsoft Graph** → **Delegated permissions**.\n - Add the following scopes:\n - Files.ReadWrite\n - offline_access\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
3
+ "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add ": "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add the given URL.\n8. Click **Register**.\n9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.\n10. From the left menu, go to **Certificates & secrets**.\n - Under **Client secrets**, click **New client secret**.\n - Provide a description, set an expiry, and click **Add**.\n - Copy the **Value** of the client secret (this will not be shown again).\n11. Go to **API permissions** from the left menu.\n - Click **Add a permission**.\n - Select **Microsoft Graph** → **Delegated permissions**.\n - Add the following scopes:\n - Files.ReadWrite\n - offline_access\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
4
  "Append Row to Worksheet": "Append Row to Worksheet",
5
5
  "Get Worksheets": "Get Worksheets",
6
6
  "Get Worksheet Rows": "Get Worksheet Rows",
@@ -18,6 +18,15 @@
18
18
  "Append Rows to a Table": "Append Rows to a Table",
19
19
  "Convert to Range": "Convert to Range",
20
20
  "Create Workbook": "Create Workbook",
21
+ "Clear Column by Index": "Clear Column by Index",
22
+ "Clear Cells by Range": "Clear Cells by Range",
23
+ "Clear Row by ID": "Clear Row by ID",
24
+ "Create Worksheet": "Create Worksheet",
25
+ "Find Row": "Find Row",
26
+ "Get Cells in Range": "Get Cells in Range",
27
+ "Get Row by ID": "Get Row by ID",
28
+ "Get Worksheet by ID": "Get Worksheet by ID",
29
+ "Rename Worksheet": "Rename Worksheet",
21
30
  "Custom API Call": "Custom API Call",
22
31
  "Append row of values to a worksheet": "Append row of values to a worksheet",
23
32
  "Retrieve worksheets from a workbook": "Retrieve worksheets from a workbook",
@@ -36,6 +45,15 @@
36
45
  "Append rows to a table": "Append rows to a table",
37
46
  "Converts a table to a range": "Converts a table to a range",
38
47
  "Create a new workbook at the specified location": "Create a new workbook at the specified location",
48
+ "Clear contents/formatting of a column by its index.": "Clear contents/formatting of a column by its index.",
49
+ "Clear a block of cells (range) content or formatting.": "Clear a block of cells (range) content or formatting.",
50
+ "Clear contents/formatting of an entire row by its ID.": "Clear contents/formatting of an entire row by its ID.",
51
+ "Add a new worksheet (tab) to an existing workbook with optional default headers.": "Add a new worksheet (tab) to an existing workbook with optional default headers.",
52
+ "Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).",
53
+ "Retrieve the values in a given cell range (e.g., “A1:C10”).": "Retrieve the values in a given cell range (e.g., “A1:C10”).",
54
+ "  Retrieve the entire content of a row by its row ID.": "  Retrieve the entire content of a row by its row ID.",
55
+ "Retrieve metadata of a worksheet by its ID.": "Retrieve metadata of a worksheet by its ID.",
56
+ "Change the name of an existing worksheet.": "Change the name of an existing worksheet.",
39
57
  "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
40
58
  "Workbook": "Workbook",
41
59
  "Worksheet": "Worksheet",
@@ -56,8 +74,13 @@
56
74
  "Return All Matches": "Return All Matches",
57
75
  "Name": "Name",
58
76
  "Parent Folder": "Parent Folder",
59
- "Method": "Method",
77
+ "Column Index": "Column Index",
78
+ "Clear Type": "Clear Type",
79
+ "Row Number": "Row Number",
60
80
  "Headers": "Headers",
81
+ "Row ID (Index)": "Row ID (Index)",
82
+ "New Worksheet Name": "New Worksheet Name",
83
+ "Method": "Method",
61
84
  "Query Parameters": "Query Parameters",
62
85
  "Body": "Body",
63
86
  "Response is Binary ?": "Response is Binary ?",
@@ -84,8 +107,24 @@
84
107
  "If checked, all matching rows will be returned": "If checked, all matching rows will be returned",
85
108
  "The name of the new workbook": "The name of the new workbook",
86
109
  "The parent folder to use": "The parent folder to use",
110
+ "The 1-based index of the column to be cleared (e.g., 1 for column A, 2 for column B).": "The 1-based index of the column to be cleared (e.g., 1 for column A, 2 for column B).",
111
+ "Specify what to clear from the column.": "Specify what to clear from the column.",
112
+ "The range of cells to clear, in A1 notation (e.g., \"A1:C5\").": "The range of cells to clear, in A1 notation (e.g., \"A1:C5\").",
113
+ "Specify what to clear from the range.": "Specify what to clear from the range.",
114
+ "The number of the row to be cleared (e.g., 5 for the 5th row).": "The number of the row to be cleared (e.g., 5 for the 5th row).",
115
+ "Specify what to clear from the row.": "Specify what to clear from the row.",
116
+ "The name for the new worksheet. If not provided, a default name like 'Sheet1' will be assigned.": "The name for the new worksheet. If not provided, a default name like 'Sheet1' will be assigned.",
117
+ "Optional: A list of headers to add to the first row. A table will be created from these headers.": "Optional: A list of headers to add to the first row. A table will be created from these headers.",
118
+ "The column to search in.": "The column to search in.",
119
+ "The value to find in the lookup column.": "The value to find in the lookup column.",
120
+ "The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").",
121
+ "The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).",
122
+ "\nThe new name for the worksheet. The name must adhere to the following rules:\n- Cannot be blank.\n- Cannot exceed 31 characters.\n- Must not contain any of the following characters: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- The name \"History\" is reserved by Excel and cannot be used.\n": "\nThe new name for the worksheet. The name must adhere to the following rules:\n- Cannot be blank.\n- Cannot exceed 31 characters.\n- Must not contain any of the following characters: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- The name \"History\" is reserved by Excel and cannot be used.\n",
87
123
  "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
88
124
  "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
125
+ "All (Contents and Formatting)": "All (Contents and Formatting)",
126
+ "Contents Only": "Contents Only",
127
+ "Formats Only": "Formats Only",
89
128
  "GET": "GET",
90
129
  "POST": "POST",
91
130
  "PATCH": "PATCH",
@@ -93,7 +132,17 @@
93
132
  "DELETE": "DELETE",
94
133
  "HEAD": "HEAD",
95
134
  "New Row": "New Row",
135
+ "New Row in Table": "New Row in Table",
136
+ "New Worksheet": "New Worksheet",
137
+ "Updated Row": "Updated Row",
96
138
  "Trigger when a new row is added, and it can include existing rows as well.": "Trigger when a new row is added, and it can include existing rows as well.",
139
+ "Fires when a new row is added to a table within a worksheet.": "Fires when a new row is added to a table within a worksheet.",
140
+ "Fires when a new worksheet is created in a workbook.": "Fires when a new worksheet is created in a workbook.",
141
+ "Fires when a row (in a worksheet) is added or updated.": "Fires when a row (in a worksheet) is added or updated.",
97
142
  "Max Rows to Poll": "Max Rows to Poll",
98
- "The maximum number of rows to poll, the rest will be polled on the next run.": "The maximum number of rows to poll, the rest will be polled on the next run."
143
+ "My table has headers": "My table has headers",
144
+ "First row has headers": "First row has headers",
145
+ "The maximum number of rows to poll, the rest will be polled on the next run.": "The maximum number of rows to poll, the rest will be polled on the next run.",
146
+ "Enable this if the first row of your table is a header row.": "Enable this if the first row of your table is a header row.",
147
+ "Enable this if the first row of your worksheet should be treated as headers.": "Enable this if the first row of your worksheet should be treated as headers."
99
148
  }
package/src/i18n/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "Spreadsheet software by Microsoft": "Spreadsheet software by Microsoft",
3
- "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and ad": "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add the given URL.\n8. Click **Register**.\n9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.\n10. From the left menu, go to **Certificates & secrets**.\n - Under **Client secrets**, click **New client secret**.\n - Provide a description, set an expiry, and click **Add**.\n - Copy the **Value** of the client secret (this will not be shown again).\n11. Go to **API permissions** from the left menu.\n - Click **Add a permission**.\n - Select **Microsoft Graph** → **Delegated permissions**.\n - Add the following scopes:\n - Files.ReadWrite\n - offline_access\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
3
+ "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add ": "\n1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).\n2. From the left sidebar, go to **Microsoft Enfra ID**.\n3. Under **Manage**, click on **App registrations**.\n4. Click the **New registration** button.\n5. Enter a **Name** for your app.\n6. For **Supported account types**, choose:\n - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**\n - Or select based on your requirement.\n7. In **Redirect URI**, select **Web** and add the given URL.\n8. Click **Register**.\n9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.\n10. From the left menu, go to **Certificates & secrets**.\n - Under **Client secrets**, click **New client secret**.\n - Provide a description, set an expiry, and click **Add**.\n - Copy the **Value** of the client secret (this will not be shown again).\n11. Go to **API permissions** from the left menu.\n - Click **Add a permission**.\n - Select **Microsoft Graph** → **Delegated permissions**.\n - Add the following scopes:\n - Files.ReadWrite\n - offline_access\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
4
  "Append Row to Worksheet": "Append Row to Worksheet",
5
5
  "Get Worksheets": "Get Worksheets",
6
6
  "Get Worksheet Rows": "Get Worksheet Rows",
@@ -18,6 +18,15 @@
18
18
  "Append Rows to a Table": "Append Rows to a Table",
19
19
  "Convert to Range": "Convert to Range",
20
20
  "Create Workbook": "Create Workbook",
21
+ "Clear Column by Index": "Clear Column by Index",
22
+ "Clear Cells by Range": "Clear Cells by Range",
23
+ "Clear Row by ID": "Clear Row by ID",
24
+ "Create Worksheet": "创建工作表",
25
+ "Find Row": "Find Row",
26
+ "Get Cells in Range": "Get Cells in Range",
27
+ "Get Row by ID": "Get Row by ID",
28
+ "Get Worksheet by ID": "Get Worksheet by ID",
29
+ "Rename Worksheet": "Rename Worksheet",
21
30
  "Custom API Call": "自定义 API 呼叫",
22
31
  "Append row of values to a worksheet": "Append row of values to a worksheet",
23
32
  "Retrieve worksheets from a workbook": "Retrieve worksheets from a workbook",
@@ -36,6 +45,15 @@
36
45
  "Append rows to a table": "Append rows to a table",
37
46
  "Converts a table to a range": "Converts a table to a range",
38
47
  "Create a new workbook at the specified location": "Create a new workbook at the specified location",
48
+ "Clear contents/formatting of a column by its index.": "Clear contents/formatting of a column by its index.",
49
+ "Clear a block of cells (range) content or formatting.": "Clear a block of cells (range) content or formatting.",
50
+ "Clear contents/formatting of an entire row by its ID.": "Clear contents/formatting of an entire row by its ID.",
51
+ "Add a new worksheet (tab) to an existing workbook with optional default headers.": "Add a new worksheet (tab) to an existing workbook with optional default headers.",
52
+ "Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).",
53
+ "Retrieve the values in a given cell range (e.g., “A1:C10”).": "Retrieve the values in a given cell range (e.g., “A1:C10”).",
54
+ "  Retrieve the entire content of a row by its row ID.": "  Retrieve the entire content of a row by its row ID.",
55
+ "Retrieve metadata of a worksheet by its ID.": "Retrieve metadata of a worksheet by its ID.",
56
+ "Change the name of an existing worksheet.": "Change the name of an existing worksheet.",
39
57
  "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
40
58
  "Workbook": "Workbook",
41
59
  "Worksheet": "Worksheet",
@@ -56,8 +74,13 @@
56
74
  "Return All Matches": "Return All Matches",
57
75
  "Name": "名称",
58
76
  "Parent Folder": "父文件夹",
59
- "Method": "方法",
77
+ "Column Index": "列索引",
78
+ "Clear Type": "Clear Type",
79
+ "Row Number": "行号",
60
80
  "Headers": "信头",
81
+ "Row ID (Index)": "Row ID (Index)",
82
+ "New Worksheet Name": "New Worksheet Name",
83
+ "Method": "方法",
61
84
  "Query Parameters": "查询参数",
62
85
  "Body": "正文内容",
63
86
  "Response is Binary ?": "Response is Binary ?",
@@ -84,8 +107,24 @@
84
107
  "If checked, all matching rows will be returned": "If checked, all matching rows will be returned",
85
108
  "The name of the new workbook": "The name of the new workbook",
86
109
  "The parent folder to use": "The parent folder to use",
110
+ "The 1-based index of the column to be cleared (e.g., 1 for column A, 2 for column B).": "The 1-based index of the column to be cleared (e.g., 1 for column A, 2 for column B).",
111
+ "Specify what to clear from the column.": "Specify what to clear from the column.",
112
+ "The range of cells to clear, in A1 notation (e.g., \"A1:C5\").": "The range of cells to clear, in A1 notation (e.g., \"A1:C5\").",
113
+ "Specify what to clear from the range.": "Specify what to clear from the range.",
114
+ "The number of the row to be cleared (e.g., 5 for the 5th row).": "The number of the row to be cleared (e.g., 5 for the 5th row).",
115
+ "Specify what to clear from the row.": "Specify what to clear from the row.",
116
+ "The name for the new worksheet. If not provided, a default name like 'Sheet1' will be assigned.": "The name for the new worksheet. If not provided, a default name like 'Sheet1' will be assigned.",
117
+ "Optional: A list of headers to add to the first row. A table will be created from these headers.": "Optional: A list of headers to add to the first row. A table will be created from these headers.",
118
+ "The column to search in.": "The column to search in.",
119
+ "The value to find in the lookup column.": "The value to find in the lookup column.",
120
+ "The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").",
121
+ "The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).",
122
+ "\nThe new name for the worksheet. The name must adhere to the following rules:\n- Cannot be blank.\n- Cannot exceed 31 characters.\n- Must not contain any of the following characters: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- The name \"History\" is reserved by Excel and cannot be used.\n": "\nThe new name for the worksheet. The name must adhere to the following rules:\n- Cannot be blank.\n- Cannot exceed 31 characters.\n- Must not contain any of the following characters: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- The name \"History\" is reserved by Excel and cannot be used.\n",
87
123
  "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
88
124
  "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
125
+ "All (Contents and Formatting)": "All (Contents and Formatting)",
126
+ "Contents Only": "Contents Only",
127
+ "Formats Only": "Formats Only",
89
128
  "GET": "获取",
90
129
  "POST": "帖子",
91
130
  "PATCH": "PATCH",
@@ -93,7 +132,17 @@
93
132
  "DELETE": "删除",
94
133
  "HEAD": "黑色",
95
134
  "New Row": "New Row",
135
+ "New Row in Table": "New Row in Table",
136
+ "New Worksheet": "新建工作表",
137
+ "Updated Row": "Updated Row",
96
138
  "Trigger when a new row is added, and it can include existing rows as well.": "Trigger when a new row is added, and it can include existing rows as well.",
139
+ "Fires when a new row is added to a table within a worksheet.": "Fires when a new row is added to a table within a worksheet.",
140
+ "Fires when a new worksheet is created in a workbook.": "Fires when a new worksheet is created in a workbook.",
141
+ "Fires when a row (in a worksheet) is added or updated.": "Fires when a row (in a worksheet) is added or updated.",
97
142
  "Max Rows to Poll": "Max Rows to Poll",
98
- "The maximum number of rows to poll, the rest will be polled on the next run.": "The maximum number of rows to poll, the rest will be polled on the next run."
143
+ "My table has headers": "My table has headers",
144
+ "First row has headers": "First row has headers",
145
+ "The maximum number of rows to poll, the rest will be polled on the next run.": "The maximum number of rows to poll, the rest will be polled on the next run.",
146
+ "Enable this if the first row of your table is a header row.": "Enable this if the first row of your table is a header row.",
147
+ "Enable this if the first row of your worksheet should be treated as headers.": "Enable this if the first row of your worksheet should be treated as headers."
99
148
  }
package/src/index.js CHANGED
@@ -11,6 +11,7 @@ const append_table_rows_1 = require("./lib/actions/append-table-rows");
11
11
  const clear_worksheet_1 = require("./lib/actions/clear-worksheet");
12
12
  const convert_to_range_1 = require("./lib/actions/convert-to-range");
13
13
  const create_table_1 = require("./lib/actions/create-table");
14
+ const create_workbook_1 = require("./lib/actions/create-workbook");
14
15
  const delete_table_1 = require("./lib/actions/delete-table");
15
16
  const delete_workbook_1 = require("./lib/actions/delete-workbook");
16
17
  const delete_worksheet_1 = require("./lib/actions/delete-worksheet");
@@ -21,9 +22,20 @@ const get_worksheet_rows_1 = require("./lib/actions/get-worksheet-rows");
21
22
  const get_worksheets_1 = require("./lib/actions/get-worksheets");
22
23
  const lookup_table_column_1 = require("./lib/actions/lookup-table-column");
23
24
  const update_row_1 = require("./lib/actions/update-row");
24
- const common_1 = require("./lib/common/common");
25
+ const clear_cells_by_range_1 = require("./lib/actions/clear-cells-by-range");
26
+ const clear_column_by_index_1 = require("./lib/actions/clear-column-by-index");
27
+ const clear_row_by_id_1 = require("./lib/actions/clear-row-by-id");
28
+ const create_worksheet_1 = require("./lib/actions/create-worksheet");
29
+ const find_row_1 = require("./lib/actions/find-row");
30
+ const get_cells_in_range_1 = require("./lib/actions/get-cells-in-range");
31
+ const get_row_by_id_1 = require("./lib/actions/get-row-by-id");
32
+ const get_worksheet_by_id_1 = require("./lib/actions/get-worksheet-by-id");
33
+ const rename_worksheet_1 = require("./lib/actions/rename-worksheet");
25
34
  const new_row_added_1 = require("./lib/trigger/new-row-added");
26
- const create_workbook_1 = require("./lib/actions/create-workbook");
35
+ const new_row_in_table_1 = require("./lib/trigger/new-row-in-table");
36
+ const new_worksheet_1 = require("./lib/trigger/new-worksheet");
37
+ const updated_row_1 = require("./lib/trigger/updated-row");
38
+ const common_1 = require("./lib/common/common");
27
39
  const authDesc = `
28
40
  1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).
29
41
  2. From the left sidebar, go to **Microsoft Enfra ID**.
@@ -31,21 +43,21 @@ const authDesc = `
31
43
  4. Click the **New registration** button.
32
44
  5. Enter a **Name** for your app.
33
45
  6. For **Supported account types**, choose:
34
- - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**
35
- - Or select based on your requirement.
46
+ - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**
47
+ - Or select based on your requirement.
36
48
  7. In **Redirect URI**, select **Web** and add the given URL.
37
49
  8. Click **Register**.
38
50
  9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.
39
51
  10. From the left menu, go to **Certificates & secrets**.
40
- - Under **Client secrets**, click **New client secret**.
41
- - Provide a description, set an expiry, and click **Add**.
42
- - Copy the **Value** of the client secret (this will not be shown again).
52
+ - Under **Client secrets**, click **New client secret**.
53
+ - Provide a description, set an expiry, and click **Add**.
54
+ - Copy the **Value** of the client secret (this will not be shown again).
43
55
  11. Go to **API permissions** from the left menu.
44
- - Click **Add a permission**.
45
- - Select **Microsoft Graph** → **Delegated permissions**.
46
- - Add the following scopes:
47
- - Files.ReadWrite
48
- - offline_access
56
+ - Click **Add a permission**.
57
+ - Select **Microsoft Graph** → **Delegated permissions**.
58
+ - Add the following scopes:
59
+ - Files.ReadWrite
60
+ - offline_access
49
61
  - Click **Add permissions**.
50
62
  12. Copy your **Client ID** and **Client Secret**.
51
63
  `;
@@ -64,7 +76,7 @@ exports.microsoftExcel = (0, pieces_framework_1.createPiece)({
64
76
  minimumSupportedRelease: '0.30.0',
65
77
  logoUrl: 'https://cdn.activepieces.com/pieces/microsoft-excel-365.png',
66
78
  categories: [shared_1.PieceCategory.PRODUCTIVITY],
67
- authors: ["BastienMe", "kishanprmr", "MoShizzle", "abuaboud"],
79
+ authors: ['BastienMe', 'kishanprmr', 'MoShizzle', 'abuaboud', 'Pranith124', 'onyedikachi-david'],
68
80
  actions: [
69
81
  append_row_1.appendRowAction,
70
82
  get_worksheets_1.getWorksheetsAction,
@@ -83,16 +95,30 @@ exports.microsoftExcel = (0, pieces_framework_1.createPiece)({
83
95
  append_table_rows_1.appendTableRowsAction,
84
96
  convert_to_range_1.convertToRangeAction,
85
97
  create_workbook_1.createWorkbook,
98
+ clear_column_by_index_1.clearColumnAction,
99
+ clear_cells_by_range_1.clearRangeAction,
100
+ clear_row_by_id_1.clearRowAction,
101
+ create_worksheet_1.createWorksheetAction,
102
+ find_row_1.findRowAction,
103
+ get_cells_in_range_1.getRangeAction,
104
+ get_row_by_id_1.getRowAction,
105
+ get_worksheet_by_id_1.getWorksheetAction,
106
+ rename_worksheet_1.renameWorksheetAction,
86
107
  (0, pieces_common_1.createCustomApiCallAction)({
87
108
  baseUrl: () => common_1.excelCommon.baseUrl,
88
109
  auth: exports.excelAuth,
89
110
  authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
90
111
  return ({
91
- Authorization: `Bearer ${auth.access_token}`,
112
+ Authorization: `Bearer ${auth.access_token}`
92
113
  });
93
- }),
94
- }),
114
+ })
115
+ })
95
116
  ],
96
- triggers: [new_row_added_1.readNewRows],
117
+ triggers: [
118
+ new_row_added_1.readNewRows,
119
+ new_row_in_table_1.newRowInTableTrigger,
120
+ new_worksheet_1.newWorksheetTrigger,
121
+ updated_row_1.updatedRowTrigger
122
+ ]
97
123
  });
98
124
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/microsoft-excel-365/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,+DAAiE;AACjE,yDAA2D;AAC3D,uEAAwE;AACxE,mEAAqE;AACrE,qEAAsE;AACtE,6DAA+D;AAC/D,6DAA+D;AAC/D,mEAAqE;AACrE,qEAAuE;AACvE,uEAAwE;AACxE,iEAAkE;AAClE,+DAAiE;AACjE,yEAA0E;AAC1E,iEAAmE;AACnE,2EAA4E;AAC5E,yDAA2D;AAC3D,gDAAkD;AAClD,+DAA0D;AAC1D,mEAA+D;AAE/D,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBhB,CAAA;AAEY,QAAA,SAAS,GAAG,4BAAS,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,gEAAgE;IACzE,QAAQ,EAAE,4DAA4D;IACtE,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IAC5C,MAAM,EAAE,MAAM;CACf,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,IAAA,8BAAW,EAAC;IACxC,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,mCAAmC;IAEhD,IAAI,EAAE,iBAAS;IACf,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,6DAA6D;IACtE,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE,CAAC,WAAW,EAAC,YAAY,EAAC,WAAW,EAAC,UAAU,CAAC;IAC1D,OAAO,EAAE;QACP,4BAAe;QACf,oCAAmB;QACnB,2CAAsB;QACtB,4BAAe;QACf,sCAAoB;QACpB,wCAAqB;QACrB,kCAAkB;QAClB,sCAAoB;QACpB,kCAAkB;QAClB,mCAAkB;QAClB,yCAAqB;QACrB,gCAAiB;QACjB,gCAAiB;QACjB,6CAAuB;QACvB,yCAAqB;QACrB,uCAAoB;QACpB,gCAAc;QACd,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAW,CAAC,OAAO;YAClC,IAAI,EAAE,iBAAS;YACf,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,2BAAW,CAAC;CACxB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/microsoft-excel-365/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AAErD,+DAAiE;AACjE,yDAA2D;AAC3D,uEAAwE;AACxE,mEAA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QACjB,gCAAiB;QACjB,6CAAuB;QACvB,yCAAqB;QACrB,uCAAoB;QACpB,gCAAc;QACd,yCAAiB;QACjB,uCAAgB;QAChB,gCAAc;QACd,wCAAqB;QACrB,wBAAa;QACb,mCAAc;QACd,4BAAY;QACZ,wCAAkB;QAClB,wCAAqB;QACrB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAW,CAAC,OAAO;YAClC,IAAI,EAAE,iBAAS;YACf,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE;QACR,2BAAW;QACX,uCAAoB;QACpB,mCAAmB;QACnB,+BAAiB;KAClB;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const clearRangeAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ workbook_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
3
+ worksheet_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
4
+ range: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
+ applyTo: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
6
+ }>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.clearRangeAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const index_1 = require("../../index");
8
+ const common_1 = require("../common/common");
9
+ exports.clearRangeAction = (0, pieces_framework_1.createAction)({
10
+ auth: index_1.excelAuth,
11
+ name: 'clear_range',
12
+ displayName: 'Clear Cells by Range',
13
+ description: 'Clear a block of cells (range) content or formatting.',
14
+ props: {
15
+ workbook_id: common_1.excelCommon.workbook_id,
16
+ worksheet_id: common_1.excelCommon.worksheet_id,
17
+ range: pieces_framework_1.Property.ShortText({
18
+ displayName: 'Range',
19
+ description: 'The range of cells to clear, in A1 notation (e.g., "A1:C5").',
20
+ required: true
21
+ }),
22
+ applyTo: pieces_framework_1.Property.StaticDropdown({
23
+ displayName: 'Clear Type',
24
+ description: 'Specify what to clear from the range.',
25
+ required: true,
26
+ defaultValue: 'All',
27
+ options: {
28
+ options: [
29
+ {
30
+ label: 'All (Contents and Formatting)',
31
+ value: 'All'
32
+ },
33
+ {
34
+ label: 'Contents Only',
35
+ value: 'Contents'
36
+ },
37
+ {
38
+ label: 'Formats Only',
39
+ value: 'Formats'
40
+ }
41
+ ]
42
+ }
43
+ })
44
+ },
45
+ run(context) {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
+ const { workbook_id, worksheet_id, range, applyTo } = context.propsValue;
48
+ const { access_token } = context.auth;
49
+ if (!/^[A-Z]+[1-9][0-9]*(:[A-Z]+[1-9][0-9]*)?$/.test(range)) {
50
+ throw new Error('Invalid range format. Please use A1 notation (e.g., "A1" or "A1:C5").');
51
+ }
52
+ const response = yield pieces_common_1.httpClient.sendRequest({
53
+ method: pieces_common_1.HttpMethod.POST,
54
+ url: `${common_1.excelCommon.baseUrl}/items/${workbook_id}/workbook/worksheets/${worksheet_id}/range(address='${range}')/clear`,
55
+ authentication: {
56
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
57
+ token: access_token
58
+ },
59
+ body: {
60
+ applyTo: applyTo
61
+ }
62
+ });
63
+ // A successful request returns a 200 OK with no body.
64
+ return response.body;
65
+ });
66
+ }
67
+ });
68
+ //# sourceMappingURL=clear-cells-by-range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-cells-by-range.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-excel-365/src/lib/actions/clear-cells-by-range.ts"],"names":[],"mappings":";;;;AAAA,qE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AG,EAAE,GAAG,oBAAW,CAAC,OAAO,UAAU,WAAW,wBAAwB,YAAY,mBAAmB,KAAK,UAAU;gBACtH,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,YAAY;iBACpB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;aACF,CAAC,CAAC;YAEH,sDAAsD;YACtD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const clearColumnAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ workbook_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
3
+ worksheet_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
4
+ column_index: import("@activepieces/pieces-framework").NumberProperty<true>;
5
+ applyTo: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
6
+ }>;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.clearColumnAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const index_1 = require("../../index");
8
+ const common_1 = require("../common/common");
9
+ exports.clearColumnAction = (0, pieces_framework_1.createAction)({
10
+ auth: index_1.excelAuth,
11
+ name: 'clear_column',
12
+ displayName: 'Clear Column by Index',
13
+ description: 'Clear contents/formatting of a column by its index.',
14
+ props: {
15
+ workbook_id: common_1.excelCommon.workbook_id,
16
+ worksheet_id: common_1.excelCommon.worksheet_id,
17
+ column_index: pieces_framework_1.Property.Number({
18
+ displayName: 'Column Index',
19
+ description: 'The 1-based index of the column to be cleared (e.g., 1 for column A, 2 for column B).',
20
+ required: true
21
+ }),
22
+ applyTo: pieces_framework_1.Property.StaticDropdown({
23
+ displayName: 'Clear Type',
24
+ description: 'Specify what to clear from the column.',
25
+ required: true,
26
+ defaultValue: 'All',
27
+ options: {
28
+ options: [
29
+ {
30
+ label: 'All (Contents and Formatting)',
31
+ value: 'All'
32
+ },
33
+ {
34
+ label: 'Contents Only',
35
+ value: 'Contents'
36
+ },
37
+ {
38
+ label: 'Formats Only',
39
+ value: 'Formats'
40
+ }
41
+ ]
42
+ }
43
+ })
44
+ },
45
+ run(context) {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
+ const { workbook_id, worksheet_id, column_index, applyTo } = context.propsValue;
48
+ const { access_token } = context.auth;
49
+ if (typeof column_index !== 'number' ||
50
+ !Number.isInteger(column_index) ||
51
+ column_index < 1) {
52
+ throw new Error('Column index must be a positive integer.');
53
+ }
54
+ // Convert 1-based index to Excel column letter (e.g., 1 -> 'A')
55
+ const columnLetter = common_1.excelCommon.numberToColumnName(column_index);
56
+ // Construct the range address for the entire column, e.g., 'C:C'
57
+ const columnAddress = `${columnLetter}:${columnLetter}`;
58
+ const response = yield pieces_common_1.httpClient.sendRequest({
59
+ method: pieces_common_1.HttpMethod.POST,
60
+ url: `${common_1.excelCommon.baseUrl}/items/${workbook_id}/workbook/worksheets/${worksheet_id}/range(address='${columnAddress}')/clear`,
61
+ authentication: {
62
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
63
+ token: access_token
64
+ },
65
+ body: {
66
+ applyTo: applyTo
67
+ }
68
+ });
69
+ // A successful request returns a 200 OK with no body.
70
+ return response.body;
71
+ });
72
+ }
73
+ });
74
+ //# sourceMappingURL=clear-column-by-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-column-by-index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-excel-365/src/lib/actions/clear-column-by-index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,uCAAwC;AACxC,6CAA+C;AAElC,QAAA,iBAAiB,GAAG,IAAA,+BA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IAAI,YAAY,EAAE,CAAC;YAExD,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,oBAAW,CAAC,OAAO,UAAU,WAAW,wBAAwB,YAAY,mBAAmB,aAAa,UAAU;gBAC9H,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,YAAY;iBACpB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;aACF,CAAC,CAAC;YAEH,sDAAsD;YACtD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const clearRowAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ workbook_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
3
+ worksheet_id: import("@activepieces/pieces-framework").DropdownProperty<string, true>;
4
+ row_id: import("@activepieces/pieces-framework").NumberProperty<true>;
5
+ applyTo: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
6
+ }>;