@scopieflows/app-microsoft-outlook-calendar 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.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-microsoft-outlook-calendar
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-microsoft-outlook-calendar` to build the library.
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@scopieflows/app-microsoft-outlook-calendar",
3
+ "version": "0.1.1",
4
+ "dependencies": {
5
+ "@sinclair/typebox": "0.34.11",
6
+ "ai": "^6.0.0",
7
+ "axios": "1.13.1",
8
+ "axios-retry": "4.4.1",
9
+ "dayjs": "1.11.9",
10
+ "deepmerge-ts": "7.1.0",
11
+ "form-data": "4.0.4",
12
+ "i18next": "23.13.0",
13
+ "mime-types": "2.1.35",
14
+ "nanoid": "3.3.8",
15
+ "semver": "7.6.0",
16
+ "socket.io-client": "4.8.1",
17
+ "zod": "4.1.13",
18
+ "@scopieflows/pieces-common": "0.11.2",
19
+ "@scopieflows/pieces-framework": "0.25.0",
20
+ "@scopieflows/shared": "0.33.0",
21
+ "tslib": "2.6.2"
22
+ },
23
+ "resolutions": {
24
+ "rollup": "npm:@rollup/wasm-node"
25
+ },
26
+ "types": "./src/index.d.ts",
27
+ "main": "./src/index.js",
28
+ "type": "commonjs"
29
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Kalendersoftware von 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. Melden Sie sich bei [Microsoft Azure Portal](https://portal.azure.com/).\n. Von der linken Seitenleiste gehen Sie zur **Microsoft Enfra ID**.\n3. Unter **Verwalten** klicken Sie auf **App-Registrierungen**.\n4. Klicken Sie auf die **Neue Registrierung** Schaltfläche.\n5. Geben Sie einen **Name** für Ihre App ein.\n6. Für **unterstützte Kontotypen**, auswählen:\n - **Konten in jedem Organisationsverzeichnis (jeder Microsoft-Entra-ID-Mieter - Multitenant) und persönlichen Microsoft-Konten**\n - Oder wählen Sie nach Ihren Anforderungen aus.\n7. In **Umleitungs-URI** wählen Sie **Web** und fügen Sie die angegebene URL hinzu.\n8. Klicken Sie auf **Registrieren**.\n9. Nach der Registrierung werden Sie zur Übersichtsseite der App weitergeleitet. Kopieren Sie die **Anwendungs-(Client)-ID**.\n10. Gehen Sie aus dem linken Menü zu **Zertifikate & Geheimnis**.\n - Unter **Kundengeheimnis**, klicken Sie **Kundengeheimnis**.\n - Geben Sie eine Beschreibung an, setzen Sie ein Ablaufdatum und klicken Sie auf **Hinzufügen**.\n - Kopieren Sie den **Wert** des Client-Geheimnisses (dies wird nicht wieder angezeigt).\n11. Gehe zu **API-Berechtigungen** vom linken Menü.\n - Klicke auf **Berechtigung hinzufügen**.\n - Wähle **Microsoft Graph** → **Delegierte Berechtigungen**.\n - Fügen Sie folgende Bereiche hinzu:\n\t - Kalender. eadWrite\n\t - offline_access \n - User.Lesen Sie\n - Klicken Sie auf **Berechtigungen hinzufügen**.\n12. Kopieren Sie Ihre **Client-ID** und **Client-Geheimnis**.\n",
4
+ "Create a new event in a calendar": "Neues Ereignis in einem Kalender erstellen",
5
+ "Delete an event in a calendar": "Ereignis in einem Kalender löschen",
6
+ "List events in a calendar": "Ereignisse in einem Kalender auflisten",
7
+ "Custom API Call": "Eigener API-Aufruf",
8
+ "Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
9
+ "Calendar": "Kalender",
10
+ "Title of the event": "Titel des Ereignisses",
11
+ "Start date time of the event": "Startdatum des Ereignisses",
12
+ "End date time of the event": "Enddatum des Ereignisses",
13
+ "Timezone": "Timezone",
14
+ "Location": "Standort",
15
+ "Event ID": "Event-ID",
16
+ "Filter": "Filtern",
17
+ "Method": "Methode",
18
+ "Headers": "Kopfzeilen",
19
+ "Query Parameters": "Abfrageparameter",
20
+ "Body Type": "Körpertyp",
21
+ "Body": "Körper",
22
+ "Response is Binary ?": "Antwort ist binär?",
23
+ "No Error on Failure": "Kein Fehler bei Fehler",
24
+ "Timeout (in seconds)": "Timeout (in Sekunden)",
25
+ "Follow redirects": "Weiterleitungen folgen",
26
+ "By default it'll be 30 min post start time": "Standardmäßig ist es 30 Minuten Beitragsstartzeit",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Suchfilter sehen, siehe: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
29
+ "Enable for files like PDFs, images, etc.": "Aktivieren für Dateien wie PDFs, Bilder usw.",
30
+ "GET": "ERHALTEN",
31
+ "POST": "POST",
32
+ "PATCH": "PATCH",
33
+ "PUT": "PUT",
34
+ "DELETE": "LÖSCHEN",
35
+ "HEAD": "HEAD",
36
+ "None": "Keine",
37
+ "JSON": "JSON",
38
+ "Form Data": "Formulardaten",
39
+ "Raw": "Rohe"
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Software de calendario de 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\t - Calendars.ReadWrite\n\t - offline_access\n\t - User.Read\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
+ "Create a new event in a calendar": "Crear un nuevo evento en un calendario",
5
+ "Delete an event in a calendar": "Eliminar un evento en un calendario",
6
+ "List events in a calendar": "Listar eventos en un calendario",
7
+ "Custom API Call": "Llamada API personalizada",
8
+ "Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
9
+ "Calendar": "Calendario",
10
+ "Title of the event": "Título del evento",
11
+ "Start date time of the event": "Fecha de inicio del evento",
12
+ "End date time of the event": "Fecha de fin del evento",
13
+ "Timezone": "Timezone",
14
+ "Location": "Ubicación",
15
+ "Event ID": "Evento ID",
16
+ "Filter": "Filtro",
17
+ "Method": "Método",
18
+ "Headers": "Encabezados",
19
+ "Query Parameters": "Parámetros de consulta",
20
+ "Body Type": "Tipo de cuerpo",
21
+ "Body": "Cuerpo",
22
+ "Response is Binary ?": "¿Respuesta es binaria?",
23
+ "No Error on Failure": "No hay ningún error en fallo",
24
+ "Timeout (in seconds)": "Tiempo de espera (en segundos)",
25
+ "Follow redirects": "Seguir redirecciones",
26
+ "By default it'll be 30 min post start time": "Por defecto será 30 minutos de inicio del post",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Filtro de búsqueda de consultas, ver: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
29
+ "Enable for files like PDFs, images, etc.": "Activar para archivos como PDFs, imágenes, etc.",
30
+ "GET": "RECOGER",
31
+ "POST": "POST",
32
+ "PATCH": "PATCH",
33
+ "PUT": "PUT",
34
+ "DELETE": "BORRAR",
35
+ "HEAD": "LIMPIO",
36
+ "None": "Ninguna",
37
+ "JSON": "JSON",
38
+ "Form Data": "Datos de Formulario",
39
+ "Raw": "Rápido"
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Logiciel de calendrier par 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\t - Calendars.ReadWrite\n\t - offline_access\n\t - User.Read\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
+ "Create a new event in a calendar": "Créer un nouvel événement dans un calendrier",
5
+ "Delete an event in a calendar": "Supprimer un événement dans un calendrier",
6
+ "List events in a calendar": "Lister les événements dans un calendrier",
7
+ "Custom API Call": "Appel API personnalisé",
8
+ "Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
9
+ "Calendar": "Calendrier",
10
+ "Title of the event": "Titre de l'événement",
11
+ "Start date time of the event": "Date de début de l'événement",
12
+ "End date time of the event": "Date de fin de l'événement",
13
+ "Timezone": "Fuseau horaire",
14
+ "Location": "Localisation",
15
+ "Event ID": "ID de l'événement",
16
+ "Filter": "Filtre",
17
+ "Method": "Méthode",
18
+ "Headers": "En-têtes",
19
+ "Query Parameters": "Paramètres de requête",
20
+ "Body Type": "Body Type",
21
+ "Body": "Corps",
22
+ "Response is Binary ?": "La réponse est Binaire ?",
23
+ "No Error on Failure": "Aucune erreur en cas d'échec",
24
+ "Timeout (in seconds)": "Délai d'attente (en secondes)",
25
+ "Follow redirects": "Suivre les redirections",
26
+ "By default it'll be 30 min post start time": "Par défaut, il sera de 30 minutes de début du post",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Filtre de requête de recherche, voir : https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
29
+ "Enable for files like PDFs, images, etc.": "Activer pour les fichiers comme les PDFs, les images, etc.",
30
+ "GET": "OBTENIR",
31
+ "POST": "POSTER",
32
+ "PATCH": "PATCH",
33
+ "PUT": "EFFACER",
34
+ "DELETE": "SUPPRIMER",
35
+ "HEAD": "HEAD",
36
+ "None": "Aucun",
37
+ "JSON": "JSON",
38
+ "Form Data": "Données du formulaire",
39
+ "Raw": "Brut"
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "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\t - Calendars.ReadWrite\n\t - offline_access\n\t - User.Read\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
+ "Create a new event in a calendar": "カレンダーに新しい予定を作成する",
5
+ "Delete an event in a calendar": "カレンダーの予定を削除する",
6
+ "List events in a calendar": "カレンダー内のイベント一覧",
7
+ "Custom API Call": "カスタムAPI通話",
8
+ "Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
9
+ "Calendar": "カレンダー",
10
+ "Title of the event": "イベントのタイトル",
11
+ "Start date time of the event": "イベントの開始日時",
12
+ "End date time of the event": "イベントの終了日時",
13
+ "Timezone": "Timezone",
14
+ "Location": "場所",
15
+ "Event ID": "イベントID",
16
+ "Filter": "フィルター",
17
+ "Method": "方法",
18
+ "Headers": "ヘッダー",
19
+ "Query Parameters": "クエリパラメータ",
20
+ "Body Type": "ボディタイプ",
21
+ "Body": "本文",
22
+ "Response is Binary ?": "応答はバイナリですか?",
23
+ "No Error on Failure": "失敗時にエラーはありません",
24
+ "Timeout (in seconds)": "タイムアウト(秒)",
25
+ "Follow redirects": "リダイレクトをフォローする",
26
+ "By default it'll be 30 min post start time": "デフォルトでは投稿開始時間は30分です",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "検索クエリフィルタ, 参照: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
29
+ "Enable for files like PDFs, images, etc.": "PDF、画像などのファイルを有効にする",
30
+ "GET": "取得",
31
+ "POST": "POST",
32
+ "PATCH": "PATCH",
33
+ "PUT": "PUT",
34
+ "DELETE": "削除",
35
+ "HEAD": "頭",
36
+ "None": "なし",
37
+ "JSON": "JSON",
38
+ "Form Data": "フォームデータ",
39
+ "Raw": "Raw"
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Agenda software van 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. Log in bij [Microsoft Azure Portal](https://portal.azure.com/).\n. Ga naar **Microsoft Enfra ID**.\n3. Onder **Beheren**, klik op **App registraties**.\n4. Klik op de **Nieuwe registratie** knop.\n5. Voer een **Naam** in voor uw app.\n6. Voor **Ondersteunde accounttypen**, kies keuze:\n - **Accounts in elke map van de organisatie (Any Microsoft Entra ID-tenant - Multitenant) en persoonlijke Microsoft accounts**\n - Of selecteer gebaseerd op uw vereiste.\n7. In **Redirect URI**, selecteer **Web** en voeg de opgegeven URL toe.\n8. Klik **Register**.\n9. Na registratie wordt u doorverwezen naar de overzichtspagina. Kopieer de **Applicatie (client) ID**.\n10. Vanuit het linkermenu ga naar **Certificaten & geheimen**.\n - Onder **Client secrets**, klik op **Nieuwe client geheim**.\n - Geef een beschrijving, verloop, en klik **Toevoegen**.\n - Kopieer de **waarde** van de client secret (dit zal niet meer worden weergegeven).\n11. Ga naar **API permissies** in het linkermenu.\n - Klik **Een machtiging toevoegen**.\n - Selecteer **Microsoft Graph** → **Toegewezen machtigingen**.\n - Voeg de volgende toepassingsgebieden toe:\n\t - kalenders. eadWrite\n\t - offline_access \n - User.Read\n - Klik **Permissies toevoegen**.\n12. Kopieer de **Client ID** en **Client Secret**.\n",
4
+ "Create a new event in a calendar": "Maak een nieuwe afspraak aan in een kalender",
5
+ "Delete an event in a calendar": "Een afspraak in een kalender verwijderen",
6
+ "List events in a calendar": "Afspraken in een kalender weergeven",
7
+ "Custom API Call": "Custom API Call",
8
+ "Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
9
+ "Calendar": "Kalender",
10
+ "Title of the event": "Titel van de gebeurtenis",
11
+ "Start date time of the event": "Startdatum van de gebeurtenis",
12
+ "End date time of the event": "Einddatum van de gebeurtenis",
13
+ "Timezone": "Timezone",
14
+ "Location": "Locatie",
15
+ "Event ID": "Gebeurtenis ID",
16
+ "Filter": "Filteren",
17
+ "Method": "Methode",
18
+ "Headers": "Kopteksten",
19
+ "Query Parameters": "Query parameters",
20
+ "Body Type": "Type lichaam",
21
+ "Body": "Lichaam",
22
+ "Response is Binary ?": "Antwoord is binair?",
23
+ "No Error on Failure": "Geen fout bij fout",
24
+ "Timeout (in seconds)": "Time-out (in seconden)",
25
+ "Follow redirects": "Volg omleidingen",
26
+ "By default it'll be 30 min post start time": "Standaard is het 30 minuten begintijd van het bericht",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Zoekfilter zoekopdracht, zie: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
29
+ "Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
30
+ "GET": "KRIJG",
31
+ "POST": "POSTE",
32
+ "PATCH": "BEKIJK",
33
+ "PUT": "PUT",
34
+ "DELETE": "VERWIJDEREN",
35
+ "HEAD": "HOOFD",
36
+ "None": "geen",
37
+ "JSON": "JSON",
38
+ "Form Data": "Formulieren gegevens",
39
+ "Raw": "Onbewerkte"
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Software de calendário de 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 **ID do aplicativo (cliente) **.\n10. No menu da 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 (isso não será exibido novamente).\n11. Vá para **permissões de API** no menu à esquerda.\n - Clique em **Adicionar uma permissão**.\n - Selecione **Microsoft Graph** → **Delegated permissions**.\n - Adicione os seguintes escopos:\n\t - Calendários. eadWrite\n\t - offline_access \n - Usuário. Leia\n - Clique em **Adicionar permissões**.\n12. Copie seu **ID do Cliente** e **Segredo do Cliente**.\n",
4
+ "Create a new event in a calendar": "Criar um novo evento em um calendário",
5
+ "Delete an event in a calendar": "Apagar um evento em um calendário",
6
+ "List events in a calendar": "Listar eventos em um calendário",
7
+ "Custom API Call": "Chamada de API personalizada",
8
+ "Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
9
+ "Calendar": "calendário",
10
+ "Title of the event": "Título do evento",
11
+ "Start date time of the event": "Data de início do evento",
12
+ "End date time of the event": "Data de término do evento",
13
+ "Timezone": "Timezone",
14
+ "Location": "Local:",
15
+ "Event ID": "Código do evento",
16
+ "Filter": "filtro",
17
+ "Method": "Método",
18
+ "Headers": "Cabeçalhos",
19
+ "Query Parameters": "Parâmetros da consulta",
20
+ "Body Type": "Tipo de Corpo",
21
+ "Body": "Conteúdo",
22
+ "Response is Binary ?": "A resposta é binária ?",
23
+ "No Error on Failure": "Nenhum erro no Failure",
24
+ "Timeout (in seconds)": "Tempo limite (em segundos)",
25
+ "Follow redirects": "Seguir redirecionamentos",
26
+ "By default it'll be 30 min post start time": "Por padrão será 30 min hora de início da postagem",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Filtro de consulta de pesquisa, consulte: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
29
+ "Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
30
+ "GET": "OBTER",
31
+ "POST": "POSTAR",
32
+ "PATCH": "COMPRAR",
33
+ "PUT": "COLOCAR",
34
+ "DELETE": "EXCLUIR",
35
+ "HEAD": "CABEÇA",
36
+ "None": "Nenhuma",
37
+ "JSON": "JSON",
38
+ "Form Data": "Dados de Formulário",
39
+ "Raw": "RAW"
40
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "Microsoft Outlook Calendar": "Microsoft Outlook Calendar",
3
+ "Calendar software by Microsoft": "Программное обеспечение для календаря Microsoft",
4
+ "Authentication for Microsoft Outlook": "Аутентификация для Microsoft Outlook",
5
+ "Create a new event in a calendar": "Создать новое событие в календаре",
6
+ "Delete an event in a calendar": "Удалить событие в календаре",
7
+ "List events in a calendar": "Список событий в календаре",
8
+ "Custom API Call": "Пользовательский вызов API",
9
+ "Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
10
+ "Calendar": "Календарь",
11
+ "Title of the event": "Название события",
12
+ "Start date time of the event": "Дата начала события",
13
+ "End date time of the event": "Дата окончания события",
14
+ "Timezone": "Timezone",
15
+ "Location": "Местоположение",
16
+ "Event ID": "ID события",
17
+ "Filter": "Фильтр",
18
+ "Method": "Метод",
19
+ "Headers": "Заголовки",
20
+ "Query Parameters": "Параметры запроса",
21
+ "Body": "Тело",
22
+ "No Error on Failure": "Нет ошибок при ошибке",
23
+ "Timeout (in seconds)": "Таймаут (в секундах)",
24
+ "By default it'll be 30 min post start time": "По умолчанию он будет равен 30 минутам времени начала записи",
25
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Фильтр поисковых запросов, см. https://learn.microsoft.com/en-us/graph/filter-query-parameter",
26
+ "Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
27
+ "GET": "ПОЛУЧИТЬ",
28
+ "POST": "ПОСТ",
29
+ "PATCH": "ПАТЧ",
30
+ "PUT": "ПОКУПИТЬ",
31
+ "DELETE": "УДАЛИТЬ",
32
+ "HEAD": "HEAD"
33
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Calendar 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\t - Calendars.ReadWrite\n\t - offline_access\n\t - User.Read\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
+ "Create a new event in a calendar": "Create a new event in a calendar",
5
+ "Delete an event in a calendar": "Delete an event in a calendar",
6
+ "List events in a calendar": "List events in a calendar",
7
+ "Custom API Call": "Custom API Call",
8
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
9
+ "Calendar": "Calendar",
10
+ "Title of the event": "Title of the event",
11
+ "Start date time of the event": "Start date time of the event",
12
+ "End date time of the event": "End date time of the event",
13
+ "Timezone": "Timezone",
14
+ "Location": "Location",
15
+ "Event ID": "Event ID",
16
+ "Filter": "Filter",
17
+ "Method": "Method",
18
+ "Headers": "Headers",
19
+ "Query Parameters": "Query Parameters",
20
+ "Body Type": "Body Type",
21
+ "Body": "Body",
22
+ "Response is Binary ?": "Response is Binary ?",
23
+ "No Error on Failure": "No Error on Failure",
24
+ "Timeout (in seconds)": "Timeout (in seconds)",
25
+ "Follow redirects": "Follow redirects",
26
+ "By default it'll be 30 min post start time": "By default it'll be 30 min post start time",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
29
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
30
+ "GET": "GET",
31
+ "POST": "POST",
32
+ "PATCH": "PATCH",
33
+ "PUT": "PUT",
34
+ "DELETE": "DELETE",
35
+ "HEAD": "HEAD",
36
+ "None": "None",
37
+ "JSON": "JSON",
38
+ "Form Data": "Form Data",
39
+ "Raw": "Raw"
40
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "Microsoft Outlook Calendar": "Microsoft Outlook Calendar",
3
+ "Calendar software by Microsoft": "Calendar software by Microsoft",
4
+ "Authentication for Microsoft Outlook": "Authentication for Microsoft Outlook",
5
+ "Create a new event in a calendar": "Create a new event in a calendar",
6
+ "Delete an event in a calendar": "Delete an event in a calendar",
7
+ "List events in a calendar": "List events in a calendar",
8
+ "Custom API Call": "Custom API Call",
9
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
10
+ "Calendar": "Calendar",
11
+ "Title of the event": "Title of the event",
12
+ "Start date time of the event": "Start date time of the event",
13
+ "End date time of the event": "End date time of the event",
14
+ "Timezone": "Timezone",
15
+ "Location": "Location",
16
+ "Event ID": "Event ID",
17
+ "Filter": "Filter",
18
+ "Method": "Method",
19
+ "Headers": "Headers",
20
+ "Query Parameters": "Query Parameters",
21
+ "Body": "Body",
22
+ "No Error on Failure": "No Error on Failure",
23
+ "Timeout (in seconds)": "Timeout (in seconds)",
24
+ "By default it'll be 30 min post start time": "By default it'll be 30 min post start time",
25
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
26
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
27
+ "GET": "GET",
28
+ "POST": "POST",
29
+ "PATCH": "PATCH",
30
+ "PUT": "PUT",
31
+ "DELETE": "DELETE",
32
+ "HEAD": "HEAD"
33
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "Calendar software by Microsoft": "Calendar 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\t - Calendars.ReadWrite\n\t - offline_access\n\t - User.Read\n - Click **Add permissions**.\n12. Copy your **Client ID** and **Client Secret**.\n",
4
+ "Create a new event in a calendar": "Create a new event in a calendar",
5
+ "Delete an event in a calendar": "Delete an event in a calendar",
6
+ "List events in a calendar": "List events in a calendar",
7
+ "Custom API Call": "自定义 API 呼叫",
8
+ "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
9
+ "Calendar": "Calendar",
10
+ "Title of the event": "Title of the event",
11
+ "Start date time of the event": "Start date time of the event",
12
+ "End date time of the event": "End date time of the event",
13
+ "Timezone": "Timezone",
14
+ "Location": "Location",
15
+ "Event ID": "Event ID",
16
+ "Filter": "Filter",
17
+ "Method": "方法",
18
+ "Headers": "信头",
19
+ "Query Parameters": "查询参数",
20
+ "Body Type": "Body Type",
21
+ "Body": "正文内容",
22
+ "Response is Binary ?": "Response is Binary ?",
23
+ "No Error on Failure": "失败时没有错误",
24
+ "Timeout (in seconds)": "超时(秒)",
25
+ "Follow redirects": "Follow redirects",
26
+ "By default it'll be 30 min post start time": "By default it'll be 30 min post start time",
27
+ "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter": "Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter",
28
+ "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
29
+ "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
30
+ "GET": "获取",
31
+ "POST": "帖子",
32
+ "PATCH": "PATCH",
33
+ "PUT": "弹出",
34
+ "DELETE": "删除",
35
+ "HEAD": "黑色",
36
+ "None": "无",
37
+ "JSON": "JSON",
38
+ "Form Data": "表单数据",
39
+ "Raw": "原始文件"
40
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const outlookCalendarAuth: import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>;
2
+ export declare const microsoftOutlookCalendar: import("@scopieflows/pieces-framework").Piece<import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
package/src/index.js ADDED
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.microsoftOutlookCalendar = exports.outlookCalendarAuth = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const create_event_1 = require("./lib/actions/create-event");
7
+ const list_events_1 = require("./lib/actions/list-events");
8
+ const pieces_common_1 = require("@scopieflows/pieces-common");
9
+ const common_1 = require("./lib/common/common");
10
+ const delete_event_1 = require("./lib/actions/delete-event");
11
+ const shared_1 = require("@scopieflows/shared");
12
+ const authDesc = `
13
+ 1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).
14
+ 2. From the left sidebar, go to **Microsoft Enfra ID**.
15
+ 3. Under **Manage**, click on **App registrations**.
16
+ 4. Click the **New registration** button.
17
+ 5. Enter a **Name** for your app.
18
+ 6. For **Supported account types**, choose:
19
+ - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**
20
+ - Or select based on your requirement.
21
+ 7. In **Redirect URI**, select **Web** and add the given URL.
22
+ 8. Click **Register**.
23
+ 9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.
24
+ 10. From the left menu, go to **Certificates & secrets**.
25
+ - Under **Client secrets**, click **New client secret**.
26
+ - Provide a description, set an expiry, and click **Add**.
27
+ - Copy the **Value** of the client secret (this will not be shown again).
28
+ 11. Go to **API permissions** from the left menu.
29
+ - Click **Add a permission**.
30
+ - Select **Microsoft Graph** → **Delegated permissions**.
31
+ - Add the following scopes:
32
+ - Calendars.ReadWrite
33
+ - offline_access
34
+ - User.Read
35
+ - Click **Add permissions**.
36
+ 12. Copy your **Client ID** and **Client Secret**.
37
+ `;
38
+ exports.outlookCalendarAuth = pieces_framework_1.PieceAuth.OAuth2({
39
+ description: authDesc,
40
+ authUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
41
+ tokenUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
42
+ required: true,
43
+ scope: ['User.Read', 'Calendars.ReadWrite', 'offline_access'],
44
+ prompt: 'omit'
45
+ });
46
+ exports.microsoftOutlookCalendar = (0, pieces_framework_1.createPiece)({
47
+ displayName: "Microsoft Outlook Calendar",
48
+ description: 'Calendar software by Microsoft',
49
+ auth: exports.outlookCalendarAuth,
50
+ minimumSupportedRelease: '0.30.0',
51
+ logoUrl: "/pieces/microsoft-outlook.png",
52
+ categories: [shared_1.PieceCategory.PRODUCTIVITY],
53
+ authors: ['antonyvigouret'],
54
+ actions: [
55
+ create_event_1.createEventAction,
56
+ delete_event_1.deleteEventAction,
57
+ list_events_1.listEventsAction,
58
+ (0, pieces_common_1.createCustomApiCallAction)({
59
+ auth: exports.outlookCalendarAuth,
60
+ baseUrl() {
61
+ return common_1.outlookCalendarCommon.baseUrl;
62
+ },
63
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
64
+ return {
65
+ Authorization: `Bearer ${auth.access_token}`,
66
+ };
67
+ }),
68
+ }),
69
+ ],
70
+ triggers: [],
71
+ });
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/microsoft-outlook-calendar/src/index.ts"],"names":[],"mappings":";;;;AAAA,oEAIuC;AACvC,6DAA+D;AAC/D,2DAA6D;AAC7D,8DAAuE;AACvE,gDAA4D;AAC5D,6DAA+D;AAC/D,gDAAoD;AAEpD,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBhB,CAAA;AAEY,QAAA,mBAAmB,GAAG,4BAAS,CAAC,MAAM,CAAC;IAClD,WAAW,EAAC,QAAQ;IACpB,OAAO,EAAE,gEAAgE;IACzE,QAAQ,EAAE,4DAA4D;IACtE,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,gBAAgB,CAAC;IAC7D,MAAM,EAAE,MAAM;CACf,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,IAAA,8BAAW,EAAC;IAClD,WAAW,EAAE,4BAA4B;IACzC,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,2BAAmB;IACzB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,+BAA+B;IACxC,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,OAAO,EAAE;QACP,gCAAiB;QACjB,gCAAiB;QACjB,8BAAgB;QAChB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,2BAAmB;YACzB,OAAO;gBACL,OAAO,8BAAqB,CAAC,OAAO,CAAC;YACvC,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createEventAction: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {
2
+ calendarId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
3
+ title: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
4
+ start: import("@scopieflows/pieces-framework").DateTimeProperty<true>;
5
+ end: import("@scopieflows/pieces-framework").DateTimeProperty<false>;
6
+ timezone: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
7
+ location: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
8
+ }>;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createEventAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const __1 = require("../..");
8
+ const common_1 = require("../common/common");
9
+ const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
10
+ exports.createEventAction = (0, pieces_framework_1.createAction)({
11
+ auth: __1.outlookCalendarAuth,
12
+ name: 'create_event',
13
+ description: 'Create a new event in a calendar',
14
+ displayName: 'Create a new event in a calendar',
15
+ props: {
16
+ calendarId: common_1.outlookCalendarCommon.calendarDropdown,
17
+ title: pieces_framework_1.Property.ShortText({
18
+ displayName: 'Title of the event',
19
+ required: true,
20
+ }),
21
+ start: pieces_framework_1.Property.DateTime({
22
+ displayName: 'Start date time of the event',
23
+ required: true,
24
+ }),
25
+ end: pieces_framework_1.Property.DateTime({
26
+ displayName: 'End date time of the event',
27
+ description: "By default it'll be 30 min post start time",
28
+ required: false,
29
+ }),
30
+ timezone: common_1.outlookCalendarCommon.timezoneDropdown,
31
+ location: pieces_framework_1.Property.ShortText({
32
+ displayName: 'Location',
33
+ required: false,
34
+ }),
35
+ },
36
+ run(_a) {
37
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue, auth }) {
38
+ const startDateTime = (0, dayjs_1.default)(propsValue.start).format('YYYY-MM-DDTHH:mm:ss');
39
+ const endTime = propsValue.end
40
+ ? propsValue.end
41
+ : (0, dayjs_1.default)(startDateTime).add(30, 'm');
42
+ const endDateTime = (0, dayjs_1.default)(endTime).format('YYYY-MM-DDTHH:mm:ss');
43
+ const request = {
44
+ method: pieces_common_1.HttpMethod.POST,
45
+ url: `${common_1.outlookCalendarCommon.baseUrl}/calendars/${propsValue.calendarId}/events`,
46
+ body: {
47
+ subject: propsValue.title,
48
+ body: {},
49
+ start: {
50
+ dateTime: startDateTime,
51
+ timeZone: propsValue.timezone,
52
+ },
53
+ end: {
54
+ dateTime: endDateTime,
55
+ timeZone: propsValue.timezone,
56
+ },
57
+ location: {
58
+ displayName: propsValue.location,
59
+ },
60
+ },
61
+ authentication: {
62
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
63
+ token: auth['access_token'],
64
+ },
65
+ };
66
+ const response = yield pieces_common_1.httpClient.sendRequest(request);
67
+ return response.body;
68
+ });
69
+ },
70
+ });
71
+ //# sourceMappingURL=create-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-event.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-outlook-calendar/src/lib/actions/create-event.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,8DAKoC;AACpC,6BAA4C;AAC5C,6CAAyD;AACzD,0DAA0B;AAEb,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,uBAAmB;IACzB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EAAE,kCAAkC;IAC/C,KAAK,EAAE;QACL,UAAU,EAAE,8BAAqB,CAAC,gBAAgB;QAClD,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACvB,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACrB,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,8BAAqB,CAAC,gBAAgB;QAChD,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,UAAU,EAAE,IAAI,EAAE;YAC5B,MAAM,aAAa,GAAG,IAAA,eAAK,EAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;YAC5E,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG;gBAC5B,CAAC,CAAC,UAAU,CAAC,GAAG;gBAChB,CAAC,CAAC,IAAA,eAAK,EAAC,aAAa,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;YACtC,MAAM,WAAW,GAAG,IAAA,eAAK,EAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;YAEjE,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,8BAAqB,CAAC,OAAO,cAAc,UAAU,CAAC,UAAU,SAAS;gBACjF,IAAI,EAAE;oBACJ,OAAO,EAAE,UAAU,CAAC,KAAK;oBACzB,IAAI,EAAE,EAAE;oBACR,KAAK,EAAE;wBACL,QAAQ,EAAE,aAAa;wBACvB,QAAQ,EAAE,UAAU,CAAC,QAAQ;qBAC9B;oBACD,GAAG,EAAE;wBACH,QAAQ,EAAE,WAAW;wBACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;qBAC9B;oBACD,QAAQ,EAAE;wBACR,WAAW,EAAE,UAAU,CAAC,QAAQ;qBACjC;iBACF;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC;iBAC5B;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEvD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const deleteEventAction: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {
2
+ calendarId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
3
+ eventId: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
4
+ }>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteEventAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const __1 = require("../..");
8
+ const common_1 = require("../common/common");
9
+ exports.deleteEventAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.outlookCalendarAuth,
11
+ name: 'delete_event',
12
+ description: 'Delete an event in a calendar',
13
+ displayName: 'Delete an event in a calendar',
14
+ props: {
15
+ calendarId: common_1.outlookCalendarCommon.calendarDropdown,
16
+ eventId: pieces_framework_1.Property.ShortText({
17
+ displayName: 'Event ID',
18
+ required: true,
19
+ }),
20
+ },
21
+ run(_a) {
22
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue, auth }) {
23
+ const request = {
24
+ method: pieces_common_1.HttpMethod.DELETE,
25
+ url: `${common_1.outlookCalendarCommon.baseUrl}/calendars/${propsValue.calendarId}/events/${propsValue.eventId}`,
26
+ body: {},
27
+ authentication: {
28
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
29
+ token: auth['access_token'],
30
+ },
31
+ };
32
+ const response = yield pieces_common_1.httpClient.sendRequest(request);
33
+ return response.body;
34
+ });
35
+ },
36
+ });
37
+ //# sourceMappingURL=delete-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-event.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-outlook-calendar/src/lib/actions/delete-event.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,8DAKoC;AACpC,6BAA4C;AAC5C,6CAAyD;AAE5C,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,uBAAmB;IACzB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE,+BAA+B;IAC5C,KAAK,EAAE;QACL,UAAU,EAAE,8BAAqB,CAAC,gBAAgB;QAClD,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,UAAU,EAAE,IAAI,EAAE;YAC5B,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,GAAG,EAAE,GAAG,8BAAqB,CAAC,OAAO,cAAc,UAAU,CAAC,UAAU,WAAW,UAAU,CAAC,OAAO,EAAE;gBACvG,IAAI,EAAE,EAAE;gBACR,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC;iBAC5B;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEvD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const listEventsAction: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {
2
+ calendarId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
3
+ filter: import("@scopieflows/pieces-framework").LongTextProperty<false>;
4
+ }>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listEventsAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const __1 = require("../..");
8
+ const common_1 = require("../common/common");
9
+ exports.listEventsAction = (0, pieces_framework_1.createAction)({
10
+ auth: __1.outlookCalendarAuth,
11
+ name: 'list_events',
12
+ description: 'List events in a calendar',
13
+ displayName: 'List events in a calendar',
14
+ props: {
15
+ calendarId: common_1.outlookCalendarCommon.calendarDropdown,
16
+ filter: pieces_framework_1.Property.LongText({
17
+ displayName: 'Filter',
18
+ required: false,
19
+ description: 'Search query filter, see: https://learn.microsoft.com/en-us/graph/filter-query-parameter',
20
+ }),
21
+ },
22
+ run(_a) {
23
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue, auth }) {
24
+ const queryParams = {};
25
+ if (propsValue.filter)
26
+ queryParams['$filter'] = propsValue.filter;
27
+ const request = {
28
+ method: pieces_common_1.HttpMethod.GET,
29
+ url: `${common_1.outlookCalendarCommon.baseUrl}/calendars/${propsValue.calendarId}/events`,
30
+ queryParams,
31
+ body: {},
32
+ authentication: {
33
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
34
+ token: auth['access_token'],
35
+ },
36
+ };
37
+ const response = yield pieces_common_1.httpClient.sendRequest(request);
38
+ return response.body;
39
+ });
40
+ },
41
+ });
42
+ //# sourceMappingURL=list-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-events.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-outlook-calendar/src/lib/actions/list-events.ts"],"names":[],"mappings":";;;;AAAA,oEAAuE;AACvE,8DAKoC;AACpC,6BAA4C;AAC5C,6CAAyD;AAE5C,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,uBAAmB;IACzB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACL,UAAU,EAAE,8BAAqB,CAAC,gBAAgB;QAClD,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,KAAK;YACf,WAAW,EACT,0FAA0F;SAC7F,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,UAAU,EAAE,IAAI,EAAE;YAC5B,MAAM,WAAW,GAA2B,EAAE,CAAC;YAE/C,IAAI,UAAU,CAAC,MAAM;gBAAE,WAAW,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC;YAElE,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,8BAAqB,CAAC,OAAO,cAAc,UAAU,CAAC,UAAU,SAAS;gBACjF,WAAW;gBACX,IAAI,EAAE,EAAE;gBACR,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC;iBAC5B;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEvD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const outlookCalendarCommon: {
2
+ baseUrl: string;
3
+ calendarDropdown: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
4
+ timezoneDropdown: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>>;
5
+ };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.outlookCalendarCommon = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const __1 = require("../..");
8
+ exports.outlookCalendarCommon = {
9
+ baseUrl: 'https://graph.microsoft.com/v1.0/me',
10
+ calendarDropdown: pieces_framework_1.Property.Dropdown({
11
+ displayName: 'Calendar',
12
+ required: true,
13
+ auth: __1.outlookCalendarAuth,
14
+ options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
15
+ if (!auth) {
16
+ return {
17
+ disabled: true,
18
+ options: [],
19
+ placeholder: 'Please authenticate first',
20
+ };
21
+ }
22
+ const authProp = auth;
23
+ const calendars = (yield pieces_common_1.httpClient.sendRequest({
24
+ method: pieces_common_1.HttpMethod.GET,
25
+ url: `${exports.outlookCalendarCommon.baseUrl}/calendars`,
26
+ authentication: {
27
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
28
+ token: authProp['access_token'],
29
+ },
30
+ })).body.value;
31
+ return {
32
+ disabled: false,
33
+ options: calendars.map((calendar) => {
34
+ return {
35
+ label: calendar.name,
36
+ value: calendar.id,
37
+ };
38
+ }),
39
+ };
40
+ }),
41
+ refreshers: [],
42
+ }),
43
+ timezoneDropdown: pieces_framework_1.Property.Dropdown({
44
+ displayName: 'Timezone',
45
+ required: true,
46
+ auth: __1.outlookCalendarAuth,
47
+ options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
48
+ if (!auth) {
49
+ return {
50
+ disabled: true,
51
+ options: [],
52
+ placeholder: 'Please authenticate first',
53
+ };
54
+ }
55
+ const authProp = auth;
56
+ const timezones = (yield pieces_common_1.httpClient.sendRequest({
57
+ method: pieces_common_1.HttpMethod.GET,
58
+ url: `${exports.outlookCalendarCommon.baseUrl}/outlook/supportedTimeZones`,
59
+ authentication: {
60
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
61
+ token: authProp['access_token'],
62
+ },
63
+ })).body.value;
64
+ return {
65
+ disabled: false,
66
+ options: timezones.map((timezone) => {
67
+ return {
68
+ label: timezone.displayName,
69
+ value: timezone.alias,
70
+ };
71
+ }),
72
+ };
73
+ }),
74
+ refreshers: [],
75
+ }),
76
+ };
77
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-outlook-calendar/src/lib/common/common.ts"],"names":[],"mappings":";;;;AAAA,oEAA8E;AAC9E,8DAIoC;AACpC,6BAA4C;AAE/B,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,qCAAqC;IAC9C,gBAAgB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QAClC,WAAW,EAAE,UAAU;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,uBAAmB;QACzB,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;YACtB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO;oBACL,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,2BAA2B;iBACzC,CAAC;YACJ,CAAC;YACD,MAAM,QAAQ,GAAwB,IAA2B,CAAC;YAClE,MAAM,SAAS,GAAmC,CAChD,MAAM,0BAAU,CAAC,WAAW,CAC1B;gBACE,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,6BAAqB,CAAC,OAAO,YAAY;gBACjD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;iBAChC;aACF,CACF,CACF,CAAC,IAAI,CAAC,KAAK,CAAC;YACb,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,QAAsC,EAAE,EAAE;oBAChE,OAAO;wBACL,KAAK,EAAE,QAAQ,CAAC,IAAI;wBACpB,KAAK,EAAE,QAAQ,CAAC,EAAE;qBACnB,CAAC;gBACJ,CAAC,CAAC;aACH,CAAC;QACJ,CAAC,CAAA;QACD,UAAU,EAAE,EAAE;KACf,CAAC;IACF,gBAAgB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QAClC,WAAW,EAAE,UAAU;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,uBAAmB;QACzB,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;YACtB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO;oBACL,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,2BAA2B;iBACzC,CAAC;YACJ,CAAC;YACD,MAAM,QAAQ,GAAwB,IAA2B,CAAC;YAClE,MAAM,SAAS,GAA6C,CAC1D,MAAM,0BAAU,CAAC,WAAW,CAEzB;gBACD,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,6BAAqB,CAAC,OAAO,6BAA6B;gBAClE,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;iBAChC;aACF,CAAC,CACH,CAAC,IAAI,CAAC,KAAK,CAAC;YACb,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,SAAS,CAAC,GAAG,CACpB,CAAC,QAAgD,EAAE,EAAE;oBACnD,OAAO;wBACL,KAAK,EAAE,QAAQ,CAAC,WAAW;wBAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK;qBACtB,CAAC;gBACJ,CAAC,CACF;aACF,CAAC;QACJ,CAAC,CAAA;QACD,UAAU,EAAE,EAAE;KACf,CAAC;CACH,CAAC"}