@shipfox/api-triggers 12.0.0 → 12.2.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 +4 -4
- package/CHANGELOG.md +30 -0
- package/dist/core/entities/decision.d.ts +1 -1
- package/dist/core/entities/decision.d.ts.map +1 -1
- package/dist/core/entities/received-event.d.ts +2 -2
- package/dist/core/entities/received-event.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/route-event-to-job-listeners.d.ts.map +1 -1
- package/dist/core/route-event-to-job-listeners.js +130 -13
- package/dist/core/route-event-to-job-listeners.js.map +1 -1
- package/dist/core/workflows-client.d.ts +12 -12
- package/dist/db/db.d.ts +20 -20
- package/dist/db/job-listener-subscriptions.d.ts +1 -0
- package/dist/db/job-listener-subscriptions.d.ts.map +1 -1
- package/dist/db/job-listener-subscriptions.js +3 -0
- package/dist/db/job-listener-subscriptions.js.map +1 -1
- package/dist/db/schema/cron-schedules.d.ts +1 -1
- package/dist/db/schema/decisions.d.ts +3 -3
- package/dist/db/schema/job-listener-subscriptions.d.ts +1 -1
- package/dist/db/schema/outbox.d.ts +1 -1
- package/dist/db/schema/received-events.d.ts +5 -5
- package/dist/db/schema/subscriptions.d.ts +1 -1
- package/dist/metrics/instance.d.ts +2 -2
- package/dist/presentation/subscribers/on-integration-event-received.d.ts.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/core/route-event-to-job-listeners.test.ts +97 -0
- package/src/core/route-event-to-job-listeners.ts +157 -11
- package/src/db/job-listener-subscriptions.test.ts +3 -0
- package/src/db/job-listener-subscriptions.ts +4 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/db/job-listener-subscriptions.ts"],"sourcesContent":["import {and, eq, notInArray} from 'drizzle-orm';\nimport type {\n JobListenerMatcherKind,\n JobListenerSubscription,\n} from '#core/entities/job-listener-subscription.js';\nimport {db} from './db.js';\nimport {\n jobListenerSubscriptions,\n toJobListenerSubscription,\n} from './schema/job-listener-subscriptions.js';\n\ntype Tx = Parameters<Parameters<ReturnType<typeof db>['transaction']>[0]>[0];\n\nexport interface ListenerMatcher {\n source: string;\n event: string;\n inputs?: Readonly<Record<string, unknown>> | undefined;\n filter?: string | undefined;\n filter_snapshot?: Readonly<Record<string, unknown>> | undefined;\n}\n\nexport interface ProjectJobListenerSubscriptionsParams {\n workspaceId: string;\n workflowRunId: string;\n jobId: string;\n on: readonly ListenerMatcher[] | null;\n until: readonly ListenerMatcher[] | null;\n}\n\nexport async function projectJobListenerSubscriptions(\n params: ProjectJobListenerSubscriptionsParams,\n): Promise<void> {\n await db().transaction(async (tx) => {\n await pruneStaleMatchers(tx, params.jobId, 'on', params.on ?? []);\n await pruneStaleMatchers(tx, params.jobId, 'until', params.until ?? []);\n\n for (const [kind, matchers] of [\n ['on', params.on ?? []],\n ['until', params.until ?? []],\n ] as const) {\n for (const [matcherOrdinal, matcher] of matchers.entries()) {\n const config: Record<string, unknown> = {};\n if (matcher.inputs !== undefined) config.inputs = matcher.inputs;\n if (matcher.filter !== undefined) config.filter = matcher.filter;\n if (matcher.filter_snapshot !== undefined) config.filter_snapshot = matcher.filter_snapshot;\n\n await tx\n .insert(jobListenerSubscriptions)\n .values({\n workspaceId: params.workspaceId,\n workflowRunId: params.workflowRunId,\n jobId: params.jobId,\n kind,\n matcherOrdinal,\n source: matcher.source,\n event: matcher.event,\n config,\n })\n .onConflictDoUpdate({\n target: [\n jobListenerSubscriptions.jobId,\n jobListenerSubscriptions.kind,\n jobListenerSubscriptions.matcherOrdinal,\n ],\n set: {\n workspaceId: params.workspaceId,\n workflowRunId: params.workflowRunId,\n source: matcher.source,\n event: matcher.event,\n config,\n },\n });\n }\n }\n });\n}\n\nasync function pruneStaleMatchers(\n tx: Tx,\n jobId: string,\n kind: JobListenerMatcherKind,\n matchers: readonly ListenerMatcher[],\n): Promise<void> {\n const base = and(\n eq(jobListenerSubscriptions.jobId, jobId),\n eq(jobListenerSubscriptions.kind, kind),\n );\n\n if (matchers.length === 0) {\n await tx.delete(jobListenerSubscriptions).where(base);\n return;\n }\n\n await tx.delete(jobListenerSubscriptions).where(\n and(\n base,\n notInArray(\n jobListenerSubscriptions.matcherOrdinal,\n matchers.map((_matcher, index) => index),\n ),\n ),\n );\n}\n\nexport async function removeJobListenerSubscriptionsForJob(jobId: string): Promise<number> {\n const rows = await db()\n .delete(jobListenerSubscriptions)\n .where(eq(jobListenerSubscriptions.jobId, jobId))\n .returning({id: jobListenerSubscriptions.id});\n return rows.length;\n}\n\nexport interface FindMatchingJobListenerSubscriptionsParams {\n workspaceId: string;\n source: string;\n event: string;\n}\n\nexport async function findMatchingJobListenerSubscriptions(\n params: FindMatchingJobListenerSubscriptionsParams,\n): Promise<JobListenerSubscription[]> {\n const rows = await db()\n .select()\n .from(jobListenerSubscriptions)\n .where(\n and(\n eq(jobListenerSubscriptions.workspaceId, params.workspaceId),\n eq(jobListenerSubscriptions.source, params.source),\n eq(jobListenerSubscriptions.event, params.event),\n ),\n );\n return rows.map(toJobListenerSubscription);\n}\n\nexport async function hasJobListenerSubscriptions(jobId: string): Promise<boolean> {\n const [subscription] = await db()\n .select({id: jobListenerSubscriptions.id})\n .from(jobListenerSubscriptions)\n .where(eq(jobListenerSubscriptions.jobId, jobId))\n .limit(1);\n return subscription !== undefined;\n}\n"],"names":["and","eq","notInArray","db","jobListenerSubscriptions","toJobListenerSubscription","projectJobListenerSubscriptions","params","transaction","tx","pruneStaleMatchers","jobId","on","until","kind","matchers","matcherOrdinal","matcher","entries","config","inputs","undefined","filter","filter_snapshot","insert","values","workspaceId","workflowRunId","source","event","onConflictDoUpdate","target","set","base","length","delete","where","map","_matcher","index","removeJobListenerSubscriptionsForJob","rows","returning","id","findMatchingJobListenerSubscriptions","select","from","hasJobListenerSubscriptions","subscription","limit"],"mappings":"AAAA,SAAQA,GAAG,EAAEC,EAAE,EAAEC,UAAU,QAAO,cAAc;AAKhD,SAAQC,EAAE,QAAO,UAAU;AAC3B,SACEC,wBAAwB,EACxBC,yBAAyB,QACpB,yCAAyC;
|
|
1
|
+
{"version":3,"sources":["../../src/db/job-listener-subscriptions.ts"],"sourcesContent":["import {and, eq, notInArray} from 'drizzle-orm';\nimport type {\n JobListenerMatcherKind,\n JobListenerSubscription,\n} from '#core/entities/job-listener-subscription.js';\nimport {db} from './db.js';\nimport {\n jobListenerSubscriptions,\n toJobListenerSubscription,\n} from './schema/job-listener-subscriptions.js';\n\ntype Tx = Parameters<Parameters<ReturnType<typeof db>['transaction']>[0]>[0];\n\nexport interface ListenerMatcher {\n source: string;\n event: string;\n inputs?: Readonly<Record<string, unknown>> | undefined;\n filter?: string | undefined;\n filter_snapshot?: Readonly<Record<string, unknown>> | undefined;\n filter_output_types?: Readonly<Record<string, unknown>> | undefined;\n}\n\nexport interface ProjectJobListenerSubscriptionsParams {\n workspaceId: string;\n workflowRunId: string;\n jobId: string;\n on: readonly ListenerMatcher[] | null;\n until: readonly ListenerMatcher[] | null;\n}\n\nexport async function projectJobListenerSubscriptions(\n params: ProjectJobListenerSubscriptionsParams,\n): Promise<void> {\n await db().transaction(async (tx) => {\n await pruneStaleMatchers(tx, params.jobId, 'on', params.on ?? []);\n await pruneStaleMatchers(tx, params.jobId, 'until', params.until ?? []);\n\n for (const [kind, matchers] of [\n ['on', params.on ?? []],\n ['until', params.until ?? []],\n ] as const) {\n for (const [matcherOrdinal, matcher] of matchers.entries()) {\n const config: Record<string, unknown> = {};\n if (matcher.inputs !== undefined) config.inputs = matcher.inputs;\n if (matcher.filter !== undefined) config.filter = matcher.filter;\n if (matcher.filter_snapshot !== undefined) config.filter_snapshot = matcher.filter_snapshot;\n if (matcher.filter_output_types !== undefined) {\n config.filter_output_types = matcher.filter_output_types;\n }\n\n await tx\n .insert(jobListenerSubscriptions)\n .values({\n workspaceId: params.workspaceId,\n workflowRunId: params.workflowRunId,\n jobId: params.jobId,\n kind,\n matcherOrdinal,\n source: matcher.source,\n event: matcher.event,\n config,\n })\n .onConflictDoUpdate({\n target: [\n jobListenerSubscriptions.jobId,\n jobListenerSubscriptions.kind,\n jobListenerSubscriptions.matcherOrdinal,\n ],\n set: {\n workspaceId: params.workspaceId,\n workflowRunId: params.workflowRunId,\n source: matcher.source,\n event: matcher.event,\n config,\n },\n });\n }\n }\n });\n}\n\nasync function pruneStaleMatchers(\n tx: Tx,\n jobId: string,\n kind: JobListenerMatcherKind,\n matchers: readonly ListenerMatcher[],\n): Promise<void> {\n const base = and(\n eq(jobListenerSubscriptions.jobId, jobId),\n eq(jobListenerSubscriptions.kind, kind),\n );\n\n if (matchers.length === 0) {\n await tx.delete(jobListenerSubscriptions).where(base);\n return;\n }\n\n await tx.delete(jobListenerSubscriptions).where(\n and(\n base,\n notInArray(\n jobListenerSubscriptions.matcherOrdinal,\n matchers.map((_matcher, index) => index),\n ),\n ),\n );\n}\n\nexport async function removeJobListenerSubscriptionsForJob(jobId: string): Promise<number> {\n const rows = await db()\n .delete(jobListenerSubscriptions)\n .where(eq(jobListenerSubscriptions.jobId, jobId))\n .returning({id: jobListenerSubscriptions.id});\n return rows.length;\n}\n\nexport interface FindMatchingJobListenerSubscriptionsParams {\n workspaceId: string;\n source: string;\n event: string;\n}\n\nexport async function findMatchingJobListenerSubscriptions(\n params: FindMatchingJobListenerSubscriptionsParams,\n): Promise<JobListenerSubscription[]> {\n const rows = await db()\n .select()\n .from(jobListenerSubscriptions)\n .where(\n and(\n eq(jobListenerSubscriptions.workspaceId, params.workspaceId),\n eq(jobListenerSubscriptions.source, params.source),\n eq(jobListenerSubscriptions.event, params.event),\n ),\n );\n return rows.map(toJobListenerSubscription);\n}\n\nexport async function hasJobListenerSubscriptions(jobId: string): Promise<boolean> {\n const [subscription] = await db()\n .select({id: jobListenerSubscriptions.id})\n .from(jobListenerSubscriptions)\n .where(eq(jobListenerSubscriptions.jobId, jobId))\n .limit(1);\n return subscription !== undefined;\n}\n"],"names":["and","eq","notInArray","db","jobListenerSubscriptions","toJobListenerSubscription","projectJobListenerSubscriptions","params","transaction","tx","pruneStaleMatchers","jobId","on","until","kind","matchers","matcherOrdinal","matcher","entries","config","inputs","undefined","filter","filter_snapshot","filter_output_types","insert","values","workspaceId","workflowRunId","source","event","onConflictDoUpdate","target","set","base","length","delete","where","map","_matcher","index","removeJobListenerSubscriptionsForJob","rows","returning","id","findMatchingJobListenerSubscriptions","select","from","hasJobListenerSubscriptions","subscription","limit"],"mappings":"AAAA,SAAQA,GAAG,EAAEC,EAAE,EAAEC,UAAU,QAAO,cAAc;AAKhD,SAAQC,EAAE,QAAO,UAAU;AAC3B,SACEC,wBAAwB,EACxBC,yBAAyB,QACpB,yCAAyC;AAqBhD,OAAO,eAAeC,gCACpBC,MAA6C;IAE7C,MAAMJ,KAAKK,WAAW,CAAC,OAAOC;QAC5B,MAAMC,mBAAmBD,IAAIF,OAAOI,KAAK,EAAE,MAAMJ,OAAOK,EAAE,IAAI,EAAE;QAChE,MAAMF,mBAAmBD,IAAIF,OAAOI,KAAK,EAAE,SAASJ,OAAOM,KAAK,IAAI,EAAE;QAEtE,KAAK,MAAM,CAACC,MAAMC,SAAS,IAAI;YAC7B;gBAAC;gBAAMR,OAAOK,EAAE,IAAI,EAAE;aAAC;YACvB;gBAAC;gBAASL,OAAOM,KAAK,IAAI,EAAE;aAAC;SAC9B,CAAW;YACV,KAAK,MAAM,CAACG,gBAAgBC,QAAQ,IAAIF,SAASG,OAAO,GAAI;gBAC1D,MAAMC,SAAkC,CAAC;gBACzC,IAAIF,QAAQG,MAAM,KAAKC,WAAWF,OAAOC,MAAM,GAAGH,QAAQG,MAAM;gBAChE,IAAIH,QAAQK,MAAM,KAAKD,WAAWF,OAAOG,MAAM,GAAGL,QAAQK,MAAM;gBAChE,IAAIL,QAAQM,eAAe,KAAKF,WAAWF,OAAOI,eAAe,GAAGN,QAAQM,eAAe;gBAC3F,IAAIN,QAAQO,mBAAmB,KAAKH,WAAW;oBAC7CF,OAAOK,mBAAmB,GAAGP,QAAQO,mBAAmB;gBAC1D;gBAEA,MAAMf,GACHgB,MAAM,CAACrB,0BACPsB,MAAM,CAAC;oBACNC,aAAapB,OAAOoB,WAAW;oBAC/BC,eAAerB,OAAOqB,aAAa;oBACnCjB,OAAOJ,OAAOI,KAAK;oBACnBG;oBACAE;oBACAa,QAAQZ,QAAQY,MAAM;oBACtBC,OAAOb,QAAQa,KAAK;oBACpBX;gBACF,GACCY,kBAAkB,CAAC;oBAClBC,QAAQ;wBACN5B,yBAAyBO,KAAK;wBAC9BP,yBAAyBU,IAAI;wBAC7BV,yBAAyBY,cAAc;qBACxC;oBACDiB,KAAK;wBACHN,aAAapB,OAAOoB,WAAW;wBAC/BC,eAAerB,OAAOqB,aAAa;wBACnCC,QAAQZ,QAAQY,MAAM;wBACtBC,OAAOb,QAAQa,KAAK;wBACpBX;oBACF;gBACF;YACJ;QACF;IACF;AACF;AAEA,eAAeT,mBACbD,EAAM,EACNE,KAAa,EACbG,IAA4B,EAC5BC,QAAoC;IAEpC,MAAMmB,OAAOlC,IACXC,GAAGG,yBAAyBO,KAAK,EAAEA,QACnCV,GAAGG,yBAAyBU,IAAI,EAAEA;IAGpC,IAAIC,SAASoB,MAAM,KAAK,GAAG;QACzB,MAAM1B,GAAG2B,MAAM,CAAChC,0BAA0BiC,KAAK,CAACH;QAChD;IACF;IAEA,MAAMzB,GAAG2B,MAAM,CAAChC,0BAA0BiC,KAAK,CAC7CrC,IACEkC,MACAhC,WACEE,yBAAyBY,cAAc,EACvCD,SAASuB,GAAG,CAAC,CAACC,UAAUC,QAAUA;AAI1C;AAEA,OAAO,eAAeC,qCAAqC9B,KAAa;IACtE,MAAM+B,OAAO,MAAMvC,KAChBiC,MAAM,CAAChC,0BACPiC,KAAK,CAACpC,GAAGG,yBAAyBO,KAAK,EAAEA,QACzCgC,SAAS,CAAC;QAACC,IAAIxC,yBAAyBwC,EAAE;IAAA;IAC7C,OAAOF,KAAKP,MAAM;AACpB;AAQA,OAAO,eAAeU,qCACpBtC,MAAkD;IAElD,MAAMmC,OAAO,MAAMvC,KAChB2C,MAAM,GACNC,IAAI,CAAC3C,0BACLiC,KAAK,CACJrC,IACEC,GAAGG,yBAAyBuB,WAAW,EAAEpB,OAAOoB,WAAW,GAC3D1B,GAAGG,yBAAyByB,MAAM,EAAEtB,OAAOsB,MAAM,GACjD5B,GAAGG,yBAAyB0B,KAAK,EAAEvB,OAAOuB,KAAK;IAGrD,OAAOY,KAAKJ,GAAG,CAACjC;AAClB;AAEA,OAAO,eAAe2C,4BAA4BrC,KAAa;IAC7D,MAAM,CAACsC,aAAa,GAAG,MAAM9C,KAC1B2C,MAAM,CAAC;QAACF,IAAIxC,yBAAyBwC,EAAE;IAAA,GACvCG,IAAI,CAAC3C,0BACLiC,KAAK,CAACpC,GAAGG,yBAAyBO,KAAK,EAAEA,QACzCuC,KAAK,CAAC;IACT,OAAOD,iBAAiB5B;AAC1B"}
|
|
@@ -140,7 +140,7 @@ export declare const triggersCronSchedules: import("drizzle-orm/pg-core").PgTabl
|
|
|
140
140
|
generated: undefined;
|
|
141
141
|
}, {}, {}>;
|
|
142
142
|
};
|
|
143
|
-
dialect:
|
|
143
|
+
dialect: 'pg';
|
|
144
144
|
}>;
|
|
145
145
|
export type CronScheduleDb = typeof triggersCronSchedules.$inferSelect;
|
|
146
146
|
export type CronScheduleInsertDb = typeof triggersCronSchedules.$inferInsert;
|
|
@@ -42,7 +42,7 @@ export declare const triggersDecisions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
42
42
|
tableName: "decisions";
|
|
43
43
|
dataType: "string";
|
|
44
44
|
columnType: "PgText";
|
|
45
|
-
data: "
|
|
45
|
+
data: "listener" | "trigger";
|
|
46
46
|
driverParam: string;
|
|
47
47
|
notNull: true;
|
|
48
48
|
hasDefault: false;
|
|
@@ -195,7 +195,7 @@ export declare const triggersDecisions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
195
195
|
tableName: "decisions";
|
|
196
196
|
dataType: "string";
|
|
197
197
|
columnType: "PgText";
|
|
198
|
-
data: "
|
|
198
|
+
data: "dispatch-error" | "filter-error" | "triggered";
|
|
199
199
|
driverParam: string;
|
|
200
200
|
notNull: true;
|
|
201
201
|
hasDefault: false;
|
|
@@ -276,7 +276,7 @@ export declare const triggersDecisions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
276
276
|
generated: undefined;
|
|
277
277
|
}, {}, {}>;
|
|
278
278
|
};
|
|
279
|
-
dialect:
|
|
279
|
+
dialect: 'pg';
|
|
280
280
|
}>;
|
|
281
281
|
export type TriggerDecisionDb = typeof triggersDecisions.$inferSelect;
|
|
282
282
|
export type TriggerDecisionInsertDb = typeof triggersDecisions.$inferInsert;
|
|
@@ -177,7 +177,7 @@ export declare const jobListenerSubscriptions: import("drizzle-orm/pg-core").PgT
|
|
|
177
177
|
generated: undefined;
|
|
178
178
|
}, {}, {}>;
|
|
179
179
|
};
|
|
180
|
-
dialect:
|
|
180
|
+
dialect: 'pg';
|
|
181
181
|
}>;
|
|
182
182
|
export type JobListenerSubscriptionDb = typeof jobListenerSubscriptions.$inferSelect;
|
|
183
183
|
export type JobListenerSubscriptionInsertDb = typeof jobListenerSubscriptions.$inferInsert;
|
|
@@ -42,7 +42,7 @@ export declare const triggersReceivedEvents: import("drizzle-orm/pg-core").PgTab
|
|
|
42
42
|
tableName: "received_events";
|
|
43
43
|
dataType: "string";
|
|
44
44
|
columnType: "PgText";
|
|
45
|
-
data: "
|
|
45
|
+
data: "cron" | "integration" | "manual";
|
|
46
46
|
driverParam: string;
|
|
47
47
|
notNull: true;
|
|
48
48
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ export declare const triggersReceivedEvents: import("drizzle-orm/pg-core").PgTab
|
|
|
178
178
|
tableName: "received_events";
|
|
179
179
|
dataType: "string";
|
|
180
180
|
columnType: "PgText";
|
|
181
|
-
data: "
|
|
181
|
+
data: "discarded" | "errored" | "failed" | "received" | "routed";
|
|
182
182
|
driverParam: string;
|
|
183
183
|
notNull: true;
|
|
184
184
|
hasDefault: true;
|
|
@@ -278,7 +278,7 @@ export declare const triggersReceivedEvents: import("drizzle-orm/pg-core").PgTab
|
|
|
278
278
|
generated: undefined;
|
|
279
279
|
}, {}, {}>;
|
|
280
280
|
};
|
|
281
|
-
dialect:
|
|
281
|
+
dialect: 'pg';
|
|
282
282
|
}>;
|
|
283
283
|
export type TriggerReceivedEventDb = typeof triggersReceivedEvents.$inferSelect;
|
|
284
284
|
export type TriggerReceivedEventInsertDb = typeof triggersReceivedEvents.$inferInsert;
|
|
@@ -323,7 +323,7 @@ export declare const triggerReceivedEventSummaryColumns: {
|
|
|
323
323
|
tableName: "received_events";
|
|
324
324
|
dataType: "string";
|
|
325
325
|
columnType: "PgText";
|
|
326
|
-
data: "
|
|
326
|
+
data: "cron" | "integration" | "manual";
|
|
327
327
|
driverParam: string;
|
|
328
328
|
notNull: true;
|
|
329
329
|
hasDefault: false;
|
|
@@ -459,7 +459,7 @@ export declare const triggerReceivedEventSummaryColumns: {
|
|
|
459
459
|
tableName: "received_events";
|
|
460
460
|
dataType: "string";
|
|
461
461
|
columnType: "PgText";
|
|
462
|
-
data: "
|
|
462
|
+
data: "discarded" | "errored" | "failed" | "received" | "routed";
|
|
463
463
|
driverParam: string;
|
|
464
464
|
notNull: true;
|
|
465
465
|
hasDefault: true;
|
|
@@ -174,7 +174,7 @@ export declare const triggerSubscriptions: import("drizzle-orm/pg-core").PgTable
|
|
|
174
174
|
generated: undefined;
|
|
175
175
|
}, {}, {}>;
|
|
176
176
|
};
|
|
177
|
-
dialect:
|
|
177
|
+
dialect: 'pg';
|
|
178
178
|
}>;
|
|
179
179
|
export type TriggerSubscriptionDb = typeof triggerSubscriptions.$inferSelect;
|
|
180
180
|
export type TriggerSubscriptionInsertDb = typeof triggerSubscriptions.$inferInsert;
|
|
@@ -6,10 +6,10 @@ export declare const subscriptionTriggeredCount: import("@shipfox/node-opentelem
|
|
|
6
6
|
}>;
|
|
7
7
|
export declare const eventOutcomeCount: import("@shipfox/node-opentelemetry").Counter<{
|
|
8
8
|
provider: string;
|
|
9
|
-
outcome:
|
|
9
|
+
outcome: 'discarded' | 'routed' | 'failed' | 'errored';
|
|
10
10
|
}>;
|
|
11
11
|
export declare const cronFiredCount: import("@shipfox/node-opentelemetry").Counter<{
|
|
12
|
-
outcome:
|
|
12
|
+
outcome: 'fired' | 'errored';
|
|
13
13
|
}>;
|
|
14
14
|
export declare const cronFireLag: import("@shipfox/node-opentelemetry").Histogram<Record<string, never>>;
|
|
15
15
|
//# sourceMappingURL=instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-integration-event-received.d.ts","sourceRoot":"","sources":["../../../src/presentation/subscribers/on-integration-event-received.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAGtD,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"on-integration-event-received.d.ts","sourceRoot":"","sources":["../../../src/presentation/subscribers/on-integration-event-received.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAGtD,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,qBAAqB,cAEnE,6BAA6B,SAChC,WAAW,CAAC,6BAA6B,CAAC,KAChD,OAAO,CAAC,IAAI,CAAC,CAejB"}
|