@activepieces/piece-microsoft-outlook 0.1.8 → 0.1.10
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 +2 -2
- package/src/i18n/fr.json +14 -14
- package/src/lib/common/auth.js +29 -0
- package/src/lib/common/auth.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-microsoft-outlook",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@microsoft/microsoft-graph-client": "3.0.7",
|
|
6
6
|
"@microsoft/microsoft-graph-types": "2.40.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"semver": "7.6.0",
|
|
16
16
|
"zod": "3.25.76",
|
|
17
17
|
"@activepieces/pieces-common": "0.7.0",
|
|
18
|
-
"@activepieces/pieces-framework": "0.18.
|
|
18
|
+
"@activepieces/pieces-framework": "0.18.5",
|
|
19
19
|
"@activepieces/shared": "0.20.0",
|
|
20
20
|
"tslib": "2.8.1"
|
|
21
21
|
},
|
package/src/i18n/fr.json
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
"Custom API Call": "Appel API personnalisé",
|
|
7
7
|
"Sends an email using Microsoft Outlook.": "Envoie un e-mail en utilisant Microsoft Outlook.",
|
|
8
8
|
"Download attachments from a specific email message.": "Télécharger les pièces jointes à partir d'un courriel spécifique.",
|
|
9
|
-
"Reply to an outlook email.": "Répondre à un e-mail
|
|
10
|
-
"Make a custom API call to a specific endpoint": "
|
|
11
|
-
"To Email(s)": "E-mail(
|
|
12
|
-
"CC Email(s)": "
|
|
9
|
+
"Reply to an outlook email.": "Répondre à un e-mail Outlook.",
|
|
10
|
+
"Make a custom API call to a specific endpoint": "Passer un appel API personnalisé à un endpoint spécifique",
|
|
11
|
+
"To Email(s)": "E-mail(S) À",
|
|
12
|
+
"CC Email(s)": "Email(s) CC",
|
|
13
13
|
"BCC Email(s)": "E-mail(s) BCC",
|
|
14
14
|
"Subject": "Sujet",
|
|
15
15
|
"Body Format": "Format du corps",
|
|
16
16
|
"Body": "Corps",
|
|
17
|
-
"Attachments": "
|
|
17
|
+
"Attachments": "Pièces jointes",
|
|
18
18
|
"Message ID": "ID du message",
|
|
19
19
|
"Reply Body": "Corps de la réponse",
|
|
20
20
|
"CC Recipients": "Destinataires CC",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
28
28
|
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
|
29
29
|
"The ID of the email message containing the attachment.": "L'ID du message contenant la pièce jointe.",
|
|
30
|
-
"If enabled, creates draft without sending.": "Si activé, crée un brouillon sans
|
|
30
|
+
"If enabled, creates draft without sending.": "Si activé, crée un brouillon sans l'envoyer.",
|
|
31
31
|
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
32
|
-
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les
|
|
32
|
+
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDF, les images, etc.",
|
|
33
33
|
"HTML": "HTML",
|
|
34
|
-
"Text": "Texte
|
|
35
|
-
"GET": "
|
|
36
|
-
"POST": "
|
|
34
|
+
"Text": "Texte",
|
|
35
|
+
"GET": "GET",
|
|
36
|
+
"POST": "POST",
|
|
37
37
|
"PATCH": "PATCH",
|
|
38
|
-
"PUT": "
|
|
39
|
-
"DELETE": "
|
|
40
|
-
"HEAD": "
|
|
38
|
+
"PUT": "PUT",
|
|
39
|
+
"DELETE": "DELETE",
|
|
40
|
+
"HEAD": "HEAD",
|
|
41
41
|
"New Email": "Nouvel e-mail",
|
|
42
|
-
"Triggers when a new email is received in the inbox.": "
|
|
42
|
+
"Triggers when a new email is received in the inbox.": "Se déclenche lorsqu'un nouvel e-mail est reçu dans la boîte de réception."
|
|
43
43
|
}
|
package/src/lib/common/auth.js
CHANGED
|
@@ -4,7 +4,36 @@ exports.microsoftOutlookAuth = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
|
|
7
|
+
const authDesc = `
|
|
8
|
+
1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).
|
|
9
|
+
2. From the left sidebar, go to **Microsoft Enfra ID**.
|
|
10
|
+
3. Under **Manage**, click on **App registrations**.
|
|
11
|
+
4. Click the **New registration** button.
|
|
12
|
+
5. Enter a **Name** for your app.
|
|
13
|
+
6. For **Supported account types**, choose:
|
|
14
|
+
- **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**
|
|
15
|
+
- Or select based on your requirement.
|
|
16
|
+
7. In **Redirect URI**, select **Web** and add the given URL.
|
|
17
|
+
8. Click **Register**.
|
|
18
|
+
9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.
|
|
19
|
+
10. From the left menu, go to **Certificates & secrets**.
|
|
20
|
+
- Under **Client secrets**, click **New client secret**.
|
|
21
|
+
- Provide a description, set an expiry, and click **Add**.
|
|
22
|
+
- Copy the **Value** of the client secret (this will not be shown again).
|
|
23
|
+
11. Go to **API permissions** from the left menu.
|
|
24
|
+
- Click **Add a permission**.
|
|
25
|
+
- Select **Microsoft Graph** → **Delegated permissions**.
|
|
26
|
+
- Add the following scopes:
|
|
27
|
+
- Mail.ReadWrite
|
|
28
|
+
- Mail.Send
|
|
29
|
+
- Calendars.Read
|
|
30
|
+
- offline_access
|
|
31
|
+
- User.Read
|
|
32
|
+
- Click **Add permissions**.
|
|
33
|
+
12. Copy your **Client ID** and **Client Secret**.
|
|
34
|
+
`;
|
|
7
35
|
exports.microsoftOutlookAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
36
|
+
description: authDesc,
|
|
8
37
|
authUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
|
|
9
38
|
tokenUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
|
|
10
39
|
required: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-outlook/src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,8EAA2D;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/microsoft-outlook/src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,8EAA2D;AAE3D,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhB,CAAA;AAEY,QAAA,oBAAoB,GAAG,4BAAS,CAAC,MAAM,CAAC;IACpD,WAAW,EAAC,QAAQ;IACpB,OAAO,EAAE,gEAAgE;IACzE,QAAQ,EAAE,4DAA4D;IACtE,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,CAAC,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,CAAC;IACvF,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACxB,IAAI,CAAC;YACJ,MAAM,SAAS,GAAG,IAA2B,CAAC;YAC9C,MAAM,MAAM,GAAG,+BAAM,CAAC,kBAAkB,CAAC;gBACxC,YAAY,EAAE;oBACb,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC;iBAC7D;aACD,CAAC,CAAC;YACH,MAAM,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC;YAC9B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACxB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;QACxD,CAAC;IACF,CAAC,CAAA;CACD,CAAC,CAAC"}
|