@activepieces/piece-jira-data-center 0.0.2 → 0.0.4

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 (89) hide show
  1. package/package.json +7 -34
  2. package/src/index.js +29 -64
  3. package/src/auth.d.ts +0 -7
  4. package/src/auth.d.ts.map +0 -1
  5. package/src/auth.js +0 -59
  6. package/src/auth.js.map +0 -1
  7. package/src/index.d.ts +0 -5
  8. package/src/index.d.ts.map +0 -1
  9. package/src/index.js.map +0 -1
  10. package/src/lib/actions/add-attachment-to-issue.d.ts +0 -21
  11. package/src/lib/actions/add-attachment-to-issue.d.ts.map +0 -1
  12. package/src/lib/actions/add-attachment-to-issue.js +0 -41
  13. package/src/lib/actions/add-attachment-to-issue.js.map +0 -1
  14. package/src/lib/actions/add-comment-to-issue.d.ts +0 -21
  15. package/src/lib/actions/add-comment-to-issue.d.ts.map +0 -1
  16. package/src/lib/actions/add-comment-to-issue.js +0 -38
  17. package/src/lib/actions/add-comment-to-issue.js.map +0 -1
  18. package/src/lib/actions/add-watcher-to-issue.d.ts +0 -20
  19. package/src/lib/actions/add-watcher-to-issue.d.ts.map +0 -1
  20. package/src/lib/actions/add-watcher-to-issue.js +0 -48
  21. package/src/lib/actions/add-watcher-to-issue.js.map +0 -1
  22. package/src/lib/actions/assign-issue.d.ts +0 -27
  23. package/src/lib/actions/assign-issue.d.ts.map +0 -1
  24. package/src/lib/actions/assign-issue.js +0 -39
  25. package/src/lib/actions/assign-issue.js.map +0 -1
  26. package/src/lib/actions/create-issue.d.ts +0 -24
  27. package/src/lib/actions/create-issue.d.ts.map +0 -1
  28. package/src/lib/actions/create-issue.js +0 -110
  29. package/src/lib/actions/create-issue.js.map +0 -1
  30. package/src/lib/actions/delete-issue-comment.d.ts +0 -24
  31. package/src/lib/actions/delete-issue-comment.d.ts.map +0 -1
  32. package/src/lib/actions/delete-issue-comment.js +0 -64
  33. package/src/lib/actions/delete-issue-comment.js.map +0 -1
  34. package/src/lib/actions/find-user.d.ts +0 -7
  35. package/src/lib/actions/find-user.d.ts.map +0 -1
  36. package/src/lib/actions/find-user.js +0 -37
  37. package/src/lib/actions/find-user.js.map +0 -1
  38. package/src/lib/actions/get-issue-attachment.d.ts +0 -7
  39. package/src/lib/actions/get-issue-attachment.d.ts.map +0 -1
  40. package/src/lib/actions/get-issue-attachment.js +0 -46
  41. package/src/lib/actions/get-issue-attachment.js.map +0 -1
  42. package/src/lib/actions/get-issue.d.ts +0 -23
  43. package/src/lib/actions/get-issue.d.ts.map +0 -1
  44. package/src/lib/actions/get-issue.js +0 -136
  45. package/src/lib/actions/get-issue.js.map +0 -1
  46. package/src/lib/actions/link-issues.d.ts +0 -27
  47. package/src/lib/actions/link-issues.d.ts.map +0 -1
  48. package/src/lib/actions/link-issues.js +0 -52
  49. package/src/lib/actions/link-issues.js.map +0 -1
  50. package/src/lib/actions/list-issue-comments.d.ts +0 -22
  51. package/src/lib/actions/list-issue-comments.d.ts.map +0 -1
  52. package/src/lib/actions/list-issue-comments.js +0 -59
  53. package/src/lib/actions/list-issue-comments.js.map +0 -1
  54. package/src/lib/actions/search-issues.d.ts +0 -8
  55. package/src/lib/actions/search-issues.d.ts.map +0 -1
  56. package/src/lib/actions/search-issues.js +0 -40
  57. package/src/lib/actions/search-issues.js.map +0 -1
  58. package/src/lib/actions/update-issue-comment.d.ts +0 -25
  59. package/src/lib/actions/update-issue-comment.d.ts.map +0 -1
  60. package/src/lib/actions/update-issue-comment.js +0 -71
  61. package/src/lib/actions/update-issue-comment.js.map +0 -1
  62. package/src/lib/actions/update-issue.d.ts +0 -24
  63. package/src/lib/actions/update-issue.d.ts.map +0 -1
  64. package/src/lib/actions/update-issue.js +0 -122
  65. package/src/lib/actions/update-issue.js.map +0 -1
  66. package/src/lib/common/index.d.ts +0 -74
  67. package/src/lib/common/index.d.ts.map +0 -1
  68. package/src/lib/common/index.js +0 -197
  69. package/src/lib/common/index.js.map +0 -1
  70. package/src/lib/common/props.d.ts +0 -80
  71. package/src/lib/common/props.d.ts.map +0 -1
  72. package/src/lib/common/props.js +0 -572
  73. package/src/lib/common/props.js.map +0 -1
  74. package/src/lib/common/types.d.ts +0 -23
  75. package/src/lib/common/types.d.ts.map +0 -1
  76. package/src/lib/common/types.js +0 -25
  77. package/src/lib/common/types.js.map +0 -1
  78. package/src/lib/triggers/new-issue.d.ts +0 -23
  79. package/src/lib/triggers/new-issue.d.ts.map +0 -1
  80. package/src/lib/triggers/new-issue.js +0 -61
  81. package/src/lib/triggers/new-issue.js.map +0 -1
  82. package/src/lib/triggers/updated-issue-status.d.ts +0 -23
  83. package/src/lib/triggers/updated-issue-status.d.ts.map +0 -1
  84. package/src/lib/triggers/updated-issue-status.js +0 -61
  85. package/src/lib/triggers/updated-issue-status.js.map +0 -1
  86. package/src/lib/triggers/updated-issue.d.ts +0 -23
  87. package/src/lib/triggers/updated-issue.d.ts.map +0 -1
  88. package/src/lib/triggers/updated-issue.js +0 -61
  89. package/src/lib/triggers/updated-issue.js.map +0 -1
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAE7D,+DAAwE;AACxE,iDAAqD;AACrD,iCAAgE;AAChE,6DAA+D;AAC/D,+DAAiE;AACjE,wDAAoD;AACpD,gEAA4D;AAC5D,8EAAyE;AACzE,6EAA6E;AAC7E,mFAAmF;AACnF,6EAA8E;AAC9E,6EAA8E;AAC9E,6DAA+D;AAC/D,6DAA+D;AAC/D,2EAA4E;AAC5E,uDAAyD;AACzD,6EAA6E;AAC7E,2DAA6D;AAC7D,6EAA8E;AAC9E,uDAAyD;AAE5C,QAAA,cAAc,GAAG,IAAA,8BAAW,EAAC;IACzC,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,uEAAuE;IAEpF,IAAI,EAAE,yBAAkB;IACxB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8CAA8C;IACvD,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE;QACR,gCAAiB;QACjB,gCAAiB;QACjB,0BAAc;QACd,0BAAc;QACd,kCAAkB;QAClB,gCAAiB;QACjB,oDAA0B;QAC1B,+CAAwB;QACxB,8CAAuB;QACvB,8CAAuB;QACvB,+CAAwB;QACxB,8BAAgB;QAChB,6CAAuB;QACvB,+CAAwB;QACxB,IAAA,yCAAyB,EAAC;YACzB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBACjB,OAAO,IAAI,CAAC,CAAC,CAAC,GAAI,IAA2B,CAAC,KAAK,CAAC,WAAW,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,CAAC;YACD,IAAI,EAAE,yBAAkB;YACxB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC3B,MAAM,SAAS,GAAG,IAA0B,CAAC;gBAC7C,OAAO;oBACN,aAAa,EAAE,UAAU,SAAS,CAAC,KAAK,CAAC,mBAAmB,EAAE;iBAC9D,CAAC;YACH,CAAC,CAAA;SACD,CAAC;KACF;IACD,QAAQ,EAAE,CAAC,oBAAQ,EAAE,4BAAY,EAAE,yCAAkB,CAAC;CACtD,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- export declare const addAttachmentToIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
11
- }>>;
12
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
13
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>>;
19
- attachment: import("@activepieces/pieces-framework").FileProperty<true>;
20
- }>;
21
- //# sourceMappingURL=add-attachment-to-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-attachment-to-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/add-attachment-to-issue.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;EA+BrC,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addAttachmentToIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const common_1 = require("../common");
9
- const form_data_1 = tslib_1.__importDefault(require("form-data"));
10
- const props_1 = require("../common/props");
11
- exports.addAttachmentToIssueAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.jiraDataCenterAuth,
13
- name: 'add_issue_attachment',
14
- displayName: 'Add Attachment to Issue',
15
- description: 'Adds an attachment to an issue.',
16
- props: {
17
- projectId: (0, props_1.getProjectIdDropdown)(),
18
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
19
- attachment: pieces_framework_1.Property.File({
20
- displayName: 'Attachment',
21
- required: true,
22
- }),
23
- },
24
- run(context) {
25
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
- const { issueId, attachment } = context.propsValue;
27
- const formData = new form_data_1.default();
28
- const fileBuffer = Buffer.from(attachment.base64, 'base64');
29
- formData.append('file', fileBuffer, attachment.filename);
30
- const response = yield (0, common_1.sendJiraRequest)({
31
- method: pieces_common_1.HttpMethod.POST,
32
- url: `issue/${issueId}/attachments`,
33
- auth: context.auth,
34
- headers: Object.assign({ 'X-Atlassian-Token': 'no-check' }, formData.getHeaders()),
35
- body: formData,
36
- });
37
- return response.body;
38
- });
39
- },
40
- });
41
- //# sourceMappingURL=add-attachment-to-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-attachment-to-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/add-attachment-to-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAChD,+DAAyD;AACzD,sCAA4C;AAC5C,kEAAiC;AACjC,2CAA2E;AAE9D,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACN,SAAS,EAAE,IAAA,4BAAoB,GAAE;QACjC,OAAO,EAAE,IAAA,0BAAkB,EAAC,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1D,UAAU,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACzB,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACnD,MAAM,QAAQ,GAAG,IAAI,mBAAQ,EAAE,CAAC;YAChC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAC5D,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;YAEzD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,SAAS,OAAO,cAAc;gBACnC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,OAAO,kBACN,mBAAmB,EAAE,UAAU,IAC5B,QAAQ,CAAC,UAAU,EAAE,CACxB;gBACD,IAAI,EAAE,QAAQ;aACd,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- export declare const addCommentToIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
11
- }>>;
12
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
13
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>>;
19
- comment: import("@activepieces/pieces-framework").LongTextProperty<true>;
20
- }>;
21
- //# sourceMappingURL=add-comment-to-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-comment-to-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/add-comment-to-issue.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;EA0BlC,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addCommentToIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const common_1 = require("../common");
9
- const props_1 = require("../common/props");
10
- exports.addCommentToIssueAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.jiraDataCenterAuth,
12
- name: 'add_issue_comment',
13
- displayName: 'Add Issue Comment',
14
- description: 'Adds a comment to an issue.',
15
- props: {
16
- projectId: (0, props_1.getProjectIdDropdown)(),
17
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
18
- comment: pieces_framework_1.Property.LongText({
19
- displayName: 'Comment Body',
20
- required: true,
21
- }),
22
- },
23
- run(context) {
24
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
- const { issueId, comment } = context.propsValue;
26
- const response = yield (0, common_1.sendJiraRequest)({
27
- method: pieces_common_1.HttpMethod.POST,
28
- url: `issue/${issueId}/comment`,
29
- auth: context.auth,
30
- body: {
31
- body: comment,
32
- },
33
- });
34
- return response.body;
35
- });
36
- },
37
- });
38
- //# sourceMappingURL=add-comment-to-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-comment-to-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/add-comment-to-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAChD,+DAAyD;AACzD,sCAA4C;AAC5C,2CAA2E;AAE9D,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE;QACN,SAAS,EAAE,IAAA,4BAAoB,GAAE;QACjC,OAAO,EAAE,IAAA,0BAAkB,EAAC,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1D,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEhD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,SAAS,OAAO,UAAU;gBAC/B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,IAAI,EAAE;oBACL,IAAI,EAAE,OAAO;iBACb;aACD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- export declare const addWatcherToIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
11
- }>>;
12
- userId: import("@activepieces/pieces-framework").DropdownProperty<any, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
13
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- }>> | import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>>;
19
- }>;
20
- //# sourceMappingURL=add-watcher-to-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-watcher-to-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/add-watcher-to-issue.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAmClC,CAAC"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addWatcherToIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const props_1 = require("../common/props");
8
- const shared_1 = require("@activepieces/shared");
9
- const common_1 = require("../common");
10
- const pieces_common_1 = require("@activepieces/pieces-common");
11
- exports.addWatcherToIssueAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.jiraDataCenterAuth,
13
- name: 'add-watcher-to-issue',
14
- displayName: 'Add Watcher to Issue',
15
- description: 'Adds a new watcher to an issue.',
16
- props: {
17
- issueId: (0, props_1.issueIdOrKeyProp)('Issue ID or Key', true),
18
- userId: (0, props_1.getUsersDropdown)({
19
- displayName: 'User',
20
- refreshers: [],
21
- required: true,
22
- }),
23
- },
24
- run(context) {
25
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
- const { issueId, userId } = context.propsValue;
27
- if ((0, shared_1.isNil)(issueId)) {
28
- throw new Error('Issue ID is required');
29
- }
30
- if ((0, shared_1.isNil)(userId)) {
31
- throw new Error('User ID is required');
32
- }
33
- try {
34
- yield (0, common_1.jiraApiCall)({
35
- auth: context.auth,
36
- method: pieces_common_1.HttpMethod.POST,
37
- resourceUri: `/issue/${issueId}/watchers`,
38
- body: `"${userId}"`,
39
- });
40
- return { success: true };
41
- }
42
- catch (e) {
43
- return { success: false, error: e.message };
44
- }
45
- });
46
- },
47
- });
48
- //# sourceMappingURL=add-watcher-to-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-watcher-to-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/add-watcher-to-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAAgD;AAChD,2CAAqE;AACrE,iDAA6C;AAC7C,sCAAwC;AACxC,+DAAoE;AAEvD,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACN,OAAO,EAAE,IAAA,wBAAgB,EAAC,iBAAiB,EAAE,IAAI,CAAC;QAClD,MAAM,EAAE,IAAA,wBAAgB,EAAC;YACxB,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC/C,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,EAAE,CAAC;gBACpB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;YACzC,CAAC;YACD,IAAI,IAAA,cAAK,EAAC,MAAM,CAAC,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;YACxC,CAAC;YAED,IAAI,CAAC;gBACJ,MAAM,IAAA,oBAAW,EAAC;oBACjB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,MAAM,EAAE,0BAAU,CAAC,IAAI;oBACvB,WAAW,EAAE,UAAU,OAAO,WAAW;oBACzC,IAAI,EAAE,IAAI,MAAM,GAAG;iBACnB,CAAC,CAAC;gBAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC1B,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACZ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAG,CAAe,CAAC,OAAO,EAAE,CAAC;YAC5D,CAAC;QACF,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- export declare const assignIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
11
- }>>;
12
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
13
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>>;
19
- assignee: import("@activepieces/pieces-framework").DropdownProperty<any, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
22
- }>> | import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
23
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
24
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
25
- }>>;
26
- }>;
27
- //# sourceMappingURL=assign-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assign-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/assign-issue.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;EA0B5B,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assignIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const common_1 = require("../common");
9
- const props_1 = require("../common/props");
10
- exports.assignIssueAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.jiraDataCenterAuth,
12
- name: 'assign_issue',
13
- displayName: 'Assign Issue',
14
- description: 'Assigns an issue to a user.',
15
- props: {
16
- projectId: (0, props_1.getProjectIdDropdown)(),
17
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
18
- assignee: (0, props_1.getUsersDropdown)({
19
- displayName: 'Assignee',
20
- refreshers: ['projectId'],
21
- required: true,
22
- }),
23
- },
24
- run(context) {
25
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
- const { issueId, assignee } = context.propsValue;
27
- const response = yield (0, common_1.sendJiraRequest)({
28
- method: pieces_common_1.HttpMethod.PUT,
29
- url: `issue/${issueId}/assignee`,
30
- auth: context.auth,
31
- body: {
32
- name: assignee,
33
- },
34
- });
35
- return response.body;
36
- });
37
- },
38
- });
39
- //# sourceMappingURL=assign-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assign-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/assign-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAAgD;AAChD,+DAAyD;AACzD,sCAA4C;AAC5C,2CAA6F;AAEhF,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE;QACN,SAAS,EAAE,IAAA,4BAAoB,GAAE;QACjC,OAAO,EAAE,IAAA,0BAAkB,EAAC,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1D,QAAQ,EAAE,IAAA,wBAAgB,EAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,UAAU,EAAE,CAAC,WAAW,CAAC;YACzB,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACjD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,SAAS,OAAO,WAAW;gBAChC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,IAAI,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACd;aACD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- export declare const createIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
11
- }>>;
12
- issueTypeId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
13
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>>;
19
- issueFields: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
22
- }>>;
23
- }>;
24
- //# sourceMappingURL=create-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-issue.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;EAkG5B,CAAC"}
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const props_1 = require("../common/props");
8
- const common_1 = require("../common");
9
- const types_1 = require("../common/types");
10
- const pieces_common_1 = require("@activepieces/pieces-common");
11
- const shared_1 = require("@activepieces/shared");
12
- function normalizeFields(fields) {
13
- return fields.map((field) => {
14
- var _a, _b;
15
- return (Object.assign(Object.assign({}, field), { key: (_a = field.key) !== null && _a !== void 0 ? _a : field.fieldId, fieldId: (_b = field.fieldId) !== null && _b !== void 0 ? _b : field.key }));
16
- });
17
- }
18
- function getFields(auth, projectId, issueTypeId) {
19
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
- const fields = yield (0, common_1.jiraPaginatedApiCall)({
21
- auth,
22
- method: pieces_common_1.HttpMethod.GET,
23
- resourceUri: `/issue/createmeta/${projectId}/issuetypes/${issueTypeId}`,
24
- propertyName: 'values',
25
- });
26
- if (!fields || !Array.isArray(fields)) {
27
- return [];
28
- }
29
- return normalizeFields(fields);
30
- });
31
- }
32
- exports.createIssueAction = (0, pieces_framework_1.createAction)({
33
- name: 'create_issue',
34
- displayName: 'Create Issue',
35
- description: 'Creates a new issue in a project.',
36
- auth: auth_1.jiraDataCenterAuth,
37
- props: {
38
- projectId: (0, props_1.getProjectIdDropdown)(),
39
- issueTypeId: (0, props_1.issueTypeIdProp)('Issue Type'),
40
- issueFields: pieces_framework_1.Property.DynamicProperties({
41
- auth: auth_1.jiraDataCenterAuth,
42
- displayName: 'Fields',
43
- required: true,
44
- refreshers: ['projectId', 'issueTypeId'],
45
- props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, projectId, issueTypeId }) {
46
- if (!auth || !issueTypeId || !projectId) {
47
- return {};
48
- }
49
- const props = {};
50
- const authValue = auth;
51
- const projectIdValue = projectId;
52
- const issueTypeIdValue = issueTypeId;
53
- const fields = yield getFields(authValue, projectIdValue, issueTypeIdValue);
54
- for (const field of fields) {
55
- // skip invalid custom fields
56
- if (field.schema.custom) {
57
- const customFieldType = field.schema.custom.split(':')[1];
58
- if (!types_1.VALID_CUSTOM_FIELD_TYPES.includes(customFieldType)) {
59
- continue;
60
- }
61
- }
62
- if (['project', 'issuetype', 'reporter'].includes(field.key)) {
63
- continue;
64
- }
65
- props[field.key] = yield (0, props_1.createPropertyDefinition)(authValue, field, field.required, projectIdValue);
66
- }
67
- // Remove null props
68
- return Object.fromEntries(Object.entries(props).filter(([_, prop]) => prop !== null));
69
- }),
70
- }),
71
- },
72
- run(context) {
73
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
74
- var _a;
75
- const { projectId, issueTypeId } = context.propsValue;
76
- const inputIssueFields = (_a = context.propsValue.issueFields) !== null && _a !== void 0 ? _a : {};
77
- if ((0, shared_1.isNil)(projectId) || (0, shared_1.isNil)(issueTypeId)) {
78
- throw new Error('Project ID and Issue Type ID are required');
79
- }
80
- const rawFields = yield (0, common_1.jiraPaginatedApiCall)({
81
- auth: context.auth,
82
- method: pieces_common_1.HttpMethod.GET,
83
- resourceUri: `/issue/createmeta/${projectId}/issuetypes/${issueTypeId}`,
84
- propertyName: 'values',
85
- });
86
- const issueTypeFields = normalizeFields(rawFields);
87
- const formattedFields = (0, props_1.formatIssueFields)(issueTypeFields, inputIssueFields);
88
- const response = yield (0, common_1.jiraApiCall)({
89
- auth: context.auth,
90
- method: pieces_common_1.HttpMethod.POST,
91
- resourceUri: `/issue`,
92
- body: {
93
- fields: Object.assign({ issuetype: {
94
- id: issueTypeId,
95
- }, project: {
96
- key: projectId,
97
- } }, formattedFields),
98
- },
99
- });
100
- const issue = yield (0, common_1.jiraApiCall)({
101
- auth: context.auth,
102
- method: pieces_common_1.HttpMethod.GET,
103
- resourceUri: `/issue/${response.id}`,
104
- });
105
- const updatedIssueProperties = (0, props_1.transformCustomFields)(issueTypeFields, issue.fields);
106
- return Object.assign(Object.assign({}, issue), { fields: updatedIssueProperties });
107
- });
108
- },
109
- });
110
- //# sourceMappingURL=create-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAA2F;AAC3F,qCAAoE;AACpE,2CAMyB;AACzB,sCAA8D;AAC9D,2CAA+E;AAC/E,+DAAyD;AACzD,iDAA6C;AAE7C,SAAS,eAAe,CAAC,MAAa;IACrC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;QAAC,OAAA,iCACzB,KAAK,KACR,GAAG,EAAE,MAAA,KAAK,CAAC,GAAG,mCAAI,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,KAAK,CAAC,GAAG,IAClC,CAAA;KAAA,CAAC,CAAC;AACL,CAAC;AAED,SAAe,SAAS,CAAC,IAAwB,EAAE,SAAiB,EAAE,WAAmB;;QACxF,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAoB,EAA+B;YACvE,IAAI;YACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;YACtB,WAAW,EAAE,qBAAqB,SAAS,eAAe,WAAW,EAAE;YACvE,YAAY,EAAE,QAAQ;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,CAA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AAC,CAAC;YAEnD,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;YAE7E,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAA8B;gBAC/D,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE;oBACL,MAAM,kBACL,SAAS,EAAE;4BACV,EAAE,EAAE,WAAW;yBACf,EACD,OAAO,EAAE;4BACR,GAAG,EAAE,SAAS;yBACd,IACE,eAAe,CAClB;iBACD;aACD,CAAC,CAAC;YAEH,MAAM,KAAK,GAAG,MAAM,IAAA,oBAAW,EAK5B;gBACF,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,UAAU,QAAQ,CAAC,EAAE,EAAE;aACpC,CAAC,CAAC;YAEH,MAAM,sBAAsB,GAAG,IAAA,6BAAqB,EAAC,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAEpF,uCACI,KAAK,KACR,MAAM,EAAE,sBAAsB,IAC7B;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- export declare const deleteIssueCommentAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
11
- }>>;
12
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
13
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>>;
19
- commentId: import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
22
- }>>;
23
- }>;
24
- //# sourceMappingURL=delete-issue-comment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-issue-comment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-issue-comment.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;EAmDnC,CAAC"}
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteIssueCommentAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const common_1 = require("../common");
9
- const props_1 = require("../common/props");
10
- exports.deleteIssueCommentAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.jiraDataCenterAuth,
12
- name: 'delete_issue_comment',
13
- displayName: 'Delete Issue Comment',
14
- description: 'Deletes a comment on a specific issue.',
15
- props: {
16
- projectId: (0, props_1.getProjectIdDropdown)(),
17
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
18
- commentId: pieces_framework_1.Property.Dropdown({
19
- auth: auth_1.jiraDataCenterAuth,
20
- displayName: 'Comment ID',
21
- refreshers: ['issueId'],
22
- required: true,
23
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, issueId }) {
24
- if (!auth || !issueId) {
25
- return {
26
- disabled: true,
27
- placeholder: 'Please connect your account and select issue.',
28
- options: [],
29
- };
30
- }
31
- const response = yield (0, common_1.sendJiraRequest)({
32
- method: pieces_common_1.HttpMethod.GET,
33
- url: `issue/${issueId}/comment`,
34
- auth: auth,
35
- queryParams: {
36
- orderBy: '-created',
37
- },
38
- });
39
- return {
40
- disabled: false,
41
- options: response.body.comments.map((comment) => {
42
- var _a, _b;
43
- return {
44
- label: (_b = (_a = comment.body) === null || _a === void 0 ? void 0 : _a.substring(0, 100)) !== null && _b !== void 0 ? _b : comment.id,
45
- value: comment.id,
46
- };
47
- }),
48
- };
49
- }),
50
- }),
51
- },
52
- run(context) {
53
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
54
- const { issueId, commentId } = context.propsValue;
55
- const response = yield (0, common_1.sendJiraRequest)({
56
- method: pieces_common_1.HttpMethod.DELETE,
57
- url: `issue/${issueId}/comment/${commentId}`,
58
- auth: context.auth,
59
- });
60
- return response.body;
61
- });
62
- },
63
- });
64
- //# sourceMappingURL=delete-issue-comment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-issue-comment.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-issue-comment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAEhD,+DAAyD;AACzD,sCAA4C;AAC5C,2CAA2E;AAE9D,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IAC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GAAG,OAAO,CAAC,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,GAAG,EAAE,SAAS,OAAO,YAAY,SAAS,EAAE;gBAC5C,IAAI,EAAE,OAAO,CAAC,IAAI;aAClB,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const findUserAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- keyword: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=find-user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-user.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;EA0BzB,CAAC"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findUserAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../../auth");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.findUserAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.jiraDataCenterAuth,
11
- name: 'find-user',
12
- displayName: 'Find User',
13
- description: 'Finds an existing user.',
14
- props: {
15
- keyword: pieces_framework_1.Property.ShortText({
16
- displayName: 'Keyword',
17
- required: true,
18
- }),
19
- },
20
- run(context) {
21
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
- const response = yield (0, common_1.jiraApiCall)({
23
- auth: context.auth,
24
- method: pieces_common_1.HttpMethod.GET,
25
- resourceUri: '/user/search',
26
- query: {
27
- username: context.propsValue.keyword,
28
- },
29
- });
30
- return {
31
- found: response.length > 0,
32
- data: response,
33
- };
34
- });
35
- },
36
- });
37
- //# sourceMappingURL=find-user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-user.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAChD,sCAAwC;AACxC,+DAAyD;AAE5C,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE;QACN,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAAiC;gBAClE,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,cAAc;gBAC3B,KAAK,EAAE;oBACN,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;iBACpC;aACD,CAAC,CAAC;YAEH,OAAO;gBACN,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC;gBAC1B,IAAI,EAAE,QAAQ;aACd,CAAC;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const getIssueAttachmentAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- attachmentId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- }>;
7
- //# sourceMappingURL=get-issue-attachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-issue-attachment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue-attachment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;EAyCnC,CAAC"}