@activepieces/piece-jira-data-center 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/package.json +7 -15
  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 -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 -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 -43
  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 -53
  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 -44
  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 -115
  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 -69
  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 -42
  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 -51
  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 -141
  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 -57
  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 -64
  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 -45
  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 -76
  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 -127
  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 -64
  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 -64
  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 -64
  89. package/src/lib/triggers/updated-issue.js.map +0 -1
@@ -1,42 +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
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Searches Jira Data Center/Server users by a keyword (matched against username) and returns the matching accounts. Use to resolve a person to a Jira user before assigning an issue or adding a watcher. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- keyword: pieces_framework_1.Property.ShortText({
21
- displayName: 'Keyword',
22
- required: true,
23
- }),
24
- },
25
- run(context) {
26
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- const response = yield (0, common_1.jiraApiCall)({
28
- auth: context.auth,
29
- method: pieces_common_1.HttpMethod.GET,
30
- resourceUri: '/user/search',
31
- query: {
32
- username: context.propsValue.keyword,
33
- },
34
- });
35
- return {
36
- found: response.length > 0,
37
- data: response,
38
- };
39
- });
40
- },
41
- });
42
- //# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,mOAAmO;QACpO,UAAU,EAAE,IAAI;KAChB;IACD,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;;;;;EA+CnC,CAAC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIssueAttachmentAction = 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.getIssueAttachmentAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.jiraDataCenterAuth,
11
- name: 'get-issue-attachment',
12
- displayName: 'Get Issue Attachment',
13
- description: 'Retrieves an attachment from an issue.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Downloads a single attachment from Jira Data Center/Server by its attachment ID, returning the attachment metadata and the file contents. Use when an agent already has an attachment ID (e.g. from reading an issue) and needs the actual file. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- attachmentId: pieces_framework_1.Property.ShortText({
21
- displayName: 'Attachment ID',
22
- required: true,
23
- }),
24
- },
25
- run(context) {
26
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- const { attachmentId } = context.propsValue;
28
- const attachmentResponse = yield (0, common_1.jiraApiCall)({
29
- method: pieces_common_1.HttpMethod.GET,
30
- resourceUri: `/attachment/${attachmentId}`,
31
- auth: context.auth,
32
- });
33
- const { filename, content } = attachmentResponse;
34
- const response = yield pieces_common_1.httpClient.sendRequest({
35
- url: content,
36
- method: pieces_common_1.HttpMethod.GET,
37
- authentication: {
38
- type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
39
- token: context.auth.props.personalAccessToken,
40
- },
41
- responseType: 'arraybuffer',
42
- followRedirects: true,
43
- });
44
- return Object.assign(Object.assign({}, attachmentResponse), { file: yield context.files.write({
45
- fileName: filename,
46
- data: Buffer.from(response.body),
47
- }) });
48
- });
49
- },
50
- });
51
- //# sourceMappingURL=get-issue-attachment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-issue-attachment.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue-attachment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAChD,sCAAwC;AACxC,+DAAyF;AAE5E,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,4QAA4Q;QAC7Q,UAAU,EAAE,IAAI;KAChB;IACD,KAAK,EAAE;QACN,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAChC,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE5C,MAAM,kBAAkB,GAAG,MAAM,IAAA,oBAAW,EAAwC;gBACnF,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,eAAe,YAAY,EAAE;gBAC1C,IAAI,EAAE,OAAO,CAAC,IAAI;aAClB,CAAC,CAAC;YAEH,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,kBAAkB,CAAC;YAEjD,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC7C,GAAG,EAAE,OAAO;gBACZ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,cAAc,EAAE;oBACf,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB;iBAC7C;gBACD,YAAY,EAAE,aAAa;gBAC3B,eAAe,EAAE,IAAI;aACrB,CAAC,CAAC;YAEH,uCACI,kBAAkB,KACrB,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;oBAC/B,QAAQ,EAAE,QAAQ;oBAClB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;iBAChC,CAAC,IACD;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- export declare const getIssueAction: 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
- expand: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
20
- mapNames: import("@activepieces/pieces-framework").CheckboxProperty<true>;
21
- mapTransitions: import("@activepieces/pieces-framework").CheckboxProperty<true>;
22
- }>;
23
- //# sourceMappingURL=get-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAkIzB,CAAC"}
@@ -1,141 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIssueAction = 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
- function mapFieldNames(fields, fieldNames) {
11
- const mappedFields = {};
12
- for (const [fieldId, fieldValue] of Object.entries(fields)) {
13
- const fieldName = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames[fieldId];
14
- if (fieldName) {
15
- mappedFields[fieldName] = fieldValue;
16
- }
17
- else {
18
- // fallback in case field cannot be mapped (but this should not happen)
19
- mappedFields[fieldId] = fieldValue;
20
- }
21
- }
22
- return mappedFields;
23
- }
24
- exports.getIssueAction = (0, pieces_framework_1.createAction)({
25
- auth: auth_1.jiraDataCenterAuth,
26
- name: 'get_issue',
27
- displayName: 'Get Issue',
28
- description: 'Get issue data.',
29
- audience: 'both',
30
- aiMetadata: {
31
- description: 'Retrieves the full data for a single Jira Data Center/Server issue by ID or key. Use to read an issue\'s fields, status, comments, or changelog; optional expand selections (rendered fields, names, schema, transitions, edit-meta, changelog) and human-readable field/transition name mapping can enrich the result. Read-only and idempotent.',
32
- idempotent: true,
33
- },
34
- props: {
35
- projectId: (0, props_1.getProjectIdDropdown)(),
36
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
37
- expand: pieces_framework_1.Property.StaticMultiSelectDropdown({
38
- displayName: 'Expand',
39
- description: 'Include additional information about the issue in the response',
40
- required: false,
41
- options: {
42
- options: [
43
- {
44
- label: 'Rendered Fields',
45
- value: 'renderedFields',
46
- },
47
- {
48
- label: 'Names',
49
- value: 'names',
50
- },
51
- {
52
- label: 'Schema',
53
- value: 'schema',
54
- },
55
- {
56
- label: 'Transitions',
57
- value: 'transitions',
58
- },
59
- {
60
- label: 'Edit Meta',
61
- value: 'editmeta',
62
- },
63
- {
64
- label: 'Changelog',
65
- value: 'changelog',
66
- },
67
- ],
68
- },
69
- }),
70
- mapNames: pieces_framework_1.Property.Checkbox({
71
- displayName: 'Map Field Names',
72
- description: `
73
- Map human readable names to Fields, Rendered Fields, Schema and Edit Meta.
74
- Notes:
75
- - This would implicitly add "names" to the expand field
76
- - If there are fields with the same name, they may be overridden
77
- `.trim(),
78
- required: true,
79
- defaultValue: false,
80
- }),
81
- mapTransitions: pieces_framework_1.Property.Checkbox({
82
- displayName: 'Map Transition Names',
83
- description: `
84
- Map human readable names to Transitions.
85
- Notes:
86
- - If there are transitions with the same name, they may be overridden
87
- - This changes the original data structure from list to map
88
- `.trim(),
89
- required: true,
90
- defaultValue: false,
91
- }),
92
- },
93
- run(context) {
94
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
95
- var _a;
96
- const { issueId, expand, mapNames, mapTransitions } = context.propsValue;
97
- const queryParams = {};
98
- let expandParams = expand;
99
- // implicitly expand names which is needed for mapping
100
- if (mapNames) {
101
- expandParams = [...new Set(expandParams).add('names')];
102
- }
103
- if (expandParams) {
104
- queryParams['expand'] = expandParams.join(',');
105
- }
106
- const response = yield (0, common_1.sendJiraRequest)({
107
- method: pieces_common_1.HttpMethod.GET,
108
- url: `issue/${issueId}`,
109
- auth: context.auth,
110
- queryParams: queryParams,
111
- });
112
- const data = response.body;
113
- if (mapNames) {
114
- const fieldNames = (data['names'] || {});
115
- const mappedFields = mapFieldNames(data['fields'], fieldNames);
116
- data['fields'] = mappedFields;
117
- if (data['renderedFields']) {
118
- const mappedRenderedFields = mapFieldNames(data['renderedFields'], fieldNames);
119
- data['renderedFields'] = mappedRenderedFields;
120
- }
121
- if (data['schema']) {
122
- const mappedSchemaFields = mapFieldNames(data['schema'], fieldNames);
123
- data['schema'] = mappedSchemaFields;
124
- }
125
- if ((_a = data['editmeta']) === null || _a === void 0 ? void 0 : _a.fields) {
126
- const mappedEditmetaFields = mapFieldNames(data['editmeta'].fields, fieldNames);
127
- data['editmeta'] = Object.assign(Object.assign({}, data['editmeta']), { fields: mappedEditmetaFields });
128
- }
129
- }
130
- if (mapTransitions && data['transitions']) {
131
- const mappedTransitions = data['transitions'].reduce((acc, transition) => {
132
- acc[transition.name] = transition;
133
- return acc;
134
- }, {});
135
- data['transitions'] = mappedTransitions;
136
- }
137
- return data;
138
- });
139
- },
140
- });
141
- //# sourceMappingURL=get-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAChD,+DAAsE;AACtE,sCAA4C;AAC5C,2CAA2E;AAE3E,SAAS,aAAa,CACrB,MAA+B,EAC/B,UAAkC;IAElC,MAAM,YAAY,GAAG,EAA6B,CAAC;IAEnD,KAAK,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5D,MAAM,SAAS,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAG,OAAO,CAAC,CAAC;QACxC,IAAI,SAAS,EAAE,CAAC;YACf,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AuthProperty<{
2
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- }>, {
5
- firstIssueId: 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
- issueLinkTypeId: 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
- secondIssueId: import("@activepieces/pieces-framework").DropdownProperty<string, 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<string, 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=link-issues.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link-issues.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/link-issues.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;EA6C3B,CAAC"}
@@ -1,57 +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.jiraDataCenterAuth,
13
- name: 'link-issues',
14
- displayName: 'Link Issues',
15
- description: 'Creates a link between two issues.',
16
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Creates a typed link between two Jira Data Center/Server issues (e.g. blocks, relates to, duplicates), using a link-type ID and the two issue IDs/keys. Use to relate one issue to another. Not idempotent — repeating the call adds another link of that type.',
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
- try {
33
- yield (0, common_1.jiraApiCall)({
34
- method: pieces_common_1.HttpMethod.POST,
35
- resourceUri: '/issueLink',
36
- auth: context.auth,
37
- body: {
38
- type: {
39
- id: issueLinkTypeId,
40
- },
41
- inwardIssue: {
42
- id: secondIssueId,
43
- },
44
- outwardIssue: {
45
- id: firstIssueId,
46
- },
47
- },
48
- });
49
- return { success: true };
50
- }
51
- catch (e) {
52
- return { success: false, error: e.message };
53
- }
54
- });
55
- },
56
- });
57
- //# 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,qCAAgD;AAChD,2CAAwE;AACxE,iDAA6C;AAC7C,+DAAoE;AACpE,sCAAwC;AAE3B,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,iQAAiQ;QAClQ,UAAU,EAAE,KAAK;KACjB;IACD,KAAK,EAAE;QACN,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;KACrD;IACK,GAAG,CAAC,OAAO;;YAChB,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;gBAC3E,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;YAC1E,CAAC;YACD,IAAI,CAAC;gBACJ,MAAM,IAAA,oBAAW,EAAC;oBACjB,MAAM,EAAE,0BAAU,CAAC,IAAI;oBACvB,WAAW,EAAE,YAAY;oBACzB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,IAAI,EAAE;wBACL,IAAI,EAAE;4BACL,EAAE,EAAE,eAAe;yBACnB;wBACD,WAAW,EAAE;4BACZ,EAAE,EAAE,aAAa;yBACjB;wBACD,YAAY,EAAE;4BACb,EAAE,EAAE,YAAY;yBAChB;qBACD;iBACD,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,22 +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
- 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
- orderBy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
20
- limit: import("@activepieces/pieces-framework").NumberProperty<true>;
21
- }>;
22
- //# 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;;;;;;;;;;;;;;;;;;;;EAqDlC,CAAC"}
@@ -1,64 +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.jiraDataCenterAuth,
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: 'Returns the comments on a Jira Data Center/Server issue, ordered by creation date (ascending or descending) and capped by a limit. Use to read the discussion history of an issue. 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
- },
59
- });
60
- return response.body;
61
- });
62
- },
63
- });
64
- //# 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,qCAAgD;AAChD,+DAAyD;AACzD,sCAA4C;AAC5C,2CAA2E;AAE9D,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,yBAAkB;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,8MAA8M;QAC/M,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;iBAC5B;aACD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const searchIssuesAction: 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
- jql: import("@activepieces/pieces-framework").LongTextProperty<true>;
6
- maxResults: import("@activepieces/pieces-framework").NumberProperty<true>;
7
- }>;
8
- //# 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":"AAMA,eAAO,MAAM,kBAAkB;;;;;;EAmC7B,CAAC"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchIssuesAction = 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 zod_1 = require("zod");
9
- const pieces_common_1 = require("@activepieces/pieces-common");
10
- exports.searchIssuesAction = (0, pieces_framework_1.createAction)({
11
- name: 'search_issues',
12
- displayName: 'Search Issues',
13
- description: 'Search for issues with JQL',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Searches issues in Jira Data Center/Server using a JQL query and returns the matching issues (capped by Max Results, 1-100). Use when an agent needs to find or list issues by any criteria expressible in JQL — project, status, assignee, date, label, etc. Requires a valid JQL string. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- auth: auth_1.jiraDataCenterAuth,
20
- props: {
21
- jql: pieces_framework_1.Property.LongText({
22
- displayName: 'JQL',
23
- description: 'The JQL query to use in the search',
24
- defaultValue: `type = story and created > '2023-12-13 14:00'`,
25
- required: true,
26
- }),
27
- maxResults: pieces_framework_1.Property.Number({
28
- displayName: 'Max Results',
29
- defaultValue: 50,
30
- required: true,
31
- }),
32
- },
33
- run: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue }) {
34
- yield pieces_common_1.propsValidation.validateZod(propsValue, {
35
- maxResults: zod_1.z.number().min(1).max(100),
36
- });
37
- const { jql, maxResults } = propsValue;
38
- return yield (0, common_1.searchIssuesByJql)({
39
- auth,
40
- jql,
41
- maxResults: maxResults,
42
- });
43
- }),
44
- });
45
- //# 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":";;;;AAAA,qEAAwE;AACxE,qCAAgD;AAChD,sCAA8C;AAC9C,6BAAwB;AACxB,+DAA8D;AAEjD,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,sTAAsT;QACvT,UAAU,EAAE,IAAI;KAChB;IACD,IAAI,EAAE,yBAAkB;IACxB,KAAK,EAAE;QACN,GAAG,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,oCAAoC;YACjD,YAAY,EAAE,+CAA+C;YAC7D,QAAQ,EAAE,IAAI;SACd,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACD,GAAG,EAAE,KAA6B,EAAE,oDAAxB,EAAE,IAAI,EAAE,UAAU,EAAE;QAC/B,MAAM,+BAAe,CAAC,WAAW,CAAC,UAAU,EAAE;YAC7C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;SACtC,CAAC,CAAC;QACH,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;QACvC,OAAO,MAAM,IAAA,0BAAiB,EAAC;YAC9B,IAAI;YACJ,GAAG;YACH,UAAU,EAAE,UAAU;SACtB,CAAC,CAAC;IACJ,CAAC,CAAA;CACD,CAAC,CAAC"}
@@ -1,25 +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
- 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<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
20
- instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- personalAccessToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
22
- }>>;
23
- comment: import("@activepieces/pieces-framework").LongTextProperty<true>;
24
- }>;
25
- //# 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;;;;;;;;;;;;;;;;;;;;;;;EAmEnC,CAAC"}