@shipfox/api-integration-core 12.0.0 → 12.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/api-integration-core",
3
3
  "license": "MIT",
4
- "version": "12.0.0",
4
+ "version": "12.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -25,13 +25,13 @@
25
25
  "zod": "^4.4.3",
26
26
  "@shipfox/api-agent-dto": "12.0.0",
27
27
  "@shipfox/api-auth-context": "12.0.0",
28
- "@shipfox/api-workflows-dto": "12.0.0",
28
+ "@shipfox/api-workflows-dto": "12.1.0",
29
29
  "@shipfox/api-integration-core-dto": "12.0.0",
30
30
  "@shipfox/api-integration-spi": "1.0.0",
31
31
  "@shipfox/api-workspaces-dto": "12.0.0",
32
32
  "@shipfox/api-integration-gitea": "12.0.0",
33
33
  "@shipfox/api-integration-github": "12.0.0",
34
- "@shipfox/api-integration-jira": "12.0.0",
34
+ "@shipfox/api-integration-jira": "12.1.0",
35
35
  "@shipfox/api-integration-linear": "12.0.0",
36
36
  "@shipfox/api-integration-sentry": "12.0.0",
37
37
  "@shipfox/api-integration-slack": "12.0.0",
@@ -21,6 +21,9 @@ describe('jiraProviderModule', () => {
21
21
  const jiraPart = parts.find((part) => part.provider.provider === 'jira');
22
22
  if (!jiraPart?.database) throw new Error('Jira provider database is not configured');
23
23
  expect(jiraPart.provider.routes).toHaveLength(2);
24
+ expect(jiraPart.workers).toEqual([
25
+ expect.objectContaining({taskQueue: 'integrations-jira-maintenance'}),
26
+ ]);
24
27
  expect(jiraPart.webhookProcessors).toEqual([expect.objectContaining({routeIds: ['jira']})]);
25
28
  const workspaceId = crypto.randomUUID();
26
29
  const cloudId = crypto.randomUUID();
@@ -26,6 +26,7 @@ async function loadJiraModuleParts(
26
26
  ): Promise<IntegrationModuleParts> {
27
27
  const {
28
28
  createJiraIntegrationProvider,
29
+ createJiraMaintenanceWorker,
29
30
  createJiraPendingSelectionStore,
30
31
  createJiraTokenStore,
31
32
  db: jiraDb,
@@ -142,6 +143,7 @@ async function loadJiraModuleParts(
142
143
  const pendingStore = createJiraPendingSelectionStore({secrets});
143
144
 
144
145
  const integrationProvider = createJiraIntegrationProvider({
146
+ agentTools: {tokenStore},
145
147
  routes: {
146
148
  tokenStore,
147
149
  pendingStore,
@@ -178,6 +180,12 @@ async function loadJiraModuleParts(
178
180
 
179
181
  return {
180
182
  provider: integrationProvider,
183
+ workers: [
184
+ createJiraMaintenanceWorker({
185
+ tokenStore,
186
+ resolveConnection: getIntegrationConnectionById,
187
+ }),
188
+ ],
181
189
  webhookProcessors: integrationProvider.webhookProcessors,
182
190
  database: {db: jiraDb, migrationsPath, databaseNamespace: 'integrations_jira'},
183
191
  };