@activepieces/piece-microsoft-sharepoint 0.3.4 → 0.3.5

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.
Files changed (109) hide show
  1. package/package.json +7 -13
  2. package/src/index.js +26 -81
  3. package/src/index.d.ts +0 -2
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/copy-item-within-site.d.ts +0 -9
  7. package/src/lib/actions/copy-item-within-site.d.ts.map +0 -1
  8. package/src/lib/actions/copy-item-within-site.js +0 -166
  9. package/src/lib/actions/copy-item-within-site.js.map +0 -1
  10. package/src/lib/actions/copy-item.d.ts +0 -11
  11. package/src/lib/actions/copy-item.d.ts.map +0 -1
  12. package/src/lib/actions/copy-item.js +0 -126
  13. package/src/lib/actions/copy-item.js.map +0 -1
  14. package/src/lib/actions/create-folder.d.ts +0 -7
  15. package/src/lib/actions/create-folder.d.ts.map +0 -1
  16. package/src/lib/actions/create-folder.js +0 -53
  17. package/src/lib/actions/create-folder.js.map +0 -1
  18. package/src/lib/actions/create-list-item.d.ts +0 -6
  19. package/src/lib/actions/create-list-item.d.ts.map +0 -1
  20. package/src/lib/actions/create-list-item.js +0 -52
  21. package/src/lib/actions/create-list-item.js.map +0 -1
  22. package/src/lib/actions/create-list.d.ts +0 -6
  23. package/src/lib/actions/create-list.d.ts.map +0 -1
  24. package/src/lib/actions/create-list.js +0 -50
  25. package/src/lib/actions/create-list.js.map +0 -1
  26. package/src/lib/actions/delete-list-item.d.ts +0 -6
  27. package/src/lib/actions/delete-list-item.d.ts.map +0 -1
  28. package/src/lib/actions/delete-list-item.js +0 -42
  29. package/src/lib/actions/delete-list-item.js.map +0 -1
  30. package/src/lib/actions/find-file.d.ts +0 -9
  31. package/src/lib/actions/find-file.d.ts.map +0 -1
  32. package/src/lib/actions/find-file.js +0 -145
  33. package/src/lib/actions/find-file.js.map +0 -1
  34. package/src/lib/actions/find-site.d.ts +0 -4
  35. package/src/lib/actions/find-site.d.ts.map +0 -1
  36. package/src/lib/actions/find-site.js +0 -61
  37. package/src/lib/actions/find-site.js.map +0 -1
  38. package/src/lib/actions/get-folder-contents.d.ts +0 -10
  39. package/src/lib/actions/get-folder-contents.d.ts.map +0 -1
  40. package/src/lib/actions/get-folder-contents.js +0 -120
  41. package/src/lib/actions/get-folder-contents.js.map +0 -1
  42. package/src/lib/actions/get-site-information.d.ts +0 -5
  43. package/src/lib/actions/get-site-information.d.ts.map +0 -1
  44. package/src/lib/actions/get-site-information.js +0 -47
  45. package/src/lib/actions/get-site-information.js.map +0 -1
  46. package/src/lib/actions/move-file.d.ts +0 -8
  47. package/src/lib/actions/move-file.d.ts.map +0 -1
  48. package/src/lib/actions/move-file.js +0 -166
  49. package/src/lib/actions/move-file.js.map +0 -1
  50. package/src/lib/actions/publish-page.d.ts +0 -5
  51. package/src/lib/actions/publish-page.d.ts.map +0 -1
  52. package/src/lib/actions/publish-page.js +0 -61
  53. package/src/lib/actions/publish-page.js.map +0 -1
  54. package/src/lib/actions/search-list-item.d.ts +0 -6
  55. package/src/lib/actions/search-list-item.d.ts.map +0 -1
  56. package/src/lib/actions/search-list-item.js +0 -49
  57. package/src/lib/actions/search-list-item.js.map +0 -1
  58. package/src/lib/actions/update-list-item.d.ts +0 -7
  59. package/src/lib/actions/update-list-item.d.ts.map +0 -1
  60. package/src/lib/actions/update-list-item.js +0 -51
  61. package/src/lib/actions/update-list-item.js.map +0 -1
  62. package/src/lib/actions/upload-file.d.ts +0 -8
  63. package/src/lib/actions/upload-file.d.ts.map +0 -1
  64. package/src/lib/actions/upload-file.js +0 -57
  65. package/src/lib/actions/upload-file.js.map +0 -1
  66. package/src/lib/auth.d.ts +0 -2
  67. package/src/lib/auth.d.ts.map +0 -1
  68. package/src/lib/auth.js +0 -37
  69. package/src/lib/auth.js.map +0 -1
  70. package/src/lib/common/index.d.ts +0 -15
  71. package/src/lib/common/index.d.ts.map +0 -1
  72. package/src/lib/common/index.js +0 -416
  73. package/src/lib/common/index.js.map +0 -1
  74. package/src/lib/common/microsoft-cloud.d.ts +0 -5
  75. package/src/lib/common/microsoft-cloud.d.ts.map +0 -1
  76. package/src/lib/common/microsoft-cloud.js +0 -38
  77. package/src/lib/common/microsoft-cloud.js.map +0 -1
  78. package/src/lib/triggers/new-file-in-folder.d.ts +0 -19
  79. package/src/lib/triggers/new-file-in-folder.d.ts.map +0 -1
  80. package/src/lib/triggers/new-file-in-folder.js +0 -170
  81. package/src/lib/triggers/new-file-in-folder.js.map +0 -1
  82. package/src/lib/triggers/new-file-in-subfolders.d.ts +0 -19
  83. package/src/lib/triggers/new-file-in-subfolders.d.ts.map +0 -1
  84. package/src/lib/triggers/new-file-in-subfolders.js +0 -166
  85. package/src/lib/triggers/new-file-in-subfolders.js.map +0 -1
  86. package/src/lib/triggers/new-list-item.d.ts +0 -15
  87. package/src/lib/triggers/new-list-item.d.ts.map +0 -1
  88. package/src/lib/triggers/new-list-item.js +0 -102
  89. package/src/lib/triggers/new-list-item.js.map +0 -1
  90. package/src/lib/triggers/new-list.d.ts +0 -11
  91. package/src/lib/triggers/new-list.d.ts.map +0 -1
  92. package/src/lib/triggers/new-list.js +0 -96
  93. package/src/lib/triggers/new-list.js.map +0 -1
  94. package/src/lib/triggers/new-or-updated-file.d.ts +0 -19
  95. package/src/lib/triggers/new-or-updated-file.d.ts.map +0 -1
  96. package/src/lib/triggers/new-or-updated-file.js +0 -162
  97. package/src/lib/triggers/new-or-updated-file.js.map +0 -1
  98. package/src/lib/triggers/new-or-updated-folder.d.ts +0 -19
  99. package/src/lib/triggers/new-or-updated-folder.d.ts.map +0 -1
  100. package/src/lib/triggers/new-or-updated-folder.js +0 -162
  101. package/src/lib/triggers/new-or-updated-folder.js.map +0 -1
  102. package/src/lib/triggers/new-or-updated-list.d.ts +0 -11
  103. package/src/lib/triggers/new-or-updated-list.d.ts.map +0 -1
  104. package/src/lib/triggers/new-or-updated-list.js +0 -110
  105. package/src/lib/triggers/new-or-updated-list.js.map +0 -1
  106. package/src/lib/triggers/updated-list-item.d.ts +0 -15
  107. package/src/lib/triggers/updated-list-item.d.ts.map +0 -1
  108. package/src/lib/triggers/updated-list-item.js +0 -120
  109. package/src/lib/triggers/updated-list-item.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"move-file.js","sourceRoot":"","sources":["../../../../src/lib/actions/move-file.ts"],"names":[],"mappings":";;;;AAAA,kCAAkD;AAClD,qEAMwC;AACxC,+DAA4D;AAC5D,sCAAsD;AACtD,8EAA2E;AAG9D,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,8BAAuB;IAC7B,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,+DAA+D;IAC5E,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,oTAAoT;QACjU,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,kCAAyB,CAAC,MAAM;QACxC,OAAO,EAAE,kCAAyB,CAAC,OAAO;QAC1C,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,IAAI,EAAE,8BAAuB;YAC7B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;YACjC,OAAO,EAAE,KAAkC,EAAE,oDAA7B,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;;gBACvC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;oBACjC,OAAO;wBACL,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,gCAAgC;wBAC7C,OAAO,EAAE,EAAE;qBACZ,CAAC;gBACJ,CAAC;gBACD,MAAM,SAAS,GAAG,IAEjB,CAAC;gBACF,MAAM,KAAK,GAAG,MAAC,SAAiC,CAAC,KAAK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MAAM,QAAQ,GAAG,MAAM,MAAM;qBAC1B,GAAG,CAAC,WAAW,OAAO,UAAU,MAAM,EAAE,CAAC;qBACzC,KAAK,CAAC,WAAW,CAAC,CAAC;gBAEtB,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,OAAO,EAAE,yBAAyB;oBAClC,IAAI,EAAE,QAAQ;iBACf,CAAC;YACJ,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC7B,MAAM,IAAI,KAAK,CAAC,oBAAoB,KAAK,CAAC,OAAO,IAAI,6BAA6B,EAAE,CAAC,CAAC;gBACxF,CAAC;gBACD,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC7B,MAAM,IAAI,KAAK,CAAC,iFAAiF,CAAC,CAAC;gBACrG,CAAC;gBACD,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC7B,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;gBAC3E,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,wBAAwB,KAAK,CAAC,OAAO,IAAI,eAAe,EAAE,CAAC,CAAC;YAC9E,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const publishPageAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- siteId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- pageId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }>;
5
- //# sourceMappingURL=publish-page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish-page.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/publish-page.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;;;EAiD5B,CAAC"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.publishPageAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const microsoft_cloud_1 = require("../common/microsoft-cloud");
8
- const common_1 = require("../common");
9
- const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
10
- exports.publishPageAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.microsoftSharePointAuth,
12
- name: 'microsoft_sharepoint_publish_page',
13
- displayName: 'Publish Page',
14
- description: 'Publishes a SharePoint page, making it available to all users. If the page is checked out, it will be automatically checked in. Note: Pages with active approval flows will not publish until approval is complete.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Publishes a SharePoint site page by its page ID on a given site, making the latest version visible to all users (auto-checking it in if needed). Use to make page edits live. Idempotent: re-publishing an already-published page leaves it published. A page awaiting an approval flow will not publish until approval completes.',
18
- idempotent: true,
19
- },
20
- props: {
21
- siteId: common_1.microsoftSharePointCommon.siteId,
22
- pageId: common_1.microsoftSharePointCommon.pageId,
23
- },
24
- run(context) {
25
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
- var _a;
27
- const { siteId, pageId } = context.propsValue;
28
- const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
29
- const client = microsoft_graph_client_1.Client.initWithMiddleware({
30
- authProvider: {
31
- getAccessToken: () => Promise.resolve(context.auth.access_token),
32
- },
33
- baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
34
- });
35
- try {
36
- yield client
37
- .api(`/sites/${siteId}/pages/${pageId}/microsoft.graph.sitePage/publish`)
38
- .post({});
39
- return {
40
- success: true,
41
- message: 'Page published successfully',
42
- pageId: pageId,
43
- siteId: siteId,
44
- };
45
- }
46
- catch (error) {
47
- if (error.statusCode === 404) {
48
- throw new Error(`Page not found. Please verify the page ID: ${pageId}`);
49
- }
50
- if (error.statusCode === 403) {
51
- throw new Error('Insufficient permissions to publish this page. Requires Files.ReadWrite or higher.');
52
- }
53
- if (error.statusCode === 409) {
54
- throw new Error('Page cannot be published. It may be awaiting approval or already published.');
55
- }
56
- throw new Error(`Failed to publish page: ${error.message || 'Unknown error'}`);
57
- }
58
- });
59
- },
60
- });
61
- //# sourceMappingURL=publish-page.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish-page.js","sourceRoot":"","sources":["../../../../src/lib/actions/publish-page.ts"],"names":[],"mappings":";;;;AAAA,kCAAkD;AAClD,qEAA8D;AAC9D,+DAA4D;AAC5D,sCAAsD;AACtD,8EAA2D;AAE9C,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,8BAAuB;IAC7B,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,qNAAqN;IAClO,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,oUAAoU;QACjV,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,kCAAyB,CAAC,MAAM;QACxC,MAAM,EAAE,kCAAyB,CAAC,MAAM;KACzC;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE9C,MAAM,KAAK,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,KAAK,0CAAG,OAAO,CAAuB,CAAC;YAClE,MAAM,MAAM,GAAG,+BAAM,CAAC,kBAAkB,CAAC;gBACvC,YAAY,EAAE;oBACZ,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;iBACjE;gBACD,OAAO,EAAE,IAAA,iCAAe,EAAC,KAAK,CAAC;aAChC,CAAC,CAAC;YAEH,IAAI,CAAC;gBACH,MAAM,MAAM;qBACT,GAAG,CAAC,UAAU,MAAM,UAAU,MAAM,mCAAmC,CAAC;qBACxE,IAAI,CAAC,EAAE,CAAC,CAAC;gBAEZ,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,OAAO,EAAE,6BAA6B;oBACtC,MAAM,EAAE,MAAM;oBACd,MAAM,EAAE,MAAM;iBACf,CAAC;YACJ,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC7B,MAAM,IAAI,KAAK,CAAC,8CAA8C,MAAM,EAAE,CAAC,CAAC;gBAC1E,CAAC;gBACD,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC7B,MAAM,IAAI,KAAK,CAAC,oFAAoF,CAAC,CAAC;gBACxG,CAAC;gBACD,IAAI,KAAK,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC7B,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC,CAAC;gBACjG,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,2BAA2B,KAAK,CAAC,OAAO,IAAI,eAAe,EAAE,CAAC,CAAC;YACjF,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const findListItemAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- siteId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- listId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- searchValue: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- }>;
6
- //# sourceMappingURL=search-list-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-list-item.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-list-item.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;EAuC7B,CAAC"}
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findListItemAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const microsoft_cloud_1 = require("../common/microsoft-cloud");
8
- const common_1 = require("../common");
9
- const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
10
- exports.findListItemAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.microsoftSharePointAuth,
12
- name: 'microsoft_sharepoint_search_list_item',
13
- displayName: 'Find List Item',
14
- description: 'Finds a item in a list based on name.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Looks up items in a SharePoint list by exact Title match on a given site, returning the matching items with their fields. Use to resolve a list item ID (or confirm existence) before updating or deleting it. Read-only and idempotent; matches only the Title column, not arbitrary fields.',
18
- idempotent: true,
19
- },
20
- props: {
21
- siteId: common_1.microsoftSharePointCommon.siteId,
22
- listId: common_1.microsoftSharePointCommon.listId,
23
- searchValue: pieces_framework_1.Property.ShortText({
24
- displayName: 'Title',
25
- description: 'Item title to search',
26
- required: true,
27
- }),
28
- },
29
- run(context) {
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- var _a;
32
- const { siteId, listId, searchValue } = context.propsValue;
33
- const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
34
- const client = microsoft_graph_client_1.Client.initWithMiddleware({
35
- authProvider: {
36
- getAccessToken: () => Promise.resolve(context.auth.access_token),
37
- },
38
- baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
39
- });
40
- // Escaping single quotes
41
- const title = searchValue.replaceAll("'", "''");
42
- return yield client
43
- .api(`/sites/${siteId}/lists/${listId}/items?$expand=fields&filter=fields/Title eq '${title}'`)
44
- .headers({ Prefer: 'HonorNonIndexedQueriesWarningMayFailRandomly' })
45
- .get();
46
- });
47
- },
48
- });
49
- //# sourceMappingURL=search-list-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-list-item.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-list-item.ts"],"names":[],"mappings":";;;;AAAA,kCAAkD;AAClD,qEAAwE;AACxE,+DAA4D;AAC5D,sCAAsD;AACtD,8EAA2D;AAE9C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,8BAAuB;IAC7B,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,+RAA+R;QAC5S,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,kCAAyB,CAAC,MAAM;QACxC,MAAM,EAAE,kCAAyB,CAAC,MAAM;QACxC,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE3D,MAAM,KAAK,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,KAAK,0CAAG,OAAO,CAAuB,CAAC;YAClE,MAAM,MAAM,GAAG,+BAAM,CAAC,kBAAkB,CAAC;gBACvC,YAAY,EAAE;oBACZ,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;iBACjE;gBACD,OAAO,EAAE,IAAA,iCAAe,EAAC,KAAK,CAAC;aAChC,CAAC,CAAC;YAEH,yBAAyB;YACzB,MAAM,KAAK,GAAG,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAChD,OAAO,MAAM,MAAM;iBAChB,GAAG,CACF,UAAU,MAAM,UAAU,MAAM,iDAAiD,KAAK,GAAG,CAC1F;iBACA,OAAO,CAAC,EAAE,MAAM,EAAE,8CAA8C,EAAE,CAAC;iBACnE,GAAG,EAAE,CAAC;QACX,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const updateListItemAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- siteId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- listId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- listItemId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
5
- listColumns: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- }>;
7
- //# sourceMappingURL=update-list-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-list-item.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-list-item.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;EAwC/B,CAAC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateListItemAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const microsoft_cloud_1 = require("../common/microsoft-cloud");
8
- const common_1 = require("../common");
9
- const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
10
- exports.updateListItemAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.microsoftSharePointAuth,
12
- name: 'microsoft_sharepoint_update_list_item',
13
- displayName: 'Update List Item',
14
- description: 'Updates an existing item in a list.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Updates the column field values of an existing item in a SharePoint list, identified by its list item ID on a given site. Use to edit a known row rather than create one. Requires a valid item ID; idempotent, since re-applying the same field values leaves the item in the same final state.',
18
- idempotent: true,
19
- },
20
- props: {
21
- siteId: common_1.microsoftSharePointCommon.siteId,
22
- listId: common_1.microsoftSharePointCommon.listId,
23
- listItemId: common_1.microsoftSharePointCommon.listItemId,
24
- listColumns: common_1.microsoftSharePointCommon.listColumns,
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- var _a;
29
- const { siteId, listId, listItemId, listColumns } = context.propsValue;
30
- const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
31
- const client = microsoft_graph_client_1.Client.initWithMiddleware({
32
- authProvider: {
33
- getAccessToken: () => Promise.resolve(context.auth.access_token),
34
- },
35
- baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
36
- });
37
- const fieldWithArrayValues = {};
38
- Object.entries(listColumns).forEach(([key, value]) => {
39
- // https://learn.microsoft.com/en-us/answers/questions/1517379/upload-multiple-choice-fields-item-in-sharepoint-w
40
- if (Array.isArray(value)) {
41
- fieldWithArrayValues[`${key}@odata.type`] = 'Collection(Edm.String)';
42
- }
43
- });
44
- const itemInput = Object.assign(Object.assign({}, listColumns), fieldWithArrayValues);
45
- return yield client
46
- .api(`/sites/${siteId}/lists/${listId}/items/${listItemId}/fields`)
47
- .patch(itemInput);
48
- });
49
- },
50
- });
51
- //# sourceMappingURL=update-list-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-list-item.js","source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CAAC;oBACzB,oBAAoB,CAAC,GAAG,GAAG,aAAa,CAAC,GAAG,wBAAwB,CAAC;gBACvE,CAAC;YACH,CAAC,CAAC,CAAC;YACH,MAAM,SAAS,mCAAQ,WAAW,GAAK,oBAAoB,CAAE,CAAC;YAE9D,OAAO,MAAM,MAAM;iBAChB,GAAG,CAAC,UAAU,MAAM,UAAU,MAAM,UAAU,UAAU,SAAS,CAAC;iBAClE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const uploadFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- siteId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- driveId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- file: import("@activepieces/pieces-framework").FileProperty<true>;
5
- parentFolder: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- fileName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=upload-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/upload-file.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;EA+CrB,CAAC"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadFile = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const microsoft_cloud_1 = require("../common/microsoft-cloud");
8
- const common_1 = require("../common");
9
- const microsoft_graph_client_1 = require("@microsoft/microsoft-graph-client");
10
- exports.uploadFile = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.microsoftSharePointAuth,
12
- name: 'microsoft_sharepoint_upload_file',
13
- displayName: 'Upload File',
14
- description: 'Uploads a new file at path you specify.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Uploads file content to a SharePoint document library (drive), placing it under a parent folder path with the file name you specify. Use to push a file (from a prior step or URL) into a site. Idempotent on the target path: uploading the same name to the same folder replaces the existing file rather than creating a duplicate.',
18
- idempotent: true,
19
- },
20
- props: {
21
- siteId: common_1.microsoftSharePointCommon.siteId,
22
- driveId: common_1.microsoftSharePointCommon.driveId,
23
- file: pieces_framework_1.Property.File({
24
- displayName: "File",
25
- description: "The file or url you want to upload",
26
- required: true,
27
- }),
28
- parentFolder: pieces_framework_1.Property.ShortText({
29
- displayName: 'Parent Folder',
30
- description: `Parent folder, like "/demo/" or "/docs/assignment/".Leave it default if you want to create folder at the root (**CHANGE THIS BACK//**) level.`,
31
- required: true,
32
- defaultValue: '/',
33
- }),
34
- fileName: pieces_framework_1.Property.ShortText({
35
- displayName: 'File Name',
36
- required: true,
37
- }),
38
- },
39
- run(context) {
40
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
41
- var _a, _b;
42
- const { siteId, driveId, file, parentFolder, fileName } = context.propsValue;
43
- const cloud = (_a = context.auth.props) === null || _a === void 0 ? void 0 : _a['cloud'];
44
- const client = microsoft_graph_client_1.Client.initWithMiddleware({
45
- authProvider: {
46
- getAccessToken: () => Promise.resolve(context.auth.access_token),
47
- },
48
- baseUrl: (0, microsoft_cloud_1.getGraphBaseUrl)(cloud),
49
- });
50
- const parentIdResponse = yield client.api(`/sites/${siteId}/drives/${driveId}/root:${parentFolder}`).get();
51
- const parentId = (_b = parentIdResponse.id) !== null && _b !== void 0 ? _b : "test";
52
- const uploadResponse = yield client.api(`/sites/${siteId}/drives/${driveId}/items/${parentId}:/${fileName}:/content`).put(file.data);
53
- return uploadResponse;
54
- });
55
- }
56
- });
57
- //# sourceMappingURL=upload-file.js.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G,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;iBACjE;gBACD,OAAO,EAAE,IAAA,iCAAe,EAAC,KAAK,CAAC;aAChC,CAAC,CAAC;YAEH,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,UAAU,MAAM,WAAW,OAAO,SAAS,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE,CAAA;YAC1G,MAAM,QAAQ,GAAG,MAAA,gBAAgB,CAAC,EAAE,mCAAI,MAAM,CAAC;YAE/C,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,UAAU,MAAM,WAAW,OAAO,UAAU,QAAQ,KAAK,QAAQ,WAAW,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAEpI,OAAO,cAAc,CAAA;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
package/src/lib/auth.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const microsoftSharePointAuth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB,+GAmBlC,CAAC"}
package/src/lib/auth.js DELETED
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.microsoftSharePointAuth = void 0;
4
- const pieces_framework_1 = require("@activepieces/pieces-framework");
5
- const microsoft_cloud_1 = require("./common/microsoft-cloud");
6
- const authDesc = `
7
- If you'd like to use your own custom Azure app instead of the default app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),
8
- set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:
9
- - Sites.Read.All
10
- - Sites.ReadWrite.All
11
- - Sites.Manage.All
12
- - Files.ReadWrite.All
13
- - openid
14
- - email
15
- - profile
16
- - offline_access`;
17
- exports.microsoftSharePointAuth = pieces_framework_1.PieceAuth.OAuth2({
18
- description: authDesc,
19
- props: {
20
- cloud: microsoft_cloud_1.microsoftCloudProperty,
21
- },
22
- authUrl: 'https://{cloud}/common/oauth2/v2.0/authorize',
23
- tokenUrl: 'https://{cloud}/common/oauth2/v2.0/token',
24
- required: true,
25
- scope: [
26
- 'openid',
27
- 'email',
28
- 'profile',
29
- 'offline_access',
30
- 'Sites.Read.All',
31
- 'Sites.ReadWrite.All',
32
- 'Sites.Manage.All',
33
- 'Files.ReadWrite.All',
34
- ],
35
- prompt: 'omit',
36
- });
37
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAC3D,8DAAkE;AAElE,MAAM,QAAQ,GAAG;;;;;;;;;;kBAUC,CAAC;AAEN,QAAA,uBAAuB,GAAG,4BAAS,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE;QACL,KAAK,EAAE,wCAAsB;KAC9B;IACD,OAAO,EAAE,8CAA8C;IACvD,QAAQ,EAAE,0CAA0C;IACpD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,QAAQ;QACR,OAAO;QACP,SAAS;QACT,gBAAgB;QAChB,gBAAgB;QAChB,qBAAqB;QACrB,kBAAkB;QAClB,qBAAqB;KACtB;IACD,MAAM,EAAE,MAAM;CACf,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const microsoftSharePointCommon: {
2
- siteId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- driveId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- createDriveDropdown: (params: {
5
- displayName: string;
6
- refreshers: string[];
7
- }) => import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- itemId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
9
- destinationFolderId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- listId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
11
- listColumns: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
12
- listItemId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
13
- pageId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
14
- };
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AA0EA,eAAO,MAAM,yBAAyB;;;kCAtDD;QACnC,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,EAAE,CAAC;KACtB;;;;;;;CA+aA,CAAC"}