@activepieces/piece-jira-cloud 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-jira-cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.26.8",
|
|
6
6
|
"axios": "^1.6.3",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"is-base64": "1.1.0",
|
|
9
9
|
"lodash": "4.17.21",
|
|
10
10
|
"nanoid": "3.3.6",
|
|
11
|
-
"semver": "7.
|
|
12
|
-
"@activepieces/pieces-common": "0.2.
|
|
13
|
-
"@activepieces/pieces-framework": "0.7.
|
|
14
|
-
"@activepieces/shared": "0.10.
|
|
15
|
-
"tslib": "
|
|
11
|
+
"semver": "7.6.0",
|
|
12
|
+
"@activepieces/pieces-common": "0.2.9",
|
|
13
|
+
"@activepieces/pieces-framework": "0.7.23",
|
|
14
|
+
"@activepieces/shared": "0.10.92",
|
|
15
|
+
"tslib": "1.14.1"
|
|
16
16
|
},
|
|
17
17
|
"main": "./src/index.js",
|
|
18
18
|
"type": "commonjs"
|
package/src/index.js
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.jiraCloud = void 0;
|
|
4
4
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
+
const shared_1 = require("@activepieces/shared");
|
|
5
7
|
const auth_1 = require("./auth");
|
|
6
8
|
const create_issue_1 = require("./lib/actions/create-issue");
|
|
7
9
|
const search_issues_1 = require("./lib/actions/search-issues");
|
|
8
10
|
const new_issue_1 = require("./lib/triggers/new-issue");
|
|
9
11
|
const updated_issue_1 = require("./lib/triggers/updated-issue");
|
|
10
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
11
12
|
exports.jiraCloud = (0, pieces_framework_1.createPiece)({
|
|
12
13
|
displayName: 'Jira Cloud',
|
|
14
|
+
description: 'Issue tracking and project management',
|
|
13
15
|
auth: auth_1.jiraCloudAuth,
|
|
14
16
|
minimumSupportedRelease: '0.9.0',
|
|
15
17
|
logoUrl: 'https://cdn.activepieces.com/pieces/jira.png',
|
|
18
|
+
categories: [shared_1.PieceCategory.PRODUCTIVITY],
|
|
16
19
|
authors: ['MoShizzle'],
|
|
17
20
|
actions: [
|
|
18
21
|
create_issue_1.createIssue,
|
|
@@ -25,10 +28,10 @@ exports.jiraCloud = (0, pieces_framework_1.createPiece)({
|
|
|
25
28
|
authMapping: (auth) => {
|
|
26
29
|
const typedAuth = auth;
|
|
27
30
|
return {
|
|
28
|
-
|
|
31
|
+
Authorization: `Basic ${Buffer.from(`${typedAuth.email}:${typedAuth.apiToken}`).toString('base64')}`,
|
|
29
32
|
};
|
|
30
|
-
}
|
|
31
|
-
})
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
32
35
|
],
|
|
33
36
|
triggers: [new_issue_1.newIssue, updated_issue_1.updatedIssue],
|
|
34
37
|
});
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/jira-cloud/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6D;AAE7D,iCAAiD;AACjD,6DAAyD;AACzD,+DAA2D;AAC3D,wDAAoD;AACpD,gEAA4D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/jira-cloud/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6D;AAE7D,+DAAwE;AACxE,iDAAqD;AACrD,iCAAiD;AACjD,6DAAyD;AACzD,+DAA2D;AAC3D,wDAAoD;AACpD,gEAA4D;AAE/C,QAAA,SAAS,GAAG,IAAA,8BAAW,EAAC;IACnC,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,uCAAuC;IAEpD,IAAI,EAAE,oBAAa;IACnB,uBAAuB,EAAE,OAAO;IAChC,OAAO,EAAE,8CAA8C;IACvD,UAAU,EAAE,CAAC,sBAAa,CAAC,YAAY,CAAC;IACxC,OAAO,EAAE,CAAC,WAAW,CAAC;IACtB,OAAO,EAAE;QACP,0BAAW;QACX,4BAAY;QACZ,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBAChB,OAAO,GAAI,IAAiB,CAAC,WAAW,aAAa,CAAC;YACxD,CAAC;YACD,IAAI,EAAE,oBAAa;YACnB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;gBACpB,MAAM,SAAS,GAAG,IAAgB,CAAC;gBACnC,OAAO;oBACL,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CACjC,GAAG,SAAS,CAAC,KAAK,IAAI,SAAS,CAAC,QAAQ,EAAE,CAC3C,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;iBACvB,CAAC;YACJ,CAAC;SACF,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,oBAAQ,EAAE,4BAAY,CAAC;CACnC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { HttpMessageBody, HttpMethod, HttpRequest, QueryParams } from '@activepi
|
|
|
2
2
|
import { JiraAuth } from '../../auth';
|
|
3
3
|
export declare function sendJiraRequest(request: HttpRequest & {
|
|
4
4
|
auth: JiraAuth;
|
|
5
|
-
}): Promise<import("@activepieces/pieces-common").HttpResponse<
|
|
5
|
+
}): Promise<import("@activepieces/pieces-common").HttpResponse<any>>;
|
|
6
6
|
export declare function getUsers(auth: JiraAuth): Promise<any[]>;
|
|
7
7
|
export declare function getProjects(auth: JiraAuth): Promise<JiraProject[]>;
|
|
8
8
|
export declare function getIssueTypes({ auth, projectId, }: {
|
|
@@ -20,14 +20,14 @@ export declare function executeJql({ auth, jql, sanitizeJql, url, method, queryP
|
|
|
20
20
|
method: HttpMethod;
|
|
21
21
|
queryParams?: QueryParams;
|
|
22
22
|
body?: HttpMessageBody;
|
|
23
|
-
}): Promise<
|
|
23
|
+
}): Promise<any>;
|
|
24
24
|
export declare function searchIssuesByJql({ auth, jql, maxResults, sanitizeJql, }: {
|
|
25
25
|
auth: JiraAuth;
|
|
26
26
|
jql: string;
|
|
27
27
|
maxResults: number;
|
|
28
28
|
sanitizeJql: boolean;
|
|
29
29
|
}): Promise<any[]>;
|
|
30
|
-
export declare function createJiraIssue(data: CreateIssueParams): Promise<
|
|
30
|
+
export declare function createJiraIssue(data: CreateIssueParams): Promise<any>;
|
|
31
31
|
export interface JiraIssueType {
|
|
32
32
|
id: string;
|
|
33
33
|
description: string;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newIssue: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.
|
|
2
|
+
export declare const newIssue: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
+
instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
+
}>, {
|
|
7
|
+
jql: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
8
|
+
sanitizeJql: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
+
instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
+
apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
+
}>, {
|
|
14
|
+
jql: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
15
|
+
sanitizeJql: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
16
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
17
|
instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
18
|
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
19
|
apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const updatedIssue: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.
|
|
2
|
+
export declare const updatedIssue: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
+
instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
+
}>, {
|
|
7
|
+
jql: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
8
|
+
sanitizeJql: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
+
instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
+
apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
+
}>, {
|
|
14
|
+
jql: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
15
|
+
sanitizeJql: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
16
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
17
|
instanceUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
18
|
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
19
|
apiToken: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|