@activepieces/piece-microsoft-outlook 0.1.8 → 0.1.9

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-microsoft-outlook",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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.4",
18
+ "@activepieces/pieces-framework": "0.18.5",
19
19
  "@activepieces/shared": "0.20.0",
20
20
  "tslib": "2.8.1"
21
21
  },
@@ -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;AAE9C,QAAA,oBAAoB,GAAG,4BAAS,CAAC,MAAM,CAAC;IACpD,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"}
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"}