@openpeepshq/core 0.28.1 → 0.29.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/auditLog/finders.d.ts +27 -0
- package/dist/auditLog/finders.js +40 -0
- package/dist/auditLog/index.d.ts +3 -0
- package/dist/auditLog/index.js +3 -0
- package/dist/auditLog/mapping.d.ts +4 -0
- package/dist/auditLog/mapping.js +18 -0
- package/dist/auditLog/mutations.d.ts +42 -0
- package/dist/auditLog/mutations.js +43 -0
- package/dist/db/pg/schema/auditLogs.d.ts +183 -0
- package/dist/db/pg/schema/auditLogs.js +30 -0
- package/dist/db/pg/schema/index.d.ts +178 -0
- package/dist/db/pg/schema/index.js +3 -0
- package/dist/db/pg/sql/0020_add_audit_logs.sql +16 -0
- package/dist/db/pg/sql/meta/0020_snapshot.json +4816 -0
- package/dist/db/pg/sql/meta/0022_snapshot.json +127 -1
- package/dist/db/pg/sql/meta/_journal.json +8 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "4a5587e2-755d-42e0-a8e0-4940132dbb19",
|
|
3
|
-
"prevId": "
|
|
3
|
+
"prevId": "2638df33-a41a-4afe-ad09-e0c4d76d959d",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
6
6
|
"tables": {
|
|
@@ -4712,6 +4712,132 @@
|
|
|
4712
4712
|
"policies": {},
|
|
4713
4713
|
"checkConstraints": {},
|
|
4714
4714
|
"isRLSEnabled": false
|
|
4715
|
+
},
|
|
4716
|
+
"public.audit_logs": {
|
|
4717
|
+
"name": "audit_logs",
|
|
4718
|
+
"schema": "",
|
|
4719
|
+
"columns": {
|
|
4720
|
+
"id": {
|
|
4721
|
+
"name": "id",
|
|
4722
|
+
"type": "uuid",
|
|
4723
|
+
"primaryKey": true,
|
|
4724
|
+
"notNull": true
|
|
4725
|
+
},
|
|
4726
|
+
"actor_profile_id": {
|
|
4727
|
+
"name": "actor_profile_id",
|
|
4728
|
+
"type": "text",
|
|
4729
|
+
"primaryKey": false,
|
|
4730
|
+
"notNull": true
|
|
4731
|
+
},
|
|
4732
|
+
"actor_account_id": {
|
|
4733
|
+
"name": "actor_account_id",
|
|
4734
|
+
"type": "text",
|
|
4735
|
+
"primaryKey": false,
|
|
4736
|
+
"notNull": false
|
|
4737
|
+
},
|
|
4738
|
+
"actor_ip": {
|
|
4739
|
+
"name": "actor_ip",
|
|
4740
|
+
"type": "text",
|
|
4741
|
+
"primaryKey": false,
|
|
4742
|
+
"notNull": false
|
|
4743
|
+
},
|
|
4744
|
+
"action": {
|
|
4745
|
+
"name": "action",
|
|
4746
|
+
"type": "text",
|
|
4747
|
+
"primaryKey": false,
|
|
4748
|
+
"notNull": true
|
|
4749
|
+
},
|
|
4750
|
+
"target_type": {
|
|
4751
|
+
"name": "target_type",
|
|
4752
|
+
"type": "text",
|
|
4753
|
+
"primaryKey": false,
|
|
4754
|
+
"notNull": true
|
|
4755
|
+
},
|
|
4756
|
+
"target_id": {
|
|
4757
|
+
"name": "target_id",
|
|
4758
|
+
"type": "text",
|
|
4759
|
+
"primaryKey": false,
|
|
4760
|
+
"notNull": false
|
|
4761
|
+
},
|
|
4762
|
+
"target_label": {
|
|
4763
|
+
"name": "target_label",
|
|
4764
|
+
"type": "text",
|
|
4765
|
+
"primaryKey": false,
|
|
4766
|
+
"notNull": false
|
|
4767
|
+
},
|
|
4768
|
+
"metadata": {
|
|
4769
|
+
"name": "metadata",
|
|
4770
|
+
"type": "jsonb",
|
|
4771
|
+
"primaryKey": false,
|
|
4772
|
+
"notNull": false
|
|
4773
|
+
},
|
|
4774
|
+
"created_at": {
|
|
4775
|
+
"name": "created_at",
|
|
4776
|
+
"type": "timestamp with time zone",
|
|
4777
|
+
"primaryKey": false,
|
|
4778
|
+
"notNull": true,
|
|
4779
|
+
"default": "now()"
|
|
4780
|
+
}
|
|
4781
|
+
},
|
|
4782
|
+
"indexes": {
|
|
4783
|
+
"audit_logs_created_at_idx": {
|
|
4784
|
+
"name": "audit_logs_created_at_idx",
|
|
4785
|
+
"columns": [
|
|
4786
|
+
{
|
|
4787
|
+
"expression": "created_at",
|
|
4788
|
+
"isExpression": false,
|
|
4789
|
+
"asc": false,
|
|
4790
|
+
"nulls": "last"
|
|
4791
|
+
}
|
|
4792
|
+
],
|
|
4793
|
+
"isUnique": false,
|
|
4794
|
+
"concurrently": false,
|
|
4795
|
+
"method": "btree",
|
|
4796
|
+
"with": {}
|
|
4797
|
+
},
|
|
4798
|
+
"audit_logs_actor_profile_idx": {
|
|
4799
|
+
"name": "audit_logs_actor_profile_idx",
|
|
4800
|
+
"columns": [
|
|
4801
|
+
{
|
|
4802
|
+
"expression": "actor_profile_id",
|
|
4803
|
+
"isExpression": false,
|
|
4804
|
+
"asc": true,
|
|
4805
|
+
"nulls": "last"
|
|
4806
|
+
}
|
|
4807
|
+
],
|
|
4808
|
+
"isUnique": false,
|
|
4809
|
+
"concurrently": false,
|
|
4810
|
+
"method": "btree",
|
|
4811
|
+
"with": {}
|
|
4812
|
+
},
|
|
4813
|
+
"audit_logs_target_idx": {
|
|
4814
|
+
"name": "audit_logs_target_idx",
|
|
4815
|
+
"columns": [
|
|
4816
|
+
{
|
|
4817
|
+
"expression": "target_type",
|
|
4818
|
+
"isExpression": false,
|
|
4819
|
+
"asc": true,
|
|
4820
|
+
"nulls": "last"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
"expression": "target_id",
|
|
4824
|
+
"isExpression": false,
|
|
4825
|
+
"asc": true,
|
|
4826
|
+
"nulls": "last"
|
|
4827
|
+
}
|
|
4828
|
+
],
|
|
4829
|
+
"isUnique": false,
|
|
4830
|
+
"concurrently": false,
|
|
4831
|
+
"method": "btree",
|
|
4832
|
+
"with": {}
|
|
4833
|
+
}
|
|
4834
|
+
},
|
|
4835
|
+
"foreignKeys": {},
|
|
4836
|
+
"compositePrimaryKeys": {},
|
|
4837
|
+
"uniqueConstraints": {},
|
|
4838
|
+
"policies": {},
|
|
4839
|
+
"checkConstraints": {},
|
|
4840
|
+
"isRLSEnabled": false
|
|
4715
4841
|
}
|
|
4716
4842
|
},
|
|
4717
4843
|
"enums": {},
|
|
@@ -142,6 +142,13 @@
|
|
|
142
142
|
"tag": "0019_posts_published_at",
|
|
143
143
|
"breakpoints": true
|
|
144
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"idx": 20,
|
|
147
|
+
"version": "7",
|
|
148
|
+
"when": 1795347885884,
|
|
149
|
+
"tag": "0020_add_audit_logs",
|
|
150
|
+
"breakpoints": true
|
|
151
|
+
},
|
|
145
152
|
{
|
|
146
153
|
"idx": 22,
|
|
147
154
|
"version": "7",
|
|
@@ -150,4 +157,4 @@
|
|
|
150
157
|
"breakpoints": true
|
|
151
158
|
}
|
|
152
159
|
]
|
|
153
|
-
}
|
|
160
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"type-fest": "^4.31.0",
|
|
38
38
|
"uuidv7": "^1.0.2",
|
|
39
39
|
"web-push": "^3.6.7",
|
|
40
|
-
"@openpeepshq/common": "0.
|
|
41
|
-
"@openpeepshq/
|
|
42
|
-
"@openpeepshq/
|
|
43
|
-
"@openpeepshq/
|
|
40
|
+
"@openpeepshq/common": "0.31.0",
|
|
41
|
+
"@openpeepshq/fetch-client": "^0.3.0",
|
|
42
|
+
"@openpeepshq/i18n": "^0.32.0",
|
|
43
|
+
"@openpeepshq/geocoder": "^0.1.2"
|
|
44
44
|
},
|
|
45
45
|
"main": "dist/index.js",
|
|
46
46
|
"types": "dist/index.d.ts",
|