@c15t/backend 1.2.0-canary.9 → 1.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 +53 -52
- package/CHANGELOG.md +7 -0
- package/dist/__tests__/server.test.d.ts +2 -0
- package/dist/__tests__/server.test.d.ts.map +1 -0
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts.cjs +708 -0
- package/dist/contracts.js +661 -0
- package/dist/core.cjs +94 -47
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +94 -47
- package/dist/middleware/openapi/config.d.ts +1 -1
- package/dist/middleware/openapi/config.d.ts.map +1 -1
- package/dist/pkgs/data-model/index.cjs +57 -39
- package/dist/pkgs/data-model/index.js +57 -39
- package/dist/pkgs/data-model/schema/index.cjs +57 -39
- package/dist/pkgs/data-model/schema/index.js +57 -39
- package/dist/router.cjs +3 -1
- package/dist/router.js +3 -1
- package/dist/schema/consent-policy/registry.d.ts.map +1 -1
- package/dist/schema/create-registry.d.ts.map +1 -1
- package/dist/schema/index.cjs +57 -39
- package/dist/schema/index.js +57 -39
- package/package.json +7 -2
- package/rslib.config.ts +1 -0
- package/src/__tests__/server.test.ts +96 -0
- package/src/contracts/index.ts +2 -0
- package/src/core.ts +29 -1
- package/src/middleware/cors/cors.test.ts +0 -1
- package/src/middleware/openapi/config.ts +10 -7
- package/src/schema/consent-policy/registry.ts +74 -51
- package/.turbo/turbo-fmt.log +0 -7
- package/.turbo/turbo-test.log +0 -426
- package/coverage/coverage-final.json +0 -88
- package/coverage/coverage-summary.json +0 -89
- package/coverage/html/backend/index.html +0 -116
- package/coverage/html/backend/rslib.config.ts.html +0 -415
- package/coverage/html/backend/src/contracts/consent/index.html +0 -161
- package/coverage/html/backend/src/contracts/consent/index.ts.html +0 -112
- package/coverage/html/backend/src/contracts/consent/post.contract.ts.html +0 -550
- package/coverage/html/backend/src/contracts/consent/show-banner.contract.ts.html +0 -220
- package/coverage/html/backend/src/contracts/consent/verify.contract.ts.html +0 -463
- package/coverage/html/backend/src/contracts/index.html +0 -116
- package/coverage/html/backend/src/contracts/index.ts.html +0 -139
- package/coverage/html/backend/src/contracts/meta/index.html +0 -131
- package/coverage/html/backend/src/contracts/meta/index.ts.html +0 -100
- package/coverage/html/backend/src/contracts/meta/status.contract.ts.html +0 -196
- package/coverage/html/backend/src/contracts/shared/index.html +0 -116
- package/coverage/html/backend/src/contracts/shared/jurisdiction.schema.ts.html +0 -175
- package/coverage/html/backend/src/core.ts.html +0 -1342
- package/coverage/html/backend/src/handlers/consent/index.html +0 -161
- package/coverage/html/backend/src/handlers/consent/index.ts.html +0 -112
- package/coverage/html/backend/src/handlers/consent/post.handler.ts.html +0 -904
- package/coverage/html/backend/src/handlers/consent/show-banner.handler.ts.html +0 -532
- package/coverage/html/backend/src/handlers/consent/verify.handler.ts.html +0 -1000
- package/coverage/html/backend/src/handlers/meta/index.html +0 -131
- package/coverage/html/backend/src/handlers/meta/index.ts.html +0 -100
- package/coverage/html/backend/src/handlers/meta/status.handler.ts.html +0 -226
- package/coverage/html/backend/src/index.html +0 -161
- package/coverage/html/backend/src/init.ts.html +0 -1018
- package/coverage/html/backend/src/middleware/cors/cors.ts.html +0 -661
- package/coverage/html/backend/src/middleware/cors/index.html +0 -146
- package/coverage/html/backend/src/middleware/cors/is-origin-trusted.ts.html +0 -463
- package/coverage/html/backend/src/middleware/cors/process-cors.ts.html +0 -358
- package/coverage/html/backend/src/middleware/openapi/config.ts.html +0 -160
- package/coverage/html/backend/src/middleware/openapi/handlers.ts.html +0 -481
- package/coverage/html/backend/src/middleware/openapi/index.html +0 -131
- package/coverage/html/backend/src/pkgs/api-router/hooks/index.html +0 -116
- package/coverage/html/backend/src/pkgs/api-router/hooks/processor.ts.html +0 -544
- package/coverage/html/backend/src/pkgs/api-router/index.html +0 -116
- package/coverage/html/backend/src/pkgs/api-router/telemetry.ts.html +0 -334
- package/coverage/html/backend/src/pkgs/api-router/utils/index.html +0 -116
- package/coverage/html/backend/src/pkgs/api-router/utils/ip.ts.html +0 -361
- package/coverage/html/backend/src/pkgs/data-model/fields/field-factory.ts.html +0 -709
- package/coverage/html/backend/src/pkgs/data-model/fields/id-generator.ts.html +0 -256
- package/coverage/html/backend/src/pkgs/data-model/fields/index.html +0 -161
- package/coverage/html/backend/src/pkgs/data-model/fields/superjson-utils.ts.html +0 -136
- package/coverage/html/backend/src/pkgs/data-model/fields/zod-fields.ts.html +0 -496
- package/coverage/html/backend/src/pkgs/data-model/hooks/create-hooks.ts.html +0 -349
- package/coverage/html/backend/src/pkgs/data-model/hooks/index.html +0 -176
- package/coverage/html/backend/src/pkgs/data-model/hooks/update-hooks.ts.html +0 -358
- package/coverage/html/backend/src/pkgs/data-model/hooks/update-many-hooks.ts.html +0 -613
- package/coverage/html/backend/src/pkgs/data-model/hooks/utils.ts.html +0 -538
- package/coverage/html/backend/src/pkgs/data-model/hooks/with-hooks-factory.ts.html +0 -289
- package/coverage/html/backend/src/pkgs/db-adapters/adapter-factory.ts.html +0 -289
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/drizzle-adapter/drizzle-adapter.ts.html +0 -2203
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/drizzle-adapter/index.html +0 -116
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/index.html +0 -116
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/dialect.ts.html +0 -670
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/index.html +0 -131
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/kysely-adapter.ts.html +0 -3634
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/tests/index.html +0 -116
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/kysely-adapter/tests/test-utils.ts.html +0 -1417
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/memory-adapter/index.html +0 -116
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/memory-adapter/memory-adapter.ts.html +0 -2071
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/prisma-adapter/index.html +0 -116
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/prisma-adapter/prisma-adapter.ts.html +0 -1834
- package/coverage/html/backend/src/pkgs/db-adapters/adapters/test.ts.html +0 -316
- package/coverage/html/backend/src/pkgs/db-adapters/index.html +0 -131
- package/coverage/html/backend/src/pkgs/db-adapters/utils.ts.html +0 -238
- package/coverage/html/backend/src/pkgs/migrations/get-migration.ts.html +0 -343
- package/coverage/html/backend/src/pkgs/migrations/get-schema/get-schema.ts.html +0 -217
- package/coverage/html/backend/src/pkgs/migrations/get-schema/index.html +0 -146
- package/coverage/html/backend/src/pkgs/migrations/get-schema/process-fields.ts.html +0 -280
- package/coverage/html/backend/src/pkgs/migrations/get-schema/process-tables.ts.html +0 -289
- package/coverage/html/backend/src/pkgs/migrations/index.html +0 -176
- package/coverage/html/backend/src/pkgs/migrations/migration-builders.ts.html +0 -595
- package/coverage/html/backend/src/pkgs/migrations/migration-execution.ts.html +0 -301
- package/coverage/html/backend/src/pkgs/migrations/schema-comparison.ts.html +0 -694
- package/coverage/html/backend/src/pkgs/migrations/type-mapping.ts.html +0 -817
- package/coverage/html/backend/src/pkgs/results/core/error-class.ts.html +0 -976
- package/coverage/html/backend/src/pkgs/results/core/error-codes.ts.html +0 -703
- package/coverage/html/backend/src/pkgs/results/core/index.html +0 -146
- package/coverage/html/backend/src/pkgs/results/core/tracing.ts.html +0 -280
- package/coverage/html/backend/src/pkgs/results/create-telemetry-options.ts.html +0 -271
- package/coverage/html/backend/src/pkgs/results/index.html +0 -131
- package/coverage/html/backend/src/pkgs/results/orpc-error-handler.ts.html +0 -496
- package/coverage/html/backend/src/pkgs/results/results/index.html +0 -131
- package/coverage/html/backend/src/pkgs/results/results/recovery-utils.ts.html +0 -628
- package/coverage/html/backend/src/pkgs/results/results/result-helpers.ts.html +0 -1234
- package/coverage/html/backend/src/pkgs/utils/env.ts.html +0 -337
- package/coverage/html/backend/src/pkgs/utils/index.html +0 -146
- package/coverage/html/backend/src/pkgs/utils/logger.ts.html +0 -199
- package/coverage/html/backend/src/pkgs/utils/url.ts.html +0 -400
- package/coverage/html/backend/src/router.ts.html +0 -109
- package/coverage/html/backend/src/schema/audit-log/index.html +0 -146
- package/coverage/html/backend/src/schema/audit-log/registry.ts.html +0 -436
- package/coverage/html/backend/src/schema/audit-log/schema.ts.html +0 -223
- package/coverage/html/backend/src/schema/audit-log/table.ts.html +0 -640
- package/coverage/html/backend/src/schema/consent/index.html +0 -146
- package/coverage/html/backend/src/schema/consent/registry.ts.html +0 -616
- package/coverage/html/backend/src/schema/consent/schema.ts.html +0 -238
- package/coverage/html/backend/src/schema/consent/table.ts.html +0 -748
- package/coverage/html/backend/src/schema/consent-policy/index.html +0 -146
- package/coverage/html/backend/src/schema/consent-policy/registry.ts.html +0 -1063
- package/coverage/html/backend/src/schema/consent-policy/schema.ts.html +0 -265
- package/coverage/html/backend/src/schema/consent-policy/table.ts.html +0 -535
- package/coverage/html/backend/src/schema/consent-purpose/index.html +0 -146
- package/coverage/html/backend/src/schema/consent-purpose/registry.ts.html +0 -589
- package/coverage/html/backend/src/schema/consent-purpose/schema.ts.html +0 -259
- package/coverage/html/backend/src/schema/consent-purpose/table.ts.html +0 -547
- package/coverage/html/backend/src/schema/consent-record/index.html +0 -131
- package/coverage/html/backend/src/schema/consent-record/schema.ts.html +0 -211
- package/coverage/html/backend/src/schema/consent-record/table.ts.html +0 -457
- package/coverage/html/backend/src/schema/create-registry.ts.html +0 -148
- package/coverage/html/backend/src/schema/definition.ts.html +0 -685
- package/coverage/html/backend/src/schema/domain/index.html +0 -146
- package/coverage/html/backend/src/schema/domain/registry.ts.html +0 -973
- package/coverage/html/backend/src/schema/domain/schema.ts.html +0 -214
- package/coverage/html/backend/src/schema/domain/table.ts.html +0 -496
- package/coverage/html/backend/src/schema/index.html +0 -146
- package/coverage/html/backend/src/schema/schemas.ts.html +0 -166
- package/coverage/html/backend/src/schema/subject/index.html +0 -146
- package/coverage/html/backend/src/schema/subject/registry.ts.html +0 -973
- package/coverage/html/backend/src/schema/subject/schema.ts.html +0 -208
- package/coverage/html/backend/src/schema/subject/table.ts.html +0 -499
- package/coverage/html/backend/src/server.ts.html +0 -463
- package/coverage/html/backend/src/testing/contract-testing.ts.html +0 -1396
- package/coverage/html/backend/src/testing/index.html +0 -116
- package/coverage/html/base.css +0 -224
- package/coverage/html/block-navigation.js +0 -87
- package/coverage/html/favicon.png +0 -0
- package/coverage/html/index.html +0 -656
- package/coverage/html/prettify.css +0 -1
- package/coverage/html/prettify.js +0 -2
- package/coverage/html/sort-arrow-sprite.png +0 -0
- package/coverage/html/sorter.js +0 -196
package/.turbo/turbo-test.log
DELETED
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @c15t/backend@1.2.0-canary.5 test /Users/christopherburns/glados/k/c15t/packages/backend
|
|
4
|
-
> vitest run
|
|
5
|
-
|
|
6
|
-
[?25l
|
|
7
|
-
[1m[7m[36m RUN [39m[27m[22m [36mv3.1.1 [39m[90m/Users/christopherburns/glados/k/c15t/packages/backend[39m
|
|
8
|
-
[2mCoverage enabled with [22m[33mistanbul[39m
|
|
9
|
-
|
|
10
|
-
[?2026h
|
|
11
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
12
|
-
|
|
13
|
-
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (17)[39m
|
|
14
|
-
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
15
|
-
[2m Start at [22m20:21:16
|
|
16
|
-
[2m Duration [22m506ms
|
|
17
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K
|
|
18
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
19
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/show-banner.contract.test.ts[2m [queued][22m
|
|
20
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
21
|
-
[1m[33m ❯ [39m[22msrc/contracts/meta/status.contract.test.ts[2m [queued][22m
|
|
22
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
23
|
-
[1m[33m ❯ [39m[22msrc/pkgs/api-router/hooks/__tests__/processor.test.ts[2m 0/6[22m
|
|
24
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
25
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
26
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-class.test.ts[2m [queued][22m
|
|
27
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m [queued][22m
|
|
28
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/result-helpers.test.ts[2m [queued][22m
|
|
29
|
-
|
|
30
|
-
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (17)[39m
|
|
31
|
-
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (6)[39m
|
|
32
|
-
[2m Start at [22m20:21:16
|
|
33
|
-
[2m Duration [22m977ms
|
|
34
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K
|
|
35
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
36
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/show-banner.contract.test.ts[2m [queued][22m
|
|
37
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
38
|
-
[1m[33m ❯ [39m[22msrc/contracts/meta/status.contract.test.ts[2m [queued][22m
|
|
39
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
40
|
-
[1m[33m ❯ [39m[22msrc/pkgs/api-router/hooks/__tests__/processor.test.ts[2m 1/6[22m
|
|
41
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
42
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
43
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-class.test.ts[2m [queued][22m
|
|
44
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m [queued][22m
|
|
45
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/result-helpers.test.ts[2m [queued][22m
|
|
46
|
-
|
|
47
|
-
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (17)[39m
|
|
48
|
-
[2m Tests [22m[1m[32m1 passed[39m[22m[90m (6)[39m
|
|
49
|
-
[2m Start at [22m20:21:16
|
|
50
|
-
[2m Duration [22m1.12s
|
|
51
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/pkgs/api-router/hooks/__tests__/processor.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 26[2mms[22m[39m
|
|
52
|
-
|
|
53
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
54
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/show-banner.contract.test.ts[2m 1/9[22m
|
|
55
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
56
|
-
[1m[33m ❯ [39m[22msrc/contracts/meta/status.contract.test.ts[2m 0/21[22m
|
|
57
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
58
|
-
[1m[33m ❯ [39m[22msrc/pkgs/api-router/hooks/__tests__/processor.test.ts[2m 6/6[22m
|
|
59
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
60
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
61
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-class.test.ts[2m [queued][22m
|
|
62
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m [queued][22m
|
|
63
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/result-helpers.test.ts[2m [queued][22m
|
|
64
|
-
|
|
65
|
-
[2m Test Files [22m[1m[32m1 passed[39m[22m[90m (17)[39m
|
|
66
|
-
[2m Tests [22m[1m[32m7 passed[39m[22m[90m (36)[39m
|
|
67
|
-
[2m Start at [22m20:21:16
|
|
68
|
-
[2m Duration [22m1.45s
|
|
69
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/contracts/consent/show-banner.contract.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
70
|
-
[32m✓[39m src/contracts/meta/status.contract.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
71
|
-
|
|
72
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
73
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/show-banner.contract.test.ts[2m 9/9[22m
|
|
74
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
75
|
-
[1m[33m ❯ [39m[22msrc/contracts/meta/status.contract.test.ts[2m 21/21[22m
|
|
76
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
77
|
-
[1m[33m ❯ [39m[22msrc/pkgs/api-router/hooks/__tests__/processor.test.ts[2m 6/6[22m
|
|
78
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
79
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
80
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-class.test.ts[2m 0/12[22m
|
|
81
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m 0/7[22m
|
|
82
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/result-helpers.test.ts[2m [queued][22m
|
|
83
|
-
|
|
84
|
-
[2m Test Files [22m[1m[32m3 passed[39m[22m[90m (17)[39m
|
|
85
|
-
[2m Tests [22m[1m[32m36 passed[39m[22m[90m (55)[39m
|
|
86
|
-
[2m Start at [22m20:21:16
|
|
87
|
-
[2m Duration [22m1.55s
|
|
88
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/pkgs/results/__tests__/error-class.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 23[2mms[22m[39m
|
|
89
|
-
[32m✓[39m src/pkgs/results/__tests__/recovery-utils.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
90
|
-
|
|
91
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
92
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
93
|
-
[1m[33m ❯ [39m[22msrc/contracts/meta/status.contract.test.ts[2m 21/21[22m
|
|
94
|
-
[1m[33m ❯ [39m[22msrc/handlers/consent/show-banner.handler.test.ts[2m [queued][22m
|
|
95
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
96
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/is-origin-trusted.test.ts[2m [queued][22m
|
|
97
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
98
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
99
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-class.test.ts[2m 12/12[22m
|
|
100
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m 7/7[22m
|
|
101
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/result-helpers.test.ts[2m 0/11[22m
|
|
102
|
-
|
|
103
|
-
[2m Test Files [22m[1m[32m5 passed[39m[22m[90m (17)[39m
|
|
104
|
-
[2m Tests [22m[1m[32m55 passed[39m[22m[90m (66)[39m
|
|
105
|
-
[2m Start at [22m20:21:16
|
|
106
|
-
[2m Duration [22m1.89s
|
|
107
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/pkgs/results/__tests__/result-helpers.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
108
|
-
|
|
109
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
110
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
111
|
-
[1m[33m ❯ [39m[22msrc/handlers/consent/show-banner.handler.test.ts[2m [queued][22m
|
|
112
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
113
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/is-origin-trusted.test.ts[2m [queued][22m
|
|
114
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
115
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
116
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-class.test.ts[2m 12/12[22m
|
|
117
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/neverthrow-integration.test.ts[2m [queued][22m
|
|
118
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m 7/7[22m
|
|
119
|
-
|
|
120
|
-
[2m Test Files [22m[1m[32m6 passed[39m[22m[90m (17)[39m
|
|
121
|
-
[2m Tests [22m[1m[32m66 passed[39m[22m[90m (66)[39m
|
|
122
|
-
[2m Start at [22m20:21:16
|
|
123
|
-
[2m Duration [22m1.99s
|
|
124
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/middleware/cors/is-origin-trusted.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
125
|
-
[32m✓[39m src/handlers/consent/show-banner.handler.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
126
|
-
|
|
127
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
128
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
129
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
130
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
131
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
132
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/error-codes.test.ts[2m 1/6[22m
|
|
133
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/neverthrow-integration.test.ts[2m [queued][22m
|
|
134
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m 7/7[22m
|
|
135
|
-
|
|
136
|
-
[2m Test Files [22m[1m[32m8 passed[39m[22m[90m (17)[39m
|
|
137
|
-
[2m Tests [22m[1m[32m87 passed[39m[22m[90m (92)[39m
|
|
138
|
-
[2m Start at [22m20:21:16
|
|
139
|
-
[2m Duration [22m2.09s
|
|
140
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/pkgs/results/__tests__/error-codes.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
141
|
-
|
|
142
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
143
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
144
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
145
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
146
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
147
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/neverthrow-integration.test.ts[2m 0/5[22m
|
|
148
|
-
[1m[33m ❯ [39m[22msrc/pkgs/results/__tests__/recovery-utils.test.ts[2m 7/7[22m
|
|
149
|
-
|
|
150
|
-
[2m Test Files [22m[1m[32m9 passed[39m[22m[90m (17)[39m
|
|
151
|
-
[2m Tests [22m[1m[32m92 passed[39m[22m[90m (97)[39m
|
|
152
|
-
[2m Start at [22m20:21:16
|
|
153
|
-
[2m Duration [22m2.19s
|
|
154
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/pkgs/results/__tests__/neverthrow-integration.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
155
|
-
|
|
156
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/index.test.ts[2m [queued][22m
|
|
157
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
158
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m [queued][22m
|
|
159
|
-
[1m[33m ❯ [39m[22msrc/contracts/meta/index.test.ts[2m 0/5[22m
|
|
160
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
161
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
162
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
163
|
-
|
|
164
|
-
[2m Test Files [22m[1m[32m10 passed[39m[22m[90m (17)[39m
|
|
165
|
-
[2m Tests [22m[1m[32m97 passed[39m[22m[90m (102)[39m
|
|
166
|
-
[2m Start at [22m20:21:16
|
|
167
|
-
[2m Duration [22m2.29s
|
|
168
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/contracts/meta/index.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
169
|
-
|
|
170
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/index.test.ts[2m [queued][22m
|
|
171
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m [queued][22m
|
|
172
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/verify.contract.test.ts[2m 0/17[22m
|
|
173
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
174
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
175
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
176
|
-
|
|
177
|
-
[2m Test Files [22m[1m[32m11 passed[39m[22m[90m (17)[39m
|
|
178
|
-
[2m Tests [22m[1m[32m102 passed[39m[22m[90m (119)[39m
|
|
179
|
-
[2m Start at [22m20:21:16
|
|
180
|
-
[2m Duration [22m2.60s
|
|
181
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/contracts/consent/verify.contract.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
182
|
-
[32m✓[39m src/contracts/consent/index.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
183
|
-
|
|
184
|
-
[1m[33m ❯ [39m[22msrc/contracts/consent/post.contract.test.ts[2m 1/41[22m
|
|
185
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
186
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
187
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
188
|
-
|
|
189
|
-
[2m Test Files [22m[1m[32m13 passed[39m[22m[90m (17)[39m
|
|
190
|
-
[2m Tests [22m[1m[32m125 passed[39m[22m[90m (165)[39m
|
|
191
|
-
[2m Start at [22m20:21:16
|
|
192
|
-
[2m Duration [22m2.80s
|
|
193
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/contracts/consent/post.contract.test.ts [2m([22m[2m41 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
194
|
-
|
|
195
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
196
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m [queued][22m
|
|
197
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
198
|
-
|
|
199
|
-
[2m Test Files [22m[1m[32m14 passed[39m[22m[90m (17)[39m
|
|
200
|
-
[2m Tests [22m[1m[32m165 passed[39m[22m[90m (165)[39m
|
|
201
|
-
[2m Start at [22m20:21:16
|
|
202
|
-
[2m Duration [22m2.90s
|
|
203
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K
|
|
204
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m [queued][22m
|
|
205
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m 0/9[22m
|
|
206
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m [queued][22m
|
|
207
|
-
|
|
208
|
-
[2m Test Files [22m[1m[32m14 passed[39m[22m[90m (17)[39m
|
|
209
|
-
[2m Tests [22m[1m[32m165 passed[39m[22m[90m (174)[39m
|
|
210
|
-
[2m Start at [22m20:21:16
|
|
211
|
-
[2m Duration [22m3.10s
|
|
212
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[90mstdout[2m | src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts[2m > [22m[2mKysely Adapter Tests[2m > [22m[2mSQLite Tests
|
|
213
|
-
[22m[39m INFO [c15t] Creating table subject with fields: isIdentified, externalId, identityProvider, lastIpAddress, createdAt, updatedAt, subjectTimezone
|
|
214
|
-
INFO [c15t] Adding column isIdentified (fieldName: isIdentified) to table subject
|
|
215
|
-
INFO [c15t] Adding column externalId (fieldName: externalId) to table subject
|
|
216
|
-
INFO [c15t] Adding column identityProvider (fieldName: identityProvider) to table subject
|
|
217
|
-
INFO [c15t] Adding column lastIpAddress (fieldName: lastIpAddress) to table subject
|
|
218
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table subject
|
|
219
|
-
INFO [c15t] Adding column updatedAt (fieldName: updatedAt) to table subject
|
|
220
|
-
INFO [c15t] Adding column subjectTimezone (fieldName: subjectTimezone) to table subject
|
|
221
|
-
INFO [c15t] SQL for table subject:
|
|
222
|
-
create table "subject" ("id" text not null primary key, "isIdentified" integer not null, "externalId" text, "identityProvider" text, "lastIpAddress" text, "createdAt" date not null, "updatedAt" date not null, "subjectTimezone" text)
|
|
223
|
-
INFO [c15t] Creating table consentPurpose with fields: code, name, description, isEssential, dataCategory, legalBasis, isActive, createdAt, updatedAt
|
|
224
|
-
INFO [c15t] Adding column code (fieldName: code) to table consentPurpose
|
|
225
|
-
INFO [c15t] Adding column name (fieldName: name) to table consentPurpose
|
|
226
|
-
INFO [c15t] Adding column description (fieldName: description) to table consentPurpose
|
|
227
|
-
INFO [c15t] Adding column isEssential (fieldName: isEssential) to table consentPurpose
|
|
228
|
-
INFO [c15t] Adding column dataCategory (fieldName: dataCategory) to table consentPurpose
|
|
229
|
-
INFO [c15t] Adding column legalBasis (fieldName: legalBasis) to table consentPurpose
|
|
230
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table consentPurpose
|
|
231
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table consentPurpose
|
|
232
|
-
INFO [c15t] Adding column updatedAt (fieldName: updatedAt) to table consentPurpose
|
|
233
|
-
INFO [c15t] SQL for table consentPurpose:
|
|
234
|
-
create table "consentPurpose" ("id" text not null primary key, "code" text not null, "name" text not null, "description" text not null, "isEssential" integer not null, "dataCategory" text, "legalBasis" text, "isActive" integer not null, "createdAt" date not null, "updatedAt" date not null)
|
|
235
|
-
INFO [c15t] Creating table domain with fields: name, description, allowedOrigins, isVerified, isActive, createdAt, updatedAt
|
|
236
|
-
INFO [c15t] Adding column name (fieldName: name) to table domain
|
|
237
|
-
INFO [c15t] Adding column description (fieldName: description) to table domain
|
|
238
|
-
INFO [c15t] Adding column allowedOrigins (fieldName: allowedOrigins) to table domain
|
|
239
|
-
INFO [c15t] Adding column isVerified (fieldName: isVerified) to table domain
|
|
240
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table domain
|
|
241
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table domain
|
|
242
|
-
INFO [c15t] Adding column updatedAt (fieldName: updatedAt) to table domain
|
|
243
|
-
INFO [c15t] SQL for table domain:
|
|
244
|
-
create table "domain" ("id" text not null primary key, "name" text not null unique, "description" text, "allowedOrigins" text, "isVerified" integer not null, "isActive" integer not null, "createdAt" date not null, "updatedAt" date)
|
|
245
|
-
INFO [c15t] Creating table consentPolicy with fields: version, type, name, effectiveDate, expirationDate, content, contentHash, isActive, createdAt
|
|
246
|
-
INFO [c15t] Adding column version (fieldName: version) to table consentPolicy
|
|
247
|
-
INFO [c15t] Adding column type (fieldName: type) to table consentPolicy
|
|
248
|
-
INFO [c15t] Adding column name (fieldName: name) to table consentPolicy
|
|
249
|
-
INFO [c15t] Adding column effectiveDate (fieldName: effectiveDate) to table consentPolicy
|
|
250
|
-
INFO [c15t] Adding column expirationDate (fieldName: expirationDate) to table consentPolicy
|
|
251
|
-
INFO [c15t] Adding column content (fieldName: content) to table consentPolicy
|
|
252
|
-
INFO [c15t] Adding column contentHash (fieldName: contentHash) to table consentPolicy
|
|
253
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table consentPolicy
|
|
254
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table consentPolicy
|
|
255
|
-
INFO [c15t] SQL for table consentPolicy:
|
|
256
|
-
create table "consentPolicy" ("id" text not null primary key, "version" text not null, "type" text not null, "name" text not null, "effectiveDate" date not null, "expirationDate" date, "content" text not null, "contentHash" text not null, "isActive" integer not null, "createdAt" date not null)
|
|
257
|
-
INFO [c15t] Creating table consent with fields: subjectId, domainId, purposeIds, metadata, policyId, ipAddress, userAgent, status, withdrawalReason, givenAt, validUntil, isActive
|
|
258
|
-
INFO [c15t] Adding column subjectId (fieldName: subjectId) to table consent
|
|
259
|
-
INFO [c15t] Adding column domainId (fieldName: domainId) to table consent
|
|
260
|
-
INFO [c15t] Adding column purposeIds (fieldName: purposeIds) to table consent
|
|
261
|
-
INFO [c15t] Adding column metadata (fieldName: metadata) to table consent
|
|
262
|
-
INFO [c15t] Adding column policyId (fieldName: policyId) to table consent
|
|
263
|
-
INFO [c15t] Adding column ipAddress (fieldName: ipAddress) to table consent
|
|
264
|
-
INFO [c15t] Adding column userAgent (fieldName: userAgent) to table consent
|
|
265
|
-
INFO [c15t] Adding column status (fieldName: status) to table consent
|
|
266
|
-
INFO [c15t] Adding column withdrawalReason (fieldName: withdrawalReason) to table consent
|
|
267
|
-
INFO [c15t] Adding column givenAt (fieldName: givenAt) to table consent
|
|
268
|
-
INFO [c15t] Adding column validUntil (fieldName: validUntil) to table consent
|
|
269
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table consent
|
|
270
|
-
INFO [c15t] SQL for table consent:
|
|
271
|
-
create table "consent" ("id" text not null primary key, "subjectId" text not null references "subject" ("id"), "domainId" text not null references "domain" ("id"), "purposeIds" text, "metadata" text, "policyId" text references "consentPolicy" ("id"), "ipAddress" text, "userAgent" text, "status" text not null, "withdrawalReason" text, "givenAt" date not null, "validUntil" date, "isActive" integer not null)
|
|
272
|
-
INFO [c15t] Creating table consentRecord with fields: subjectId, consentId, actionType, details, createdAt
|
|
273
|
-
INFO [c15t] Adding column subjectId (fieldName: subjectId) to table consentRecord
|
|
274
|
-
INFO [c15t] Adding column consentId (fieldName: consentId) to table consentRecord
|
|
275
|
-
INFO [c15t] Adding column actionType (fieldName: actionType) to table consentRecord
|
|
276
|
-
INFO [c15t] Adding column details (fieldName: details) to table consentRecord
|
|
277
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table consentRecord
|
|
278
|
-
INFO [c15t] SQL for table consentRecord:
|
|
279
|
-
create table "consentRecord" ("id" text not null primary key, "subjectId" text not null references "subject" ("id"), "consentId" text references "consent" ("id"), "actionType" text not null, "details" text, "createdAt" date not null)
|
|
280
|
-
INFO [c15t] Creating table auditLog with fields: entityType, entityId, actionType, subjectId, ipAddress, userAgent, changes, metadata, createdAt, eventTimezone
|
|
281
|
-
INFO [c15t] Adding column entityType (fieldName: entityType) to table auditLog
|
|
282
|
-
INFO [c15t] Adding column entityId (fieldName: entityId) to table auditLog
|
|
283
|
-
INFO [c15t] Adding column actionType (fieldName: actionType) to table auditLog
|
|
284
|
-
INFO [c15t] Adding column subjectId (fieldName: subjectId) to table auditLog
|
|
285
|
-
INFO [c15t] Adding column ipAddress (fieldName: ipAddress) to table auditLog
|
|
286
|
-
INFO [c15t] Adding column userAgent (fieldName: userAgent) to table auditLog
|
|
287
|
-
INFO [c15t] Adding column changes (fieldName: changes) to table auditLog
|
|
288
|
-
INFO [c15t] Adding column metadata (fieldName: metadata) to table auditLog
|
|
289
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table auditLog
|
|
290
|
-
INFO [c15t] Adding column eventTimezone (fieldName: eventTimezone) to table auditLog
|
|
291
|
-
INFO [c15t] SQL for table auditLog:
|
|
292
|
-
create table "auditLog" ("id" text not null primary key, "entityType" text not null, "entityId" text not null, "actionType" text not null, "subjectId" text references "subject" ("id"), "ipAddress" text, "userAgent" text, "changes" text, "metadata" text, "createdAt" date not null, "eventTimezone" text not null)
|
|
293
|
-
|
|
294
|
-
[32m✓[39m src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [2m([22m[2m9 tests[22m[2m | [22m[33m1 skipped[39m[2m)[22m[32m 25[2mms[22m[39m
|
|
295
|
-
|
|
296
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m 0/23[22m
|
|
297
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m 0/9[22m
|
|
298
|
-
|
|
299
|
-
[2m Test Files [22m[1m[32m15 passed[39m[22m[90m (17)[39m
|
|
300
|
-
[2m Tests [22m[1m[32m173 passed[39m[22m[2m | [22m[33m1 skipped[39m[90m (206)[39m
|
|
301
|
-
[2m Start at [22m20:21:16
|
|
302
|
-
[2m Duration [22m3.41s
|
|
303
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K
|
|
304
|
-
[1m[33m ❯ [39m[22msrc/middleware/cors/cors.test.ts[2m 1/23[22m
|
|
305
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m 0/9[22m
|
|
306
|
-
|
|
307
|
-
[2m Test Files [22m[1m[32m15 passed[39m[22m[90m (17)[39m
|
|
308
|
-
[2m Tests [22m[1m[32m174 passed[39m[22m[2m | [22m[33m1 skipped[39m[90m (206)[39m
|
|
309
|
-
[2m Start at [22m20:21:16
|
|
310
|
-
[2m Duration [22m3.52s
|
|
311
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [31m❯[39m src/middleware/cors/cors.test.ts [2m([22m[2m23 tests[22m[2m | [22m[31m2 failed[39m[2m)[22m[32m 48[2mms[22m[39m
|
|
312
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mWildcard Origin Configuration[2m > [22mshould allow any origin when trustedOrigins includes "*"[32m 18[2mms[22m[39m
|
|
313
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mWildcard Origin Configuration[2m > [22mshould handle requests without origin header[32m 1[2mms[22m[39m
|
|
314
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mSpecific Origin Configuration[2m > [22mshould allow requests from trusted origins[32m 2[2mms[22m[39m
|
|
315
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mSpecific Origin Configuration[2m > [22mshould deny requests from untrusted origins[32m 1[2mms[22m[39m
|
|
316
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mDefault Configuration[2m > [22mshould use default CORS settings when no trustedOrigins specified[32m 1[2mms[22m[39m
|
|
317
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mPreflight Requests[2m > [22mshould handle OPTIONS requests correctly[32m 1[2mms[22m[39m
|
|
318
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mMethod Support[2m > [22mshould support all required HTTP methods[32m 2[2mms[22m[39m
|
|
319
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Blocking Scenarios[2m > [22mshould block preflight requests from untrusted origins[32m 1[2mms[22m[39m
|
|
320
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Blocking Scenarios[2m > [22mshould block actual requests from untrusted origins[32m 1[2mms[22m[39m
|
|
321
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Blocking Scenarios[2m > [22mshould handle preflight requests with missing origin header[32m 1[2mms[22m[39m
|
|
322
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Header Requirements[2m > [22mshould include all required CORS headers for preflight requests from trusted origins[32m 1[2mms[22m[39m
|
|
323
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Header Requirements[2m > [22mshould NOT include CORS headers for preflight requests from untrusted origins[32m 1[2mms[22m[39m
|
|
324
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Header Requirements[2m > [22mshould include all required CORS headers for actual requests from trusted origins[32m 1[2mms[22m[39m
|
|
325
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS Header Requirements[2m > [22mshould NOT include Access-Control-Allow-Origin for actual requests from untrusted origins[32m 1[2mms[22m[39m
|
|
326
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mC15T CORS www/non-www Origin Handling[2m > [22mshould allow www origin if non-www is trusted[32m 1[2mms[22m[39m
|
|
327
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mC15T CORS www/non-www Origin Handling[2m > [22mshould allow non-www origin if www is trusted[32m 2[2mms[22m[39m
|
|
328
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mC15T CORS www/non-www Origin Handling[2m > [22mshould allow both www and non-www origins if both are trusted[32m 1[2mms[22m[39m
|
|
329
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mC15T CORS www/non-www Origin Handling[2m > [22mshould deny unrelated origins[32m 0[2mms[22m[39m
|
|
330
|
-
[31m [31m×[31m C15T CORS Configuration[2m > [22mCORS trustedOrigins normalization and matching[2m > [22mshould match http and https with and without www[39m[32m 5[2mms[22m[39m
|
|
331
|
-
[31m → expected null to be 'http://localhost:3002' // Object.is equality[39m
|
|
332
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS trustedOrigins normalization and matching[2m > [22mshould not match unrelated origins[32m 0[2mms[22m[39m
|
|
333
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS trustedOrigins normalization and matching[2m > [22mshould match wildcard *[32m 0[2mms[22m[39m
|
|
334
|
-
[31m [31m×[31m C15T CORS Configuration[2m > [22mCORS trustedOrigins normalization and matching[2m > [22mshould match with port[39m[32m 1[2mms[22m[39m
|
|
335
|
-
[31m → expected null to be 'http://localhost:3002' // Object.is equality[39m
|
|
336
|
-
[32m✓[39m C15T CORS Configuration[2m > [22mCORS trustedOrigins normalization and matching[2m > [22mshould not match if port is different[32m 0[2mms[22m[39m
|
|
337
|
-
[90mstdout[2m | src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m > [22m[2mKysely Adapter Tests[2m > [22m[2mPostgres Tests
|
|
338
|
-
[22m[39m INFO [c15t] Creating table subject with fields: isIdentified, externalId, identityProvider, lastIpAddress, createdAt, updatedAt, subjectTimezone
|
|
339
|
-
INFO [c15t] Adding column isIdentified (fieldName: isIdentified) to table subject
|
|
340
|
-
INFO [c15t] Adding column externalId (fieldName: externalId) to table subject
|
|
341
|
-
INFO [c15t] Adding column identityProvider (fieldName: identityProvider) to table subject
|
|
342
|
-
INFO [c15t] Adding column lastIpAddress (fieldName: lastIpAddress) to table subject
|
|
343
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table subject
|
|
344
|
-
INFO [c15t] Adding column updatedAt (fieldName: updatedAt) to table subject
|
|
345
|
-
INFO [c15t] Adding column subjectTimezone (fieldName: subjectTimezone) to table subject
|
|
346
|
-
INFO [c15t] SQL for table subject:
|
|
347
|
-
create table "subject" ("id" text not null primary key, "isIdentified" boolean not null, "externalId" text, "identityProvider" text, "lastIpAddress" text, "createdAt" timestamp not null, "updatedAt" timestamp not null, "subjectTimezone" text)
|
|
348
|
-
INFO [c15t] Creating table consentPurpose with fields: code, name, description, isEssential, dataCategory, legalBasis, isActive, createdAt, updatedAt
|
|
349
|
-
INFO [c15t] Adding column code (fieldName: code) to table consentPurpose
|
|
350
|
-
INFO [c15t] Adding column name (fieldName: name) to table consentPurpose
|
|
351
|
-
INFO [c15t] Adding column description (fieldName: description) to table consentPurpose
|
|
352
|
-
INFO [c15t] Adding column isEssential (fieldName: isEssential) to table consentPurpose
|
|
353
|
-
INFO [c15t] Adding column dataCategory (fieldName: dataCategory) to table consentPurpose
|
|
354
|
-
INFO [c15t] Adding column legalBasis (fieldName: legalBasis) to table consentPurpose
|
|
355
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table consentPurpose
|
|
356
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table consentPurpose
|
|
357
|
-
INFO [c15t] Adding column updatedAt (fieldName: updatedAt) to table consentPurpose
|
|
358
|
-
INFO [c15t] SQL for table consentPurpose:
|
|
359
|
-
create table "consentPurpose" ("id" text not null primary key, "code" text not null, "name" text not null, "description" text not null, "isEssential" boolean not null, "dataCategory" text, "legalBasis" text, "isActive" boolean not null, "createdAt" timestamp not null, "updatedAt" timestamp not null)
|
|
360
|
-
INFO [c15t] Creating table domain with fields: name, description, allowedOrigins, isVerified, isActive, createdAt, updatedAt
|
|
361
|
-
INFO [c15t] Adding column name (fieldName: name) to table domain
|
|
362
|
-
INFO [c15t] Adding column description (fieldName: description) to table domain
|
|
363
|
-
INFO [c15t] Adding column allowedOrigins (fieldName: allowedOrigins) to table domain
|
|
364
|
-
INFO [c15t] Adding column isVerified (fieldName: isVerified) to table domain
|
|
365
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table domain
|
|
366
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table domain
|
|
367
|
-
INFO [c15t] Adding column updatedAt (fieldName: updatedAt) to table domain
|
|
368
|
-
INFO [c15t] SQL for table domain:
|
|
369
|
-
create table "domain" ("id" text not null primary key, "name" text not null unique, "description" text, "allowedOrigins" jsonb, "isVerified" boolean not null, "isActive" boolean not null, "createdAt" timestamp not null, "updatedAt" timestamp)
|
|
370
|
-
INFO [c15t] Creating table consentPolicy with fields: version, type, name, effectiveDate, expirationDate, content, contentHash, isActive, createdAt
|
|
371
|
-
INFO [c15t] Adding column version (fieldName: version) to table consentPolicy
|
|
372
|
-
INFO [c15t] Adding column type (fieldName: type) to table consentPolicy
|
|
373
|
-
INFO [c15t] Adding column name (fieldName: name) to table consentPolicy
|
|
374
|
-
INFO [c15t] Adding column effectiveDate (fieldName: effectiveDate) to table consentPolicy
|
|
375
|
-
INFO [c15t] Adding column expirationDate (fieldName: expirationDate) to table consentPolicy
|
|
376
|
-
INFO [c15t] Adding column content (fieldName: content) to table consentPolicy
|
|
377
|
-
INFO [c15t] Adding column contentHash (fieldName: contentHash) to table consentPolicy
|
|
378
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table consentPolicy
|
|
379
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table consentPolicy
|
|
380
|
-
INFO [c15t] SQL for table consentPolicy:
|
|
381
|
-
create table "consentPolicy" ("id" text not null primary key, "version" text not null, "type" text not null, "name" text not null, "effectiveDate" timestamp not null, "expirationDate" timestamp, "content" text not null, "contentHash" text not null, "isActive" boolean not null, "createdAt" timestamp not null)
|
|
382
|
-
INFO [c15t] Creating table consent with fields: subjectId, domainId, purposeIds, metadata, policyId, ipAddress, userAgent, status, withdrawalReason, givenAt, validUntil, isActive
|
|
383
|
-
INFO [c15t] Adding column subjectId (fieldName: subjectId) to table consent
|
|
384
|
-
INFO [c15t] Adding column domainId (fieldName: domainId) to table consent
|
|
385
|
-
INFO [c15t] Adding column purposeIds (fieldName: purposeIds) to table consent
|
|
386
|
-
INFO [c15t] Adding column metadata (fieldName: metadata) to table consent
|
|
387
|
-
INFO [c15t] Adding column policyId (fieldName: policyId) to table consent
|
|
388
|
-
INFO [c15t] Adding column ipAddress (fieldName: ipAddress) to table consent
|
|
389
|
-
INFO [c15t] Adding column userAgent (fieldName: userAgent) to table consent
|
|
390
|
-
INFO [c15t] Adding column status (fieldName: status) to table consent
|
|
391
|
-
INFO [c15t] Adding column withdrawalReason (fieldName: withdrawalReason) to table consent
|
|
392
|
-
INFO [c15t] Adding column givenAt (fieldName: givenAt) to table consent
|
|
393
|
-
INFO [c15t] Adding column validUntil (fieldName: validUntil) to table consent
|
|
394
|
-
INFO [c15t] Adding column isActive (fieldName: isActive) to table consent
|
|
395
|
-
INFO [c15t] SQL for table consent:
|
|
396
|
-
create table "consent" ("id" text not null primary key, "subjectId" text not null references "subject" ("id"), "domainId" text not null references "domain" ("id"), "purposeIds" jsonb, "metadata" jsonb, "policyId" text references "consentPolicy" ("id"), "ipAddress" text, "userAgent" text, "status" text not null, "withdrawalReason" text, "givenAt" timestamp not null, "validUntil" timestamp, "isActive" boolean not null)
|
|
397
|
-
INFO [c15t] Creating table consentRecord with fields: subjectId, consentId, actionType, details, createdAt
|
|
398
|
-
INFO [c15t] Adding column subjectId (fieldName: subjectId) to table consentRecord
|
|
399
|
-
INFO [c15t] Adding column consentId (fieldName: consentId) to table consentRecord
|
|
400
|
-
INFO [c15t] Adding column actionType (fieldName: actionType) to table consentRecord
|
|
401
|
-
INFO [c15t] Adding column details (fieldName: details) to table consentRecord
|
|
402
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table consentRecord
|
|
403
|
-
INFO [c15t] SQL for table consentRecord:
|
|
404
|
-
create table "consentRecord" ("id" text not null primary key, "subjectId" text not null references "subject" ("id"), "consentId" text references "consent" ("id"), "actionType" text not null, "details" jsonb, "createdAt" timestamp not null)
|
|
405
|
-
INFO [c15t] Creating table auditLog with fields: entityType, entityId, actionType, subjectId, ipAddress, userAgent, changes, metadata, createdAt, eventTimezone
|
|
406
|
-
INFO [c15t] Adding column entityType (fieldName: entityType) to table auditLog
|
|
407
|
-
INFO [c15t] Adding column entityId (fieldName: entityId) to table auditLog
|
|
408
|
-
INFO [c15t] Adding column actionType (fieldName: actionType) to table auditLog
|
|
409
|
-
INFO [c15t] Adding column subjectId (fieldName: subjectId) to table auditLog
|
|
410
|
-
INFO [c15t] Adding column ipAddress (fieldName: ipAddress) to table auditLog
|
|
411
|
-
INFO [c15t] Adding column userAgent (fieldName: userAgent) to table auditLog
|
|
412
|
-
INFO [c15t] Adding column changes (fieldName: changes) to table auditLog
|
|
413
|
-
INFO [c15t] Adding column metadata (fieldName: metadata) to table auditLog
|
|
414
|
-
INFO [c15t] Adding column createdAt (fieldName: createdAt) to table auditLog
|
|
415
|
-
INFO [c15t] Adding column eventTimezone (fieldName: eventTimezone) to table auditLog
|
|
416
|
-
INFO [c15t] SQL for table auditLog:
|
|
417
|
-
create table "auditLog" ("id" text not null primary key, "entityType" text not null, "entityId" text not null, "actionType" text not null, "subjectId" text references "subject" ("id"), "ipAddress" text, "userAgent" text, "changes" jsonb, "metadata" jsonb, "createdAt" timestamp not null, "eventTimezone" text not null)
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
[1m[33m ❯ [39m[22msrc/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts[2m 1/9[22m
|
|
421
|
-
|
|
422
|
-
[2m Test Files [22m[1m[31m1 failed[39m[22m[2m | [22m[1m[32m15 passed[39m[22m[90m (17)[39m
|
|
423
|
-
[2m Tests [22m[1m[31m2 failed[39m[22m[2m | [22m[1m[32m195 passed[39m[22m[2m | [22m[33m1 skipped[39m[90m (206)[39m
|
|
424
|
-
[2m Start at [22m20:21:16
|
|
425
|
-
[2m Duration [22m3.92s
|
|
426
|
-
[?2026l
|