@activepieces/piece-microsoft-365-planner 0.2.3 → 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.
- package/package.json +7 -13
- package/src/index.js +21 -63
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-bucket.d.ts +0 -6
- package/src/lib/actions/create-bucket.d.ts.map +0 -1
- package/src/lib/actions/create-bucket.js +0 -28
- package/src/lib/actions/create-bucket.js.map +0 -1
- package/src/lib/actions/create-plan.d.ts +0 -5
- package/src/lib/actions/create-plan.d.ts.map +0 -1
- package/src/lib/actions/create-plan.js +0 -36
- package/src/lib/actions/create-plan.js.map +0 -1
- package/src/lib/actions/create-task.d.ts +0 -11
- package/src/lib/actions/create-task.d.ts.map +0 -1
- package/src/lib/actions/create-task.js +0 -83
- package/src/lib/actions/create-task.js.map +0 -1
- package/src/lib/actions/delete-bucket.d.ts +0 -5
- package/src/lib/actions/delete-bucket.d.ts.map +0 -1
- package/src/lib/actions/delete-bucket.js +0 -29
- package/src/lib/actions/delete-bucket.js.map +0 -1
- package/src/lib/actions/delete-task.d.ts +0 -5
- package/src/lib/actions/delete-task.d.ts.map +0 -1
- package/src/lib/actions/delete-task.js +0 -29
- package/src/lib/actions/delete-task.js.map +0 -1
- package/src/lib/actions/find-a-plan.d.ts +0 -4
- package/src/lib/actions/find-a-plan.d.ts.map +0 -1
- package/src/lib/actions/find-a-plan.js +0 -26
- package/src/lib/actions/find-a-plan.js.map +0 -1
- package/src/lib/actions/find-task.d.ts +0 -5
- package/src/lib/actions/find-task.d.ts.map +0 -1
- package/src/lib/actions/find-task.js +0 -31
- package/src/lib/actions/find-task.js.map +0 -1
- package/src/lib/actions/get-a-bucket.d.ts +0 -5
- package/src/lib/actions/get-a-bucket.d.ts.map +0 -1
- package/src/lib/actions/get-a-bucket.js +0 -29
- package/src/lib/actions/get-a-bucket.js.map +0 -1
- package/src/lib/actions/update-bucket.d.ts +0 -7
- package/src/lib/actions/update-bucket.d.ts.map +0 -1
- package/src/lib/actions/update-bucket.js +0 -34
- package/src/lib/actions/update-bucket.js.map +0 -1
- package/src/lib/actions/update-plan.d.ts +0 -5
- package/src/lib/actions/update-plan.d.ts.map +0 -1
- package/src/lib/actions/update-plan.js +0 -34
- package/src/lib/actions/update-plan.js.map +0 -1
- package/src/lib/actions/update-task.d.ts +0 -11
- package/src/lib/actions/update-task.d.ts.map +0 -1
- package/src/lib/actions/update-task.js +0 -84
- package/src/lib/actions/update-task.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -49
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -192
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/common/microsoft-cloud.d.ts +0 -5
- package/src/lib/common/microsoft-cloud.d.ts.map +0 -1
- package/src/lib/common/microsoft-cloud.js +0 -38
- package/src/lib/common/microsoft-cloud.js.map +0 -1
- package/src/lib/common/properties.d.ts +0 -16
- package/src/lib/common/properties.d.ts.map +0 -1
- package/src/lib/common/properties.js +0 -150
- package/src/lib/common/properties.js.map +0 -1
- package/src/lib/common/types.d.ts +0 -59
- package/src/lib/common/types.d.ts.map +0 -1
- package/src/lib/common/types.js +0 -3
- package/src/lib/common/types.js.map +0 -1
- package/src/lib/triggers/new-plan-created.d.ts +0 -3
- package/src/lib/triggers/new-plan-created.d.ts.map +0 -1
- package/src/lib/triggers/new-plan-created.js +0 -52
- package/src/lib/triggers/new-plan-created.js.map +0 -1
- package/src/lib/triggers/new-task-assigned-to-user.d.ts +0 -11
- package/src/lib/triggers/new-task-assigned-to-user.d.ts.map +0 -1
- package/src/lib/triggers/new-task-assigned-to-user.js +0 -67
- package/src/lib/triggers/new-task-assigned-to-user.js.map +0 -1
- package/src/lib/triggers/new-task-created.d.ts +0 -11
- package/src/lib/triggers/new-task-created.d.ts.map +0 -1
- package/src/lib/triggers/new-task-created.js +0 -93
- package/src/lib/triggers/new-task-created.js.map +0 -1
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -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;;;;EAoBvB,CAAC"}
|
|
@@ -1,28 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Bucket Name',
|
|
17
|
-
description: 'The name of the bucket to be created',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
orderHint: (0, properties_1.OrderHintProperty)({ required: false }),
|
|
21
|
-
},
|
|
22
|
-
run(_a) {
|
|
23
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
24
|
-
return yield common_1.microsoft365PlannerCommon.createBucket(Object.assign({ auth }, propsValue));
|
|
25
|
-
});
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
//# 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,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;;;EAwBrB,CAAC"}
|
|
@@ -1,36 +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
|
-
props: {
|
|
15
|
-
groupId: (0, properties_1.groupDropdown)({ required: true }),
|
|
16
|
-
title: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Title',
|
|
18
|
-
description: 'The title of the plan',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(_a) {
|
|
23
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
24
|
-
const cloud = (0, microsoft_cloud_1.getMicrosoftCloudFromAuth)(auth);
|
|
25
|
-
const graphBaseUrl = (0, microsoft_cloud_1.getGraphBaseUrl)(cloud);
|
|
26
|
-
const planParams = {
|
|
27
|
-
container: {
|
|
28
|
-
url: `${graphBaseUrl}/v1.0/groups/${propsValue.groupId}`,
|
|
29
|
-
},
|
|
30
|
-
title: propsValue.title,
|
|
31
|
-
};
|
|
32
|
-
return yield common_1.microsoft365PlannerCommon.createPlan(Object.assign({ auth }, planParams));
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
//# 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,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;;;;;;;;;EAqFrB,CAAC"}
|
|
@@ -1,83 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
bucketId: (0, properties_1.BucketDropdown)({ required: false }),
|
|
16
|
-
title: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Title',
|
|
18
|
-
description: 'The title of the task to be created',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
assignments: pieces_framework_1.Property.MultiSelectDropdown({
|
|
22
|
-
displayName: 'Assignments',
|
|
23
|
-
description: 'Select users to assign the task to. If left empty, the task will be unassigned.',
|
|
24
|
-
required: false,
|
|
25
|
-
auth: common_1.microsoft365PlannerAuth,
|
|
26
|
-
refreshers: ['auth'],
|
|
27
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
28
|
-
if (!auth) {
|
|
29
|
-
return {
|
|
30
|
-
options: [],
|
|
31
|
-
disabled: true,
|
|
32
|
-
placeholder: 'Please select an authentication first',
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const users = yield common_1.microsoft365PlannerCommon.listUsers({ auth: auth });
|
|
36
|
-
return {
|
|
37
|
-
options: users.map((user) => ({
|
|
38
|
-
label: user.displayName || user.userPrincipalName || 'No Name',
|
|
39
|
-
value: user.id || '',
|
|
40
|
-
})),
|
|
41
|
-
disabled: false,
|
|
42
|
-
placeholder: 'Select users to assign the task to',
|
|
43
|
-
};
|
|
44
|
-
}),
|
|
45
|
-
}),
|
|
46
|
-
dueDateTime: pieces_framework_1.Property.DateTime({
|
|
47
|
-
displayName: 'Due Date',
|
|
48
|
-
description: 'The due date and time for the task',
|
|
49
|
-
required: false,
|
|
50
|
-
}),
|
|
51
|
-
percentComplete: pieces_framework_1.Property.Number({
|
|
52
|
-
displayName: 'Percent Complete',
|
|
53
|
-
description: 'The completion percentage of the task (0-100)',
|
|
54
|
-
required: false,
|
|
55
|
-
}),
|
|
56
|
-
priority: pieces_framework_1.Property.Number({
|
|
57
|
-
displayName: 'Priority',
|
|
58
|
-
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).',
|
|
59
|
-
required: false,
|
|
60
|
-
}),
|
|
61
|
-
startDateTime: pieces_framework_1.Property.DateTime({
|
|
62
|
-
displayName: 'Start Date',
|
|
63
|
-
description: 'The start date and time for the task',
|
|
64
|
-
required: false,
|
|
65
|
-
}),
|
|
66
|
-
},
|
|
67
|
-
run(_a) {
|
|
68
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
69
|
-
const taskParams = Object.assign(Object.assign({}, propsValue), { assignments: propsValue.assignments
|
|
70
|
-
? Object.fromEntries(propsValue.assignments.map((userId) => [
|
|
71
|
-
userId,
|
|
72
|
-
{ '@odata.type': 'microsoft.graph.plannerAssignment' },
|
|
73
|
-
]))
|
|
74
|
-
: undefined, dueDateTime: propsValue.dueDateTime
|
|
75
|
-
? new Date(propsValue.dueDateTime).toISOString()
|
|
76
|
-
: undefined, startDateTime: propsValue.startDateTime
|
|
77
|
-
? new Date(propsValue.startDateTime).toISOString()
|
|
78
|
-
: undefined });
|
|
79
|
-
return yield common_1.microsoft365PlannerCommon.createTask(Object.assign({ auth }, taskParams));
|
|
80
|
-
});
|
|
81
|
-
},
|
|
82
|
-
});
|
|
83
|
-
//# 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;;;EAkBvB,CAAC"}
|
|
@@ -1,29 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
id: (0, properties_1.BucketDropdown)({ required: true }),
|
|
16
|
-
},
|
|
17
|
-
run(_a) {
|
|
18
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { id } }) {
|
|
19
|
-
if (!id) {
|
|
20
|
-
throw new Error('Bucket id is required');
|
|
21
|
-
}
|
|
22
|
-
return yield common_1.microsoft365PlannerCommon.deleteBucket({
|
|
23
|
-
auth,
|
|
24
|
-
id,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
//# 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,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;;;EAkBrB,CAAC"}
|
|
@@ -1,29 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
id: (0, properties_1.TaskDropdown)({ required: true }),
|
|
16
|
-
},
|
|
17
|
-
run(_a) {
|
|
18
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { id } }) {
|
|
19
|
-
if (!id) {
|
|
20
|
-
throw new Error('Task id is required');
|
|
21
|
-
}
|
|
22
|
-
return yield common_1.microsoft365PlannerCommon.deleteTask({
|
|
23
|
-
auth,
|
|
24
|
-
id,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
//# 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,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;;EAmBpB,CAAC"}
|
|
@@ -1,26 +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
|
-
props: {
|
|
13
|
-
title: pieces_framework_1.Property.ShortText({
|
|
14
|
-
displayName: 'Title',
|
|
15
|
-
description: 'The title of the plan to search for',
|
|
16
|
-
required: true,
|
|
17
|
-
}),
|
|
18
|
-
},
|
|
19
|
-
run(_a) {
|
|
20
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { title } }) {
|
|
21
|
-
const plans = yield common_1.microsoft365PlannerCommon.listPlans({ auth });
|
|
22
|
-
return plans.filter((plan) => plan.title && plan.title.toLowerCase().includes(title.toLowerCase()));
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
//# 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,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;;;EAuBnB,CAAC"}
|
|
@@ -1,31 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
title: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Title',
|
|
17
|
-
description: 'The title of the task to search for',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(_a) {
|
|
22
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { title, planId } }) {
|
|
23
|
-
if (!planId) {
|
|
24
|
-
throw new Error('Plan ID is required to fetch tasks.');
|
|
25
|
-
}
|
|
26
|
-
const tasks = yield common_1.microsoft365PlannerCommon.listTasks({ auth, planId });
|
|
27
|
-
return tasks.filter((task) => task.title && task.title.toLowerCase().includes(title.toLowerCase()));
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# 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,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;;;EAkBrB,CAAC"}
|
|
@@ -1,29 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
bucketId: (0, properties_1.BucketDropdown)({ required: true }),
|
|
16
|
-
},
|
|
17
|
-
run(_a) {
|
|
18
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { bucketId } }) {
|
|
19
|
-
if (!bucketId) {
|
|
20
|
-
throw new Error('Bucket ID is required to fetch bucket details.');
|
|
21
|
-
}
|
|
22
|
-
return yield common_1.microsoft365PlannerCommon.getBucketDetails({
|
|
23
|
-
auth,
|
|
24
|
-
bucketId,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
//# 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,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;;;;;EA0BvB,CAAC"}
|
|
@@ -1,34 +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
|
-
props: {
|
|
14
|
-
planId: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
id: (0, properties_1.BucketDropdown)({ required: true }),
|
|
16
|
-
name: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Name',
|
|
18
|
-
description: 'The new name of the bucket',
|
|
19
|
-
required: false,
|
|
20
|
-
}),
|
|
21
|
-
orderHint: (0, properties_1.OrderHintProperty)({ required: false }),
|
|
22
|
-
},
|
|
23
|
-
run(_a) {
|
|
24
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
25
|
-
const { planId, id } = propsValue, updateParams = tslib_1.__rest(propsValue, ["planId", "id"]);
|
|
26
|
-
if (!id) {
|
|
27
|
-
throw new Error('Bucket ID is required to update a bucket.');
|
|
28
|
-
}
|
|
29
|
-
return yield common_1.microsoft365PlannerCommon.updateBucket(Object.assign({ auth,
|
|
30
|
-
id }, updateParams));
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
//# 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,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;;;EAuBrB,CAAC"}
|
|
@@ -1,34 +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
|
-
props: {
|
|
14
|
-
id: (0, properties_1.PlanDropdown)({ required: true }),
|
|
15
|
-
title: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Title',
|
|
17
|
-
description: 'The new title of the plan',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(_a) {
|
|
22
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue: { id, title } }) {
|
|
23
|
-
if (!id) {
|
|
24
|
-
throw new Error('Plan id is required');
|
|
25
|
-
}
|
|
26
|
-
return yield common_1.microsoft365PlannerCommon.updatePlan({
|
|
27
|
-
auth,
|
|
28
|
-
id,
|
|
29
|
-
title,
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
//# 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,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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const updateTask: 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
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
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=update-task.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-task.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-task.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;;;;;EAoFrB,CAAC"}
|