@activepieces/piece-jira-data-center 0.0.3 → 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 -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,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;;;;;;;;;;;;;;;;;;;EAqCrC,CAAC"}
@@ -1,46 +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
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Uploads a file and attaches it to a Jira Data Center/Server issue. Use to add a document, image, or log to an existing issue. Not idempotent — each call adds another attachment, even if the same file was already attached.',
19
- idempotent: false,
20
- },
21
- props: {
22
- projectId: (0, props_1.getProjectIdDropdown)(),
23
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
24
- attachment: pieces_framework_1.Property.File({
25
- displayName: 'Attachment',
26
- required: true,
27
- }),
28
- },
29
- run(context) {
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- const { issueId, attachment } = context.propsValue;
32
- const formData = new form_data_1.default();
33
- const fileBuffer = Buffer.from(attachment.base64, 'base64');
34
- formData.append('file', fileBuffer, attachment.filename);
35
- const response = yield (0, common_1.sendJiraRequest)({
36
- method: pieces_common_1.HttpMethod.POST,
37
- url: `issue/${issueId}/attachments`,
38
- auth: context.auth,
39
- headers: Object.assign({ 'X-Atlassian-Token': 'no-check' }, formData.getHeaders()),
40
- body: formData,
41
- });
42
- return response.body;
43
- });
44
- },
45
- });
46
- //# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,+NAA+N;QAChO,UAAU,EAAE,KAAK;KACjB;IACD,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;;;;;;;;;;;;;;;;;;;EAgClC,CAAC"}
@@ -1,43 +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
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Posts a new comment on a Jira Data Center/Server issue. Use to add a note, update, or reply to an existing issue. Not idempotent — each call appends another comment.',
18
- idempotent: false,
19
- },
20
- props: {
21
- projectId: (0, props_1.getProjectIdDropdown)(),
22
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
23
- comment: pieces_framework_1.Property.LongText({
24
- displayName: 'Comment Body',
25
- required: true,
26
- }),
27
- },
28
- run(context) {
29
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
- const { issueId, comment } = context.propsValue;
31
- const response = yield (0, common_1.sendJiraRequest)({
32
- method: pieces_common_1.HttpMethod.POST,
33
- url: `issue/${issueId}/comment`,
34
- auth: context.auth,
35
- body: {
36
- body: comment,
37
- },
38
- });
39
- return response.body;
40
- });
41
- },
42
- });
43
- //# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,uKAAuK;QACxK,UAAU,EAAE,KAAK;KACjB;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,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;;;;;;;;;;;;;;;;;;EAyClC,CAAC"}
@@ -1,53 +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
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Adds a user as a watcher on a Jira Data Center/Server issue so they receive notifications about it. Identify the issue by ID or key and the watcher by Jira username. Idempotent — adding an already-watching user does not create a duplicate.',
19
- idempotent: true,
20
- },
21
- props: {
22
- issueId: (0, props_1.issueIdOrKeyProp)('Issue ID or Key', true),
23
- userId: (0, props_1.getUsersDropdown)({
24
- displayName: 'User',
25
- refreshers: [],
26
- required: true,
27
- }),
28
- },
29
- run(context) {
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- const { issueId, userId } = context.propsValue;
32
- if ((0, shared_1.isNil)(issueId)) {
33
- throw new Error('Issue ID is required');
34
- }
35
- if ((0, shared_1.isNil)(userId)) {
36
- throw new Error('User ID is required');
37
- }
38
- try {
39
- yield (0, common_1.jiraApiCall)({
40
- auth: context.auth,
41
- method: pieces_common_1.HttpMethod.POST,
42
- resourceUri: `/issue/${issueId}/watchers`,
43
- body: `"${userId}"`,
44
- });
45
- return { success: true };
46
- }
47
- catch (e) {
48
- return { success: false, error: e.message };
49
- }
50
- });
51
- },
52
- });
53
- //# 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,2CAAq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AC;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;;;;;;;;;;;;;;;;;;;;;;;;;EAgC5B,CAAC"}
@@ -1,44 +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
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Sets the assignee of a Jira Data Center/Server issue to a chosen user. Use to (re)assign an issue to a specific person; the assignee is provided as a Jira username. Idempotent — assigning the same user repeatedly leaves the issue on that assignee.',
18
- idempotent: true,
19
- },
20
- props: {
21
- projectId: (0, props_1.getProjectIdDropdown)(),
22
- issueId: (0, props_1.getIssueIdDropdown)({ refreshers: ['projectId'] }),
23
- assignee: (0, props_1.getUsersDropdown)({
24
- displayName: 'Assignee',
25
- refreshers: ['projectId'],
26
- required: true,
27
- }),
28
- },
29
- run(context) {
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- const { issueId, assignee } = context.propsValue;
32
- const response = yield (0, common_1.sendJiraRequest)({
33
- method: pieces_common_1.HttpMethod.PUT,
34
- url: `issue/${issueId}/assignee`,
35
- auth: context.auth,
36
- body: {
37
- name: assignee,
38
- },
39
- });
40
- return response.body;
41
- });
42
- },
43
- });
44
- //# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACX,WAAW,EACV,yPAAyP;QAC1P,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,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;;;;;;;;;;;;;;;;;;;;;;EAwG5B,CAAC"}
@@ -1,115 +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
- audience: 'both',
37
- aiMetadata: {
38
- description: 'Creates a new issue (ticket) in a Jira Data Center/Server project. Use when an agent needs to file a bug, task, story, or other work item; the field set is driven by the chosen project and issue type, so both a project and an issue-type ID are required. Not idempotent — each call creates a separate issue.',
39
- idempotent: false,
40
- },
41
- auth: auth_1.jiraDataCenterAuth,
42
- props: {
43
- projectId: (0, props_1.getProjectIdDropdown)(),
44
- issueTypeId: (0, props_1.issueTypeIdProp)('Issue Type'),
45
- issueFields: pieces_framework_1.Property.DynamicProperties({
46
- auth: auth_1.jiraDataCenterAuth,
47
- displayName: 'Fields',
48
- required: true,
49
- refreshers: ['projectId', 'issueTypeId'],
50
- props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, projectId, issueTypeId }) {
51
- if (!auth || !issueTypeId || !projectId) {
52
- return {};
53
- }
54
- const props = {};
55
- const authValue = auth;
56
- const projectIdValue = projectId;
57
- const issueTypeIdValue = issueTypeId;
58
- const fields = yield getFields(authValue, projectIdValue, issueTypeIdValue);
59
- for (const field of fields) {
60
- // skip invalid custom fields
61
- if (field.schema.custom) {
62
- const customFieldType = field.schema.custom.split(':')[1];
63
- if (!types_1.VALID_CUSTOM_FIELD_TYPES.includes(customFieldType)) {
64
- continue;
65
- }
66
- }
67
- if (['project', 'issuetype', 'reporter'].includes(field.key)) {
68
- continue;
69
- }
70
- props[field.key] = yield (0, props_1.createPropertyDefinition)(authValue, field, field.required, projectIdValue);
71
- }
72
- // Remove null props
73
- return Object.fromEntries(Object.entries(props).filter(([_, prop]) => prop !== null));
74
- }),
75
- }),
76
- },
77
- run(context) {
78
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
79
- var _a;
80
- const { projectId, issueTypeId } = context.propsValue;
81
- const inputIssueFields = (_a = context.propsValue.issueFields) !== null && _a !== void 0 ? _a : {};
82
- if ((0, shared_1.isNil)(projectId) || (0, shared_1.isNil)(issueTypeId)) {
83
- throw new Error('Project ID and Issue Type ID are required');
84
- }
85
- const rawFields = yield (0, common_1.jiraPaginatedApiCall)({
86
- auth: context.auth,
87
- method: pieces_common_1.HttpMethod.GET,
88
- resourceUri: `/issue/createmeta/${projectId}/issuetypes/${issueTypeId}`,
89
- propertyName: 'values',
90
- });
91
- const issueTypeFields = normalizeFields(rawFields);
92
- const formattedFields = (0, props_1.formatIssueFields)(issueTypeFields, inputIssueFields);
93
- const response = yield (0, common_1.jiraApiCall)({
94
- auth: context.auth,
95
- method: pieces_common_1.HttpMethod.POST,
96
- resourceUri: `/issue`,
97
- body: {
98
- fields: Object.assign({ issuetype: {
99
- id: issueTypeId,
100
- }, project: {
101
- key: projectId,
102
- } }, formattedFields),
103
- },
104
- });
105
- const issue = yield (0, common_1.jiraApiCall)({
106
- auth: context.auth,
107
- method: pieces_common_1.HttpMethod.GET,
108
- resourceUri: `/issue/${response.id}`,
109
- });
110
- const updatedIssueProperties = (0, props_1.transformCustomFields)(issueTypeFields, issue.fields);
111
- return Object.assign(Object.assign({}, issue), { fields: updatedIssueProperties });
112
- });
113
- },
114
- });
115
- //# 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,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACvC,OAAO,EAAE,CAAC;QACX,CAAC;QAED,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CAAA;AAEY,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,mC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AI,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;;;;;;;;;;;;;;;;;;;;;;EAyDnC,CAAC"}
@@ -1,69 +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
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Permanently deletes a specific comment from a Jira Data Center/Server issue, identified by issue and comment ID. Use to remove a comment that was posted in error. Idempotent on its target — once the comment is gone, the end state is unchanged by repeating.',
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.jiraDataCenterAuth,
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
- },
43
- });
44
- return {
45
- disabled: false,
46
- options: response.body.comments.map((comment) => {
47
- var _a, _b;
48
- return {
49
- label: (_b = (_a = comment.body) === null || _a === void 0 ? void 0 : _a.substring(0, 100)) !== null && _b !== void 0 ? _b : comment.id,
50
- value: comment.id,
51
- };
52
- }),
53
- };
54
- }),
55
- }),
56
- },
57
- run(context) {
58
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
- const { issueId, commentId } = context.propsValue;
60
- const response = yield (0, common_1.sendJiraRequest)({
61
- method: pieces_common_1.HttpMethod.DELETE,
62
- url: `issue/${issueId}/comment/${commentId}`,
63
- auth: context.auth,
64
- });
65
- return response.body;
66
- });
67
- },
68
- });
69
- //# 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,sBAAs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AAC;YACH,CAAC,CAAA;SACD,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,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;;;;;EAgCzB,CAAC"}