@activepieces/piece-microsoft-excel-365 0.3.5 → 0.4.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.
- package/package.json +3 -2
- package/src/i18n/de.json +7 -0
- package/src/i18n/es.json +7 -0
- package/src/i18n/fr.json +7 -0
- package/src/i18n/ja.json +7 -0
- package/src/i18n/nl.json +7 -0
- package/src/i18n/pt.json +7 -0
- package/src/i18n/translation.json +7 -0
- package/src/i18n/zh.json +7 -0
- package/src/lib/actions/get-worksheet-rows.d.ts +2 -0
- package/src/lib/actions/get-worksheet-rows.js +162 -17
- package/src/lib/actions/get-worksheet-rows.js.map +1 -1
- package/src/lib/common/constants.d.ts +15 -0
- package/src/lib/common/constants.js +33 -0
- package/src/lib/common/constants.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-microsoft-excel-365",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@microsoft/microsoft-graph-client": "3.0.7",
|
|
6
6
|
"@microsoft/microsoft-graph-types": "2.40.0",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"ai": "^6.0.0",
|
|
9
9
|
"axios": "1.13.1",
|
|
10
10
|
"axios-retry": "4.4.1",
|
|
11
|
+
"dayjs": "1.11.9",
|
|
11
12
|
"deepmerge-ts": "7.1.0",
|
|
12
13
|
"form-data": "4.0.4",
|
|
13
14
|
"i18next": "23.13.0",
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"semver": "7.6.0",
|
|
17
18
|
"socket.io-client": "4.8.1",
|
|
18
19
|
"zod": "4.1.13",
|
|
19
|
-
"@activepieces/pieces-common": "0.11.
|
|
20
|
+
"@activepieces/pieces-common": "0.11.4",
|
|
20
21
|
"@activepieces/pieces-framework": "0.25.1",
|
|
21
22
|
"@activepieces/shared": "0.34.0",
|
|
22
23
|
"tslib": "2.6.2"
|
package/src/i18n/de.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Zeile durch ID löschen",
|
|
26
26
|
"Create Worksheet": "Arbeitsblatt erstellen",
|
|
27
27
|
"Find Row": "Finde Zeile",
|
|
28
|
+
"Find Workbook": "Arbeitsbuch finden",
|
|
28
29
|
"Get Cells in Range": "Hol dir Zellen in Reichweite",
|
|
29
30
|
"Get Row by ID": "Zeile per ID erhalten",
|
|
30
31
|
"Get Worksheet by ID": "Arbeitsblatt über ID abrufen",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Lösche Inhalte/Formatierung eines ganzen Datensatzes mit seiner ID.",
|
|
55
56
|
"Add a new worksheet (tab) to an existing workbook with optional default headers.": "Fügen Sie ein neues Arbeitsblatt (Tab) zu einem bestehenden Arbeitsbuch mit optionalen Headern hinzu.",
|
|
56
57
|
"Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Suchen Sie eine Zeile, indem Sie eine Spalte und einen Wert angeben (z.B. finden Sie eine Zeile, in der „ID“ = 123).",
|
|
58
|
+
"Finds an existing workbook by name.": "Findet ein bestehendes Arbeitsbuch mit Namen.",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "Rufen Sie die Werte in einem vorgegebenen Zellbereich ab (z.B. „A1:C10“).",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Ruft den gesamten Inhalt einer Zeile nach ihrer Zeilennummer ab.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Abrufen von Metadaten eines Arbeitsblatts durch seine ID.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Kopfzeile",
|
|
74
76
|
"First Data Row": "Erste Datenzeile",
|
|
77
|
+
"Use Filters ?": "Filter verwenden?",
|
|
78
|
+
"Filter": "Filtern",
|
|
75
79
|
"Row number": "Zeilennummer",
|
|
76
80
|
"Worksheet Name": "Arbeitsblattname",
|
|
77
81
|
"Table": "Tisch",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Typ löschen",
|
|
87
91
|
"Row Number": "Zeilennummer",
|
|
88
92
|
"Headers": "Kopfzeilen",
|
|
93
|
+
"File Name": "Dateiname",
|
|
89
94
|
"Row ID (Index)": "Zeilennummer (Index)",
|
|
90
95
|
"New Worksheet Name": "Neuer Arbeitsblattname",
|
|
91
96
|
"Method": "Methode",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Bereich der zu holenden Zeilen (z.B. A2:B2)",
|
|
105
110
|
"Row number of the header": "Zeilennummer der Kopfzeile",
|
|
106
111
|
"Row number of the first data row": "Zeilennummer der ersten Datenzeile",
|
|
112
|
+
"Enables the column wise filter.": "Aktiviert den spaltigen Filter.",
|
|
107
113
|
"The row number to update": "Die zu aktualisierende Zeilennummer",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "Der Bereich in der Schreibweise A1 (z. B. A2:B2), um in der Tabelle zu löschen, falls nicht vorhanden, löschen Sie das gesamte Arbeitsblatt",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Begrenzt die Anzahl der zurückgegebenen Arbeitsbücher zurück, gibt alle Arbeitsbücher zurück, wenn leer",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"Optional: A list of headers to add to the first row. A table will be created from these headers.": "Optional: Eine Liste von Kopfzeilen, die zur ersten Zeile hinzugefügt werden sollen. Eine Tabelle wird aus diesen Kopfzeilen erstellt.",
|
|
129
135
|
"The column to search in.": "Die Spalte in der gesucht werden soll.",
|
|
130
136
|
"The value to find in the lookup column.": "Der Wert, der in der Suchspalte zu finden ist.",
|
|
137
|
+
"Excel File name to search for without extension.": "Excel-Dateiname zur Suche ohne Erweiterung.",
|
|
131
138
|
"The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "Der Bereich der Zellen, die in A1-Notation abgerufen werden sollen (z.B. \"A1:C10\").",
|
|
132
139
|
"The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "Der null-basierte Index der zu holenden Zeile (z.B. 0 für die erste Zeile, 1 für die zweite Zeile).",
|
|
133
140
|
"\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": "\nDer neue Name für das Arbeitsblatt. Der Name muss die folgenden Regeln beachten:\n- darf nicht leer sein.\n- 31 Zeichen nicht überschreiten.\n- Darf keine der folgenden Zeichen enthalten: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- Der Name \"History\" ist von Excel reserviert und kann nicht verwendet werden.\n",
|
package/src/i18n/es.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Limpiar fila por ID",
|
|
26
26
|
"Create Worksheet": "Crear hoja de trabajo",
|
|
27
27
|
"Find Row": "Buscar fila",
|
|
28
|
+
"Find Workbook": "Buscar Libro de Trabajo",
|
|
28
29
|
"Get Cells in Range": "Obtener celdas en el rango",
|
|
29
30
|
"Get Row by ID": "Obtener fila por ID",
|
|
30
31
|
"Get Worksheet by ID": "Obtener Hoja de Trabajo por ID",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Elimina el contenido/formato de una fila entera por su ID.",
|
|
55
56
|
"Add a new worksheet (tab) to an existing workbook with optional default headers.": "Añadir una nueva hoja de trabajo (pestaña) a un libro de trabajo existente con cabeceras predeterminadas opcionales.",
|
|
56
57
|
"Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Busque una fila especificando una columna de búsqueda y un valor (por ejemplo, encuentre una fila donde “ID” = 123).",
|
|
58
|
+
"Finds an existing workbook by name.": "Encuentra un libro existente por su nombre.",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "Recuperar los valores en un determinado rango de celdas (por ejemplo, “A1:C10”).",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Recuperar todo el contenido de una fila por su ID de fila.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Recuperar metadatos de una hoja de trabajo por su ID.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Fila de cabecera",
|
|
74
76
|
"First Data Row": "Primera fila de datos",
|
|
77
|
+
"Use Filters ?": "¿Usar filtros?",
|
|
78
|
+
"Filter": "Filtro",
|
|
75
79
|
"Row number": "Número de fila",
|
|
76
80
|
"Worksheet Name": "Nombre de la hoja de trabajo",
|
|
77
81
|
"Table": "Tabla",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Borrar tipo",
|
|
87
91
|
"Row Number": "Número de fila",
|
|
88
92
|
"Headers": "Encabezados",
|
|
93
|
+
"File Name": "Nombre del archivo",
|
|
89
94
|
"Row ID (Index)": "ID fila (índice)",
|
|
90
95
|
"New Worksheet Name": "Nuevo nombre de hoja de trabajo",
|
|
91
96
|
"Method": "Método",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Rango de las filas a recuperar (por ejemplo, A2:B2)",
|
|
105
110
|
"Row number of the header": "Número de fila de la cabecera",
|
|
106
111
|
"Row number of the first data row": "Número de fila de la primera fila de datos",
|
|
112
|
+
"Enables the column wise filter.": "Habilita el filtro sabio de columna.",
|
|
107
113
|
"The row number to update": "El número de fila a actualizar",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "El rango en notación A1 (por ej., A2:B2) para limpiar en la hoja de cálculo, si no se proporciona, limpiar toda la hoja de trabajo",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Limita el número de libros de trabajo devueltos, devuelve todos los libros de trabajo si está vacío",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"Optional: A list of headers to add to the first row. A table will be created from these headers.": "Opcional: Una lista de cabeceras a añadir a la primera fila. Se creará una tabla a partir de estas cabeceras.",
|
|
129
135
|
"The column to search in.": "La columna en la que buscar.",
|
|
130
136
|
"The value to find in the lookup column.": "El valor a encontrar en la columna de búsqueda.",
|
|
137
|
+
"Excel File name to search for without extension.": "Nombre del archivo Excel a buscar sin extensión.",
|
|
131
138
|
"The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "El rango de celdas a recuperar, en notación A1 (por ej., \"A1:C10\").",
|
|
132
139
|
"The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "El índice cero de la fila a recuperar (por ejemplo, 0 para la primera fila, 1 para la segunda).",
|
|
133
140
|
"\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",
|
package/src/i18n/fr.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Effacer la ligne par ID",
|
|
26
26
|
"Create Worksheet": "Créer une feuille de calcul",
|
|
27
27
|
"Find Row": "Trouver une ligne",
|
|
28
|
+
"Find Workbook": "Trouver le cahier de travail",
|
|
28
29
|
"Get Cells in Range": "Obtenir des cellules à portée",
|
|
29
30
|
"Get Row by ID": "Obtenir une ligne par ID",
|
|
30
31
|
"Get Worksheet by ID": "Obtenir la fiche par ID",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Effacer le contenu/formatage d'une ligne entière par son ID.",
|
|
55
56
|
"Add a new worksheet (tab) to an existing workbook with optional default headers.": "Ajouter une nouvelle feuille de travail (onglet) à un classeur existant avec des en-têtes optionnels par défaut.",
|
|
56
57
|
"Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Localisez une ligne en spécifiant une colonne de recherche et une valeur (par exemple, trouver une ligne où « ID» = 123).",
|
|
58
|
+
"Finds an existing workbook by name.": "Trouve un classeur existant par nom.",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "Récupère les valeurs dans une plage de cellules donnée (par exemple, « A1:C10 »).",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Récupère tout le contenu d'une ligne par son identifiant de ligne.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Récupère les métadonnées d'une feuille par son ID.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Ligne d'en-tête",
|
|
74
76
|
"First Data Row": "Première ligne de données",
|
|
77
|
+
"Use Filters ?": "Utiliser les filtres ?",
|
|
78
|
+
"Filter": "Filtre",
|
|
75
79
|
"Row number": "Numéro de ligne",
|
|
76
80
|
"Worksheet Name": "Nom de la fiche",
|
|
77
81
|
"Table": "Tableau",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Effacer le type",
|
|
87
91
|
"Row Number": "Numéro de ligne",
|
|
88
92
|
"Headers": "En-têtes",
|
|
93
|
+
"File Name": "Nom du fichier",
|
|
89
94
|
"Row ID (Index)": "ID de ligne (Index)",
|
|
90
95
|
"New Worksheet Name": "Nom de la nouvelle fiche",
|
|
91
96
|
"Method": "Méthode",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Plage des lignes à récupérer (par exemple, A2:B2)",
|
|
105
110
|
"Row number of the header": "Numéro de ligne de l'en-tête",
|
|
106
111
|
"Row number of the first data row": "Numéro de ligne de la première ligne de données",
|
|
112
|
+
"Enables the column wise filter.": "Active le filtre de sens des colonnes.",
|
|
107
113
|
"The row number to update": "Le numéro de ligne à mettre à jour",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "La plage en notation A1 (par exemple, A2:B2) à effacer dans la feuille de travail, si elle n'est pas fournie, effacer la feuille de travail entière",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Limite le nombre de classeurs retournés, retourne tous les classeurs si vide",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"Optional: A list of headers to add to the first row. A table will be created from these headers.": "Optionnel: Une liste d'entêtes à ajouter à la première ligne. Une table sera créée à partir de ces en-têtes.",
|
|
129
135
|
"The column to search in.": "La colonne à rechercher.",
|
|
130
136
|
"The value to find in the lookup column.": "La valeur à trouver dans la colonne de recherche.",
|
|
137
|
+
"Excel File name to search for without extension.": "Nom du fichier Excel à rechercher sans extension.",
|
|
131
138
|
"The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "La plage de cellules à récupérer, en notation A1 (par exemple, \"A1:C10\").",
|
|
132
139
|
"The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "L'index basé sur zéro de la ligne à récupérer (par exemple, 0 pour la première ligne, 1 pour la seconde).",
|
|
133
140
|
"\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",
|
package/src/i18n/ja.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "IDで行をクリア",
|
|
26
26
|
"Create Worksheet": "ワークシートを作成",
|
|
27
27
|
"Find Row": "行を検索",
|
|
28
|
+
"Find Workbook": "ワークブックを検索",
|
|
28
29
|
"Get Cells in Range": "セル範囲を取得する",
|
|
29
30
|
"Get Row by ID": "IDで行を取得",
|
|
30
31
|
"Get Worksheet by ID": "ワークシートを ID で取得",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "行全体の内容/書式を ID でクリアします。",
|
|
55
56
|
"Add a new worksheet (tab) to an existing workbook with optional default headers.": "新しいワークシート(タブ)を既存のワークブックに追加します。",
|
|
56
57
|
"Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "検索列と値を指定して行を探します(例えば、「ID」=123の行を探します)。",
|
|
58
|
+
"Finds an existing workbook by name.": "既存のワークブックを名前で検索します。",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "指定されたセル範囲の値を取得します (例: A1:C10)。",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " 行IDで行全体の内容を取得します。",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "IDでワークシートのメタデータを取得します。",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "ヘッダー行",
|
|
74
76
|
"First Data Row": "最初のデータ行",
|
|
77
|
+
"Use Filters ?": "フィルターを使用 ?",
|
|
78
|
+
"Filter": "フィルター",
|
|
75
79
|
"Row number": "行番号",
|
|
76
80
|
"Worksheet Name": "ワークシート名",
|
|
77
81
|
"Table": "表",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "タイプをクリア",
|
|
87
91
|
"Row Number": "行番号",
|
|
88
92
|
"Headers": "ヘッダー",
|
|
93
|
+
"File Name": "ファイル名",
|
|
89
94
|
"Row ID (Index)": "行 ID (インデックス)",
|
|
90
95
|
"New Worksheet Name": "新しいワークシート名",
|
|
91
96
|
"Method": "方法",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "取得する行の範囲 (例: A2:B2)",
|
|
105
110
|
"Row number of the header": "ヘッダーの行番号",
|
|
106
111
|
"Row number of the first data row": "最初のデータ行の行番号",
|
|
112
|
+
"Enables the column wise filter.": "列ごとのフィルターを有効にします。",
|
|
107
113
|
"The row number to update": "更新する行番号",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "A1 表記の範囲 (例: A2:B2) が指定されていない場合、ワークシート全体をクリアします",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "返されたワークブックの数を制限します。空の場合はすべてのワークブックを返します。",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"Optional: A list of headers to add to the first row. A table will be created from these headers.": "オプション: 最初の行に追加するヘッダーのリスト。これらのヘッダーからテーブルが作成されます。",
|
|
129
135
|
"The column to search in.": "検索するカラム。",
|
|
130
136
|
"The value to find in the lookup column.": "ルックアップ列で検索する値。",
|
|
137
|
+
"Excel File name to search for without extension.": "エクセルファイル名を拡張子なしで検索します。",
|
|
131
138
|
"The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "取得するセルの範囲(例:A1:C10\")。",
|
|
132
139
|
"The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "取得する行のゼロベースのインデックス(最初の行の場合は0、2番目の行の場合は1)です。",
|
|
133
140
|
"\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",
|
package/src/i18n/nl.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Rij wissen via ID",
|
|
26
26
|
"Create Worksheet": "Werkblad aanmaken",
|
|
27
27
|
"Find Row": "Rij zoeken",
|
|
28
|
+
"Find Workbook": "Werkboek vinden",
|
|
28
29
|
"Get Cells in Range": "Krijg Cellen in bereik",
|
|
29
30
|
"Get Row by ID": "Krijg Rij op ID",
|
|
30
31
|
"Get Worksheet by ID": "Haal het werkblad op via ID",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Verwijder content/formattering van een hele rij via zijn ID.",
|
|
55
56
|
"Add a new worksheet (tab) to an existing workbook with optional default headers.": "Voeg een nieuw werkblad (tab) toe aan een bestaand werkboek met optionele standaard headers.",
|
|
56
57
|
"Locate a row by specifying a lookup column and value (e.g. find a row where “ID” = 123).": "Zoek een rij door een kolom en waarde op te geven (bijv. zoek een rij waar \"ID\" = 123).",
|
|
58
|
+
"Finds an existing workbook by name.": "Vindt een bestaand werkboek op naam.",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "Haal de waarden op in een bepaald bereik (bv. \"A1:C10\").",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Haal de gehele inhoud van een rij op met zijn rij ID.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Haal metadata van een werkblad op met de ID ervan.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Kopregel rij",
|
|
74
76
|
"First Data Row": "Eerste Data Rij",
|
|
77
|
+
"Use Filters ?": "Filters gebruiken?",
|
|
78
|
+
"Filter": "Filteren",
|
|
75
79
|
"Row number": "Rij nummer",
|
|
76
80
|
"Worksheet Name": "Werkblad naam",
|
|
77
81
|
"Table": "Tabel",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Type leegmaken",
|
|
87
91
|
"Row Number": "Rij nummer",
|
|
88
92
|
"Headers": "Kopteksten",
|
|
93
|
+
"File Name": "File Name",
|
|
89
94
|
"Row ID (Index)": "Rij ID (Index)",
|
|
90
95
|
"New Worksheet Name": "Naam nieuwe werkblad",
|
|
91
96
|
"Method": "Methode",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Bereik van de op te halen rijen (bijv. A2:B2)",
|
|
105
110
|
"Row number of the header": "Rij nummer van de header",
|
|
106
111
|
"Row number of the first data row": "Rij nummer van de eerste gegevensrij",
|
|
112
|
+
"Enables the column wise filter.": "Schakelt het kolom wijze filter in.",
|
|
107
113
|
"The row number to update": "Het rij nummer om te updaten",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "Het bereik van A1 notatie (bijv. A2:B2) om het werkblad te wissen, indien niet opgegeven, wis het volledige werkblad",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Beperkt het aantal geretourneerde werkboeken, retourneert alle werkboeken indien leeg",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"Optional: A list of headers to add to the first row. A table will be created from these headers.": "Optioneel: een lijst van koppen om toe te voegen aan de eerste rij. Een tabel zal worden gemaakt op basis van deze headers.",
|
|
129
135
|
"The column to search in.": "De kolom om in te zoeken.",
|
|
130
136
|
"The value to find in the lookup column.": "De waarde te vinden in de zoek kolom.",
|
|
137
|
+
"Excel File name to search for without extension.": "Excel bestandsnaam om te zoeken zonder extensie.",
|
|
131
138
|
"The range of cells to retrieve, in A1 notation (e.g., \"A1:C10\").": "Het bereik van cellen om op te halen, in A1 notatie (bijv. \"A1:C10\").",
|
|
132
139
|
"The zero-based index of the row to retrieve (e.g., 0 for the first row, 1 for the second).": "De op nul gebaseerde index van de rij op te halen (vb. 0 voor de eerste rij, 1 voor de tweede).",
|
|
133
140
|
"\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": "\nDe nieuwe naam voor het werkblad. De naam moet zich houden aan de volgende regels:\n- mag niet leeg zijn.\n- mag niet langer zijn dan 31 tekens.\n- Moet geen van de volgende tekens bevatten: `/`, `\\`, `?`, `*`, `:`, `[`, `]`.\n- De naam \"Geschiedenis\" is gereserveerd door Excel en kan niet worden gebruikt.\n",
|
package/src/i18n/pt.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Limpar Linha por ID",
|
|
26
26
|
"Create Worksheet": "Criar planilha",
|
|
27
27
|
"Find Row": "Encontrar linha",
|
|
28
|
+
"Find Workbook": "Encontrar pasta de atividade",
|
|
28
29
|
"Get Cells in Range": "Obtenha Células ao longo do alcance",
|
|
29
30
|
"Get Row by ID": "Obter linha por ID",
|
|
30
31
|
"Get Worksheet by ID": "Obter planilha por ID",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Limpar conteúdos/formatação de uma linha inteira por sua ID.",
|
|
55
56
|
"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.",
|
|
56
57
|
"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).",
|
|
58
|
+
"Finds an existing workbook by name.": "Localiza um caderno de trabalho existente pelo nome.",
|
|
57
59
|
"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\").",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Recuperar todo o conteúdo da linha pela sua ID de linha.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Recuperar metadados de uma planilha por sua ID.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Linha do Cabeçalho",
|
|
74
76
|
"First Data Row": "Primeira linha de dados",
|
|
77
|
+
"Use Filters ?": "Usar Filtros ?",
|
|
78
|
+
"Filter": "filtro",
|
|
75
79
|
"Row number": "Número da linha",
|
|
76
80
|
"Worksheet Name": "Nome da Planilha",
|
|
77
81
|
"Table": "Classificações",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Limpar Tipo",
|
|
87
91
|
"Row Number": "Número da linha",
|
|
88
92
|
"Headers": "Cabeçalhos",
|
|
93
|
+
"File Name": "Nome do arquivo",
|
|
89
94
|
"Row ID (Index)": "ID da Linha (Índice)",
|
|
90
95
|
"New Worksheet Name": "Nome da Nova Planilha",
|
|
91
96
|
"Method": "Método",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Intervalo das linhas a serem recuperadas (por exemplo, A2:B2)",
|
|
105
110
|
"Row number of the header": "Número da linha do cabeçalho",
|
|
106
111
|
"Row number of the first data row": "Número da linha de dados inicial",
|
|
112
|
+
"Enables the column wise filter.": "Habilita o filtro sábio da coluna",
|
|
107
113
|
"The row number to update": "Número da linha a ser atualizado",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "O intervalo na notação A1 (por exemplo, A2:B2) para limpar na planilha, se não for fornecida, limpa a planilha inteira",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Limita o número de livros de trabalho retornados, retorna todos os livros de trabalho se estiver vazio",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"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.",
|
|
129
135
|
"The column to search in.": "A coluna para pesquisar.",
|
|
130
136
|
"The value to find in the lookup column.": "O valor a ser encontrado na coluna de pesquisa.",
|
|
137
|
+
"Excel File name to search for without extension.": "Nome do arquivo Excel para procurar sem extensão.",
|
|
131
138
|
"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\").",
|
|
132
139
|
"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).",
|
|
133
140
|
"\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",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Clear Row by ID",
|
|
26
26
|
"Create Worksheet": "Create Worksheet",
|
|
27
27
|
"Find Row": "Find Row",
|
|
28
|
+
"Find Workbook": "Find Workbook",
|
|
28
29
|
"Get Cells in Range": "Get Cells in Range",
|
|
29
30
|
"Get Row by ID": "Get Row by ID",
|
|
30
31
|
"Get Worksheet by ID": "Get Worksheet by ID",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Clear contents/formatting of an entire row by its ID.",
|
|
55
56
|
"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.",
|
|
56
57
|
"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).",
|
|
58
|
+
"Finds an existing workbook by name.": "Finds an existing workbook by name.",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "Retrieve the values in a given cell range (e.g., “A1:C10”).",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Retrieve the entire content of a row by its row ID.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Retrieve metadata of a worksheet by its ID.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Header Row",
|
|
74
76
|
"First Data Row": "First Data Row",
|
|
77
|
+
"Use Filters ?": "Use Filters ?",
|
|
78
|
+
"Filter": "Filter",
|
|
75
79
|
"Row number": "Row number",
|
|
76
80
|
"Worksheet Name": "Worksheet Name",
|
|
77
81
|
"Table": "Table",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Clear Type",
|
|
87
91
|
"Row Number": "Row Number",
|
|
88
92
|
"Headers": "Headers",
|
|
93
|
+
"File Name": "File Name",
|
|
89
94
|
"Row ID (Index)": "Row ID (Index)",
|
|
90
95
|
"New Worksheet Name": "New Worksheet Name",
|
|
91
96
|
"Method": "Method",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Range of the rows to retrieve (e.g., A2:B2)",
|
|
105
110
|
"Row number of the header": "Row number of the header",
|
|
106
111
|
"Row number of the first data row": "Row number of the first data row",
|
|
112
|
+
"Enables the column wise filter.": "Enables the column wise filter.",
|
|
107
113
|
"The row number to update": "The row number to update",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Limits the number of workbooks returned, returns all workbooks if empty",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"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.",
|
|
129
135
|
"The column to search in.": "The column to search in.",
|
|
130
136
|
"The value to find in the lookup column.": "The value to find in the lookup column.",
|
|
137
|
+
"Excel File name to search for without extension.": "Excel File name to search for without extension.",
|
|
131
138
|
"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\").",
|
|
132
139
|
"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).",
|
|
133
140
|
"\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",
|
package/src/i18n/zh.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"Clear Row by ID": "Clear Row by ID",
|
|
26
26
|
"Create Worksheet": "创建工作表",
|
|
27
27
|
"Find Row": "Find Row",
|
|
28
|
+
"Find Workbook": "Find Workbook",
|
|
28
29
|
"Get Cells in Range": "Get Cells in Range",
|
|
29
30
|
"Get Row by ID": "Get Row by ID",
|
|
30
31
|
"Get Worksheet by ID": "Get Worksheet by ID",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"Clear contents/formatting of an entire row by its ID.": "Clear contents/formatting of an entire row by its ID.",
|
|
55
56
|
"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.",
|
|
56
57
|
"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).",
|
|
58
|
+
"Finds an existing workbook by name.": "Finds an existing workbook by name.",
|
|
57
59
|
"Retrieve the values in a given cell range (e.g., “A1:C10”).": "Retrieve the values in a given cell range (e.g., “A1:C10”).",
|
|
58
60
|
" Retrieve the entire content of a row by its row ID.": " Retrieve the entire content of a row by its row ID.",
|
|
59
61
|
"Retrieve metadata of a worksheet by its ID.": "Retrieve metadata of a worksheet by its ID.",
|
|
@@ -72,6 +74,8 @@
|
|
|
72
74
|
"Range": "Range",
|
|
73
75
|
"Header Row": "Header Row",
|
|
74
76
|
"First Data Row": "First Data Row",
|
|
77
|
+
"Use Filters ?": "Use Filters ?",
|
|
78
|
+
"Filter": "Filter",
|
|
75
79
|
"Row number": "Row number",
|
|
76
80
|
"Worksheet Name": "Worksheet Name",
|
|
77
81
|
"Table": "表",
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
"Clear Type": "Clear Type",
|
|
87
91
|
"Row Number": "行号",
|
|
88
92
|
"Headers": "信头",
|
|
93
|
+
"File Name": "File Name",
|
|
89
94
|
"Row ID (Index)": "Row ID (Index)",
|
|
90
95
|
"New Worksheet Name": "New Worksheet Name",
|
|
91
96
|
"Method": "方法",
|
|
@@ -104,6 +109,7 @@
|
|
|
104
109
|
"Range of the rows to retrieve (e.g., A2:B2)": "Range of the rows to retrieve (e.g., A2:B2)",
|
|
105
110
|
"Row number of the header": "Row number of the header",
|
|
106
111
|
"Row number of the first data row": "Row number of the first data row",
|
|
112
|
+
"Enables the column wise filter.": "Enables the column wise filter.",
|
|
107
113
|
"The row number to update": "要更新的行数",
|
|
108
114
|
"The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet": "The range in A1 notation (e.g., A2:B2) to clear in the worksheet, if not provided, clear the entire worksheet",
|
|
109
115
|
"Limits the number of workbooks returned, returns all workbooks if empty": "Limits the number of workbooks returned, returns all workbooks if empty",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"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.",
|
|
129
135
|
"The column to search in.": "The column to search in.",
|
|
130
136
|
"The value to find in the lookup column.": "The value to find in the lookup column.",
|
|
137
|
+
"Excel File name to search for without extension.": "Excel File name to search for without extension.",
|
|
131
138
|
"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\").",
|
|
132
139
|
"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).",
|
|
133
140
|
"\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",
|
|
@@ -4,4 +4,6 @@ export declare const getWorksheetRowsAction: import("@activepieces/pieces-framew
|
|
|
4
4
|
range: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
headerRow: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
6
|
firstDataRow: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
7
|
+
useFilter: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
+
filterList: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
|
|
7
9
|
}>;
|
|
@@ -3,9 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getWorksheetRowsAction = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
6
|
const common_1 = require("../common/common");
|
|
8
7
|
const index_1 = require("../../index");
|
|
8
|
+
const constants_1 = require("../common/constants");
|
|
9
|
+
const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
|
|
10
|
+
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
11
|
+
const isSameOrAfter_1 = tslib_1.__importDefault(require("dayjs/plugin/isSameOrAfter"));
|
|
12
|
+
const isSameOrBefore_1 = tslib_1.__importDefault(require("dayjs/plugin/isSameOrBefore"));
|
|
13
|
+
dayjs_1.default.extend(isSameOrAfter_1.default);
|
|
14
|
+
dayjs_1.default.extend(isSameOrBefore_1.default);
|
|
9
15
|
exports.getWorksheetRowsAction = (0, pieces_framework_1.createAction)({
|
|
10
16
|
auth: index_1.excelAuth,
|
|
11
17
|
name: 'get_worksheet_rows',
|
|
@@ -29,41 +35,180 @@ exports.getWorksheetRowsAction = (0, pieces_framework_1.createAction)({
|
|
|
29
35
|
description: 'Row number of the first data row',
|
|
30
36
|
required: false,
|
|
31
37
|
}),
|
|
38
|
+
useFilter: pieces_framework_1.Property.Checkbox({
|
|
39
|
+
displayName: 'Use Filters ?',
|
|
40
|
+
description: 'Enables the column wise filter.',
|
|
41
|
+
required: false,
|
|
42
|
+
defaultValue: false,
|
|
43
|
+
}),
|
|
44
|
+
filterList: pieces_framework_1.Property.DynamicProperties({
|
|
45
|
+
displayName: 'Filter',
|
|
46
|
+
refreshers: ['workbook_id', 'worksheet_id', 'useFilter'],
|
|
47
|
+
required: false,
|
|
48
|
+
auth: index_1.excelAuth,
|
|
49
|
+
props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, useFilter, worksheet_id, workbook_id }) {
|
|
50
|
+
if (!auth || !useFilter || !workbook_id || !worksheet_id)
|
|
51
|
+
return {};
|
|
52
|
+
const fields = {};
|
|
53
|
+
const firstRow = yield common_1.excelCommon.getHeaders(workbook_id, auth['access_token'], worksheet_id);
|
|
54
|
+
const filterColumnOptions = firstRow.map((header, index) => ({
|
|
55
|
+
label: header,
|
|
56
|
+
value: index,
|
|
57
|
+
}));
|
|
58
|
+
const filterOperatorOptions = Object.entries(constants_1.filterOperatorLabels).map(([operator, label]) => ({
|
|
59
|
+
label,
|
|
60
|
+
value: operator,
|
|
61
|
+
}));
|
|
62
|
+
fields['filter'] = pieces_framework_1.Property.Array({
|
|
63
|
+
displayName: 'Filter',
|
|
64
|
+
required: false,
|
|
65
|
+
properties: {
|
|
66
|
+
filterColumn: pieces_framework_1.Property.StaticDropdown({
|
|
67
|
+
displayName: 'Filter Column',
|
|
68
|
+
required: false,
|
|
69
|
+
options: {
|
|
70
|
+
disabled: false,
|
|
71
|
+
options: filterColumnOptions,
|
|
72
|
+
},
|
|
73
|
+
}),
|
|
74
|
+
filterOperator: pieces_framework_1.Property.StaticDropdown({
|
|
75
|
+
displayName: 'Filter Operator',
|
|
76
|
+
required: false,
|
|
77
|
+
options: {
|
|
78
|
+
disabled: false,
|
|
79
|
+
options: filterOperatorOptions,
|
|
80
|
+
},
|
|
81
|
+
}),
|
|
82
|
+
filterValue: pieces_framework_1.Property.ShortText({
|
|
83
|
+
displayName: 'Filter Value',
|
|
84
|
+
required: false,
|
|
85
|
+
}),
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
return fields;
|
|
89
|
+
}),
|
|
90
|
+
}),
|
|
32
91
|
},
|
|
33
92
|
run(_a) {
|
|
34
93
|
return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue, auth }) {
|
|
94
|
+
var _b, _c;
|
|
35
95
|
const workbookId = propsValue['workbook_id'];
|
|
36
96
|
const worksheetId = propsValue['worksheet_id'];
|
|
37
97
|
const range = propsValue['range'];
|
|
38
98
|
const headerRow = propsValue['headerRow'];
|
|
39
99
|
const firstDataRow = propsValue['firstDataRow'];
|
|
40
|
-
|
|
100
|
+
const shouldApplyFilter = propsValue['useFilter'];
|
|
101
|
+
const filterConfig = (_b = propsValue['filterList']) !== null && _b !== void 0 ? _b : {};
|
|
102
|
+
let url = `/me/drive/items/${workbookId}/workbook/worksheets/${worksheetId}/`;
|
|
41
103
|
if (!range) {
|
|
42
104
|
url += 'usedRange(valuesOnly=true)';
|
|
43
105
|
}
|
|
44
106
|
else {
|
|
45
107
|
url += `range(address = '${range}')`;
|
|
46
108
|
}
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
authentication: {
|
|
51
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
52
|
-
token: auth['access_token'],
|
|
109
|
+
const client = microsoft_graph_client_1.Client.initWithMiddleware({
|
|
110
|
+
authProvider: {
|
|
111
|
+
getAccessToken: () => Promise.resolve(auth.access_token),
|
|
53
112
|
},
|
|
54
113
|
});
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
114
|
+
const response = yield client.api(url).get();
|
|
115
|
+
const rows = response.text;
|
|
116
|
+
if (!rows || rows.length === 0)
|
|
117
|
+
return [];
|
|
118
|
+
const filters = (_c = filterConfig['filter']) !== null && _c !== void 0 ? _c : [];
|
|
119
|
+
const hasFilters = shouldApplyFilter && filters.length > 0;
|
|
120
|
+
const headerIdx = headerRow ? headerRow - 1 : -1;
|
|
121
|
+
const dataStartIdx = firstDataRow ? firstDataRow - 1 : 0;
|
|
122
|
+
const headers = headerIdx >= 0 ? rows[headerIdx] : null;
|
|
123
|
+
const result = [];
|
|
124
|
+
for (let i = dataStartIdx; i < rows.length; i++) {
|
|
125
|
+
const row = rows[i];
|
|
126
|
+
if (hasFilters && !evaluateFilters(filters, row)) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
if (headers) {
|
|
58
130
|
const obj = {};
|
|
59
|
-
|
|
60
|
-
obj[String(
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}
|
|
131
|
+
for (let j = 0; j < headers.length; j++) {
|
|
132
|
+
obj[String(headers[j])] = row[j];
|
|
133
|
+
}
|
|
134
|
+
result.push(obj);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
result.push(row);
|
|
138
|
+
}
|
|
64
139
|
}
|
|
65
|
-
return
|
|
140
|
+
return result;
|
|
66
141
|
});
|
|
67
142
|
},
|
|
68
143
|
});
|
|
144
|
+
function evaluateFilters(filters, row) {
|
|
145
|
+
return filters.every((filter) => {
|
|
146
|
+
const { filterColumn: columnIndex, filterOperator: operator, filterValue: value, } = filter;
|
|
147
|
+
if (columnIndex === undefined || !operator || value === undefined) {
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
const cellValue = row[columnIndex];
|
|
151
|
+
switch (operator) {
|
|
152
|
+
case constants_1.FilterOperator.TEXT_CONTAINS:
|
|
153
|
+
return containsText(cellValue, value);
|
|
154
|
+
case constants_1.FilterOperator.TEXT_DOES_NOT_CONTAIN:
|
|
155
|
+
return !containsText(cellValue, value);
|
|
156
|
+
case constants_1.FilterOperator.TEXT_EXACTLY_MATCHES:
|
|
157
|
+
return equalsText(cellValue, value);
|
|
158
|
+
case constants_1.FilterOperator.TEXT_DOES_NOT_EXACTLY_MATCH:
|
|
159
|
+
return !equalsText(cellValue, value);
|
|
160
|
+
case constants_1.FilterOperator.NUMBER_IS_GREATER_THAN:
|
|
161
|
+
return toNumber(cellValue) > toNumber(value);
|
|
162
|
+
case constants_1.FilterOperator.NUMBER_IS_LESS_THAN:
|
|
163
|
+
return toNumber(cellValue) < toNumber(value);
|
|
164
|
+
case constants_1.FilterOperator.NUMBER_IS_EQUAL_TO:
|
|
165
|
+
return toNumber(cellValue) === toNumber(value);
|
|
166
|
+
case constants_1.FilterOperator.DATE_IS_AFTER:
|
|
167
|
+
return isAfterDate(cellValue, value);
|
|
168
|
+
case constants_1.FilterOperator.DATE_IS_EQUAL:
|
|
169
|
+
return isSameDate(cellValue, value);
|
|
170
|
+
case constants_1.FilterOperator.DATE_IS_BEFORE:
|
|
171
|
+
return isBeforeDate(cellValue, value);
|
|
172
|
+
case constants_1.FilterOperator.DATE_IS_ON_OR_AFTER:
|
|
173
|
+
return isSameOrAfterDate(cellValue, value);
|
|
174
|
+
case constants_1.FilterOperator.DATE_IS_ON_OR_BEFORE:
|
|
175
|
+
return isSameOrBeforeDate(cellValue, value);
|
|
176
|
+
default:
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function containsText(value, search) {
|
|
182
|
+
return String(value).toLowerCase().includes(search.toLowerCase());
|
|
183
|
+
}
|
|
184
|
+
function equalsText(value, search) {
|
|
185
|
+
return String(value).toLowerCase() === search.toLowerCase();
|
|
186
|
+
}
|
|
187
|
+
function toNumber(value) {
|
|
188
|
+
const num = Number(value);
|
|
189
|
+
return isNaN(num) ? value : num;
|
|
190
|
+
}
|
|
191
|
+
function isValidDate(date) {
|
|
192
|
+
if (typeof date === 'string' ||
|
|
193
|
+
typeof date === 'number' ||
|
|
194
|
+
date instanceof Date) {
|
|
195
|
+
return (0, dayjs_1.default)(date).isValid();
|
|
196
|
+
}
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
function isAfterDate(a, b) {
|
|
200
|
+
return isValidDate(a) && isValidDate(b) && (0, dayjs_1.default)(a).isAfter((0, dayjs_1.default)(b));
|
|
201
|
+
}
|
|
202
|
+
function isSameDate(a, b) {
|
|
203
|
+
return isValidDate(a) && isValidDate(b) && (0, dayjs_1.default)(a).isSame((0, dayjs_1.default)(b));
|
|
204
|
+
}
|
|
205
|
+
function isBeforeDate(a, b) {
|
|
206
|
+
return isValidDate(a) && isValidDate(b) && (0, dayjs_1.default)(a).isBefore((0, dayjs_1.default)(b));
|
|
207
|
+
}
|
|
208
|
+
function isSameOrAfterDate(a, b) {
|
|
209
|
+
return isValidDate(a) && isValidDate(b) && (0, dayjs_1.default)(a).isSameOrAfter((0, dayjs_1.default)(b));
|
|
210
|
+
}
|
|
211
|
+
function isSameOrBeforeDate(a, b) {
|
|
212
|
+
return isValidDate(a) && isValidDate(b) && (0, dayjs_1.default)(a).isSameOrBefore((0, dayjs_1.default)(b));
|
|
213
|
+
}
|
|
69
214
|
//# sourceMappingURL=get-worksheet-rows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-worksheet-rows.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-excel-365/src/lib/actions/get-worksheet-rows.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"get-worksheet-rows.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-excel-365/src/lib/actions/get-worksheet-rows.ts"],"names":[],"mappings":";;;;AAAA,qEAKwC;AACxC,6CAA+C;AAC/C,uCAAwC;AACxC,mDAA2E;AAC3E,8EAA2D;AAE3D,0DAA0B;AAC1B,uFAAuD;AACvD,yFAAyD;AAEzD,eAAK,CAAC,MAAM,CAAC,uBAAa,CAAC,CAAC;AAC5B,eAAK,CAAC,MAAM,CAAC,wBAAc,CAAC,CAAC;AAEhB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,iBAAS;IACf,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE;QACN,WAAW,EAAE,oBAAW,CAAC,WAAW;QACpC,YAAY,EAAE,oBAAW,CAAC,YAAY;QACtC,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,QAAQ,C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ACzC,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,IAAI,IAAA,eAAK,EAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAA,eAAK,EAAC,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum FilterOperator {
|
|
2
|
+
TEXT_CONTAINS = "TEXT_CONTAINS",
|
|
3
|
+
TEXT_DOES_NOT_CONTAIN = "TEXT_DOES_NOT_CONTAIN",
|
|
4
|
+
TEXT_EXACTLY_MATCHES = "TEXT_EXACTLY_MATCHES",
|
|
5
|
+
TEXT_DOES_NOT_EXACTLY_MATCH = "TEXT_DOES_NOT_EXACTLY_MATCH",
|
|
6
|
+
NUMBER_IS_GREATER_THAN = "NUMBER_IS_GREATER_THAN",
|
|
7
|
+
NUMBER_IS_LESS_THAN = "NUMBER_IS_LESS_THAN",
|
|
8
|
+
NUMBER_IS_EQUAL_TO = "NUMBER_IS_EQUAL_TO",
|
|
9
|
+
DATE_IS_BEFORE = "DATE_IS_BEFORE",
|
|
10
|
+
DATE_IS_EQUAL = "DATE_IS_EQUAL",
|
|
11
|
+
DATE_IS_AFTER = "DATE_IS_AFTER",
|
|
12
|
+
DATE_IS_ON_OR_BEFORE = "DATE_IS_ON_OR_BEFORE",
|
|
13
|
+
DATE_IS_ON_OR_AFTER = "DATE_IS_ON_OR_AFTER"
|
|
14
|
+
}
|
|
15
|
+
export declare const filterOperatorLabels: Record<FilterOperator, string>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filterOperatorLabels = exports.FilterOperator = void 0;
|
|
4
|
+
var FilterOperator;
|
|
5
|
+
(function (FilterOperator) {
|
|
6
|
+
FilterOperator["TEXT_CONTAINS"] = "TEXT_CONTAINS";
|
|
7
|
+
FilterOperator["TEXT_DOES_NOT_CONTAIN"] = "TEXT_DOES_NOT_CONTAIN";
|
|
8
|
+
FilterOperator["TEXT_EXACTLY_MATCHES"] = "TEXT_EXACTLY_MATCHES";
|
|
9
|
+
FilterOperator["TEXT_DOES_NOT_EXACTLY_MATCH"] = "TEXT_DOES_NOT_EXACTLY_MATCH";
|
|
10
|
+
FilterOperator["NUMBER_IS_GREATER_THAN"] = "NUMBER_IS_GREATER_THAN";
|
|
11
|
+
FilterOperator["NUMBER_IS_LESS_THAN"] = "NUMBER_IS_LESS_THAN";
|
|
12
|
+
FilterOperator["NUMBER_IS_EQUAL_TO"] = "NUMBER_IS_EQUAL_TO";
|
|
13
|
+
FilterOperator["DATE_IS_BEFORE"] = "DATE_IS_BEFORE";
|
|
14
|
+
FilterOperator["DATE_IS_EQUAL"] = "DATE_IS_EQUAL";
|
|
15
|
+
FilterOperator["DATE_IS_AFTER"] = "DATE_IS_AFTER";
|
|
16
|
+
FilterOperator["DATE_IS_ON_OR_BEFORE"] = "DATE_IS_ON_OR_BEFORE";
|
|
17
|
+
FilterOperator["DATE_IS_ON_OR_AFTER"] = "DATE_IS_ON_OR_AFTER";
|
|
18
|
+
})(FilterOperator || (exports.FilterOperator = FilterOperator = {}));
|
|
19
|
+
exports.filterOperatorLabels = {
|
|
20
|
+
[FilterOperator.TEXT_CONTAINS]: '(Text) Contains',
|
|
21
|
+
[FilterOperator.TEXT_DOES_NOT_CONTAIN]: '(Text) Does not contain',
|
|
22
|
+
[FilterOperator.TEXT_EXACTLY_MATCHES]: '(Text) Exactly matches',
|
|
23
|
+
[FilterOperator.TEXT_DOES_NOT_EXACTLY_MATCH]: '(Text) Does not exactly match',
|
|
24
|
+
[FilterOperator.NUMBER_IS_GREATER_THAN]: '(Number) Is greater than',
|
|
25
|
+
[FilterOperator.NUMBER_IS_LESS_THAN]: '(Number) Is less than',
|
|
26
|
+
[FilterOperator.NUMBER_IS_EQUAL_TO]: '(Number) Is equal to',
|
|
27
|
+
[FilterOperator.DATE_IS_BEFORE]: '(Date) Is before',
|
|
28
|
+
[FilterOperator.DATE_IS_EQUAL]: '(Date) Is equal',
|
|
29
|
+
[FilterOperator.DATE_IS_AFTER]: '(Date) Is after',
|
|
30
|
+
[FilterOperator.DATE_IS_ON_OR_BEFORE]: '(Date) Is On or Before',
|
|
31
|
+
[FilterOperator.DATE_IS_ON_OR_AFTER]: '(Date) Is On or After',
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-excel-365/src/lib/common/constants.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAaX;AAbD,WAAY,cAAc;IACtB,iDAA+B,CAAA;IAC/B,iEAA+C,CAAA;IAC/C,+DAA6C,CAAA;IAC7C,6EAA2D,CAAA;IAC3D,mEAAiD,CAAA;IACjD,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;IACzC,mDAAiC,CAAA;IACjC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,+DAA6C,CAAA;IAC7C,6DAA2C,CAAA;AAC/C,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB;AAEY,QAAA,oBAAoB,GAAmC;IAClE,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,iBAAiB;IACjD,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,yBAAyB;IACjE,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,wBAAwB;IAC/D,CAAC,cAAc,CAAC,2BAA2B,CAAC,EAAE,+BAA+B;IAE7E,CAAC,cAAc,CAAC,sBAAsB,CAAC,EAAE,0BAA0B;IACnE,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,uBAAuB;IAC7D,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,sBAAsB;IAE3D,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,kBAAkB;IACnD,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,iBAAiB;IACjD,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,iBAAiB;IACjD,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,wBAAwB;IAC/D,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,uBAAuB;CAE9D,CAAC"}
|