@activepieces/piece-date-helper 0.1.16 → 0.1.18

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/piece-date-helper",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "dependencies": {
5
5
  "@sinclair/typebox": "0.34.11",
6
6
  "axios": "1.8.3",
@@ -11,18 +11,10 @@
11
11
  "nanoid": "3.3.8",
12
12
  "semver": "7.6.0",
13
13
  "zod": "3.25.76",
14
- "@activepieces/pieces-common": "0.7.0",
15
- "@activepieces/pieces-framework": "0.20.1",
16
- "@activepieces/shared": "0.20.1",
17
- "tslib": "2.8.1"
18
- },
19
- "overrides": {
20
- "@tryfabric/martian": {
21
- "@notionhq/client": "$@notionhq/client"
22
- },
23
- "vite": {
24
- "rollup": "npm:@rollup/wasm-node"
25
- }
14
+ "@activepieces/pieces-common": "0.8.1",
15
+ "@activepieces/pieces-framework": "0.20.2",
16
+ "@activepieces/shared": "0.25.2",
17
+ "tslib": "2.6.2"
26
18
  },
27
19
  "resolutions": {
28
20
  "rollup": "npm:@rollup/wasm-node"
package/src/i18n/de.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Enddatumsformat",
28
28
  "Unit": "Einheit",
29
29
  "Expression": "Ausdruck",
30
+ "Set Time To (24h format)": "Setze Zeit auf (24h Format)",
31
+ "Use Current Time": "Aktuelle Zeit verwenden",
30
32
  "Weekday": "Wochentag",
31
33
  "24h Time": "24h Zeit",
32
- "Use Current Time": "Aktuelle Zeit verwenden",
33
34
  "Month": "Monat",
34
35
  "Day of Month": "Tag des Monats",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Hier ist das, was jeder Teil des Formats (z. JJJJJ) repräsentiert:\n\nJJJJ : Jahr (4 Ziffern) - Beispiel: 2023\n\nJJ : Jahr (2 Ziffern) - Beispiel: 23\n\nMMMM : Monat (Vollname) - Beispiel: September\n\nMMM : Monat (Kurzname) - Beispiel: Sepp\n\nMM : Monat (2 Ziffern) - Beispiel: 09\n\nDDDD : Tag (voller Name) - Beispiel: Sonntag\n\nDDD : Tag (Kurzname) - Beispiel: Sun\n\nDD : Tag (2 Ziffern) - Beispiel: 17\n\nHH : Stunde (2 Ziffern) - Beispiel: 11\n\nmm : Minute (2 Ziffern) - Beispiel: 23\n\nss : Zweite (2 Ziffern) - Beispiel: 58\n\nX : Unix Format - Beispiel: 16949838 - Beispiel: 16949838 JJJJJJ : Jahr",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Enddatum eingeben",
40
41
  "Select the unit of difference between the two dates": "Wählen Sie die Einheit der Differenz zwischen den beiden Terminen",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Geben Sie einen Ausdruck zum Hinzufügen oder Abziehen mit den folgenden Einheiten (Jahr , Monat , Tag , Stunde , Minute oder Sekunde).\n \nBeispiele:\n+ 2 Sekunde + 1 Stunde \n+ 1 Jahr - 3 Tag - 2 Monat \n+ 5 Minute",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Optional: Legen Sie eine Zeitzone für die Berechnung fest, um DST korrekt zu handhaben",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Optional: Setzen Sie das Ergebnis auf eine bestimmte Zeit (z.B. \"10:00\" oder \"14:30\"). Dies ermöglicht die Terminplanung zu einer bestimmten Zeit nach dem Hinzufügen/Subtrahieren Datum. Leer lassen um die berechnete Zeit zu behalten.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "Wenn aktiviert, wird die aktuelle Uhrzeit anstelle der Zeit aus dem Feld \"Zeit zu\" verwendet.",
42
46
  "The weekday that you would like to get the date and time of.": "Der Wochentag, von dem Sie das Datum und die Uhrzeit erhalten möchten.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "Die Zeit, von der Sie das Datum und die Uhrzeit erhalten möchten. Dies muss im 24h-Format sein.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "Wenn aktiviert, wird die aktuelle Uhrzeit anstelle der oben angegebenen Zeit verwendet.",
package/src/i18n/es.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Ending date format",
28
28
  "Unit": "Unidad",
29
29
  "Expression": "Expresión",
30
+ "Set Time To (24h format)": "Establecer hora a (formato 24h)",
31
+ "Use Current Time": "Use Current Time",
30
32
  "Weekday": "Día semanal",
31
33
  "24h Time": "24h Time",
32
- "Use Current Time": "Use Current Time",
33
34
  "Month": "Mes",
34
35
  "Day of Month": "Day of Month",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix format - Example: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Introduzca la fecha de fin",
40
41
  "Select the unit of difference between the two dates": "Seleccione la unidad de diferencia entre las dos fechas",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Proporcione una expresión para agregar o restar usando las siguientes unidades (año , mes , día , hora , minuto o segundo).\n \nEjemplos:\n+ 2 segundos + 1 hora \n+ 1 año - 3 días - 2 mes \n+ 5 minutos",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Opcional: Establecer una zona horaria para el cálculo para manejar correctamente DST",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Opcional: Establezca el resultado a una hora específica (por ejemplo, \"10:00\" o \"14:30\"). Esto permite programar a una hora específica después de añadir o restar fechas. Dejar en blanco para mantener el tiempo calculado.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "Si está marcado, la hora actual se utilizará en lugar de la hora del campo \"Establecer hora a\".",
42
46
  "The weekday that you would like to get the date and time of.": "El día de la semana que desea obtener la fecha y hora de.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "La hora de la que desea obtener la fecha y hora del mismo, debe estar en formato 24h.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "Si está marcado, la hora actual se utilizará en lugar del tiempo especificado arriba.",
package/src/i18n/fr.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Format de la date de fin",
28
28
  "Unit": "Unité",
29
29
  "Expression": "Expression",
30
+ "Set Time To (24h format)": "Définir l'heure (format 24h)",
31
+ "Use Current Time": "Utiliser l'heure actuelle",
30
32
  "Weekday": "Jour de la semaine",
31
33
  "24h Time": "Heure 24h",
32
- "Use Current Time": "Utiliser l'heure actuelle",
33
34
  "Month": "Mois",
34
35
  "Day of Month": "Jour du mois",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Voici ce que chaque partie du format (par ex. YYYY) représente :\n\nAAAA : Année (4 chiffres) - Exemple: 2023\n\nAA : Année (2 chiffres) - Exemple: 23\n\nMMMM : Mois (nom complet) - Exemple: Septembre\n\nMMM : Mois (nom court) - Exemple: Sep\n\nMM : Mois (2 chiffres) - Exemple: 09\n\nDDDD : Jour (nom complet) - Exemple: Dimanche\n\nDDD : Jour (nom court) - Exemple : Dim\n\nDD : Jour (2 chiffres) - Exemple: 17\n\nHH : Heure (2 chiffres) - Exemple: 11\n\nmm : Minute (2 chiffres) - Exemple: 23\n\nss : Seconde (2 chiffres) - Exemple: 58\n\nX : Temps au Format Unix - Exemple: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Entrez la date de fin",
40
41
  "Select the unit of difference between the two dates": "Sélectionnez l'unité de différence entre les deux dates",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Renseignez une expression pour ajouter ou soustraire des unités de temps. Il faut renseigner ces valeurs comme dans les exemples suivants. \n \nExemples : \nPour ajouter 7 jours, renseignez : \"+7 day\"\nPour soustraire 1 mois, renseignez : -1 month\"\n\nEt ainsi de suite pour les années (\"+/- year\") les heures (\"+/- hour\"), les minutes (\"+/- minute\") et les secondes (\"+/- second\")",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Optionnel: Définir un fuseau horaire pour le calcul pour gérer DST correctement",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Optionnel: Définit le résultat à une heure spécifique (par exemple, \"10:00\" ou \"14:30\"). Cela permet de planifier à une heure spécifique après ajout/soustraction des dates. Laisser vide pour conserver l'heure calculée.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "Si cette case est cochée, l'heure actuelle sera utilisée au lieu de l'heure du champ \"Définir l'heure à\".",
42
46
  "The weekday that you would like to get the date and time of.": "Le jour de la semaine dont vous aimeriez obtenir la date et l'heure.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "L'heure dont vous aimeriez obtenir la date et l'heure. Doit être au format 24h.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "Si cette case est cochée, l'heure actuelle sera utilisée à la place de l'heure spécifiée ci-dessus.",
package/src/i18n/ja.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "終了日付フォーマット",
28
28
  "Unit": "単位",
29
29
  "Expression": "式",
30
+ "Set Time To (24h format)": "時間を (24 時間形式) に設定",
31
+ "Use Current Time": "現在時刻を使用",
30
32
  "Weekday": "Weekday",
31
33
  "24h Time": "24時間の時間",
32
- "Use Current Time": "現在時刻を使用",
33
34
  "Month": "月",
34
35
  "Day of Month": "Day of month",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix format - Example: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "終了日を入力してください",
40
41
  "Select the unit of difference between the two dates": "2つの日付の違いの単位を選択してください",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "以下の単位(年、月、日、時間、分、秒)を使って、足し算または引算する式を提供します。\n \n例:\n+ 2 秒 + 1 時間 \n+ 1 年 - 3 日 - 2ヶ月 \n+ 5 分",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "オプション: DST を正しく処理する計算のタイムゾーンを設定します。",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "オプション: 結果を特定の時間に設定します (例: \"10:00\" または \"14:30\")。 日付を加算/減算した後の特定の時間にスケジュールすることができます。計算された時間を維持するには空のままにしてください。",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "チェックされている場合、現在の時刻は「時刻を設定」フィールドからの時刻の代わりに使用されます。",
42
46
  "The weekday that you would like to get the date and time of.": "日付と時刻を取得したい平日。",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "日付と時刻を取得したい時間. これは、24時間形式でなければなりません.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "チェックされている場合、上記で指定した時間の代わりに現在の時刻が使用されます。",
package/src/i18n/nl.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Einddatum formaat",
28
28
  "Unit": "Eenheid",
29
29
  "Expression": "Expressie",
30
+ "Set Time To (24h format)": "Tijd instellen (24u formaat)",
31
+ "Use Current Time": "Gebruik huidige tijd",
30
32
  "Weekday": "Weekdag",
31
33
  "24h Time": "24u Tijd",
32
- "Use Current Time": "Gebruik huidige tijd",
33
34
  "Month": "maand",
34
35
  "Day of Month": "Dag van de maand",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix format - Example: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Voer de einddatum in",
40
41
  "Select the unit of difference between the two dates": "Selecteer de eenheid van het verschil tussen de twee data",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Geef een expressie op om toe te voegen of af te trekken met behulp van de volgende eenheden (jaar, maand, dag, uur, minuut of seconde).\n \nVoorbeelden:\n+ 2 seconde + 1 uur \n+ 1 jaar - 3 dag - 2 maand \n+ 5 minuut",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Optioneel: Stel een tijdzone in om DST correct te kunnen berekenen",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Optioneel: Stel het resultaat in op een specifieke tijd (bijv. \"10:00\" of \"14:30\"). Dit staat het plannen toe op een specifiek moment na het toevoegen/aftrekken van datums. Laat leeg om de berekende tijd te behouden.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "Indien aangevinkt, zal de huidige tijd gebruikt worden in plaats van de tijd van het veld \"Stel tijd in naar\"",
42
46
  "The weekday that you would like to get the date and time of.": "De weekdag waarvan je de datum en tijd wilt krijgen.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "De tijd waarvan u de datum en tijd wilt krijgen. Dit moet in 24u formaat zijn.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "Indien aangevinkt, zal de huidige tijd worden gebruikt in plaats van de hierboven aangegeven tijd.",
package/src/i18n/pt.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Ending date format",
28
28
  "Unit": "Unidade",
29
29
  "Expression": "Expressão",
30
+ "Set Time To (24h format)": "Definir Tempo para (formato 24h)",
31
+ "Use Current Time": "Use Current Time",
30
32
  "Weekday": "Dia de semana",
31
33
  "24h Time": "24h Time",
32
- "Use Current Time": "Use Current Time",
33
34
  "Month": "Mês",
34
35
  "Day of Month": "Day of Month",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix format - Example: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Insira a data final",
40
41
  "Select the unit of difference between the two dates": "Selecione a unidade de diferença entre as duas datas",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Forneça uma expressão para adicionar ou subtrair usando as seguintes unidades (ano, mês, dia, hora, minuto ou segundo).\n \nExemplos:\n+ 2 segundos + 1 hora \n+ 1 ano - 3 dias - 2 mês \n+ 5 minutos",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Opcional: Defina um fuso horário para o cálculo para manipular DST corretamente",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Opcional: Defina o resultado para um tempo específico (por exemplo, \"10:00\" ou \"14:30\"). Isso permite agendar em um momento específico após adicionar / subtrair datas. Deixe em branco para manter o tempo calculado.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "Se marcada, a hora atual será usada em vez da hora no campo \"Definir Hora Para\".",
42
46
  "The weekday that you would like to get the date and time of.": "O dia da semana em que você gostaria de obter a data e a hora.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "A hora em que você gostaria de obter a data e a hora. Esta hora deve estar em formato 24h.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "Se marcada, a hora atual será usada em vez do tempo especificado acima.",
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Ending date format",
28
28
  "Unit": "Unit",
29
29
  "Expression": "Expression",
30
+ "Set Time To (24h format)": "Set Time To (24h format)",
31
+ "Use Current Time": "Use Current Time",
30
32
  "Weekday": "Weekday",
31
33
  "24h Time": "24h Time",
32
- "Use Current Time": "Use Current Time",
33
34
  "Month": "Month",
34
35
  "Day of Month": "Day of Month",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix format - Example: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Enter the ending date",
40
41
  "Select the unit of difference between the two dates": "Select the unit of difference between the two dates",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Optional: Set a timezone for the calculation to handle DST correctly",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "If checked, the current time will be used instead of the time from \"Set Time To\" field.",
42
46
  "The weekday that you would like to get the date and time of.": "The weekday that you would like to get the date and time of.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "The time that you would like to get the date and time of. This must be in 24h format.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "If checked, the current time will be used instead of the time specified above.",
package/src/i18n/zh.json CHANGED
@@ -27,9 +27,10 @@
27
27
  "Ending date format": "Ending date format",
28
28
  "Unit": "Unit",
29
29
  "Expression": "Expression",
30
+ "Set Time To (24h format)": "Set Time To (24h format)",
31
+ "Use Current Time": "Use Current Time",
30
32
  "Weekday": "Weekday",
31
33
  "24h Time": "24h Time",
32
- "Use Current Time": "Use Current Time",
33
34
  "Month": "Month",
34
35
  "Day of Month": "Day of Month",
35
36
  "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix form": "Here's what each part of the format (e.g., YYYY) represents:\n\nYYYY : Year (4 digits) - Example: 2023\n\nYY : Year (2 digits) - Example: 23\n\nMMMM : Month (full name) - Example: September\n\nMMM : Month (short name) - Example: Sep\n\nMM : Month (2 digits) - Example: 09\n\nDDDD : Day (full name) - Example: Sunday\n\nDDD : Day (short name) - Example: Sun\n\nDD : Day (2 digits) - Example: 17\n\nHH : Hour (2 digits) - Example: 11\n\nmm : Minute (2 digits) - Example: 23\n\nss : Second (2 digits) - Example: 58\n\nX : Time in Unix format - Example: 1694949838",
@@ -39,6 +40,9 @@
39
40
  "Enter the ending date": "Enter the ending date",
40
41
  "Select the unit of difference between the two dates": "Select the unit of difference between the two dates",
41
42
  "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute": "Provide an expression to add or subtract using the following units (year , month , day , hour , minute or second).\n \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute",
43
+ "Optional: Set a timezone for the calculation to handle DST correctly": "Optional: Set a timezone for the calculation to handle DST correctly",
44
+ "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.": "Optional: Set the result to a specific time (e.g., \"10:00\" or \"14:30\"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.",
45
+ "If checked, the current time will be used instead of the time from \"Set Time To\" field.": "If checked, the current time will be used instead of the time from \"Set Time To\" field.",
42
46
  "The weekday that you would like to get the date and time of.": "The weekday that you would like to get the date and time of.",
43
47
  "The time that you would like to get the date and time of. This must be in 24h format.": "The time that you would like to get the date and time of. This must be in 24h format.",
44
48
  "If checked, the current time will be used instead of the time specified above.": "If checked, the current time will be used instead of the time specified above.",
@@ -4,4 +4,7 @@ export declare const addSubtractDateAction: import("@activepieces/pieces-framewo
4
4
  inputDateFormat: import("@activepieces/pieces-framework").StaticDropdownProperty<timeFormat, true>;
5
5
  outputFormat: import("@activepieces/pieces-framework").StaticDropdownProperty<timeFormat, true>;
6
6
  expression: import("@activepieces/pieces-framework").LongTextProperty<true>;
7
+ timeZone: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
8
+ setTime: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
+ useCurrentTime: import("@activepieces/pieces-framework").CheckboxProperty<false>;
7
10
  }>;
@@ -5,8 +5,14 @@ const tslib_1 = require("tslib");
5
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
6
6
  const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
7
7
  const advancedFormat_1 = tslib_1.__importDefault(require("dayjs/plugin/advancedFormat"));
8
+ const utc_1 = tslib_1.__importDefault(require("dayjs/plugin/utc"));
9
+ const timezone_1 = tslib_1.__importDefault(require("dayjs/plugin/timezone"));
8
10
  const common_1 = require("../common");
11
+ const zod_1 = require("zod");
12
+ const pieces_common_1 = require("@activepieces/pieces-common");
9
13
  dayjs_1.default.extend(advancedFormat_1.default);
14
+ dayjs_1.default.extend(utc_1.default);
15
+ dayjs_1.default.extend(timezone_1.default);
10
16
  exports.addSubtractDateAction = (0, pieces_framework_1.createAction)({
11
17
  name: 'add_subtract_date',
12
18
  displayName: 'Add/Subtract Time',
@@ -49,20 +55,66 @@ exports.addSubtractDateAction = (0, pieces_framework_1.createAction)({
49
55
  \nExamples:\n+ 2 second + 1 hour \n+ 1 year - 3 day - 2 month \n+ 5 minute`,
50
56
  required: true,
51
57
  }),
58
+ timeZone: pieces_framework_1.Property.StaticDropdown({
59
+ displayName: 'Time Zone',
60
+ description: 'Optional: Set a timezone for the calculation to handle DST correctly',
61
+ options: {
62
+ options: common_1.timeZoneOptions,
63
+ },
64
+ required: false,
65
+ }),
66
+ setTime: pieces_framework_1.Property.ShortText({
67
+ displayName: 'Set Time To (24h format)',
68
+ description: 'Optional: Set the result to a specific time (e.g., "10:00" or "14:30"). This allows scheduling at a specific time after adding/subtracting dates. Leave empty to keep the calculated time.',
69
+ required: false,
70
+ }),
71
+ useCurrentTime: pieces_framework_1.Property.Checkbox({
72
+ displayName: 'Use Current Time',
73
+ description: 'If checked, the current time will be used instead of the time from "Set Time To" field.',
74
+ required: false,
75
+ defaultValue: false,
76
+ }),
52
77
  },
53
78
  run(context) {
54
79
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
55
80
  const inputDate = context.propsValue.inputDate;
56
81
  const inputDateFormat = (0, common_1.getCorrectedFormat)(context.propsValue.inputDateFormat);
57
- const outputFormat = context.propsValue.outputFormat;
82
+ const outputFormat = (0, common_1.getCorrectedFormat)(context.propsValue.outputFormat);
58
83
  const expression = context.propsValue.expression;
84
+ const timeZone = context.propsValue.timeZone;
85
+ const setTime = context.propsValue.setTime;
86
+ const useCurrentTime = context.propsValue.useCurrentTime;
87
+ if (setTime && setTime.trim() !== '') {
88
+ yield pieces_common_1.propsValidation.validateZod({ time: setTime }, {
89
+ time: zod_1.z.string().regex(/^\d\d:\d\d$/),
90
+ });
91
+ }
59
92
  const BeforeDate = (0, common_1.parseDate)(inputDate, inputDateFormat);
60
- const AfterDate = addSubtractTime(BeforeDate.toDate(), expression);
61
- return { result: (0, dayjs_1.default)(AfterDate).format(outputFormat) };
93
+ let AfterDate = addSubtractTime(BeforeDate.toDate(), expression, timeZone);
94
+ if (timeZone && (setTime || useCurrentTime)) {
95
+ let timeToSet = setTime;
96
+ if (useCurrentTime) {
97
+ const now = (0, dayjs_1.default)().tz(timeZone);
98
+ timeToSet = `${now.hour().toString().padStart(2, '0')}:${now.minute().toString().padStart(2, '0')}`;
99
+ }
100
+ if (timeToSet && timeToSet.trim() !== '') {
101
+ const [hours, minutes] = timeToSet.split(':').map(Number);
102
+ if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) {
103
+ throw new Error(`Invalid time value - hours: ${hours} (must be 0-23), minutes: ${minutes} (must be 0-59)`);
104
+ }
105
+ AfterDate = AfterDate.tz(timeZone).hour(hours).minute(minutes).second(0).millisecond(0);
106
+ }
107
+ }
108
+ if (timeZone) {
109
+ return { result: AfterDate.tz(timeZone).format(outputFormat) };
110
+ }
111
+ else {
112
+ return { result: AfterDate.format(outputFormat) };
113
+ }
62
114
  });
63
115
  },
64
116
  });
65
- function addSubtractTime(date, expression) {
117
+ function addSubtractTime(date, expression, timeZone) {
66
118
  // remove all the spaces and line breaks from the expression
67
119
  expression = expression.replace(/(\r\n|\n|\r)/gm, '').replace(/ /g, '');
68
120
  const parts = expression.split(/(\+|-)/);
@@ -101,7 +153,8 @@ function addSubtractTime(date, expression) {
101
153
  units.push(unit);
102
154
  }
103
155
  }
104
- let dayjsDate = (0, dayjs_1.default)(date);
156
+ // Create timezone-aware dayjs object if timezone is provided
157
+ let dayjsDate = timeZone ? (0, dayjs_1.default)(date).tz(timeZone) : (0, dayjs_1.default)(date);
105
158
  for (let i = 0; i < numbers.length; i++) {
106
159
  const val = units[i].toLowerCase();
107
160
  switch (val) {
@@ -133,6 +186,6 @@ function addSubtractTime(date, expression) {
133
186
  }
134
187
  }
135
188
  }
136
- return dayjsDate.toDate();
189
+ return dayjsDate;
137
190
  }
138
191
  //# sourceMappingURL=add-subtract-date.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-subtract-date.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/date-helper/src/lib/actions/add-subtract-date.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,0DAA0B;AAC1B,yFAAyD;AACzD,sCAOmB;AAEnB,eAAK,CAAC,MAAM,CAAC,wBAAc,CAAC,CAAC;AAEhB,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EA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C;gBAC9C,MAAM;YACR,KAAK,kBAAS,CAAC,KAAK;gBAClB,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;gBAC/C,MAAM;YACR,KAAK,kBAAS,CAAC,GAAG;gBAChB,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;gBAC7C,MAAM;YACR,KAAK,kBAAS,CAAC,IAAI;gBACjB,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;gBAC9C,MAAM;YACR,KAAK,kBAAS,CAAC,MAAM;gBACnB,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;gBAChD,MAAM;YACR,KAAK,kBAAS,CAAC,MAAM;gBACnB,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;gBAChD,MAAM;YACR,KAAK,kBAAS,CAAC,SAAS,CAAC;YACzB,KAAK,kBAAS,CAAC,SAAS,CAAC;YACzB,KAAK,kBAAS,CAAC,SAAS;gBACtB,MAAM;YACR,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,GAAG,GAAU,GAAG,CAAC;gBACvB,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,4BAA4B,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC,MAAM,EAAE,CAAC;AAC5B,CAAC"}
1
+ {"version":3,"file":"add-subtract-date.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/date-helper/src/lib/actions/add-subtract-date.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,0DAA0B;AAC1B,yFAAyD;AACzD,mEAAmC;AACnC,6EAA6C;AAC7C,sCAQm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