@critical-path/core 0.36.0 → 0.36.1
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 +5 -1
- package/CHANGELOG.md +0 -593
- package/dist/deliverables.test.d.ts +0 -2
- package/dist/deliverables.test.d.ts.map +0 -1
- package/dist/deliverables.test.js +0 -232
- package/dist/deliverables.test.js.map +0 -1
- package/dist/domain/calendar.test.d.ts +0 -2
- package/dist/domain/calendar.test.d.ts.map +0 -1
- package/dist/domain/calendar.test.js +0 -181
- package/dist/domain/calendar.test.js.map +0 -1
- package/dist/domain/cpm.test.d.ts +0 -2
- package/dist/domain/cpm.test.d.ts.map +0 -1
- package/dist/domain/cpm.test.js +0 -166
- package/dist/domain/cpm.test.js.map +0 -1
- package/dist/domain/ddd.test.d.ts +0 -2
- package/dist/domain/ddd.test.d.ts.map +0 -1
- package/dist/domain/ddd.test.js +0 -349
- package/dist/domain/ddd.test.js.map +0 -1
- package/dist/domain/ladder.test.d.ts +0 -2
- package/dist/domain/ladder.test.d.ts.map +0 -1
- package/dist/domain/ladder.test.js +0 -213
- package/dist/domain/ladder.test.js.map +0 -1
- package/dist/domain/metrics.test.d.ts +0 -2
- package/dist/domain/metrics.test.d.ts.map +0 -1
- package/dist/domain/metrics.test.js +0 -252
- package/dist/domain/metrics.test.js.map +0 -1
- package/dist/domain/task-duration.test.d.ts +0 -2
- package/dist/domain/task-duration.test.d.ts.map +0 -1
- package/dist/domain/task-duration.test.js +0 -307
- package/dist/domain/task-duration.test.js.map +0 -1
- package/dist/domain/workload.test.d.ts +0 -2
- package/dist/domain/workload.test.d.ts.map +0 -1
- package/dist/domain/workload.test.js +0 -261
- package/dist/domain/workload.test.js.map +0 -1
- package/dist/engine/actor.test.d.ts +0 -2
- package/dist/engine/actor.test.d.ts.map +0 -1
- package/dist/engine/actor.test.js +0 -54
- package/dist/engine/actor.test.js.map +0 -1
- package/dist/engine/authorization.test.d.ts +0 -2
- package/dist/engine/authorization.test.d.ts.map +0 -1
- package/dist/engine/authorization.test.js +0 -154
- package/dist/engine/authorization.test.js.map +0 -1
- package/dist/engine/cascade.test.d.ts +0 -2
- package/dist/engine/cascade.test.d.ts.map +0 -1
- package/dist/engine/cascade.test.js +0 -99
- package/dist/engine/cascade.test.js.map +0 -1
- package/dist/engine/config.test.d.ts +0 -2
- package/dist/engine/config.test.d.ts.map +0 -1
- package/dist/engine/config.test.js +0 -46
- package/dist/engine/config.test.js.map +0 -1
- package/dist/engine/entity-events.test.d.ts +0 -2
- package/dist/engine/entity-events.test.d.ts.map +0 -1
- package/dist/engine/entity-events.test.js +0 -61
- package/dist/engine/entity-events.test.js.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -429
- package/dist/index.test.js.map +0 -1
- package/dist/plugins/plugins.test.d.ts +0 -2
- package/dist/plugins/plugins.test.d.ts.map +0 -1
- package/dist/plugins/plugins.test.js +0 -137
- package/dist/plugins/plugins.test.js.map +0 -1
- package/dist/schemas/schemas.test.d.ts +0 -2
- package/dist/schemas/schemas.test.d.ts.map +0 -1
- package/dist/schemas/schemas.test.js +0 -58
- package/dist/schemas/schemas.test.js.map +0 -1
- package/dist/status.test.d.ts +0 -2
- package/dist/status.test.d.ts.map +0 -1
- package/dist/status.test.js +0 -295
- package/dist/status.test.js.map +0 -1
- package/dist/storage/storage.test.d.ts +0 -2
- package/dist/storage/storage.test.d.ts.map +0 -1
- package/dist/storage/storage.test.js +0 -236
- package/dist/storage/storage.test.js.map +0 -1
- package/dist/storage/upload-limits.test.d.ts +0 -2
- package/dist/storage/upload-limits.test.d.ts.map +0 -1
- package/dist/storage/upload-limits.test.js +0 -31
- package/dist/storage/upload-limits.test.js.map +0 -1
- package/dist/store/conformance.test.d.ts +0 -2
- package/dist/store/conformance.test.d.ts.map +0 -1
- package/dist/store/conformance.test.js +0 -15
- package/dist/store/conformance.test.js.map +0 -1
- package/dist/store/firebase.test.d.ts +0 -2
- package/dist/store/firebase.test.d.ts.map +0 -1
- package/dist/store/firebase.test.js +0 -103
- package/dist/store/firebase.test.js.map +0 -1
- package/dist/store/query.test.d.ts +0 -2
- package/dist/store/query.test.d.ts.map +0 -1
- package/dist/store/query.test.js +0 -89
- package/dist/store/query.test.js.map +0 -1
- package/dist/store/sqlite.test.d.ts +0 -2
- package/dist/store/sqlite.test.d.ts.map +0 -1
- package/dist/store/sqlite.test.js +0 -177
- package/dist/store/sqlite.test.js.map +0 -1
- package/dist/task-state.test.d.ts +0 -2
- package/dist/task-state.test.d.ts.map +0 -1
- package/dist/task-state.test.js +0 -423
- package/dist/task-state.test.js.map +0 -1
- package/dist/use-case-validation.test.d.ts +0 -2
- package/dist/use-case-validation.test.d.ts.map +0 -1
- package/dist/use-case-validation.test.js +0 -281
- package/dist/use-case-validation.test.js.map +0 -1
- package/dist/utils/fractional-index.test.d.ts +0 -2
- package/dist/utils/fractional-index.test.d.ts.map +0 -1
- package/dist/utils/fractional-index.test.js +0 -182
- package/dist/utils/fractional-index.test.js.map +0 -1
- package/dist/utils/key.test.d.ts +0 -2
- package/dist/utils/key.test.d.ts.map +0 -1
- package/dist/utils/key.test.js +0 -65
- package/dist/utils/key.test.js.map +0 -1
- package/dist/utils/mentions.test.d.ts +0 -2
- package/dist/utils/mentions.test.d.ts.map +0 -1
- package/dist/utils/mentions.test.js +0 -114
- package/dist/utils/mentions.test.js.map +0 -1
- package/dist/webhooks/webhooks.test.d.ts +0 -2
- package/dist/webhooks/webhooks.test.d.ts.map +0 -1
- package/dist/webhooks/webhooks.test.js +0 -154
- package/dist/webhooks/webhooks.test.js.map +0 -1
- package/src/deliverables.test.ts +0 -284
- package/src/domain/authorization.ts +0 -82
- package/src/domain/calendar.test.ts +0 -216
- package/src/domain/calendar.ts +0 -502
- package/src/domain/cpm.test.ts +0 -189
- package/src/domain/cpm.ts +0 -258
- package/src/domain/custom-fields.ts +0 -172
- package/src/domain/ddd.test.ts +0 -442
- package/src/domain/entities.ts +0 -798
- package/src/domain/errors.ts +0 -38
- package/src/domain/events.ts +0 -369
- package/src/domain/graph.ts +0 -70
- package/src/domain/index.ts +0 -12
- package/src/domain/ladder.test.ts +0 -251
- package/src/domain/ladder.ts +0 -474
- package/src/domain/metrics.test.ts +0 -288
- package/src/domain/metrics.ts +0 -497
- package/src/domain/task-duration.test.ts +0 -354
- package/src/domain/workload.test.ts +0 -311
- package/src/domain/workload.ts +0 -457
- package/src/engine/actor.test.ts +0 -63
- package/src/engine/authorization.test.ts +0 -199
- package/src/engine/cascade.test.ts +0 -121
- package/src/engine/config.test.ts +0 -51
- package/src/engine/entity-events.test.ts +0 -67
- package/src/engine/index.ts +0 -2495
- package/src/index.test.ts +0 -514
- package/src/index.ts +0 -9
- package/src/plugins/index.ts +0 -103
- package/src/plugins/plugins.test.ts +0 -161
- package/src/schemas/index.ts +0 -402
- package/src/schemas/schemas.test.ts +0 -116
- package/src/status.test.ts +0 -354
- package/src/storage/file-storage.ts +0 -200
- package/src/storage/firebase-storage.ts +0 -209
- package/src/storage/index.ts +0 -3
- package/src/storage/s3.ts +0 -151
- package/src/storage/storage.test.ts +0 -274
- package/src/storage/upload-limits.test.ts +0 -41
- package/src/store/conformance.test.ts +0 -15
- package/src/store/firebase.test.ts +0 -131
- package/src/store/firebase.ts +0 -658
- package/src/store/index.ts +0 -623
- package/src/store/query.test.ts +0 -110
- package/src/store/query.ts +0 -113
- package/src/store/sqlite.test.ts +0 -218
- package/src/store/sqlite.ts +0 -1480
- package/src/task-state.test.ts +0 -506
- package/src/testing/conformance.ts +0 -319
- package/src/testing/index.ts +0 -1
- package/src/types/index.ts +0 -871
- package/src/use-case-validation.test.ts +0 -324
- package/src/utils/fractional-index.test.ts +0 -228
- package/src/utils/fractional-index.ts +0 -254
- package/src/utils/index.ts +0 -7
- package/src/utils/key.test.ts +0 -76
- package/src/utils/key.ts +0 -62
- package/src/utils/mentions.test.ts +0 -132
- package/src/utils/mentions.ts +0 -131
- package/src/utils/status.ts +0 -419
- package/src/utils/workflow.ts +0 -306
- package/src/webhooks/dispatcher.ts +0 -190
- package/src/webhooks/index.ts +0 -2
- package/src/webhooks/signature.ts +0 -57
- package/src/webhooks/webhooks.test.ts +0 -201
- package/tsconfig.json +0 -8
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import {
|
|
3
|
-
CriticalPathEngine,
|
|
4
|
-
SQLiteStore,
|
|
5
|
-
createRolePolicy,
|
|
6
|
-
ForbiddenError,
|
|
7
|
-
ValidationError,
|
|
8
|
-
signWebhookPayload,
|
|
9
|
-
verifyWebhookSignature,
|
|
10
|
-
type WebhookDeliveryOptions
|
|
11
|
-
} from '../index.js';
|
|
12
|
-
|
|
13
|
-
interface Captured {
|
|
14
|
-
url: string;
|
|
15
|
-
headers: Record<string, string>;
|
|
16
|
-
body: any;
|
|
17
|
-
rawBody: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** Engine whose webhook deliveries are captured instead of sent. `respond` decides each status. */
|
|
21
|
-
function engineWithCapture(options: WebhookDeliveryOptions & { respond?: (n: number) => number } = {}, config = {}) {
|
|
22
|
-
const deliveries: Captured[] = [];
|
|
23
|
-
const fetchMock = (async (url: string, init: RequestInit) => {
|
|
24
|
-
const rawBody = init.body as string;
|
|
25
|
-
deliveries.push({ url, headers: init.headers as Record<string, string>, body: JSON.parse(rawBody), rawBody });
|
|
26
|
-
return new Response(null, { status: options.respond?.(deliveries.length) ?? 200 });
|
|
27
|
-
}) as unknown as typeof fetch;
|
|
28
|
-
const engine = new CriticalPathEngine({
|
|
29
|
-
...config,
|
|
30
|
-
webhookDelivery: { retryBaseDelayMs: 1, ...options, fetch: options.fetch ?? fetchMock }
|
|
31
|
-
});
|
|
32
|
-
return { engine, deliveries };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
describe('webhook signatures', () => {
|
|
36
|
-
it('signs and verifies, rejecting tampering and stale timestamps', async () => {
|
|
37
|
-
const timestamp = Math.floor(Date.now() / 1000);
|
|
38
|
-
const signature = await signWebhookPayload({ secret: 's3cret', body: '{"a":1}', timestamp });
|
|
39
|
-
|
|
40
|
-
expect(await verifyWebhookSignature({ secret: 's3cret', body: '{"a":1}', timestamp, signature })).toBe(true);
|
|
41
|
-
expect(await verifyWebhookSignature({ secret: 's3cret', body: '{"a":2}', timestamp, signature })).toBe(false);
|
|
42
|
-
expect(await verifyWebhookSignature({ secret: 'other', body: '{"a":1}', timestamp, signature })).toBe(false);
|
|
43
|
-
expect(
|
|
44
|
-
await verifyWebhookSignature({ secret: 's3cret', body: '{"a":1}', timestamp, signature, now: (timestamp + 3600) * 1000 })
|
|
45
|
-
).toBe(false);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
describe('webhook delivery', () => {
|
|
50
|
-
it('delivers signed domain events to subscribed webhooks', async () => {
|
|
51
|
-
const { engine, deliveries } = engineWithCapture();
|
|
52
|
-
const { secret } = await engine.createWebhook({ name: 'CI', url: 'https://hooks.example.com/cp', events: ['task.created'] });
|
|
53
|
-
const project = await engine.createProject({ name: 'Hooks' });
|
|
54
|
-
const task = await engine.createTask({ projectId: project.id, title: 'Ship it' });
|
|
55
|
-
await engine.webhooks.idle();
|
|
56
|
-
|
|
57
|
-
expect(deliveries).toHaveLength(1);
|
|
58
|
-
const [delivery] = deliveries;
|
|
59
|
-
expect(delivery.headers['X-CriticalPath-Event']).toBe('task.created');
|
|
60
|
-
expect(delivery.body.data.task.id).toBe(task.id);
|
|
61
|
-
expect(
|
|
62
|
-
await verifyWebhookSignature({
|
|
63
|
-
secret,
|
|
64
|
-
body: delivery.rawBody,
|
|
65
|
-
timestamp: delivery.headers['X-CriticalPath-Timestamp'],
|
|
66
|
-
signature: delivery.headers['X-CriticalPath-Signature']
|
|
67
|
-
})
|
|
68
|
-
).toBe(true);
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
it('supports wildcard subscriptions and skips inactive webhooks', async () => {
|
|
72
|
-
const { engine, deliveries } = engineWithCapture();
|
|
73
|
-
await engine.createWebhook({ name: 'All', url: 'https://hooks.example.com/all', events: ['*'] });
|
|
74
|
-
const off = await engine.createWebhook({ name: 'Off', url: 'https://hooks.example.com/off', events: ['*'] });
|
|
75
|
-
await engine.updateWebhook(off.webhook.id, { active: false });
|
|
76
|
-
|
|
77
|
-
const project = await engine.createProject({ name: 'Wild' });
|
|
78
|
-
await engine.createTask({ projectId: project.id, title: 'T' });
|
|
79
|
-
await engine.webhooks.idle();
|
|
80
|
-
|
|
81
|
-
// Deliveries are asynchronous, so arrival order is not guaranteed
|
|
82
|
-
expect(deliveries.map((d) => d.body.event).sort()).toEqual(['project.created', 'task.created']);
|
|
83
|
-
expect(deliveries.every((d) => d.url.endsWith('/all'))).toBe(true);
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it('retries failed deliveries with backoff, then reports the final failure', async () => {
|
|
87
|
-
const failures: string[] = [];
|
|
88
|
-
const { engine, deliveries } = engineWithCapture({
|
|
89
|
-
maxAttempts: 3,
|
|
90
|
-
respond: () => 500,
|
|
91
|
-
onDeliveryFailed: (job) => failures.push(job.id)
|
|
92
|
-
});
|
|
93
|
-
await engine.createWebhook({ name: 'Flaky', url: 'https://hooks.example.com/flaky', events: ['project.created'] });
|
|
94
|
-
await engine.createProject({ name: 'Retry' });
|
|
95
|
-
await engine.webhooks.idle();
|
|
96
|
-
|
|
97
|
-
expect(deliveries).toHaveLength(3);
|
|
98
|
-
expect(new Set(deliveries.map((d) => d.headers['X-CriticalPath-Delivery'])).size).toBe(1);
|
|
99
|
-
expect(failures).toHaveLength(1);
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
it('stops retrying once a delivery succeeds', async () => {
|
|
103
|
-
const { engine, deliveries } = engineWithCapture({ respond: (n) => (n < 3 ? 503 : 200) });
|
|
104
|
-
await engine.createWebhook({ name: 'Eventually', url: 'https://hooks.example.com/ok', events: ['project.created'] });
|
|
105
|
-
await engine.createProject({ name: 'Recover' });
|
|
106
|
-
await engine.webhooks.idle();
|
|
107
|
-
expect(deliveries).toHaveLength(3);
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
it('times out hung receivers', async () => {
|
|
111
|
-
const failures: unknown[] = [];
|
|
112
|
-
const hanging = ((_url: string, init: RequestInit) =>
|
|
113
|
-
new Promise((_resolve, reject) => init.signal!.addEventListener('abort', () => reject(init.signal!.reason)))) as unknown as typeof fetch;
|
|
114
|
-
const { engine } = engineWithCapture({ fetch: hanging, timeoutMs: 10, maxAttempts: 1, onDeliveryFailed: (_job, err) => failures.push(err) });
|
|
115
|
-
await engine.createWebhook({ name: 'Slow', url: 'https://hooks.example.com/slow', events: ['project.created'] });
|
|
116
|
-
await engine.createProject({ name: 'Timeout' });
|
|
117
|
-
await engine.webhooks.idle();
|
|
118
|
-
expect(failures).toHaveLength(1);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
it('routes events only to webhooks in the same tenant, including deletions', async () => {
|
|
122
|
-
const { engine, deliveries } = engineWithCapture();
|
|
123
|
-
const acme = engine.withActor({ userId: 'a', tenantId: 'acme' });
|
|
124
|
-
const globex = engine.withActor({ userId: 'g', tenantId: 'globex' });
|
|
125
|
-
await acme.createWebhook({ name: 'Acme', url: 'https://hooks.example.com/acme', events: ['*'] });
|
|
126
|
-
await globex.createWebhook({ name: 'Globex', url: 'https://hooks.example.com/globex', events: ['*'] });
|
|
127
|
-
|
|
128
|
-
const project = await acme.createProject({ name: 'Acme only' });
|
|
129
|
-
await acme.createTask({ projectId: project.id, title: 'T' });
|
|
130
|
-
await acme.deleteProject(project.id);
|
|
131
|
-
await engine.webhooks.idle();
|
|
132
|
-
|
|
133
|
-
expect(deliveries.length).toBeGreaterThan(0);
|
|
134
|
-
expect(deliveries.every((d) => d.url.endsWith('/acme'))).toBe(true);
|
|
135
|
-
expect(deliveries.every((d) => d.body.tenantId === 'acme')).toBe(true);
|
|
136
|
-
expect(deliveries.map((d) => d.body.event)).toContain('project.deleted');
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
it('delivers to static webhooks from config', async () => {
|
|
140
|
-
const { engine, deliveries } = engineWithCapture(
|
|
141
|
-
{},
|
|
142
|
-
{ webhooks: [{ name: 'Static', url: 'https://hooks.example.com/static', events: ['project.created'], active: true }] }
|
|
143
|
-
);
|
|
144
|
-
await engine.createProject({ name: 'Configured' });
|
|
145
|
-
await engine.webhooks.idle();
|
|
146
|
-
expect(deliveries).toHaveLength(1);
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
describe('webhook management', () => {
|
|
151
|
-
it('returns the secret once and redacts it from reads', async () => {
|
|
152
|
-
const { engine } = engineWithCapture();
|
|
153
|
-
const created = await engine.createWebhook({ name: 'Mine', url: 'https://hooks.example.com/x', events: ['*'] });
|
|
154
|
-
expect(created.secret).toMatch(/^whsec_[0-9a-f]{64}$/);
|
|
155
|
-
expect(created.webhook).not.toHaveProperty('secret');
|
|
156
|
-
expect(created.webhook.hasSecret).toBe(true);
|
|
157
|
-
|
|
158
|
-
const [listed] = await engine.getWebhooks();
|
|
159
|
-
expect(listed).not.toHaveProperty('secret');
|
|
160
|
-
expect(await engine.deleteWebhook(created.webhook.id)).toBe(true);
|
|
161
|
-
expect(await engine.getWebhooks()).toHaveLength(0);
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
it('rejects non-http and private URLs unless private URLs are allowed', async () => {
|
|
165
|
-
const { engine } = engineWithCapture();
|
|
166
|
-
await expect(engine.createWebhook({ name: 'x', url: 'ftp://hooks.example.com', events: ['*'] })).rejects.toThrow(ValidationError);
|
|
167
|
-
await expect(engine.createWebhook({ name: 'x', url: 'http://169.254.169.254/latest', events: ['*'] })).rejects.toThrow(/private/);
|
|
168
|
-
await expect(engine.createWebhook({ name: 'x', url: 'http://localhost:3000/hook', events: ['*'] })).rejects.toThrow(/private/);
|
|
169
|
-
|
|
170
|
-
const { engine: dev } = engineWithCapture({ allowPrivateUrls: true });
|
|
171
|
-
await expect(dev.createWebhook({ name: 'x', url: 'http://localhost:3000/hook', events: ['*'] })).resolves.toBeDefined();
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
it('requires workspace.manage under a role policy and scopes webhooks by tenant', async () => {
|
|
175
|
-
const { engine } = engineWithCapture({}, { authorize: createRolePolicy() });
|
|
176
|
-
const member = engine.withActor({ userId: 'm', tenantId: 'acme' });
|
|
177
|
-
const admin = engine.withActor({ userId: 'root', tenantId: 'acme', roles: ['admin'] });
|
|
178
|
-
const otherAdmin = engine.withActor({ userId: 'root2', tenantId: 'globex', roles: ['admin'] });
|
|
179
|
-
|
|
180
|
-
await expect(member.createWebhook({ name: 'x', url: 'https://hooks.example.com/x', events: ['*'] })).rejects.toThrow(ForbiddenError);
|
|
181
|
-
const { webhook } = await admin.createWebhook({ name: 'Acme', url: 'https://hooks.example.com/acme', events: ['*'] });
|
|
182
|
-
expect(webhook.tenantId).toBe('acme');
|
|
183
|
-
expect(await otherAdmin.getWebhooks()).toHaveLength(0);
|
|
184
|
-
expect(await otherAdmin.deleteWebhook(webhook.id)).toBe(false);
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
it('persists webhooks in SQLiteStore', async () => {
|
|
188
|
-
const engine = new CriticalPathEngine({ store: new SQLiteStore({ filename: ':memory:' }) });
|
|
189
|
-
const { webhook } = await engine.withActor({ userId: 'a', tenantId: 'acme' }).createWebhook({
|
|
190
|
-
name: 'Stored',
|
|
191
|
-
url: 'https://hooks.example.com/s',
|
|
192
|
-
events: ['task.created']
|
|
193
|
-
});
|
|
194
|
-
await engine.updateWebhook(webhook.id, { events: ['*'], name: 'Renamed' });
|
|
195
|
-
|
|
196
|
-
const stored = await engine.store.getWebhook(webhook.id);
|
|
197
|
-
expect(stored).toMatchObject({ name: 'Renamed', events: ['*'], tenantId: 'acme', active: true });
|
|
198
|
-
expect(stored?.secret).toMatch(/^whsec_/);
|
|
199
|
-
expect(await engine.deleteWebhook(webhook.id)).toBe(true);
|
|
200
|
-
});
|
|
201
|
-
});
|
package/tsconfig.json
DELETED
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["./src/deliverables.test.ts","./src/index.test.ts","./src/index.ts","./src/status.test.ts","./src/task-state.test.ts","./src/use-case-validation.test.ts","./src/domain/authorization.ts","./src/domain/calendar.test.ts","./src/domain/calendar.ts","./src/domain/cpm.test.ts","./src/domain/cpm.ts","./src/domain/custom-fields.ts","./src/domain/ddd.test.ts","./src/domain/entities.ts","./src/domain/errors.ts","./src/domain/events.ts","./src/domain/graph.ts","./src/domain/index.ts","./src/domain/ladder.test.ts","./src/domain/ladder.ts","./src/domain/metrics.test.ts","./src/domain/metrics.ts","./src/domain/task-duration.test.ts","./src/domain/workload.test.ts","./src/domain/workload.ts","./src/engine/actor.test.ts","./src/engine/authorization.test.ts","./src/engine/cascade.test.ts","./src/engine/config.test.ts","./src/engine/entity-events.test.ts","./src/engine/index.ts","./src/plugins/index.ts","./src/plugins/plugins.test.ts","./src/schemas/index.ts","./src/schemas/schemas.test.ts","./src/storage/file-storage.ts","./src/storage/firebase-storage.ts","./src/storage/index.ts","./src/storage/s3.ts","./src/storage/storage.test.ts","./src/storage/upload-limits.test.ts","./src/store/conformance.test.ts","./src/store/firebase.test.ts","./src/store/firebase.ts","./src/store/index.ts","./src/store/query.test.ts","./src/store/query.ts","./src/store/sqlite.test.ts","./src/store/sqlite.ts","./src/testing/conformance.ts","./src/testing/index.ts","./src/types/index.ts","./src/utils/fractional-index.test.ts","./src/utils/fractional-index.ts","./src/utils/index.ts","./src/utils/key.test.ts","./src/utils/key.ts","./src/utils/mentions.test.ts","./src/utils/mentions.ts","./src/utils/status.ts","./src/utils/workflow.ts","./src/webhooks/dispatcher.ts","./src/webhooks/index.ts","./src/webhooks/signature.ts","./src/webhooks/webhooks.test.ts"],"version":"5.9.3"}
|