@develit-services/notification 0.0.8 → 0.0.10
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/export/db.cjs +22 -0
- package/dist/export/db.d.cts +207 -0
- package/dist/export/db.d.mts +207 -0
- package/dist/export/db.d.ts +207 -0
- package/dist/export/db.mjs +4 -0
- package/dist/export/worker.cjs +5 -21
- package/dist/export/worker.d.cts +3 -203
- package/dist/export/worker.d.mts +3 -203
- package/dist/export/worker.d.ts +3 -203
- package/dist/export/worker.mjs +4 -20
- package/dist/shared/notification.-alIE8nL.mjs +22 -0
- package/dist/shared/notification.COAZM12P.cjs +25 -0
- package/package.json +6 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { base } from '@develit-io/backend-sdk';
|
|
2
|
+
import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
3
|
+
import 'drizzle-orm';
|
|
4
|
+
|
|
5
|
+
const auditLog = sqliteTable("audit_log", {
|
|
6
|
+
...base,
|
|
7
|
+
event: text("event").$type().notNull(),
|
|
8
|
+
ip: text("ip"),
|
|
9
|
+
userAgent: text("user_agent"),
|
|
10
|
+
description: text("description"),
|
|
11
|
+
initiatorService: text("initiator_service").notNull(),
|
|
12
|
+
initiatorUserId: text("initiator_user_id")
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const schema = {
|
|
16
|
+
__proto__: null,
|
|
17
|
+
auditLog: auditLog
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const tables = schema;
|
|
21
|
+
|
|
22
|
+
export { schema as s, tables as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
+
const sqliteCore = require('drizzle-orm/sqlite-core');
|
|
5
|
+
require('drizzle-orm');
|
|
6
|
+
|
|
7
|
+
const auditLog = sqliteCore.sqliteTable("audit_log", {
|
|
8
|
+
...backendSdk.base,
|
|
9
|
+
event: sqliteCore.text("event").$type().notNull(),
|
|
10
|
+
ip: sqliteCore.text("ip"),
|
|
11
|
+
userAgent: sqliteCore.text("user_agent"),
|
|
12
|
+
description: sqliteCore.text("description"),
|
|
13
|
+
initiatorService: sqliteCore.text("initiator_service").notNull(),
|
|
14
|
+
initiatorUserId: sqliteCore.text("initiator_user_id")
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const schema = {
|
|
18
|
+
__proto__: null,
|
|
19
|
+
auditLog: auditLog
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const tables = schema;
|
|
23
|
+
|
|
24
|
+
exports.schema = schema;
|
|
25
|
+
exports.tables = tables;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/notification",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"import": "./dist/export/worker.mjs",
|
|
15
15
|
"require": "./dist/export/worker.cjs"
|
|
16
16
|
},
|
|
17
|
+
"./db": {
|
|
18
|
+
"types": "./dist/export/db.d.ts",
|
|
19
|
+
"import": "./dist/export/db.mjs",
|
|
20
|
+
"require": "./dist/export/db.cjs"
|
|
21
|
+
},
|
|
17
22
|
"./package.json": "./package.json"
|
|
18
23
|
},
|
|
19
24
|
"files": [
|