@activepieces/piece-microsoft-365-planner 0.2.4 → 0.2.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 (77) hide show
  1. package/package.json +7 -13
  2. package/src/index.js +21 -63
  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/create-bucket.d.ts +0 -6
  7. package/src/lib/actions/create-bucket.d.ts.map +0 -1
  8. package/src/lib/actions/create-bucket.js +0 -33
  9. package/src/lib/actions/create-bucket.js.map +0 -1
  10. package/src/lib/actions/create-plan.d.ts +0 -5
  11. package/src/lib/actions/create-plan.d.ts.map +0 -1
  12. package/src/lib/actions/create-plan.js +0 -41
  13. package/src/lib/actions/create-plan.js.map +0 -1
  14. package/src/lib/actions/create-task.d.ts +0 -11
  15. package/src/lib/actions/create-task.d.ts.map +0 -1
  16. package/src/lib/actions/create-task.js +0 -88
  17. package/src/lib/actions/create-task.js.map +0 -1
  18. package/src/lib/actions/delete-bucket.d.ts +0 -5
  19. package/src/lib/actions/delete-bucket.d.ts.map +0 -1
  20. package/src/lib/actions/delete-bucket.js +0 -34
  21. package/src/lib/actions/delete-bucket.js.map +0 -1
  22. package/src/lib/actions/delete-task.d.ts +0 -5
  23. package/src/lib/actions/delete-task.d.ts.map +0 -1
  24. package/src/lib/actions/delete-task.js +0 -34
  25. package/src/lib/actions/delete-task.js.map +0 -1
  26. package/src/lib/actions/find-a-plan.d.ts +0 -4
  27. package/src/lib/actions/find-a-plan.d.ts.map +0 -1
  28. package/src/lib/actions/find-a-plan.js +0 -31
  29. package/src/lib/actions/find-a-plan.js.map +0 -1
  30. package/src/lib/actions/find-task.d.ts +0 -5
  31. package/src/lib/actions/find-task.d.ts.map +0 -1
  32. package/src/lib/actions/find-task.js +0 -36
  33. package/src/lib/actions/find-task.js.map +0 -1
  34. package/src/lib/actions/get-a-bucket.d.ts +0 -5
  35. package/src/lib/actions/get-a-bucket.d.ts.map +0 -1
  36. package/src/lib/actions/get-a-bucket.js +0 -34
  37. package/src/lib/actions/get-a-bucket.js.map +0 -1
  38. package/src/lib/actions/update-bucket.d.ts +0 -7
  39. package/src/lib/actions/update-bucket.d.ts.map +0 -1
  40. package/src/lib/actions/update-bucket.js +0 -39
  41. package/src/lib/actions/update-bucket.js.map +0 -1
  42. package/src/lib/actions/update-plan.d.ts +0 -5
  43. package/src/lib/actions/update-plan.d.ts.map +0 -1
  44. package/src/lib/actions/update-plan.js +0 -39
  45. package/src/lib/actions/update-plan.js.map +0 -1
  46. package/src/lib/actions/update-task.d.ts +0 -11
  47. package/src/lib/actions/update-task.d.ts.map +0 -1
  48. package/src/lib/actions/update-task.js +0 -89
  49. package/src/lib/actions/update-task.js.map +0 -1
  50. package/src/lib/common/index.d.ts +0 -49
  51. package/src/lib/common/index.d.ts.map +0 -1
  52. package/src/lib/common/index.js +0 -192
  53. package/src/lib/common/index.js.map +0 -1
  54. package/src/lib/common/microsoft-cloud.d.ts +0 -5
  55. package/src/lib/common/microsoft-cloud.d.ts.map +0 -1
  56. package/src/lib/common/microsoft-cloud.js +0 -38
  57. package/src/lib/common/microsoft-cloud.js.map +0 -1
  58. package/src/lib/common/properties.d.ts +0 -16
  59. package/src/lib/common/properties.d.ts.map +0 -1
  60. package/src/lib/common/properties.js +0 -150
  61. package/src/lib/common/properties.js.map +0 -1
  62. package/src/lib/common/types.d.ts +0 -59
  63. package/src/lib/common/types.d.ts.map +0 -1
  64. package/src/lib/common/types.js +0 -3
  65. package/src/lib/common/types.js.map +0 -1
  66. package/src/lib/triggers/new-plan-created.d.ts +0 -3
  67. package/src/lib/triggers/new-plan-created.d.ts.map +0 -1
  68. package/src/lib/triggers/new-plan-created.js +0 -55
  69. package/src/lib/triggers/new-plan-created.js.map +0 -1
  70. package/src/lib/triggers/new-task-assigned-to-user.d.ts +0 -11
  71. package/src/lib/triggers/new-task-assigned-to-user.d.ts.map +0 -1
  72. package/src/lib/triggers/new-task-assigned-to-user.js +0 -70
  73. package/src/lib/triggers/new-task-assigned-to-user.js.map +0 -1
  74. package/src/lib/triggers/new-task-created.d.ts +0 -11
  75. package/src/lib/triggers/new-task-created.d.ts.map +0 -1
  76. package/src/lib/triggers/new-task-created.js +0 -96
  77. package/src/lib/triggers/new-task-created.js.map +0 -1
package/src/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const microsoft365Planner: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,mBAAmB,+JAsC9B,CAAC"}
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAkF;AAClF,+DAA2D;AAC3D,2DAAuD;AACvD,2DAAuD;AACvD,+DAA2D;AAC3D,2DAAuD;AACvD,2DAAsD;AACtD,uDAAmD;AACnD,6DAAwD;AACxD,+DAA2D;AAC3D,2DAAuD;AACvD,2DAAuD;AACvD,yCAAuD;AACvD,sEAAiE;AACjE,wFAAiF;AACjF,sEAAiE;AACjE,+DAAwE;AACxE,kEAA0F;AAE7E,QAAA,mBAAmB,GAAG,IAAA,8BAAW,EAAC;IAC7C,WAAW,EAAE,uBAAuB;IACpC,WAAW,EACT,wOAAwO;IAC1O,IAAI,EAAE,gCAAuB;IAC7B,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,+DAA+D;IACxE,OAAO,EAAE,CAAC,SAAS,EAAC,aAAa,CAAC;IAClC,OAAO,EAAE;QACP,gBAAgB;QAChB,wBAAU;QACV,4BAAY;QACZ,wBAAU;QACV,4BAAY;QACZ,wBAAU;QACV,wBAAU;QACV,4BAAY;QACZ,wBAAU;QACV,iBAAiB;QACjB,uBAAS;QACT,yBAAU;QACV,oBAAQ;QACR,IAAA,yCAAyB,EAAC;YAC3B,IAAI,EAAE,gCAAuB;YAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBACjB,MAAM,KAAK,GAAG,IAAA,2CAAyB,EAAC,IAA2B,CAAC,CAAC;gBACrE,OAAO,IAAA,iCAAe,EAAC,KAAK,CAAC,GAAG,QAAQ,CAAC;YAC1C,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC7B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACrE,CAAC,CAAA;cAAA;SACF,CAAC;KACD;IACD,QAAQ,EAAE;QACR,iCAAc;QACd,iCAAc;QACd,iDAAqB;KACtB;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const createBucket: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- orderHint: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- }>;
6
- //# sourceMappingURL=create-bucket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-bucket.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-bucket.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;EAyBvB,CAAC"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createBucket = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.createBucket = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'createBucket',
11
- displayName: 'Create Bucket',
12
- description: 'Create a bucket (category) under a plan.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Creates a new bucket (a column/category for grouping tasks) under an existing Planner plan, identified by plan ID. Use to organize tasks within a plan. Each call adds another bucket, so it is not idempotent.',
16
- idempotent: false,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- name: pieces_framework_1.Property.ShortText({
21
- displayName: 'Bucket Name',
22
- description: 'The name of the bucket to be created',
23
- required: true,
24
- }),
25
- orderHint: (0, properties_1.OrderHintProperty)({ required: false }),
26
- },
27
- run(_a) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
29
- return yield common_1.microsoft365PlannerCommon.createBucket(Object.assign({ auth }, propsValue));
30
- });
31
- },
32
- });
33
- //# sourceMappingURL=create-bucket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-bucket.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-bucket.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA+E;AAC/E,qDAAuE;AAE1D,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,iNAAiN;QAC9N,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxC,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,IAAA,8BAAiB,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAClD;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,OAAO,MAAM,kCAAyB,CAAC,YAAY,iBACjD,IAAI,IACD,UAAU,EACb,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const createPlan: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- groupId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- }>;
5
- //# sourceMappingURL=create-plan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-plan.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-plan.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;EA6BrB,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createPlan = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const microsoft_cloud_1 = require("../common/microsoft-cloud");
7
- const common_1 = require("../common");
8
- const properties_1 = require("../common/properties");
9
- exports.createPlan = (0, pieces_framework_1.createAction)({
10
- auth: common_1.microsoft365PlannerAuth,
11
- name: 'createPlan',
12
- displayName: 'Create Plan',
13
- description: 'Create a new planner plan',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Creates a new Microsoft 365 Planner plan with the given title, owned by a specified Microsoft 365 group. Use to set up a fresh planning board before adding buckets or tasks. The group must already exist; each call creates a separate plan, so it is not idempotent.',
17
- idempotent: false,
18
- },
19
- props: {
20
- groupId: (0, properties_1.groupDropdown)({ required: true }),
21
- title: pieces_framework_1.Property.ShortText({
22
- displayName: 'Title',
23
- description: 'The title of the plan',
24
- required: true,
25
- }),
26
- },
27
- run(_a) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
29
- const cloud = (0, microsoft_cloud_1.getMicrosoftCloudFromAuth)(auth);
30
- const graphBaseUrl = (0, microsoft_cloud_1.getGraphBaseUrl)(cloud);
31
- const planParams = {
32
- container: {
33
- url: `${graphBaseUrl}/v1.0/groups/${propsValue.groupId}`,
34
- },
35
- title: propsValue.title,
36
- };
37
- return yield common_1.microsoft365PlannerCommon.createPlan(Object.assign({ auth }, planParams));
38
- });
39
- },
40
- });
41
- //# sourceMappingURL=create-plan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-plan.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-plan.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAuF;AACvF,sCAA+E;AAC/E,qDAAqD;AAExC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,yQAAyQ;QACtR,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAA,0BAAa,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC1C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,KAAK,GAAG,IAAA,2CAAyB,EAAC,IAAI,CAAC,CAAC;YAC9C,MAAM,YAAY,GAAG,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;YAC5C,MAAM,UAAU,GAAG;gBACjB,SAAS,EAAE;oBACT,GAAG,EAAE,GAAG,YAAY,gBAAgB,UAAU,CAAC,OAAO,EAAE;iBACzD;gBACD,KAAK,EAAE,UAAU,CAAC,KAAK;aACxB,CAAC;YACF,OAAO,MAAM,kCAAyB,CAAC,UAAU,iBAAG,IAAI,IAAK,UAAU,EAAG,CAAC;QAC7E,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const createTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- bucketId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- assignments: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- dueDateTime: import("@activepieces/pieces-framework").DateTimeProperty<false>;
7
- percentComplete: import("@activepieces/pieces-framework").NumberProperty<false>;
8
- priority: import("@activepieces/pieces-framework").NumberProperty<false>;
9
- startDateTime: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
- }>;
11
- //# sourceMappingURL=create-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-task.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;;;;;EA0FrB,CAAC"}
@@ -1,88 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTask = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.createTask = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'createTask',
11
- displayName: 'Create Task',
12
- description: 'Create a new planner task with title, assignments, due date, etc.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Creates a new task in a Planner plan, optionally placing it in a bucket and setting assignees, due/start dates, priority, and percent complete. Use to add work items to a plan. Each call creates a separate task, so it is not idempotent.',
16
- idempotent: false,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- bucketId: (0, properties_1.BucketDropdown)({ required: false }),
21
- title: pieces_framework_1.Property.ShortText({
22
- displayName: 'Title',
23
- description: 'The title of the task to be created',
24
- required: true,
25
- }),
26
- assignments: pieces_framework_1.Property.MultiSelectDropdown({
27
- displayName: 'Assignments',
28
- description: 'Select users to assign the task to. If left empty, the task will be unassigned.',
29
- required: false,
30
- auth: common_1.microsoft365PlannerAuth,
31
- refreshers: ['auth'],
32
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
33
- if (!auth) {
34
- return {
35
- options: [],
36
- disabled: true,
37
- placeholder: 'Please select an authentication first',
38
- };
39
- }
40
- const users = yield common_1.microsoft365PlannerCommon.listUsers({ auth: auth });
41
- return {
42
- options: users.map((user) => ({
43
- label: user.displayName || user.userPrincipalName || 'No Name',
44
- value: user.id || '',
45
- })),
46
- disabled: false,
47
- placeholder: 'Select users to assign the task to',
48
- };
49
- }),
50
- }),
51
- dueDateTime: pieces_framework_1.Property.DateTime({
52
- displayName: 'Due Date',
53
- description: 'The due date and time for the task',
54
- required: false,
55
- }),
56
- percentComplete: pieces_framework_1.Property.Number({
57
- displayName: 'Percent Complete',
58
- description: 'The completion percentage of the task (0-100)',
59
- required: false,
60
- }),
61
- priority: pieces_framework_1.Property.Number({
62
- displayName: 'Priority',
63
- description: 'The priority of the task between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority).',
64
- required: false,
65
- }),
66
- startDateTime: pieces_framework_1.Property.DateTime({
67
- displayName: 'Start Date',
68
- description: 'The start date and time for the task',
69
- required: false,
70
- }),
71
- },
72
- run(_a) {
73
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
74
- const taskParams = Object.assign(Object.assign({}, propsValue), { assignments: propsValue.assignments
75
- ? Object.fromEntries(propsValue.assignments.map((userId) => [
76
- userId,
77
- { '@odata.type': 'microsoft.graph.plannerAssignment' },
78
- ]))
79
- : undefined, dueDateTime: propsValue.dueDateTime
80
- ? new Date(propsValue.dueDateTime).toISOString()
81
- : undefined, startDateTime: propsValue.startDateTime
82
- ? new Date(propsValue.startDateTime).toISOString()
83
- : undefined });
84
- return yield common_1.microsoft365PlannerCommon.createTask(Object.assign({ auth }, taskParams));
85
- });
86
- },
87
- });
88
- //# sourceMappingURL=create-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-task.ts"],"names":[],"mappings":"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"}
@@ -1,5 +0,0 @@
1
- export declare const deleteBucket: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }>;
5
- //# sourceMappingURL=delete-bucket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-bucket.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-bucket.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;EAuBvB,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteBucket = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.deleteBucket = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'deleteBucket',
11
- displayName: 'Delete Bucket',
12
- description: 'Delete an existing bucket.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Permanently deletes a bucket from a Planner plan by bucket ID. Use to remove a category and stop grouping tasks under it. Destructive and not idempotent; once removed, repeating the call fails because the bucket no longer exists.',
16
- idempotent: false,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- id: (0, properties_1.BucketDropdown)({ required: true }),
21
- },
22
- run(_a) {
23
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { id } }) {
24
- if (!id) {
25
- throw new Error('Bucket id is required');
26
- }
27
- return yield common_1.microsoft365PlannerCommon.deleteBucket({
28
- auth,
29
- id,
30
- });
31
- });
32
- },
33
- });
34
- //# sourceMappingURL=delete-bucket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-bucket.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-bucket.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,sCAA+E;AAC/E,qDAAoE;AAEvD,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,uOAAuO;QACpP,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxC,EAAE,EAAE,IAAA,2BAAc,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACvC;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE;YACpC,IAAI,CAAC,EAAE,EAAE,CAAC;gBACR,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC3C,CAAC;YACD,OAAO,MAAM,kCAAyB,CAAC,YAAY,CAAC;gBAClD,IAAI;gBACJ,EAAE;aACH,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const deleteTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }>;
5
- //# sourceMappingURL=delete-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-task.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;EAuBrB,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteTask = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.deleteTask = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'deleteTask',
11
- displayName: 'Delete Task',
12
- description: 'Remove a specific task by ID.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Permanently deletes a task from a Planner plan by task ID. Use to remove a work item. Destructive and not idempotent; once removed, repeating the call fails because the task no longer exists.',
16
- idempotent: false,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- id: (0, properties_1.TaskDropdown)({ required: true }),
21
- },
22
- run(_a) {
23
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { id } }) {
24
- if (!id) {
25
- throw new Error('Task id is required');
26
- }
27
- return yield common_1.microsoft365PlannerCommon.deleteTask({
28
- auth,
29
- id,
30
- });
31
- });
32
- },
33
- });
34
- //# sourceMappingURL=delete-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-task.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,sCAA+E;AAC/E,qDAAkE;AAErD,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,iMAAiM;QAC9M,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxC,EAAE,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACrC;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE;YACpC,IAAI,CAAC,EAAE,EAAE,CAAC;gBACR,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;YACzC,CAAC;YACD,OAAO,MAAM,kCAAyB,CAAC,UAAU,CAAC;gBAChD,IAAI;gBACJ,EAAE;aACH,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const findAPlan: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- }>;
4
- //# sourceMappingURL=find-a-plan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-a-plan.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-a-plan.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;EAwBpB,CAAC"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findAPlan = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- exports.findAPlan = (0, pieces_framework_1.createAction)({
8
- auth: common_1.microsoft365PlannerAuth,
9
- name: 'findAPlan',
10
- displayName: 'Find a Plan',
11
- description: 'Finds a plan by field.',
12
- audience: 'both',
13
- aiMetadata: {
14
- description: 'Searches across the authenticated user\'s Planner plans and returns those whose title contains the given text (case-insensitive substring match). Use to resolve a plan name into its plan ID before acting on it. Read-only and idempotent; the title input is required.',
15
- idempotent: true,
16
- },
17
- props: {
18
- title: pieces_framework_1.Property.ShortText({
19
- displayName: 'Title',
20
- description: 'The title of the plan to search for',
21
- required: true,
22
- }),
23
- },
24
- run(_a) {
25
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { title } }) {
26
- const plans = yield common_1.microsoft365PlannerCommon.listPlans({ auth });
27
- return plans.filter((plan) => plan.title && plan.title.toLowerCase().includes(title.toLowerCase()));
28
- });
29
- },
30
- });
31
- //# sourceMappingURL=find-a-plan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-a-plan.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-a-plan.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA+E;AAElE,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,2QAA2Q;QACxR,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE;YACvC,MAAM,KAAK,GAAG,MAAM,kCAAyB,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YAClE,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CACvE,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const findTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- }>;
5
- //# sourceMappingURL=find-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-task.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;EA4BnB,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findTask = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.findTask = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'findTask',
11
- displayName: 'Find Task',
12
- description: 'Find task by fields.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Searches the tasks of a given Planner plan and returns those whose title contains the given text (case-insensitive substring match). Use to locate a task ID within a known plan. Read-only and idempotent; both plan ID and title are required.',
16
- idempotent: true,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- title: pieces_framework_1.Property.ShortText({
21
- displayName: 'Title',
22
- description: 'The title of the task to search for',
23
- required: true,
24
- }),
25
- },
26
- run(_a) {
27
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { title, planId } }) {
28
- if (!planId) {
29
- throw new Error('Plan ID is required to fetch tasks.');
30
- }
31
- const tasks = yield common_1.microsoft365PlannerCommon.listTasks({ auth, planId });
32
- return tasks.filter((task) => task.title && task.title.toLowerCase().includes(title.toLowerCase()));
33
- });
34
- },
35
- });
36
- //# sourceMappingURL=find-task.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-task.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA+E;AAC/E,qDAAoD;AAEvC,QAAA,QAAQ,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,kPAAkP;QAC/P,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxC,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/C,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;YACzD,CAAC;YACD,MAAM,KAAK,GAAG,MAAM,kCAAyB,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;YAC1E,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CACvE,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const getABucket: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- bucketId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }>;
5
- //# sourceMappingURL=get-a-bucket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-a-bucket.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-a-bucket.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;EAuBrB,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getABucket = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.getABucket = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'getABucket',
11
- displayName: 'Get a Bucket',
12
- description: 'Retrieve details about a specific bucket.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Retrieves the details of a single Planner bucket by its bucket ID (within a known plan). Use to inspect a bucket\'s current name and order hint. Read-only and idempotent.',
16
- idempotent: true,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- bucketId: (0, properties_1.BucketDropdown)({ required: true }),
21
- },
22
- run(_a) {
23
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { bucketId } }) {
24
- if (!bucketId) {
25
- throw new Error('Bucket ID is required to fetch bucket details.');
26
- }
27
- return yield common_1.microsoft365PlannerCommon.getBucketDetails({
28
- auth,
29
- bucketId,
30
- });
31
- });
32
- },
33
- });
34
- //# sourceMappingURL=get-a-bucket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-a-bucket.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-a-bucket.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,sCAA+E;AAC/E,qDAAoE;AAEvD,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,4KAA4K;QACzL,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxC,QAAQ,EAAE,IAAA,2BAAc,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KAC7C;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,EAAE;YAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;YACpE,CAAC;YACD,OAAO,MAAM,kCAAyB,CAAC,gBAAgB,CAAC;gBACtD,IAAI;gBACJ,QAAQ;aACT,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const updateBucket: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- planId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- orderHint: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=update-bucket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-bucket.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-bucket.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;EA+BvB,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateBucket = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.updateBucket = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'updateBucket',
11
- displayName: 'Update Bucket',
12
- description: 'Modify bucket’s name or properties.',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Updates an existing bucket\'s name and/or order hint, identified by bucket ID within a plan. Use to rename or reorder a bucket. Idempotent: applying the same field values repeatedly leaves the bucket in the same end state.',
16
- idempotent: true,
17
- },
18
- props: {
19
- planId: (0, properties_1.PlanDropdown)({ required: true }),
20
- id: (0, properties_1.BucketDropdown)({ required: true }),
21
- name: pieces_framework_1.Property.ShortText({
22
- displayName: 'Name',
23
- description: 'The new name of the bucket',
24
- required: false,
25
- }),
26
- orderHint: (0, properties_1.OrderHintProperty)({ required: false }),
27
- },
28
- run(_a) {
29
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
30
- const { planId, id } = propsValue, updateParams = tslib_1.__rest(propsValue, ["planId", "id"]);
31
- if (!id) {
32
- throw new Error('Bucket ID is required to update a bucket.');
33
- }
34
- return yield common_1.microsoft365PlannerCommon.updateBucket(Object.assign({ auth,
35
- id }, updateParams));
36
- });
37
- },
38
- });
39
- //# sourceMappingURL=update-bucket.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-bucket.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-bucket.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA+E;AAC/E,qDAI8B;AAEjB,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,gOAAgO;QAC7O,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxC,EAAE,EAAE,IAAA,2BAAc,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACtC,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,IAAA,8BAAiB,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAClD;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,MAAM,EAAE,EAAE,KAAsB,UAAU,EAA3B,YAAY,kBAAK,UAAU,EAA5C,gBAA+B,CAAa,CAAC;YACnD,IAAI,CAAC,EAAE,EAAE,CAAC;gBACR,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;YAC/D,CAAC;YACD,OAAO,MAAM,kCAAyB,CAAC,YAAY,iBACjD,IAAI;gBACJ,EAAE,IACC,YAAY,EACf,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const updatePlan: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- }>;
5
- //# sourceMappingURL=update-plan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-plan.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-plan.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;EA4BrB,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updatePlan = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const common_1 = require("../common");
7
- const properties_1 = require("../common/properties");
8
- exports.updatePlan = (0, pieces_framework_1.createAction)({
9
- auth: common_1.microsoft365PlannerAuth,
10
- name: 'updatePlan',
11
- displayName: 'Update Plan',
12
- description: 'modify metadata of a plan (e.g. title changes).',
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Updates an existing Planner plan\'s title, identified by plan ID. Use to rename a plan. Idempotent: setting the same title repeatedly leaves the plan in the same end state.',
16
- idempotent: true,
17
- },
18
- props: {
19
- id: (0, properties_1.PlanDropdown)({ required: true }),
20
- title: pieces_framework_1.Property.ShortText({
21
- displayName: 'Title',
22
- description: 'The new title of the plan',
23
- required: true,
24
- }),
25
- },
26
- run(_a) {
27
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { id, title } }) {
28
- if (!id) {
29
- throw new Error('Plan id is required');
30
- }
31
- return yield common_1.microsoft365PlannerCommon.updatePlan({
32
- auth,
33
- id,
34
- title,
35
- });
36
- });
37
- },
38
- });
39
- //# sourceMappingURL=update-plan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-plan.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-plan.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA+E;AAC/E,qDAAoD;AAEvC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,gCAAuB;IAC7B,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,8KAA8K;QAC3L,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,IAAA,yBAAY,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACpC,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE;YAC3C,IAAI,CAAC,EAAE,EAAE,CAAC;gBACR,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;YACzC,CAAC;YACD,OAAO,MAAM,kCAAyB,CAAC,UAAU,CAAC;gBAChD,IAAI;gBACJ,EAAE;gBACF,KAAK;aACN,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}