@activepieces/piece-jira-cloud 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/package.json +7 -18
  2. package/src/index.js +109 -71
  3. package/src/auth.d.ts +0 -8
  4. package/src/auth.d.ts.map +0 -1
  5. package/src/auth.js +0 -62
  6. package/src/auth.js.map +0 -1
  7. package/src/index.d.ts +0 -6
  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 -26
  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 -46
  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 -27
  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 -70
  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 -25
  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 -53
  21. package/src/lib/actions/add-watcher-to-issue.js.map +0 -1
  22. package/src/lib/actions/assign-issue.d.ts +0 -34
  23. package/src/lib/actions/assign-issue.d.ts.map +0 -1
  24. package/src/lib/actions/assign-issue.js +0 -44
  25. package/src/lib/actions/assign-issue.js.map +0 -1
  26. package/src/lib/actions/create-issue.d.ts +0 -35
  27. package/src/lib/actions/create-issue.d.ts.map +0 -1
  28. package/src/lib/actions/create-issue.js +0 -137
  29. package/src/lib/actions/create-issue.js.map +0 -1
  30. package/src/lib/actions/delete-issue-comment.d.ts +0 -30
  31. package/src/lib/actions/delete-issue-comment.d.ts.map +0 -1
  32. package/src/lib/actions/delete-issue-comment.js +0 -69
  33. package/src/lib/actions/delete-issue-comment.js.map +0 -1
  34. package/src/lib/actions/find-user.d.ts +0 -8
  35. package/src/lib/actions/find-user.d.ts.map +0 -1
  36. package/src/lib/actions/find-user.js +0 -42
  37. package/src/lib/actions/find-user.js.map +0 -1
  38. package/src/lib/actions/get-issue-attachment.d.ts +0 -8
  39. package/src/lib/actions/get-issue-attachment.d.ts.map +0 -1
  40. package/src/lib/actions/get-issue-attachment.js +0 -53
  41. package/src/lib/actions/get-issue-attachment.js.map +0 -1
  42. package/src/lib/actions/get-issue.d.ts +0 -28
  43. package/src/lib/actions/get-issue.d.ts.map +0 -1
  44. package/src/lib/actions/get-issue.js +0 -128
  45. package/src/lib/actions/get-issue.js.map +0 -1
  46. package/src/lib/actions/link-issues.d.ts +0 -34
  47. package/src/lib/actions/link-issues.d.ts.map +0 -1
  48. package/src/lib/actions/link-issues.js +0 -56
  49. package/src/lib/actions/link-issues.js.map +0 -1
  50. package/src/lib/actions/list-issue-comments.d.ts +0 -27
  51. package/src/lib/actions/list-issue-comments.d.ts.map +0 -1
  52. package/src/lib/actions/list-issue-comments.js +0 -65
  53. package/src/lib/actions/list-issue-comments.js.map +0 -1
  54. package/src/lib/actions/markdown-to-jira-format.d.ts +0 -4
  55. package/src/lib/actions/markdown-to-jira-format.d.ts.map +0 -1
  56. package/src/lib/actions/markdown-to-jira-format.js +0 -42
  57. package/src/lib/actions/markdown-to-jira-format.js.map +0 -1
  58. package/src/lib/actions/search-issues.d.ts +0 -13
  59. package/src/lib/actions/search-issues.d.ts.map +0 -1
  60. package/src/lib/actions/search-issues.js +0 -97
  61. package/src/lib/actions/search-issues.js.map +0 -1
  62. package/src/lib/actions/transition-issue.d.ts +0 -34
  63. package/src/lib/actions/transition-issue.d.ts.map +0 -1
  64. package/src/lib/actions/transition-issue.js +0 -50
  65. package/src/lib/actions/transition-issue.js.map +0 -1
  66. package/src/lib/actions/update-issue-comment.d.ts +0 -32
  67. package/src/lib/actions/update-issue-comment.d.ts.map +0 -1
  68. package/src/lib/actions/update-issue-comment.js +0 -103
  69. package/src/lib/actions/update-issue-comment.js.map +0 -1
  70. package/src/lib/actions/update-issue.d.ts +0 -35
  71. package/src/lib/actions/update-issue.d.ts.map +0 -1
  72. package/src/lib/actions/update-issue.js +0 -161
  73. package/src/lib/actions/update-issue.js.map +0 -1
  74. package/src/lib/common/index.d.ts +0 -86
  75. package/src/lib/common/index.d.ts.map +0 -1
  76. package/src/lib/common/index.js +0 -288
  77. package/src/lib/common/index.js.map +0 -1
  78. package/src/lib/common/props.d.ts +0 -96
  79. package/src/lib/common/props.d.ts.map +0 -1
  80. package/src/lib/common/props.js +0 -591
  81. package/src/lib/common/props.js.map +0 -1
  82. package/src/lib/common/types.d.ts +0 -28
  83. package/src/lib/common/types.d.ts.map +0 -1
  84. package/src/lib/common/types.js +0 -26
  85. package/src/lib/common/types.js.map +0 -1
  86. package/src/lib/triggers/issue-assigned.d.ts +0 -71
  87. package/src/lib/triggers/issue-assigned.d.ts.map +0 -1
  88. package/src/lib/triggers/issue-assigned.js +0 -308
  89. package/src/lib/triggers/issue-assigned.js.map +0 -1
  90. package/src/lib/triggers/new-attachment.d.ts +0 -31
  91. package/src/lib/triggers/new-attachment.d.ts.map +0 -1
  92. package/src/lib/triggers/new-attachment.js +0 -167
  93. package/src/lib/triggers/new-attachment.js.map +0 -1
  94. package/src/lib/triggers/new-comment.d.ts +0 -31
  95. package/src/lib/triggers/new-comment.d.ts.map +0 -1
  96. package/src/lib/triggers/new-comment.js +0 -101
  97. package/src/lib/triggers/new-comment.js.map +0 -1
  98. package/src/lib/triggers/new-issue.d.ts +0 -31
  99. package/src/lib/triggers/new-issue.d.ts.map +0 -1
  100. package/src/lib/triggers/new-issue.js +0 -70
  101. package/src/lib/triggers/new-issue.js.map +0 -1
  102. package/src/lib/triggers/updated-issue-status.d.ts +0 -31
  103. package/src/lib/triggers/updated-issue-status.d.ts.map +0 -1
  104. package/src/lib/triggers/updated-issue-status.js +0 -70
  105. package/src/lib/triggers/updated-issue-status.js.map +0 -1
  106. package/src/lib/triggers/updated-issue.d.ts +0 -31
  107. package/src/lib/triggers/updated-issue.d.ts.map +0 -1
  108. package/src/lib/triggers/updated-issue.js +0 -70
  109. package/src/lib/triggers/updated-issue.js.map +0 -1
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.linkIssuesAction = 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 pieces_common_1 = require("@activepieces/pieces-common");
10
- const common_1 = require("../common");
11
- exports.linkIssuesAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.jiraCloudAuth,
13
- name: 'link-issues',
14
- displayName: 'Link Issues',
15
- description: 'Creates a link between two issues.',
16
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Create a directional link of a chosen type (e.g. blocks, relates to, duplicates) between two existing Jira issues, given both issue IDs/keys. Use to express dependencies or relationships; direction matters, with the first issue taking the outward role. Not idempotent: re-running can add a duplicate link.',
19
- idempotent: false,
20
- },
21
- props: {
22
- firstIssueId: (0, props_1.issueIdOrKeyProp)('First Issue', true),
23
- issueLinkTypeId: (0, props_1.issueLinkTypeIdProp)('Link Type', true),
24
- secondIssueId: (0, props_1.issueIdOrKeyProp)('Second Issue', true),
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- const { firstIssueId, issueLinkTypeId, secondIssueId } = context.propsValue;
29
- if ((0, shared_1.isNil)(firstIssueId) || (0, shared_1.isNil)(issueLinkTypeId) || (0, shared_1.isNil)(secondIssueId)) {
30
- throw new Error('First Issue, Link Type, and Second Issue are required');
31
- }
32
- const response = yield (0, common_1.jiraApiCall)({
33
- method: pieces_common_1.HttpMethod.POST,
34
- resourceUri: '/issueLink',
35
- auth: context.auth,
36
- body: {
37
- type: {
38
- id: issueLinkTypeId,
39
- },
40
- inwardIssue: {
41
- id: secondIssueId,
42
- },
43
- outwardIssue: {
44
- id: firstIssueId,
45
- },
46
- },
47
- });
48
- return {
49
- success: true,
50
- message: 'Issues linked successfully',
51
- data: response ? response : null,
52
- };
53
- });
54
- },
55
- });
56
- //# sourceMappingURL=link-issues.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link-issues.js","sourceRoot":"","sources":["../../../../src/lib/actions/link-issues.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA2C;AAC3C,2CAAwE;AACxE,iDAA6C;AAC7C,+DAAoE;AACpE,sCAAwC;AAE3B,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,mTAAmT;QACrT,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,YAAY,EAAE,IAAA,wBAAgB,EAAC,aAAa,EAAE,IAAI,CAAC;QACnD,eAAe,EAAE,IAAA,2BAAmB,EAAC,WAAW,EAAE,IAAI,CAAC;QACvD,aAAa,EAAE,IAAA,wBAAgB,EAAC,cAAc,EAAE,IAAI,CAAC;KACtD;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE5E,IAAI,IAAA,cAAK,EAAC,YAAY,CAAC,IAAI,IAAA,cAAK,EAAC,eAAe,CAAC,IAAI,IAAA,cAAK,EAAC,aAAa,CAAC,EAAE,CAAC;gBAC1E,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;YAC3E,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAAC;gBACjC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,IAAI,EAAE;oBACJ,IAAI,EAAE;wBACJ,EAAE,EAAE,eAAe;qBACpB;oBACD,WAAW,EAAE;wBACX,EAAE,EAAE,aAAa;qBAClB;oBACD,YAAY,EAAE;wBACZ,EAAE,EAAE,YAAY;qBACjB;iBACF;aACF,CAAC,CAAC;YAEH,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,4BAA4B;gBACrC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI;aACjC,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- export declare const listIssueCommentsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
7
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
10
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
11
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
14
- }>>;
15
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
18
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
19
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
22
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
23
- }>>;
24
- orderBy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
25
- limit: import("@activepieces/pieces-framework").NumberProperty<true>;
26
- }>;
27
- //# sourceMappingURL=list-issue-comments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-issue-comments.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-issue-comments.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;EAsDlC,CAAC"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listIssueCommentsAction = 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.listIssueCommentsAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.jiraCloudAuth,
12
- name: 'list_issue_comments',
13
- displayName: 'List Issue Comments',
14
- description: 'Returns all comments for an issue.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'List comments on a Jira issue, ordered by creation date (ascending or descending) and capped at a configurable limit, including rendered HTML bodies. Use to read an issue\'s discussion before replying or summarizing. Read-only and idempotent.',
18
- idempotent: true,
19
- },
20
- props: {
21
- projectId: (0, props_1.getProjectIdDropdown)(),
22
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
23
- orderBy: pieces_framework_1.Property.StaticDropdown({
24
- displayName: 'Order By',
25
- required: true,
26
- defaultValue: '-created',
27
- options: {
28
- disabled: false,
29
- options: [
30
- {
31
- label: 'Created (Descending)',
32
- value: '-created',
33
- },
34
- {
35
- label: 'Created (Ascending)',
36
- value: '+created',
37
- },
38
- ],
39
- },
40
- }),
41
- limit: pieces_framework_1.Property.Number({
42
- displayName: 'Limit',
43
- description: 'Maximum number of results',
44
- required: true,
45
- defaultValue: 10,
46
- }),
47
- },
48
- run(context) {
49
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
- const { issueId, orderBy, limit } = context.propsValue;
51
- const response = yield (0, common_1.sendJiraRequest)({
52
- method: pieces_common_1.HttpMethod.GET,
53
- url: `issue/${issueId}/comment`,
54
- auth: context.auth,
55
- queryParams: {
56
- orderBy: orderBy,
57
- maxResults: limit.toString(),
58
- expand: 'renderedBody',
59
- },
60
- });
61
- return response.body;
62
- });
63
- },
64
- });
65
- //# sourceMappingURL=list-issue-comments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-issue-comments.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-issue-comments.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAA2C;AAC3C,+DAAyD;AACzD,sCAA4C;AAC5C,2CAA2E;AAE9D,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,oPAAoP;QACrP,UAAU,EAAE,IAAI;KAChB;IACD,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,cAAc,CAAC;YAChC,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,UAAU;YACxB,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR;wBACC,KAAK,EAAE,sBAAsB;wBAC7B,KAAK,EAAE,UAAU;qBACjB;oBACD;wBACC,KAAK,EAAE,qBAAqB;wBAC5B,KAAK,EAAE,UAAU;qBACjB;iBACD;aACD;SACD,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACtB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,EAAE;SAChB,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,SAAS,OAAO,UAAU;gBAC/B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,WAAW,EAAE;oBACZ,OAAO,EAAE,OAAO;oBAChB,UAAU,EAAE,KAAK,CAAC,QAAQ,EAAE;oBAC5B,MAAM,EAAE,cAAc;iBACtB;aACD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const markdownToJiraFormat: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").PieceAuthProperty, {
2
- markdown: import("@activepieces/pieces-framework").LongTextProperty<true>;
3
- }>;
4
- //# sourceMappingURL=markdown-to-jira-format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-to-jira-format.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/markdown-to-jira-format.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;EAoC/B,CAAC"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.markdownToJiraFormat = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const schema_default_1 = require("@atlaskit/adf-schema/schema-default");
7
- const editor_json_transformer_1 = require("@atlaskit/editor-json-transformer");
8
- const editor_markdown_transformer_1 = require("@atlaskit/editor-markdown-transformer");
9
- exports.markdownToJiraFormat = (0, pieces_framework_1.createAction)({
10
- name: 'markdownToJiraFormat',
11
- displayName: 'Markdown to Jira format',
12
- description: "Convert Markdown-formatted text to Jira's ADF syntax for use in comments and descriptions etc",
13
- audience: 'both',
14
- aiMetadata: {
15
- description: 'Convert markdown text into an Atlassian Document Format (ADF) JSON document, locally with no API call or auth needed. Use before Add/Update Issue Comment or rich-text issue fields whenever content is authored in markdown, since Jira Cloud rich text requires ADF. Pure transformation, fully idempotent.',
16
- idempotent: true,
17
- },
18
- requireAuth: false,
19
- props: {
20
- markdown: pieces_framework_1.Property.LongText({
21
- displayName: 'Markdown text',
22
- required: true,
23
- }),
24
- },
25
- errorHandlingOptions: {
26
- continueOnFailure: {
27
- defaultValue: false,
28
- },
29
- retryOnFailure: {
30
- hide: true,
31
- },
32
- },
33
- run(_a) {
34
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue }) {
35
- const jsonTransformer = new editor_json_transformer_1.JSONTransformer();
36
- const markdownTransformer = new editor_markdown_transformer_1.MarkdownTransformer(schema_default_1.defaultSchema);
37
- const adfDocument = jsonTransformer.encode(markdownTransformer.parse(propsValue.markdown));
38
- return adfDocument;
39
- });
40
- },
41
- });
42
- //# sourceMappingURL=markdown-to-jira-format.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-to-jira-format.js","sourceRoot":"","sources":["../../../../src/lib/actions/markdown-to-jira-format.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,wEAAoE;AACpE,+EAAoE;AACpE,uFAA4E;AAE/D,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EACT,+FAA+F;IACjG,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,+SAA+S;QACjT,UAAU,EAAE,IAAI;KACjB;IACD,WAAW,EAAE,KAAK;IAClB,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,oBAAoB,EAAE;QACpB,iBAAiB,EAAE;YACjB,YAAY,EAAE,KAAK;SACpB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,IAAI;SACX;KACF;IACK,GAAG;qEAAC,EAAE,UAAU,EAAE;YACtB,MAAM,eAAe,GAAG,IAAI,yCAAe,EAAE,CAAC;YAC9C,MAAM,mBAAmB,GAAG,IAAI,iDAAmB,CAAC,8BAAoB,CAAC,CAAC;YAE1E,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CACxC,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAC/C,CAAC;YAEF,OAAO,WAAW,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const searchIssues: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- memoryWarning: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
7
- jql: import("@activepieces/pieces-framework").LongTextProperty<true>;
8
- fields: import("@activepieces/pieces-framework").ArrayProperty<false>;
9
- mapNames: import("@activepieces/pieces-framework").CheckboxProperty<true>;
10
- maxResults: import("@activepieces/pieces-framework").NumberProperty<true>;
11
- sanitizeJql: import("@activepieces/pieces-framework").CheckboxProperty<true>;
12
- }>;
13
- //# sourceMappingURL=search-issues.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-issues.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-issues.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;;;;;;;;;EAgGvB,CAAC"}
@@ -1,97 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchIssues = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const shared_1 = require("@activepieces/shared");
7
- const auth_1 = require("../../auth");
8
- const common_1 = require("../common");
9
- const zod_1 = require("zod");
10
- const pieces_common_1 = require("@activepieces/pieces-common");
11
- exports.searchIssues = (0, pieces_framework_1.createAction)({
12
- name: 'search_issues',
13
- displayName: 'Search Issues',
14
- description: 'Search for issues with JQL',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Search Jira issues with an arbitrary JQL query, paginating automatically up to a max-results cap (1-5000) and optionally restricting which fields are returned or mapping field IDs to readable names. The go-to tool for finding issues by project, status, assignee, dates, or any JQL-expressible criteria; limit returned fields on large result sets to avoid memory issues. Read-only and idempotent.',
18
- idempotent: true,
19
- },
20
- auth: auth_1.jiraCloudAuth,
21
- props: {
22
- memoryWarning: pieces_framework_1.Property.MarkDown({
23
- value: `Fetching a large number of issues without specifying **Fields to Return** may exceed your flow's memory limits. Use field selection to reduce payload size.`,
24
- variant: shared_1.MarkdownVariant.WARNING,
25
- }),
26
- jql: pieces_framework_1.Property.LongText({
27
- displayName: 'JQL',
28
- description: "The JQL query to use in search (Tip: Use single quotes for strings/dates)",
29
- defaultValue: `type = story and created > '2023-12-13 14:00'`,
30
- required: true,
31
- }),
32
- fields: pieces_framework_1.Property.Array({
33
- displayName: 'Fields to Return',
34
- description: `List of exact Jira Field IDs to return (e.g., 'summary', 'customfield_10016').
35
- Special commands:
36
- - Use *all for every field.
37
- - Use *navigable for standard fields (default).
38
- - Prefix with a minus to exclude (e.g., -description).
39
- Example: *all and -comment returns everything except comments.`,
40
- required: false,
41
- }),
42
- mapNames: pieces_framework_1.Property.Checkbox({
43
- displayName: 'Map Field Names',
44
- description: `Map human readable names to Fields in the output.\nNotes:\n- If there are fields with the same name, they may be overridden.`,
45
- required: true,
46
- defaultValue: false,
47
- }),
48
- maxResults: pieces_framework_1.Property.Number({
49
- displayName: 'Max Results',
50
- defaultValue: 50,
51
- required: true,
52
- }),
53
- sanitizeJql: pieces_framework_1.Property.Checkbox({
54
- displayName: 'Sanitize JQL',
55
- required: true,
56
- defaultValue: true,
57
- }),
58
- },
59
- run: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue }) {
60
- yield pieces_common_1.propsValidation.validateZod(propsValue, {
61
- maxResults: zod_1.z.number().min(1).max(5000),
62
- });
63
- const { jql, maxResults, sanitizeJql, fields, mapNames } = propsValue;
64
- const fieldList = fields;
65
- const expandParams = mapNames ? ['names'] : [];
66
- const allIssues = [];
67
- let nextPageToken;
68
- const PAGE_SIZE = 100;
69
- while (allIssues.length < maxResults) {
70
- const limit = Math.min(PAGE_SIZE, maxResults - allIssues.length);
71
- const response = yield (0, common_1.searchIssuesByJql)({
72
- auth,
73
- jql,
74
- maxResults: limit,
75
- sanitizeJql,
76
- nextPageToken,
77
- fields: fieldList,
78
- expand: expandParams,
79
- });
80
- const fetchedIssues = response.issues;
81
- const fieldNames = response.names || {};
82
- if (mapNames && Object.keys(fieldNames).length > 0) {
83
- for (const issue of fetchedIssues) {
84
- if (issue.fields) {
85
- issue.fields = (0, common_1.mapFieldNames)(issue.fields, fieldNames);
86
- }
87
- }
88
- }
89
- allIssues.push(...fetchedIssues);
90
- nextPageToken = response.nextPageToken;
91
- if (!nextPageToken || fetchedIssues.length === 0)
92
- break;
93
- }
94
- return allIssues;
95
- }),
96
- });
97
- //# sourceMappingURL=search-issues.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-issues.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-issues.ts"],"names":[],"mappings":"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"}
@@ -1,34 +0,0 @@
1
- export declare const transitionIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
7
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
10
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
11
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
14
- }>>;
15
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
18
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
19
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
22
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
23
- }>>;
24
- transitionId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
25
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
26
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
27
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
28
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
29
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
30
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
31
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
32
- }>>;
33
- }>;
34
- //# sourceMappingURL=transition-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transition-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/transition-issue.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ChC,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.transitionIssueAction = 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 shared_1 = require("@activepieces/shared");
8
- const auth_1 = require("../../auth");
9
- const common_1 = require("../common");
10
- const props_1 = require("../common/props");
11
- exports.transitionIssueAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.jiraCloudAuth,
13
- name: 'transition_issue',
14
- displayName: 'Transition Issue',
15
- description: 'Moves an issue to a new status by executing a workflow transition.',
16
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Execute a workflow transition on a Jira issue to move it to a new status (e.g. In Progress to Done), returning the refreshed issue. The transition must be valid from the issue\'s current status under its workflow, so it is not idempotent: re-running after the move succeeds fails because the transition is no longer available.',
19
- idempotent: false,
20
- },
21
- props: {
22
- projectId: (0, props_1.getProjectIdDropdown)(),
23
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
24
- transitionId: (0, props_1.issueStatusIdProp)('Transition', true),
25
- },
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- const { issueId, transitionId } = context.propsValue;
29
- if ((0, shared_1.isNil)(issueId) || (0, shared_1.isNil)(transitionId)) {
30
- throw new Error('Issue and Transition are required');
31
- }
32
- const body = {
33
- transition: { id: transitionId },
34
- };
35
- yield (0, common_1.jiraApiCall)({
36
- auth: context.auth,
37
- method: pieces_common_1.HttpMethod.POST,
38
- resourceUri: `/issue/${issueId}/transitions`,
39
- body,
40
- });
41
- const issue = yield (0, common_1.jiraApiCall)({
42
- auth: context.auth,
43
- method: pieces_common_1.HttpMethod.GET,
44
- resourceUri: `/issue/${issueId}`,
45
- });
46
- return { success: true, issue };
47
- });
48
- },
49
- });
50
- //# sourceMappingURL=transition-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transition-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/transition-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,iDAA6C;AAC7C,qCAA2C;AAC3C,sCAAwC;AACxC,2CAIyB;AAEZ,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,oEAAoE;IACtE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,wUAAwU;QAC1U,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,SAAS,EAAE,IAAA,4BAAoB,GAAE;QACjC,OAAO,EAAE,IAAA,0BAAkB,EAAC,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1D,YAAY,EAAE,IAAA,yBAAiB,EAAC,YAAY,EAAE,IAAI,CAAC;KACpD;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAErD,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,IAAA,cAAK,EAAC,YAAY,CAAC,EAAE,CAAC;gBAC1C,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;YACvD,CAAC;YAED,MAAM,IAAI,GAA4B;gBACpC,UAAU,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE;aACjC,CAAC;YAEF,MAAM,IAAA,oBAAW,EAAC;gBAChB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,OAAO,cAAc;gBAC5C,IAAI;aACL,CAAC,CAAC;YAEH,MAAM,KAAK,GAAG,MAAM,IAAA,oBAAW,EAAC;gBAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,UAAU,OAAO,EAAE;aACjC,CAAC,CAAC;YAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAClC,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,32 +0,0 @@
1
- export declare const updateIssueCommentAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- projectId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
7
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
10
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
11
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
14
- }>>;
15
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
18
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
19
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
22
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
23
- }>>;
24
- commentId: import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
25
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
26
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
27
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
28
- }>>;
29
- comment: import("@activepieces/pieces-framework").LongTextProperty<true>;
30
- isADF: import("@activepieces/pieces-framework").CheckboxProperty<false>;
31
- }>;
32
- //# sourceMappingURL=update-issue-comment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-issue-comment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-issue-comment.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8FnC,CAAC"}
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateIssueCommentAction = 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.updateIssueCommentAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.jiraCloudAuth,
12
- name: 'update_issue_comment',
13
- displayName: 'Update Issue Comment',
14
- description: 'Updates a comment to a specific issue.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Replace the body of an existing comment (by comment ID) on a Jira issue, in plain text or raw ADF JSON when the ADF flag is set. Use to correct or extend an earlier comment instead of posting a new one with Add Issue Comment. Idempotent: re-running with the same body leaves the comment unchanged.',
18
- idempotent: true,
19
- },
20
- props: {
21
- projectId: (0, props_1.getProjectIdDropdown)(),
22
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
23
- commentId: pieces_framework_1.Property.Dropdown({
24
- auth: auth_1.jiraCloudAuth,
25
- displayName: 'Comment ID',
26
- refreshers: ['issueId'],
27
- required: true,
28
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, issueId }) {
29
- if (!auth || !issueId) {
30
- return {
31
- disabled: true,
32
- placeholder: 'Please connect your account and select issue.',
33
- options: [],
34
- };
35
- }
36
- const response = yield (0, common_1.sendJiraRequest)({
37
- method: pieces_common_1.HttpMethod.GET,
38
- url: `issue/${issueId}/comment`,
39
- auth: auth,
40
- queryParams: {
41
- orderBy: '-created',
42
- expand: 'renderedBody',
43
- },
44
- });
45
- return {
46
- disabled: false,
47
- options: response.body.comments.map((comment) => {
48
- return {
49
- label: comment.renderedBody,
50
- value: comment.id,
51
- };
52
- }),
53
- };
54
- }),
55
- }),
56
- comment: pieces_framework_1.Property.LongText({
57
- displayName: 'Comment Body',
58
- required: true,
59
- }),
60
- isADF: pieces_framework_1.Property.Checkbox({
61
- displayName: 'Comment is in JSON Atlassian Document Format',
62
- description: 'https://developer.atlassian.com/cloud/jira/platform/apis/document/structure',
63
- required: false,
64
- defaultValue: false,
65
- }),
66
- },
67
- run(context) {
68
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
69
- const { issueId, comment, commentId, isADF } = context.propsValue;
70
- let commentBody = {};
71
- if (isADF) {
72
- commentBody = JSON.parse(comment);
73
- }
74
- else {
75
- commentBody = {
76
- version: 1,
77
- type: 'doc',
78
- content: [
79
- {
80
- type: 'paragraph',
81
- content: [
82
- {
83
- type: 'text',
84
- text: comment,
85
- },
86
- ],
87
- },
88
- ],
89
- };
90
- }
91
- const response = yield (0, common_1.sendJiraRequest)({
92
- method: pieces_common_1.HttpMethod.PUT,
93
- url: `issue/${issueId}/comment/${commentId}`,
94
- auth: context.auth,
95
- body: {
96
- body: commentBody,
97
- },
98
- });
99
- return response.body;
100
- });
101
- },
102
- });
103
- //# sourceMappingURL=update-issue-comment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-issue-comment.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-issue-comment.ts"],"names":[],"mappings":"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"}
@@ -1,35 +0,0 @@
1
- export declare const updateIssueAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- issueId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
7
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
10
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
11
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
14
- }>>;
15
- statusId: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
18
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
19
- }>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
22
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
23
- }>>;
24
- issueFields: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").CustomAuthProperty<{
25
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
26
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
27
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
28
- }>>;
29
- adfFields: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
30
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
31
- email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
32
- apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
33
- }>>;
34
- }>;
35
- //# sourceMappingURL=update-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-issue.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyJ5B,CAAC"}