@constructive-io/knative-job-service 0.6.15 → 0.7.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/CHANGELOG.md +8 -0
- package/__fixtures__/jobs.seed.sql +67 -0
- package/__tests__/jobs.e2e.test.ts +662 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +370 -1
- package/dist/run.d.ts +1 -6
- package/dist/run.js +7 -79
- package/dist/types.d.ts +24 -0
- package/dist/types.js +2 -0
- package/package.json +25 -7
- package/src/index.ts +445 -1
- package/src/run.ts +2 -87
- package/src/types.ts +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.7.0](https://github.com/constructive-io/jobs/compare/@constructive-io/knative-job-service@0.6.16...@constructive-io/knative-job-service@0.7.0) (2026-01-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @constructive-io/knative-job-service
|
|
9
|
+
|
|
10
|
+
## [0.6.16](https://github.com/constructive-io/jobs/compare/@constructive-io/knative-job-service@0.6.15...@constructive-io/knative-job-service@0.6.16) (2026-01-18)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @constructive-io/knative-job-service
|
|
13
|
+
|
|
6
14
|
## [0.6.15](https://github.com/constructive-io/jobs/compare/@constructive-io/knative-job-service@0.6.14...@constructive-io/knative-job-service@0.6.15) (2026-01-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @constructive-io/knative-job-service
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
BEGIN;
|
|
2
|
+
|
|
3
|
+
CREATE SCHEMA IF NOT EXISTS app_public;
|
|
4
|
+
|
|
5
|
+
CREATE TABLE IF NOT EXISTS app_public.users (
|
|
6
|
+
id uuid PRIMARY KEY,
|
|
7
|
+
username text NOT NULL,
|
|
8
|
+
display_name text,
|
|
9
|
+
profile_picture jsonb
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
INSERT INTO app_public.users (id, username, display_name, profile_picture)
|
|
13
|
+
VALUES (
|
|
14
|
+
'00000000-0000-0000-0000-000000000000',
|
|
15
|
+
'sender',
|
|
16
|
+
'Sender',
|
|
17
|
+
'{"url":"https://example.com/avatar.png","mime":"image/png"}'::jsonb
|
|
18
|
+
)
|
|
19
|
+
ON CONFLICT (id) DO NOTHING;
|
|
20
|
+
|
|
21
|
+
INSERT INTO metaschema_public.database (id, name)
|
|
22
|
+
VALUES ('0b22e268-16d6-582b-950a-24e108688849', 'jobs-test')
|
|
23
|
+
ON CONFLICT (id) DO NOTHING;
|
|
24
|
+
|
|
25
|
+
INSERT INTO services_public.sites (id, database_id, title, logo, dbname)
|
|
26
|
+
VALUES (
|
|
27
|
+
'11111111-1111-1111-1111-111111111111',
|
|
28
|
+
'0b22e268-16d6-582b-950a-24e108688849',
|
|
29
|
+
'Jobs Test',
|
|
30
|
+
'{"url":"https://example.com/logo.png","mime":"image/png"}'::jsonb,
|
|
31
|
+
current_database()
|
|
32
|
+
)
|
|
33
|
+
ON CONFLICT (id) DO NOTHING;
|
|
34
|
+
|
|
35
|
+
INSERT INTO services_public.domains (id, database_id, site_id, domain, subdomain)
|
|
36
|
+
VALUES (
|
|
37
|
+
'22222222-2222-2222-2222-222222222222',
|
|
38
|
+
'0b22e268-16d6-582b-950a-24e108688849',
|
|
39
|
+
'11111111-1111-1111-1111-111111111111',
|
|
40
|
+
'localhost',
|
|
41
|
+
NULL
|
|
42
|
+
)
|
|
43
|
+
ON CONFLICT (id) DO NOTHING;
|
|
44
|
+
|
|
45
|
+
INSERT INTO services_public.site_themes (id, database_id, site_id, theme)
|
|
46
|
+
VALUES (
|
|
47
|
+
'33333333-3333-3333-3333-333333333333',
|
|
48
|
+
'0b22e268-16d6-582b-950a-24e108688849',
|
|
49
|
+
'11111111-1111-1111-1111-111111111111',
|
|
50
|
+
'{"primary":"#335C67"}'::jsonb
|
|
51
|
+
)
|
|
52
|
+
ON CONFLICT (id) DO NOTHING;
|
|
53
|
+
|
|
54
|
+
INSERT INTO services_public.site_modules (id, database_id, site_id, name, data)
|
|
55
|
+
VALUES (
|
|
56
|
+
'44444444-4444-4444-4444-444444444444',
|
|
57
|
+
'0b22e268-16d6-582b-950a-24e108688849',
|
|
58
|
+
'11111111-1111-1111-1111-111111111111',
|
|
59
|
+
'legal_terms_module',
|
|
60
|
+
'{"emails":{"support":"support@example.com"},"company":{"name":"Constructive","nick":"Constructive","website":"https://constructive.io"}}'::jsonb
|
|
61
|
+
)
|
|
62
|
+
ON CONFLICT (id) DO NOTHING;
|
|
63
|
+
|
|
64
|
+
GRANT USAGE ON SCHEMA app_public TO administrator;
|
|
65
|
+
GRANT SELECT, INSERT, UPDATE, DELETE ON app_public.users TO administrator;
|
|
66
|
+
|
|
67
|
+
COMMIT;
|