@activepieces/piece-wrike 0.0.1

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 (44) hide show
  1. package/README.md +7 -0
  2. package/package.json +32 -0
  3. package/src/index.d.ts +1 -0
  4. package/src/index.js +52 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/add-comment.d.ts +6 -0
  7. package/src/lib/actions/add-comment.js +61 -0
  8. package/src/lib/actions/add-comment.js.map +1 -0
  9. package/src/lib/actions/create-folder.d.ts +10 -0
  10. package/src/lib/actions/create-folder.js +107 -0
  11. package/src/lib/actions/create-folder.js.map +1 -0
  12. package/src/lib/actions/create-project.d.ts +9 -0
  13. package/src/lib/actions/create-project.js +100 -0
  14. package/src/lib/actions/create-project.js.map +1 -0
  15. package/src/lib/actions/create-task.d.ts +12 -0
  16. package/src/lib/actions/create-task.js +142 -0
  17. package/src/lib/actions/create-task.js.map +1 -0
  18. package/src/lib/actions/find-folder.d.ts +9 -0
  19. package/src/lib/actions/find-folder.js +108 -0
  20. package/src/lib/actions/find-folder.js.map +1 -0
  21. package/src/lib/actions/find-task.d.ts +12 -0
  22. package/src/lib/actions/find-task.js +156 -0
  23. package/src/lib/actions/find-task.js.map +1 -0
  24. package/src/lib/actions/update-task.d.ts +12 -0
  25. package/src/lib/actions/update-task.js +142 -0
  26. package/src/lib/actions/update-task.js.map +1 -0
  27. package/src/lib/actions/upload-attachment.d.ts +6 -0
  28. package/src/lib/actions/upload-attachment.js +64 -0
  29. package/src/lib/actions/upload-attachment.js.map +1 -0
  30. package/src/lib/common/auth.d.ts +1 -0
  31. package/src/lib/common/auth.js +22 -0
  32. package/src/lib/common/auth.js.map +1 -0
  33. package/src/lib/common/client.d.ts +12 -0
  34. package/src/lib/common/client.js +24 -0
  35. package/src/lib/common/client.js.map +1 -0
  36. package/src/lib/triggers/new-folder.d.ts +8 -0
  37. package/src/lib/triggers/new-folder.js +81 -0
  38. package/src/lib/triggers/new-folder.js.map +1 -0
  39. package/src/lib/triggers/new-subtask.d.ts +8 -0
  40. package/src/lib/triggers/new-subtask.js +82 -0
  41. package/src/lib/triggers/new-subtask.js.map +1 -0
  42. package/src/lib/triggers/new-task.d.ts +8 -0
  43. package/src/lib/triggers/new-task.js +81 -0
  44. package/src/lib/triggers/new-task.js.map +1 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-wrike
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-wrike` to build the library.
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@activepieces/piece-wrike",
3
+ "version": "0.0.1",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "dependencies": {
8
+ "@sinclair/typebox": "0.34.11",
9
+ "axios": "1.8.3",
10
+ "axios-retry": "4.4.1",
11
+ "deepmerge-ts": "7.1.0",
12
+ "mime-types": "2.1.35",
13
+ "nanoid": "3.3.8",
14
+ "semver": "7.6.0",
15
+ "tslib": "^2.3.0",
16
+ "zod": "3.25.76",
17
+ "@activepieces/pieces-common": "0.7.0",
18
+ "@activepieces/pieces-framework": "0.20.1",
19
+ "@activepieces/shared": "0.23.0"
20
+ },
21
+ "overrides": {
22
+ "@tryfabric/martian": {
23
+ "@notionhq/client": "$@notionhq/client"
24
+ },
25
+ "vite": {
26
+ "rollup": "npm:@rollup/wasm-node"
27
+ }
28
+ },
29
+ "resolutions": {
30
+ "rollup": "npm:@rollup/wasm-node"
31
+ }
32
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const wrike: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
package/src/index.js ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrike = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const shared_1 = require("@activepieces/shared");
8
+ const auth_1 = require("./lib/common/auth");
9
+ const create_task_1 = require("./lib/actions/create-task");
10
+ const update_task_1 = require("./lib/actions/update-task");
11
+ const create_folder_1 = require("./lib/actions/create-folder");
12
+ const create_project_1 = require("./lib/actions/create-project");
13
+ const add_comment_1 = require("./lib/actions/add-comment");
14
+ const upload_attachment_1 = require("./lib/actions/upload-attachment");
15
+ const find_task_1 = require("./lib/actions/find-task");
16
+ const find_folder_1 = require("./lib/actions/find-folder");
17
+ const new_task_1 = require("./lib/triggers/new-task");
18
+ const new_folder_1 = require("./lib/triggers/new-folder");
19
+ const new_subtask_1 = require("./lib/triggers/new-subtask");
20
+ exports.wrike = (0, pieces_framework_1.createPiece)({
21
+ displayName: "Wrike",
22
+ auth: auth_1.wrikeAuth,
23
+ minimumSupportedRelease: '0.36.1',
24
+ logoUrl: "https://cdn.activepieces.com/pieces/wrike.png",
25
+ categories: [shared_1.PieceCategory.PRODUCTIVITY],
26
+ authors: ['owuzo', 'sanket-a11y'],
27
+ actions: [
28
+ create_task_1.createTask,
29
+ update_task_1.updateTask,
30
+ create_folder_1.createFolder,
31
+ create_project_1.createProject,
32
+ add_comment_1.addComment,
33
+ upload_attachment_1.uploadAttachment,
34
+ find_task_1.findTask,
35
+ find_folder_1.findFolder,
36
+ (0, pieces_common_1.createCustomApiCallAction)({
37
+ baseUrl: () => 'https://www.wrike.com/api/v4',
38
+ auth: auth_1.wrikeAuth,
39
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
40
+ return ({
41
+ Authorization: `Bearer ${auth.access_token}`,
42
+ });
43
+ }),
44
+ }),
45
+ ],
46
+ triggers: [
47
+ new_task_1.newTask,
48
+ new_folder_1.newFolder,
49
+ new_subtask_1.newSubtask,
50
+ ],
51
+ });
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/wrike/src/index.ts"],"names":[],"mappings":";;;;AACA,+DAAwE;AACxE,qEAAwE;AACxE,iDAAqD;AACrD,4CAA8C;AAC9C,2DAAuD;AACvD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAA6D;AAC7D,2DAAuD;AACvD,uEAAmE;AACnE,uDAAmD;AACnD,2DAAuD;AACvD,sDAAkD;AAClD,0DAAsD;AACtD,4DAAwD;AAE3C,QAAA,KAAK,GAAG,IAAA,8BAAW,EAAC;IAC/B,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,gBAAS;IACf,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,+CAA+C;IACxD,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE,CAAC,OAAO,EAAC,aAAa,CAAC;IAChC,OAAO,EAAE;QACP,wBAAU;QACV,wBAAU;QACV,4BAAY;QACZ,8BAAa;QACb,wBAAU;QACV,oCAAgB;QAChB,oBAAQ;QACR,wBAAU;QACV,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,8BAA8B;YAC7C,IAAI,EAAE,gBAAS;YACf,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAAY,CAAC,YAAY,EAAE;iBACtD,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE;QACR,kBAAO;QACP,sBAAS;QACT,wBAAU;KACX;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const addComment: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ entityType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ entityId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ text: import("@activepieces/pieces-framework").LongTextProperty<true>;
5
+ plainText: import("@activepieces/pieces-framework").CheckboxProperty<false>;
6
+ }>;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addComment = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ const client_1 = require("../common/client");
9
+ exports.addComment = (0, pieces_framework_1.createAction)({
10
+ name: 'add_comment',
11
+ displayName: 'Add Comment',
12
+ description: 'Add a comment or internal note to a task or folder',
13
+ auth: auth_1.wrikeAuth,
14
+ props: {
15
+ entityType: pieces_framework_1.Property.StaticDropdown({
16
+ displayName: 'Entity Type',
17
+ description: 'Select whether you want to add the comment to a task or folder',
18
+ required: true,
19
+ options: {
20
+ options: [
21
+ { label: 'Task', value: 'tasks' },
22
+ { label: 'Folder', value: 'folders' },
23
+ ],
24
+ },
25
+ }),
26
+ entityId: pieces_framework_1.Property.ShortText({
27
+ displayName: 'Entity ID',
28
+ description: 'The ID of the task or folder to add the comment to',
29
+ required: true,
30
+ }),
31
+ text: pieces_framework_1.Property.LongText({
32
+ displayName: 'Comment Text',
33
+ description: 'The text content of the comment',
34
+ required: true,
35
+ }),
36
+ plainText: pieces_framework_1.Property.Checkbox({
37
+ displayName: 'Plain Text',
38
+ description: 'Whether the comment should be treated as plain text (no HTML formatting). Default is HTML formatting.',
39
+ required: false,
40
+ defaultValue: false,
41
+ }),
42
+ },
43
+ run(context) {
44
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
45
+ const commentData = {
46
+ text: context.propsValue['text'],
47
+ };
48
+ if (context.propsValue['plainText'] !== undefined) {
49
+ commentData['plainText'] = context.propsValue['plainText'];
50
+ }
51
+ const response = yield client_1.wrikeCommon.apiCall({
52
+ auth: context.auth,
53
+ method: pieces_common_1.HttpMethod.POST,
54
+ resourceUri: `/${context.propsValue['entityType']}/${context.propsValue['entityId']}/comments`,
55
+ body: commentData,
56
+ });
57
+ return response.body;
58
+ });
59
+ },
60
+ });
61
+ //# sourceMappingURL=add-comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-comment.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/wrike/src/lib/actions/add-comment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA2C;AAC3C,6CAA+C;AAElC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,gBAAS;IACf,KAAK,EAAE;QACH,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAChC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gEAAgE;YAC7E,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACL,OAAO,EAAE;oBACL,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;oBACjC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;iBACxC;aACJ;SACJ,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACpB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,uGAAuG;YACpH,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACtB,CAAC;KACL;IACK,GAAG,CAAC,OAAO;;YACb,MAAM,WAAW,GAAwB;gBACrC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;aACnC,CAAC;YAEF,IAAI,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;gBAChD,WAAW,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC/D,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,oBAAW,CAAC,OAAO,CAAC;gBACvC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,IAAI,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW;gBAC9F,IAAI,EAAE,WAAW;aACpB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;KAAA;CACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const createFolder: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ parentFolderId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
+ title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ description: import("@activepieces/pieces-framework").LongTextProperty<false>;
5
+ shareds: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
6
+ project: import("@activepieces/pieces-framework").CheckboxProperty<false>;
7
+ projectOwnerId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ projectStartDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
9
+ projectEndDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
+ }>;
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFolder = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
6
+ /* eslint-disable @typescript-eslint/dot-notation */
7
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
8
+ const pieces_common_1 = require("@activepieces/pieces-common");
9
+ const auth_1 = require("../common/auth");
10
+ const client_1 = require("../common/client");
11
+ exports.createFolder = (0, pieces_framework_1.createAction)({
12
+ name: 'create_folder',
13
+ displayName: 'Create Folder',
14
+ description: 'Create a new folder in Wrike',
15
+ auth: auth_1.wrikeAuth,
16
+ props: {
17
+ parentFolderId: pieces_framework_1.Property.ShortText({
18
+ displayName: 'Parent Folder ID',
19
+ description: 'The ID of the parent folder where the new folder will be created. Leave empty to create at root level.',
20
+ required: false,
21
+ }),
22
+ title: pieces_framework_1.Property.ShortText({
23
+ displayName: 'Folder Title',
24
+ description: 'The title of the folder',
25
+ required: true,
26
+ }),
27
+ description: pieces_framework_1.Property.LongText({
28
+ displayName: 'Description',
29
+ description: 'The description of the folder',
30
+ required: false,
31
+ }),
32
+ shareds: pieces_framework_1.Property.Array({
33
+ displayName: 'Shared Users',
34
+ description: 'User IDs to share the folder with',
35
+ required: false,
36
+ properties: {
37
+ userId: pieces_framework_1.Property.ShortText({
38
+ displayName: 'User ID',
39
+ required: true,
40
+ }),
41
+ },
42
+ }),
43
+ project: pieces_framework_1.Property.Checkbox({
44
+ displayName: 'Create as Project',
45
+ description: 'Whether this folder should be created as a project with additional project settings',
46
+ required: false,
47
+ defaultValue: false,
48
+ }),
49
+ projectOwnerId: pieces_framework_1.Property.ShortText({
50
+ displayName: 'Project Owner ID',
51
+ description: 'The ID of the user who will own the project (required when creating as project)',
52
+ required: false,
53
+ }),
54
+ projectStartDate: pieces_framework_1.Property.DateTime({
55
+ displayName: 'Project Start Date',
56
+ description: 'The start date of the project (format: YYYY-MM-DD)',
57
+ required: false,
58
+ }),
59
+ projectEndDate: pieces_framework_1.Property.DateTime({
60
+ displayName: 'Project End Date',
61
+ description: 'The end date of the project (format: YYYY-MM-DD)',
62
+ required: false,
63
+ }),
64
+ },
65
+ run(context) {
66
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
67
+ const props = context.propsValue;
68
+ const { parentFolderId, title, description, shareds, project, projectOwnerId, projectStartDate, projectEndDate } = props;
69
+ const folderData = {
70
+ title,
71
+ };
72
+ if (description)
73
+ folderData['description'] = description;
74
+ if (shareds && shareds.length > 0) {
75
+ folderData['shareds'] = shareds.map((shared) => shared.userId);
76
+ }
77
+ if (project) {
78
+ const projectData = {};
79
+ if (projectOwnerId) {
80
+ projectData['ownerIds'] = [projectOwnerId];
81
+ }
82
+ else {
83
+ projectData['ownerIds'] = [context.auth.access_token.split('.')[0]];
84
+ }
85
+ if (projectStartDate) {
86
+ projectData['startDate'] = projectStartDate.split('T')[0]; // Format as YYYY-MM-DD
87
+ }
88
+ if (projectEndDate) {
89
+ projectData['endDate'] = projectEndDate.split('T')[0]; // Format as YYYY-MM-DD
90
+ }
91
+ folderData['project'] = projectData;
92
+ }
93
+ let resourceUri = '/folders';
94
+ if (parentFolderId) {
95
+ resourceUri = `/folders/${parentFolderId}/folders`;
96
+ }
97
+ const response = yield client_1.wrikeCommon.apiCall({
98
+ auth: context.auth,
99
+ method: pieces_common_1.HttpMethod.POST,
100
+ resourceUri,
101
+ body: folderData,
102
+ });
103
+ return response.body;
104
+ });
105
+ },
106
+ });
107
+ //# sourceMappingURL=create-folder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-folder.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/wrike/src/lib/actions/create-folder.ts"],"names":[],"mappings":";;;;AAAA,uDAAuD;AACvD,oDAAoD;AACpD,qEAAwE;AACxE,+DAAyD;AACzD,yCAA2C;AAC3C,6CAA+C;AAElC,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,gBAAS;IACf,KAAK,EAAE;QACH,cAAc,EAAE,2BAAQ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I,WAAW,GAAG,UAAU,CAAC;YAC7B,IAAI,cAAc,EAAE,CAAC;gBACjB,WAAW,GAAG,YAAY,cAAc,UAAU,CAAC;YACvD,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,oBAAW,CAAC,OAAO,CAAC;gBACvC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW;gBACX,IAAI,EAAE,UAAU;aACnB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;KAAA;CACJ,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const createProject: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ parentFolderId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
+ title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ description: import("@activepieces/pieces-framework").LongTextProperty<false>;
5
+ ownerIds: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
6
+ shareds: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
7
+ start_date: import("@activepieces/pieces-framework").DateTimeProperty<false>;
8
+ end_date: import("@activepieces/pieces-framework").DateTimeProperty<false>;
9
+ }>;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createProject = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ const client_1 = require("../common/client");
9
+ exports.createProject = (0, pieces_framework_1.createAction)({
10
+ name: 'create_project',
11
+ displayName: 'Create Project',
12
+ description: 'Create a new project in Wrike',
13
+ auth: auth_1.wrikeAuth,
14
+ props: {
15
+ parentFolderId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Parent Folder ID',
17
+ description: 'The ID of the parent folder where the project will be created. Leave empty to create at root level.',
18
+ required: false,
19
+ }),
20
+ title: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Project Title',
22
+ description: 'The title of the project',
23
+ required: true,
24
+ }),
25
+ description: pieces_framework_1.Property.LongText({
26
+ displayName: 'Description',
27
+ description: 'The description of the project',
28
+ required: false,
29
+ }),
30
+ ownerIds: pieces_framework_1.Property.Array({
31
+ displayName: 'Owner IDs',
32
+ description: 'User IDs who will own the project',
33
+ required: false,
34
+ properties: {
35
+ userId: pieces_framework_1.Property.ShortText({
36
+ displayName: 'User ID',
37
+ required: true,
38
+ }),
39
+ },
40
+ }),
41
+ shareds: pieces_framework_1.Property.Array({
42
+ displayName: 'Shared Users',
43
+ description: 'User IDs to share the project with',
44
+ required: false,
45
+ properties: {
46
+ userId: pieces_framework_1.Property.ShortText({
47
+ displayName: 'User ID',
48
+ required: true,
49
+ }),
50
+ },
51
+ }),
52
+ start_date: pieces_framework_1.Property.DateTime({
53
+ displayName: 'Start Date',
54
+ description: 'Project start date (format: YYYY-MM-DD)',
55
+ required: false,
56
+ }),
57
+ end_date: pieces_framework_1.Property.DateTime({
58
+ displayName: 'End Date',
59
+ description: 'Project end date (format: YYYY-MM-DD)',
60
+ required: false,
61
+ }),
62
+ },
63
+ run(context) {
64
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
65
+ const props = context.propsValue;
66
+ const { parentFolderId, title, description, ownerIds, shareds, start_date, end_date } = props;
67
+ const projectData = {
68
+ title,
69
+ project: {},
70
+ };
71
+ if (ownerIds && ownerIds.length > 0) {
72
+ projectData['project']['ownerIds'] = ownerIds.map((owner) => owner.userId);
73
+ }
74
+ if (description)
75
+ projectData['description'] = description;
76
+ if (shareds && shareds.length > 0) {
77
+ projectData['shareds'] = shareds.map((shared) => shared.userId);
78
+ }
79
+ if (start_date || end_date) {
80
+ projectData['project']['dates'] = {};
81
+ if (start_date)
82
+ projectData['project']['dates']['start'] = start_date.split('T')[0];
83
+ if (end_date)
84
+ projectData['project']['dates']['end'] = end_date.split('T')[0];
85
+ }
86
+ let resourceUri = '/folders';
87
+ if (parentFolderId) {
88
+ resourceUri = `/folders/${parentFolderId}/folders`;
89
+ }
90
+ const response = yield client_1.wrikeCommon.apiCall({
91
+ auth: context.auth,
92
+ method: pieces_common_1.HttpMethod.POST,
93
+ resourceUri,
94
+ body: projectData,
95
+ });
96
+ return response.body;
97
+ });
98
+ },
99
+ });
100
+ //# sourceMappingURL=create-project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-project.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/wrike/src/lib/actions/create-project.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA2C;AAC3C,6CAA+C;AAElC,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,+BAA+B;IAC5C,IAAI,EAAE,gBAAS;IACf,KAAK,EAAE;QACH,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,qGAAqG;YAClH,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACrB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,KAAK;YACf,UAA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D,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,WAAW,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACzE,CAAC;YAED,IAAI,UAAU,IAAI,QAAQ,EAAE,CAAC;gBACzB,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;gBACrC,IAAI,UAAU;oBAAE,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpF,IAAI,QAAQ;oBAAE,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClF,CAAC;YAED,IAAI,WAAW,GAAG,UAAU,CAAC;YAC7B,IAAI,cAAc,EAAE,CAAC;gBACjB,WAAW,GAAG,YAAY,cAAc,UAAU,CAAC;YACvD,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,oBAAW,CAAC,OAAO,CAAC;gBACvC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW;gBACX,IAAI,EAAE,WAAW;aACpB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;KAAA;CACJ,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const createTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ folderId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ description: import("@activepieces/pieces-framework").LongTextProperty<false>;
5
+ status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
6
+ importance: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
7
+ assignees: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
8
+ start_date: import("@activepieces/pieces-framework").DateTimeProperty<false>;
9
+ due_date: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
+ duration: import("@activepieces/pieces-framework").NumberProperty<false>;
11
+ customFields: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
12
+ }>;
@@ -0,0 +1,142 @@
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 pieces_common_1 = require("@activepieces/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ const client_1 = require("../common/client");
9
+ exports.createTask = (0, pieces_framework_1.createAction)({
10
+ name: 'create_task',
11
+ displayName: 'Create Task',
12
+ description: 'Create a new task in Wrike',
13
+ auth: auth_1.wrikeAuth,
14
+ props: {
15
+ folderId: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Folder ID',
17
+ description: 'The ID of the folder where the task will be created',
18
+ required: true,
19
+ }),
20
+ title: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Task Title',
22
+ description: 'The title of the task',
23
+ required: true,
24
+ }),
25
+ description: pieces_framework_1.Property.LongText({
26
+ displayName: 'Description',
27
+ description: 'The description of the task',
28
+ required: false,
29
+ }),
30
+ status: pieces_framework_1.Property.StaticDropdown({
31
+ displayName: 'Status',
32
+ description: 'The status of the task',
33
+ required: false,
34
+ options: {
35
+ options: [
36
+ { label: 'Active', value: 'Active' },
37
+ { label: 'Completed', value: 'Completed' },
38
+ { label: 'Deferred', value: 'Deferred' },
39
+ { label: 'Cancelled', value: 'Cancelled' },
40
+ ],
41
+ },
42
+ }),
43
+ importance: pieces_framework_1.Property.StaticDropdown({
44
+ displayName: 'Importance',
45
+ description: 'The importance/priority of the task',
46
+ required: false,
47
+ options: {
48
+ options: [
49
+ { label: 'Low', value: 'Low' },
50
+ { label: 'Normal', value: 'Normal' },
51
+ { label: 'High', value: 'High' },
52
+ { label: 'Critical', value: 'Critical' },
53
+ ],
54
+ },
55
+ }),
56
+ assignees: pieces_framework_1.Property.Array({
57
+ displayName: 'Assignees',
58
+ description: 'User IDs to assign to the task',
59
+ required: false,
60
+ properties: {
61
+ userId: pieces_framework_1.Property.ShortText({
62
+ displayName: 'User ID',
63
+ required: true,
64
+ }),
65
+ },
66
+ }),
67
+ start_date: pieces_framework_1.Property.DateTime({
68
+ displayName: 'Start Date',
69
+ description: 'Task start date (format: YYYY-MM-DD)',
70
+ required: false,
71
+ }),
72
+ due_date: pieces_framework_1.Property.DateTime({
73
+ displayName: 'Due Date',
74
+ description: 'Task due date (format: YYYY-MM-DD)',
75
+ required: false,
76
+ }),
77
+ duration: pieces_framework_1.Property.Number({
78
+ displayName: 'Duration',
79
+ description: 'Task duration in minutes',
80
+ required: false,
81
+ }),
82
+ customFields: pieces_framework_1.Property.Array({
83
+ displayName: 'Custom Fields',
84
+ description: 'Custom field values for the task',
85
+ required: false,
86
+ properties: {
87
+ fieldId: pieces_framework_1.Property.ShortText({
88
+ displayName: 'Field ID',
89
+ description: 'Custom field identifier',
90
+ required: true,
91
+ }),
92
+ value: pieces_framework_1.Property.ShortText({
93
+ displayName: 'Value',
94
+ description: 'Field value',
95
+ required: true,
96
+ }),
97
+ },
98
+ }),
99
+ },
100
+ run(context) {
101
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
102
+ const props = context.propsValue;
103
+ const { folderId, title, description, status, importance, assignees, start_date, due_date, duration, customFields } = props;
104
+ const taskData = {
105
+ title,
106
+ };
107
+ if (description)
108
+ taskData['description'] = description;
109
+ if (status)
110
+ taskData['status'] = status;
111
+ if (importance)
112
+ taskData['importance'] = importance;
113
+ if (assignees && assignees.length > 0) {
114
+ taskData['responsibles'] = assignees.map((assignee) => assignee.userId);
115
+ }
116
+ const dates = {};
117
+ if (start_date)
118
+ dates['start'] = start_date;
119
+ if (due_date)
120
+ dates['due'] = due_date;
121
+ if (duration)
122
+ dates['duration'] = duration;
123
+ if (Object.keys(dates).length > 0) {
124
+ taskData['dates'] = dates;
125
+ }
126
+ if (customFields && customFields.length > 0) {
127
+ taskData['customFields'] = customFields.map((field) => ({
128
+ id: field.fieldId,
129
+ value: field.value,
130
+ }));
131
+ }
132
+ const response = yield client_1.wrikeCommon.apiCall({
133
+ auth: context.auth,
134
+ method: pieces_common_1.HttpMethod.POST,
135
+ resourceUri: `/folders/${folderId}/tasks`,
136
+ body: taskData,
137
+ });
138
+ return response.body;
139
+ });
140
+ },
141
+ });
142
+ //# sourceMappingURL=create-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-task.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/wrike/src/lib/actions/create-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA2C;AAC3C,6CAA+C;AAElC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,gBAAS;IACf,KAAK,EAAE;QACH,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,WAAW,E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import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ folderId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
+ title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
+ parentIds: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
5
+ project: import("@activepieces/pieces-framework").CheckboxProperty<false>;
6
+ pageSize: import("@activepieces/pieces-framework").NumberProperty<false>;
7
+ authors: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
8
+ owners: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
9
+ }>;