@shipfox/api-integration-jira-dto 12.2.0 → 14.0.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/event-catalog.d.ts +35 -0
- package/dist/event-catalog.d.ts.map +1 -0
- package/dist/event-catalog.js +37 -0
- package/dist/event-catalog.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/event-catalog.test.ts +7 -0
- package/src/event-catalog.ts +44 -0
- package/src/index.ts +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled:
|
|
2
|
+
Successfully compiled: 4 files with swc (344.97ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @shipfox/api-integration-jira-dto
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2323e2e: Adds event catalog exports to the Linear, Slack, and Jira DTO packages.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [18e9bad]
|
|
12
|
+
- Updated dependencies [c44641f]
|
|
13
|
+
- Updated dependencies [1b71a66]
|
|
14
|
+
- @shipfox/api-integration-core-dto@14.0.0
|
|
15
|
+
|
|
3
16
|
## 12.2.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const jiraEventCatalog: {
|
|
2
|
+
readonly provider: 'Jira';
|
|
3
|
+
readonly events: ({
|
|
4
|
+
summary: 'A Jira issue is created.';
|
|
5
|
+
emittedWhen: 'Jira sends an issue-created webhook.';
|
|
6
|
+
name: "comment_created" | "comment_deleted" | "comment_updated" | "jira:issue_created" | "jira:issue_deleted" | "jira:issue_updated";
|
|
7
|
+
payloadKind: 'shipfox-normalized';
|
|
8
|
+
} | {
|
|
9
|
+
summary: 'A Jira issue changes.';
|
|
10
|
+
emittedWhen: 'Jira sends an issue-updated webhook.';
|
|
11
|
+
name: "comment_created" | "comment_deleted" | "comment_updated" | "jira:issue_created" | "jira:issue_deleted" | "jira:issue_updated";
|
|
12
|
+
payloadKind: 'shipfox-normalized';
|
|
13
|
+
} | {
|
|
14
|
+
summary: 'A Jira issue is deleted.';
|
|
15
|
+
emittedWhen: 'Jira sends an issue-deleted webhook.';
|
|
16
|
+
name: "comment_created" | "comment_deleted" | "comment_updated" | "jira:issue_created" | "jira:issue_deleted" | "jira:issue_updated";
|
|
17
|
+
payloadKind: 'shipfox-normalized';
|
|
18
|
+
} | {
|
|
19
|
+
summary: 'A comment is added to a Jira issue.';
|
|
20
|
+
emittedWhen: 'Jira sends a comment-created webhook.';
|
|
21
|
+
name: "comment_created" | "comment_deleted" | "comment_updated" | "jira:issue_created" | "jira:issue_deleted" | "jira:issue_updated";
|
|
22
|
+
payloadKind: 'shipfox-normalized';
|
|
23
|
+
} | {
|
|
24
|
+
summary: 'A comment on a Jira issue changes.';
|
|
25
|
+
emittedWhen: 'Jira sends a comment-updated webhook.';
|
|
26
|
+
name: "comment_created" | "comment_deleted" | "comment_updated" | "jira:issue_created" | "jira:issue_deleted" | "jira:issue_updated";
|
|
27
|
+
payloadKind: 'shipfox-normalized';
|
|
28
|
+
} | {
|
|
29
|
+
summary: 'A comment is deleted from a Jira issue.';
|
|
30
|
+
emittedWhen: 'Jira sends a comment-deleted webhook.';
|
|
31
|
+
name: "comment_created" | "comment_deleted" | "comment_updated" | "jira:issue_created" | "jira:issue_deleted" | "jira:issue_updated";
|
|
32
|
+
payloadKind: 'shipfox-normalized';
|
|
33
|
+
})[];
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=event-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-catalog.d.ts","sourceRoot":"","sources":["../src/event-catalog.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,gBAAgB;uBACjB,MAAM;;iBAhCL,0BAA0B;qBACtB,sCAAsC;;qBAmCtC,oBAAoB;;iBAhCxB,uBAAuB;qBACnB,sCAAsC;;qBA+BtC,oBAAoB;;iBA5BxB,0BAA0B;qBACtB,sCAAsC;;qBA2BtC,oBAAoB;;iBAxBxB,qCAAqC;qBACjC,uCAAuC;;qBAuBvC,oBAAoB;;iBApBxB,oCAAoC;qBAChC,uCAAuC;;qBAmBvC,oBAAoB;;iBAhBxB,yCAAyC;qBACrC,uCAAuC;;qBAevC,oBAAoB;;CAEO,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jiraWebhookEventNames } from './schemas/index.js';
|
|
2
|
+
const eventDetails = {
|
|
3
|
+
'jira:issue_created': {
|
|
4
|
+
summary: 'A Jira issue is created.',
|
|
5
|
+
emittedWhen: 'Jira sends an issue-created webhook.'
|
|
6
|
+
},
|
|
7
|
+
'jira:issue_updated': {
|
|
8
|
+
summary: 'A Jira issue changes.',
|
|
9
|
+
emittedWhen: 'Jira sends an issue-updated webhook.'
|
|
10
|
+
},
|
|
11
|
+
'jira:issue_deleted': {
|
|
12
|
+
summary: 'A Jira issue is deleted.',
|
|
13
|
+
emittedWhen: 'Jira sends an issue-deleted webhook.'
|
|
14
|
+
},
|
|
15
|
+
comment_created: {
|
|
16
|
+
summary: 'A comment is added to a Jira issue.',
|
|
17
|
+
emittedWhen: 'Jira sends a comment-created webhook.'
|
|
18
|
+
},
|
|
19
|
+
comment_updated: {
|
|
20
|
+
summary: 'A comment on a Jira issue changes.',
|
|
21
|
+
emittedWhen: 'Jira sends a comment-updated webhook.'
|
|
22
|
+
},
|
|
23
|
+
comment_deleted: {
|
|
24
|
+
summary: 'A comment is deleted from a Jira issue.',
|
|
25
|
+
emittedWhen: 'Jira sends a comment-deleted webhook.'
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export const jiraEventCatalog = {
|
|
29
|
+
provider: 'Jira',
|
|
30
|
+
events: jiraWebhookEventNames.map((name)=>({
|
|
31
|
+
name,
|
|
32
|
+
...eventDetails[name],
|
|
33
|
+
payloadKind: 'shipfox-normalized'
|
|
34
|
+
}))
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=event-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/event-catalog.ts"],"sourcesContent":["import type {IntegrationEventCatalog} from '@shipfox/api-integration-core-dto';\nimport {jiraWebhookEventNames} from './schemas/index.js';\n\nconst eventDetails = {\n 'jira:issue_created': {\n summary: 'A Jira issue is created.',\n emittedWhen: 'Jira sends an issue-created webhook.',\n },\n 'jira:issue_updated': {\n summary: 'A Jira issue changes.',\n emittedWhen: 'Jira sends an issue-updated webhook.',\n },\n 'jira:issue_deleted': {\n summary: 'A Jira issue is deleted.',\n emittedWhen: 'Jira sends an issue-deleted webhook.',\n },\n comment_created: {\n summary: 'A comment is added to a Jira issue.',\n emittedWhen: 'Jira sends a comment-created webhook.',\n },\n comment_updated: {\n summary: 'A comment on a Jira issue changes.',\n emittedWhen: 'Jira sends a comment-updated webhook.',\n },\n comment_deleted: {\n summary: 'A comment is deleted from a Jira issue.',\n emittedWhen: 'Jira sends a comment-deleted webhook.',\n },\n} as const satisfies Record<\n (typeof jiraWebhookEventNames)[number],\n {\n summary: string;\n emittedWhen: string;\n }\n>;\n\nexport const jiraEventCatalog = {\n provider: 'Jira',\n events: jiraWebhookEventNames.map((name) => ({\n name,\n ...eventDetails[name],\n payloadKind: 'shipfox-normalized' as const,\n })),\n} as const satisfies IntegrationEventCatalog;\n"],"names":["jiraWebhookEventNames","eventDetails","summary","emittedWhen","comment_created","comment_updated","comment_deleted","jiraEventCatalog","provider","events","map","name","payloadKind"],"mappings":"AACA,SAAQA,qBAAqB,QAAO,qBAAqB;AAEzD,MAAMC,eAAe;IACnB,sBAAsB;QACpBC,SAAS;QACTC,aAAa;IACf;IACA,sBAAsB;QACpBD,SAAS;QACTC,aAAa;IACf;IACA,sBAAsB;QACpBD,SAAS;QACTC,aAAa;IACf;IACAC,iBAAiB;QACfF,SAAS;QACTC,aAAa;IACf;IACAE,iBAAiB;QACfH,SAAS;QACTC,aAAa;IACf;IACAG,iBAAiB;QACfJ,SAAS;QACTC,aAAa;IACf;AACF;AAQA,OAAO,MAAMI,mBAAmB;IAC9BC,UAAU;IACVC,QAAQT,sBAAsBU,GAAG,CAAC,CAACC,OAAU,CAAA;YAC3CA;YACA,GAAGV,YAAY,CAACU,KAAK;YACrBC,aAAa;QACf,CAAA;AACF,EAA6C"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './agent-tools/index.js';\nexport * from './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,yBAAyB;AACvC,cAAc,qBAAqB"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './agent-tools/index.js';\nexport * from './event-catalog.js';\nexport * from './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,yBAAyB;AACvC,cAAc,qBAAqB;AACnC,cAAc,qBAAqB"}
|