@orthacms/activity-server 0.4.2 → 0.5.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/dist/lib/activity/activity-filter.d.ts.map +1 -1
- package/dist/lib/activity/activity-filter.js +2 -0
- package/dist/lib/activity/activity.constants.d.ts +8 -3
- package/dist/lib/activity/activity.constants.d.ts.map +1 -1
- package/dist/lib/activity/activity.constants.js +9 -3
- package/dist/lib/activity/controllers/dead-letters.controller.d.ts +36 -0
- package/dist/lib/activity/controllers/dead-letters.controller.d.ts.map +1 -0
- package/dist/lib/activity/controllers/dead-letters.controller.js +61 -0
- package/dist/lib/activity/controllers/entry-activity.controller.d.ts +32 -0
- package/dist/lib/activity/controllers/entry-activity.controller.d.ts.map +1 -0
- package/dist/lib/activity/controllers/entry-activity.controller.js +69 -0
- package/dist/lib/activity/dto/dead-letters-query.dto.d.ts +14 -0
- package/dist/lib/activity/dto/dead-letters-query.dto.d.ts.map +1 -0
- package/dist/lib/activity/dto/dead-letters-query.dto.js +46 -0
- package/dist/lib/activity/dto/entry-activity-query.dto.d.ts +14 -0
- package/dist/lib/activity/dto/entry-activity-query.dto.d.ts.map +1 -0
- package/dist/lib/activity/dto/entry-activity-query.dto.js +50 -0
- package/dist/lib/activity/dto/list-activity-query.dto.d.ts +16 -0
- package/dist/lib/activity/dto/list-activity-query.dto.d.ts.map +1 -1
- package/dist/lib/activity/dto/list-activity-query.dto.js +38 -0
- package/dist/lib/activity/infrastructure/audit-event-mapping.d.ts +46 -0
- package/dist/lib/activity/infrastructure/audit-event-mapping.d.ts.map +1 -1
- package/dist/lib/activity/infrastructure/audit-event-mapping.js +515 -34
- package/dist/lib/activity/services/activity.service.d.ts.map +1 -1
- package/dist/lib/activity/services/activity.service.js +6 -0
- package/dist/lib/activity/types/activity-view.d.ts +18 -1
- package/dist/lib/activity/types/activity-view.d.ts.map +1 -1
- package/dist/lib/activity.module.d.ts.map +1 -1
- package/dist/lib/activity.module.js +12 -1
- package/dist/lib/docs/activity-schemas.d.ts +19 -0
- package/dist/lib/docs/activity-schemas.d.ts.map +1 -0
- package/dist/lib/docs/activity-schemas.js +167 -0
- package/dist/lib/docs/describe-activity-api.d.ts +17 -0
- package/dist/lib/docs/describe-activity-api.d.ts.map +1 -0
- package/dist/lib/docs/describe-activity-api.js +85 -0
- package/dist/lib/schema/activity-events.d.ts +56 -2
- package/dist/lib/schema/activity-events.d.ts.map +1 -1
- package/dist/lib/schema/activity-events.js +26 -3
- package/dist/lib/utils/activity-plugin.d.ts.map +1 -1
- package/dist/lib/utils/activity-plugin.js +5 -1
- package/migrations/0001_actor_type_and_workspace.sql +8 -0
- package/migrations/meta/0001_snapshot.json +192 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +7 -8
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "4e32d5f0-8bf0-408d-a532-cecf8edba07c",
|
|
3
|
+
"prevId": "307cf643-5557-4bda-8d14-b999159984bd",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.activity_events": {
|
|
8
|
+
"name": "activity_events",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"id": {
|
|
12
|
+
"name": "id",
|
|
13
|
+
"type": "uuid",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true,
|
|
16
|
+
"default": "gen_random_uuid()"
|
|
17
|
+
},
|
|
18
|
+
"kind": {
|
|
19
|
+
"name": "kind",
|
|
20
|
+
"type": "text",
|
|
21
|
+
"primaryKey": false,
|
|
22
|
+
"notNull": true
|
|
23
|
+
},
|
|
24
|
+
"subject_type": {
|
|
25
|
+
"name": "subject_type",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true
|
|
29
|
+
},
|
|
30
|
+
"subject_id": {
|
|
31
|
+
"name": "subject_id",
|
|
32
|
+
"type": "text",
|
|
33
|
+
"primaryKey": false,
|
|
34
|
+
"notNull": true
|
|
35
|
+
},
|
|
36
|
+
"actor_id": {
|
|
37
|
+
"name": "actor_id",
|
|
38
|
+
"type": "uuid",
|
|
39
|
+
"primaryKey": false,
|
|
40
|
+
"notNull": false
|
|
41
|
+
},
|
|
42
|
+
"actor_type": {
|
|
43
|
+
"name": "actor_type",
|
|
44
|
+
"type": "text",
|
|
45
|
+
"primaryKey": false,
|
|
46
|
+
"notNull": false
|
|
47
|
+
},
|
|
48
|
+
"actor_email": {
|
|
49
|
+
"name": "actor_email",
|
|
50
|
+
"type": "text",
|
|
51
|
+
"primaryKey": false,
|
|
52
|
+
"notNull": false
|
|
53
|
+
},
|
|
54
|
+
"workspace_id": {
|
|
55
|
+
"name": "workspace_id",
|
|
56
|
+
"type": "uuid",
|
|
57
|
+
"primaryKey": false,
|
|
58
|
+
"notNull": false
|
|
59
|
+
},
|
|
60
|
+
"meta": {
|
|
61
|
+
"name": "meta",
|
|
62
|
+
"type": "jsonb",
|
|
63
|
+
"primaryKey": false,
|
|
64
|
+
"notNull": false
|
|
65
|
+
},
|
|
66
|
+
"at": {
|
|
67
|
+
"name": "at",
|
|
68
|
+
"type": "timestamp with time zone",
|
|
69
|
+
"primaryKey": false,
|
|
70
|
+
"notNull": true,
|
|
71
|
+
"default": "now()"
|
|
72
|
+
},
|
|
73
|
+
"created_at": {
|
|
74
|
+
"name": "created_at",
|
|
75
|
+
"type": "timestamp with time zone",
|
|
76
|
+
"primaryKey": false,
|
|
77
|
+
"notNull": true,
|
|
78
|
+
"default": "now()"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"indexes": {
|
|
82
|
+
"activity_events_subject_idx": {
|
|
83
|
+
"name": "activity_events_subject_idx",
|
|
84
|
+
"columns": [
|
|
85
|
+
{
|
|
86
|
+
"expression": "subject_type",
|
|
87
|
+
"isExpression": false,
|
|
88
|
+
"asc": true,
|
|
89
|
+
"nulls": "last"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"expression": "subject_id",
|
|
93
|
+
"isExpression": false,
|
|
94
|
+
"asc": true,
|
|
95
|
+
"nulls": "last"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"expression": "at",
|
|
99
|
+
"isExpression": false,
|
|
100
|
+
"asc": true,
|
|
101
|
+
"nulls": "last"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"isUnique": false,
|
|
105
|
+
"concurrently": false,
|
|
106
|
+
"method": "btree",
|
|
107
|
+
"with": {}
|
|
108
|
+
},
|
|
109
|
+
"activity_events_actor_idx": {
|
|
110
|
+
"name": "activity_events_actor_idx",
|
|
111
|
+
"columns": [
|
|
112
|
+
{
|
|
113
|
+
"expression": "actor_id",
|
|
114
|
+
"isExpression": false,
|
|
115
|
+
"asc": true,
|
|
116
|
+
"nulls": "last"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"expression": "at",
|
|
120
|
+
"isExpression": false,
|
|
121
|
+
"asc": true,
|
|
122
|
+
"nulls": "last"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"isUnique": false,
|
|
126
|
+
"concurrently": false,
|
|
127
|
+
"method": "btree",
|
|
128
|
+
"with": {}
|
|
129
|
+
},
|
|
130
|
+
"activity_events_kind_idx": {
|
|
131
|
+
"name": "activity_events_kind_idx",
|
|
132
|
+
"columns": [
|
|
133
|
+
{
|
|
134
|
+
"expression": "kind",
|
|
135
|
+
"isExpression": false,
|
|
136
|
+
"asc": true,
|
|
137
|
+
"nulls": "last"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"expression": "at",
|
|
141
|
+
"isExpression": false,
|
|
142
|
+
"asc": true,
|
|
143
|
+
"nulls": "last"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"isUnique": false,
|
|
147
|
+
"concurrently": false,
|
|
148
|
+
"method": "btree",
|
|
149
|
+
"with": {}
|
|
150
|
+
},
|
|
151
|
+
"activity_events_workspace_idx": {
|
|
152
|
+
"name": "activity_events_workspace_idx",
|
|
153
|
+
"columns": [
|
|
154
|
+
{
|
|
155
|
+
"expression": "workspace_id",
|
|
156
|
+
"isExpression": false,
|
|
157
|
+
"asc": true,
|
|
158
|
+
"nulls": "last"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"expression": "at",
|
|
162
|
+
"isExpression": false,
|
|
163
|
+
"asc": true,
|
|
164
|
+
"nulls": "last"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"isUnique": false,
|
|
168
|
+
"concurrently": false,
|
|
169
|
+
"method": "btree",
|
|
170
|
+
"with": {}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"foreignKeys": {},
|
|
174
|
+
"compositePrimaryKeys": {},
|
|
175
|
+
"uniqueConstraints": {},
|
|
176
|
+
"policies": {},
|
|
177
|
+
"checkConstraints": {},
|
|
178
|
+
"isRLSEnabled": false
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"enums": {},
|
|
182
|
+
"schemas": {},
|
|
183
|
+
"sequences": {},
|
|
184
|
+
"roles": {},
|
|
185
|
+
"policies": {},
|
|
186
|
+
"views": {},
|
|
187
|
+
"_meta": {
|
|
188
|
+
"columns": {},
|
|
189
|
+
"schemas": {},
|
|
190
|
+
"tables": {}
|
|
191
|
+
}
|
|
192
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orthacms/activity-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "@orthacms/activity-server — part of Ortha CMS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ortha-source/ortha-cms/tree/main/packages/activity/server",
|
|
@@ -28,13 +28,12 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@nestjs/common": "^11.0.0",
|
|
30
30
|
"@nestjs/swagger": "^11.4.6",
|
|
31
|
-
"@orthacms/bootstrap-server": "^0.
|
|
32
|
-
"@orthacms/
|
|
33
|
-
"@orthacms/
|
|
34
|
-
"@orthacms/
|
|
35
|
-
"@orthacms/
|
|
36
|
-
"@orthacms/
|
|
37
|
-
"@orthacms/utils-server": "^0.4.2",
|
|
31
|
+
"@orthacms/bootstrap-server": "^0.5.0",
|
|
32
|
+
"@orthacms/database": "^0.5.0",
|
|
33
|
+
"@orthacms/identity-server": "^0.5.0",
|
|
34
|
+
"@orthacms/tools-server": "^0.5.0",
|
|
35
|
+
"@orthacms/utils-server": "^0.5.0",
|
|
36
|
+
"@orthacms/workspaces-server": "^0.5.0",
|
|
38
37
|
"class-transformer": "^0.5.1",
|
|
39
38
|
"class-validator": "^0.15.1",
|
|
40
39
|
"drizzle-orm": "^0.45.0",
|