@shipfox/api-integration-slack-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/.turbo/turbo-type.log +0 -1
- package/CHANGELOG.md +13 -0
- package/dist/event-catalog.d.ts +29 -0
- package/dist/event-catalog.d.ts.map +1 -0
- package/dist/event-catalog.js +33 -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 +41 -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: 3 files with swc (243.16ms)
|
package/.turbo/turbo-type.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @shipfox/api-integration-slack-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,29 @@
|
|
|
1
|
+
export declare const slackEventCatalog: {
|
|
2
|
+
readonly provider: 'Slack';
|
|
3
|
+
readonly events: ({
|
|
4
|
+
summary: 'A Slack message mentions the installed app.';
|
|
5
|
+
emittedWhen: 'Slack sends an app_mention event to the installed app.';
|
|
6
|
+
payloadDocUrl: 'https://docs.slack.dev/reference/events/app_mention/';
|
|
7
|
+
name: "app_mention" | "message" | "reaction_added" | "slash_command";
|
|
8
|
+
payloadKind: 'shipfox-normalized';
|
|
9
|
+
} | {
|
|
10
|
+
summary: 'A message event arrives from a subscribed Slack conversation.';
|
|
11
|
+
emittedWhen: 'Slack sends a message event to the installed app.';
|
|
12
|
+
payloadDocUrl: 'https://docs.slack.dev/reference/events/message/';
|
|
13
|
+
name: "app_mention" | "message" | "reaction_added" | "slash_command";
|
|
14
|
+
payloadKind: 'shipfox-normalized';
|
|
15
|
+
} | {
|
|
16
|
+
summary: 'A member adds an emoji reaction to a Slack item.';
|
|
17
|
+
emittedWhen: 'Slack sends a reaction_added event to the installed app.';
|
|
18
|
+
payloadDocUrl: 'https://docs.slack.dev/reference/events/reaction_added/';
|
|
19
|
+
name: "app_mention" | "message" | "reaction_added" | "slash_command";
|
|
20
|
+
payloadKind: 'shipfox-normalized';
|
|
21
|
+
} | {
|
|
22
|
+
summary: 'A user invokes a slash command for the installed app.';
|
|
23
|
+
emittedWhen: 'Slack sends a slash-command request to the installed app.';
|
|
24
|
+
payloadDocUrl: 'https://docs.slack.dev/interactivity/implementing-slash-commands/';
|
|
25
|
+
name: "app_mention" | "message" | "reaction_added" | "slash_command";
|
|
26
|
+
payloadKind: 'shipfox-normalized';
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
//# 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":"AAiCA,eAAO,MAAM,iBAAiB;uBAClB,OAAO;;iBA7BN,6CAA6C;qBACzC,wDAAwD;uBACtD,sDAAsD;;qBA+BxD,oBAAoB;;iBA5BxB,+DAA+D;qBAC3D,mDAAmD;uBACjD,kDAAkD;;qBA0BpD,oBAAoB;;iBAvBxB,kDAAkD;qBAC9C,0DAA0D;uBACxD,yDAAyD;;qBAqB3D,oBAAoB;;iBAlBxB,uDAAuD;qBACnD,2DAA2D;uBACzD,mEAAmE;;qBAgBrE,oBAAoB;;CAEO,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { slackEventNames } from './schemas/index.js';
|
|
2
|
+
const eventDetails = {
|
|
3
|
+
app_mention: {
|
|
4
|
+
summary: 'A Slack message mentions the installed app.',
|
|
5
|
+
emittedWhen: 'Slack sends an app_mention event to the installed app.',
|
|
6
|
+
payloadDocUrl: 'https://docs.slack.dev/reference/events/app_mention/'
|
|
7
|
+
},
|
|
8
|
+
message: {
|
|
9
|
+
summary: 'A message event arrives from a subscribed Slack conversation.',
|
|
10
|
+
emittedWhen: 'Slack sends a message event to the installed app.',
|
|
11
|
+
payloadDocUrl: 'https://docs.slack.dev/reference/events/message/'
|
|
12
|
+
},
|
|
13
|
+
reaction_added: {
|
|
14
|
+
summary: 'A member adds an emoji reaction to a Slack item.',
|
|
15
|
+
emittedWhen: 'Slack sends a reaction_added event to the installed app.',
|
|
16
|
+
payloadDocUrl: 'https://docs.slack.dev/reference/events/reaction_added/'
|
|
17
|
+
},
|
|
18
|
+
slash_command: {
|
|
19
|
+
summary: 'A user invokes a slash command for the installed app.',
|
|
20
|
+
emittedWhen: 'Slack sends a slash-command request to the installed app.',
|
|
21
|
+
payloadDocUrl: 'https://docs.slack.dev/interactivity/implementing-slash-commands/'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export const slackEventCatalog = {
|
|
25
|
+
provider: 'Slack',
|
|
26
|
+
events: slackEventNames.map((name)=>({
|
|
27
|
+
name,
|
|
28
|
+
...eventDetails[name],
|
|
29
|
+
payloadKind: 'shipfox-normalized'
|
|
30
|
+
}))
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//# 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 {slackEventNames} from './schemas/index.js';\n\nconst eventDetails = {\n app_mention: {\n summary: 'A Slack message mentions the installed app.',\n emittedWhen: 'Slack sends an app_mention event to the installed app.',\n payloadDocUrl: 'https://docs.slack.dev/reference/events/app_mention/',\n },\n message: {\n summary: 'A message event arrives from a subscribed Slack conversation.',\n emittedWhen: 'Slack sends a message event to the installed app.',\n payloadDocUrl: 'https://docs.slack.dev/reference/events/message/',\n },\n reaction_added: {\n summary: 'A member adds an emoji reaction to a Slack item.',\n emittedWhen: 'Slack sends a reaction_added event to the installed app.',\n payloadDocUrl: 'https://docs.slack.dev/reference/events/reaction_added/',\n },\n slash_command: {\n summary: 'A user invokes a slash command for the installed app.',\n emittedWhen: 'Slack sends a slash-command request to the installed app.',\n payloadDocUrl: 'https://docs.slack.dev/interactivity/implementing-slash-commands/',\n },\n} as const satisfies Record<\n (typeof slackEventNames)[number],\n {\n summary: string;\n emittedWhen: string;\n payloadDocUrl: string;\n }\n>;\n\nexport const slackEventCatalog = {\n provider: 'Slack',\n events: slackEventNames.map((name) => ({\n name,\n ...eventDetails[name],\n payloadKind: 'shipfox-normalized' as const,\n })),\n} as const satisfies IntegrationEventCatalog;\n"],"names":["slackEventNames","eventDetails","app_mention","summary","emittedWhen","payloadDocUrl","message","reaction_added","slash_command","slackEventCatalog","provider","events","map","name","payloadKind"],"mappings":"AACA,SAAQA,eAAe,QAAO,qBAAqB;AAEnD,MAAMC,eAAe;IACnBC,aAAa;QACXC,SAAS;QACTC,aAAa;QACbC,eAAe;IACjB;IACAC,SAAS;QACPH,SAAS;QACTC,aAAa;QACbC,eAAe;IACjB;IACAE,gBAAgB;QACdJ,SAAS;QACTC,aAAa;QACbC,eAAe;IACjB;IACAG,eAAe;QACbL,SAAS;QACTC,aAAa;QACbC,eAAe;IACjB;AACF;AASA,OAAO,MAAMI,oBAAoB;IAC/BC,UAAU;IACVC,QAAQX,gBAAgBY,GAAG,CAAC,CAACC,OAAU,CAAA;YACrCA;YACA,GAAGZ,YAAY,CAACY,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,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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 './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,qBAAqB"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './event-catalog.js';\nexport * from './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,qBAAqB"}
|