@activepieces/piece-microsoft-sharepoint 0.0.14 → 0.0.15

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-sharepoint",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "dependencies": {
5
5
  "@microsoft/microsoft-graph-client": "3.0.7",
6
6
  "@microsoft/microsoft-graph-types": "2.40.0",
@@ -14,7 +14,7 @@
14
14
  "semver": "7.6.0",
15
15
  "zod": "3.25.76",
16
16
  "@activepieces/pieces-common": "0.7.0",
17
- "@activepieces/pieces-framework": "0.18.4",
17
+ "@activepieces/pieces-framework": "0.18.5",
18
18
  "@activepieces/shared": "0.20.0",
19
19
  "tslib": "2.8.1"
20
20
  },
package/src/index.js CHANGED
@@ -12,8 +12,37 @@ const delete_list_item_1 = require("./lib/actions/delete-list-item");
12
12
  const search_list_item_1 = require("./lib/actions/search-list-item");
13
13
  const upload_file_1 = require("./lib/actions/upload-file");
14
14
  const pieces_common_1 = require("@activepieces/pieces-common");
15
+ const authDesc = `
16
+ 1. Sign in to [Microsoft Azure Portal](https://portal.azure.com/).
17
+ 2. From the left sidebar, go to **Microsoft Enfra ID**.
18
+ 3. Under **Manage**, click on **App registrations**.
19
+ 4. Click the **New registration** button.
20
+ 5. Enter a **Name** for your app.
21
+ 6. For **Supported account types**, choose:
22
+ - **Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts**
23
+ - Or select based on your requirement.
24
+ 7. In **Redirect URI**, select **Web** and add the given URL.
25
+ 8. Click **Register**.
26
+ 9. After registration, you’ll be redirected to the app’s overview page. Copy the **Application (client) ID**.
27
+ 10. From the left menu, go to **Certificates & secrets**.
28
+ - Under **Client secrets**, click **New client secret**.
29
+ - Provide a description, set an expiry, and click **Add**.
30
+ - Copy the **Value** of the client secret (this will not be shown again).
31
+ 11. Go to **API permissions** from the left menu.
32
+ - Click **Add a permission**.
33
+ - Select **Power BI Service** → **Delegated permissions**.
34
+ - Add the following scopes:
35
+ - Sites.Manage.All
36
+ - Files.ReadWrite
37
+ - openid
38
+ - email
39
+ - profile
40
+ - offline_access
41
+ - Click **Add permissions**.
42
+ 12. Copy your **Client ID** and **Client Secret**.
43
+ `;
15
44
  exports.microsoftSharePointAuth = pieces_framework_1.PieceAuth.OAuth2({
16
- description: 'Authentication for Microsoft SharePoint',
45
+ description: authDesc,
17
46
  authUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
18
47
  tokenUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
19
48
  required: true,
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/microsoft-sharepoint/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,iDAAqD;AACrD,+DAAiE;AACjE,2DAA6D;AAC7D,qEAAsE;AACtE,qEAAsE;AACtE,qEAAsE;AACtE,qEAAoE;AACpE,2DAAuD;AACvD,+DAAwE;AAE3D,QAAA,uBAAuB,GAAG,4BAAS,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,yCAAyC;IACtD,OAAO,EAAE,gEAAgE;IACzE,QAAQ,EAAE,4DAA4D;IACtE,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,QAAQ;QACR,OAAO;QACP,SAAS;QACT,gBAAgB;QAChB,kBAAkB;QAClB,iBAAiB;KAClB;IACD,MAAM,EAAE,MAAM;CACf,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,IAAA,8BAAW,EAAC;IAC7C,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,+BAAuB;IAC7B,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8DAA8D;IACvE,UAAU,EAAE,CAAC,sBAAa,CAAC,iBAAiB,CAAC;IAC7C,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,OAAO,EAAE;QACP,kCAAkB;QAClB,8BAAgB;QAChB,uCAAoB;QACpB,uCAAoB;QACpB,uCAAoB;QACpB,qCAAkB;QAClB,wBAAU;QACV,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,+BAAuB;YAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,wCAAwC;YACvD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/microsoft-sharepoint/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,iDAAqD;AACrD,+DAAiE;AACjE,2DAA6D;AAC7D,qEAAsE;AACtE,qEAAsE;AACtE,qEAAsE;AACtE,qEAAoE;AACpE,2DAAuD;AACvD,+DAAwE;AAExE,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BhB,CAAA;AAEY,QAAA,uBAAuB,GAAG,4BAAS,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,gEAAgE;IACzE,QAAQ,EAAE,4DAA4D;IACtE,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,QAAQ;QACR,OAAO;QACP,SAAS;QACT,gBAAgB;QAChB,kBAAkB;QAClB,iBAAiB;KAClB;IACD,MAAM,EAAE,MAAM;CACf,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,IAAA,8BAAW,EAAC;IAC7C,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,+BAAuB;IAC7B,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8DAA8D;IACvE,UAAU,EAAE,CAAC,sBAAa,CAAC,iBAAiB,CAAC;IAC7C,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,OAAO,EAAE;QACP,kCAAkB;QAClB,8BAAgB;QAChB,uCAAoB;QACpB,uCAAoB;QACpB,uCAAoB;QACpB,qCAAkB;QAClB,wBAAU;QACV,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,+BAAuB;YAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,wCAAwC;YACvD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}