@develit-services/notification 0.5.1 → 0.6.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/README.md +62 -5
- package/dist/database/schema.cjs +4 -6
- package/dist/database/schema.d.cts +6 -2
- package/dist/database/schema.d.mts +6 -2
- package/dist/database/schema.d.ts +6 -2
- package/dist/database/schema.mjs +5 -3
- package/dist/export/worker.cjs +260 -65
- package/dist/export/worker.d.cts +22 -3
- package/dist/export/worker.d.mts +22 -3
- package/dist/export/worker.d.ts +22 -3
- package/dist/export/worker.mjs +252 -57
- package/dist/export/wrangler.cjs +19 -1
- package/dist/export/wrangler.d.cts +5 -1
- package/dist/export/wrangler.d.mts +5 -1
- package/dist/export/wrangler.d.ts +5 -1
- package/dist/export/wrangler.mjs +19 -1
- package/dist/shared/{notification.B0pktSz9.cjs → notification.BLPB8Ib2.cjs} +79 -0
- package/dist/shared/{notification.DWuoMDHY.d.ts → notification.BiG4Q650.d.cts} +98 -6
- package/dist/shared/{notification.B4ZLWDCP.d.cts → notification.BiG4Q650.d.mts} +98 -6
- package/dist/shared/{notification.CpFoKjoN.d.mts → notification.BiG4Q650.d.ts} +98 -6
- package/dist/shared/{notification.CmITLO7E.mjs → notification.CP_hFlNt.mjs} +75 -1
- package/dist/shared/{notification.BB9Jl8DI.d.mts → notification.CdlaOUd0.d.cts} +3 -0
- package/dist/shared/{notification.BB9Jl8DI.d.ts → notification.CdlaOUd0.d.mts} +3 -0
- package/dist/shared/{notification.BB9Jl8DI.d.cts → notification.CdlaOUd0.d.ts} +3 -0
- package/dist/types.cjs +19 -19
- package/dist/types.d.cts +5 -16
- package/dist/types.d.mts +5 -16
- package/dist/types.d.ts +5 -16
- package/dist/types.mjs +2 -10
- package/package.json +3 -3
- package/dist/shared/notification.4b3eUEIG.cjs +0 -22
- package/dist/shared/notification.BWLPh6Gb.d.cts +0 -140
- package/dist/shared/notification.BWLPh6Gb.d.mts +0 -140
- package/dist/shared/notification.BWLPh6Gb.d.ts +0 -140
- package/dist/shared/notification.C0X8Orrh.mjs +0 -19
package/dist/types.cjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const webhook_connector = require('./shared/notification.BLPB8Ib2.cjs');
|
|
4
4
|
require('zod');
|
|
5
5
|
require('@develit-io/backend-sdk');
|
|
6
6
|
require('zod/v4');
|
|
7
7
|
require('twilio');
|
|
8
|
+
require('@develit-io/backend-sdk/signature');
|
|
8
9
|
|
|
9
|
-
const AUDIT_LOG_EVENT_TYPES = [
|
|
10
|
-
"EMAIL",
|
|
11
|
-
"SMS",
|
|
12
|
-
"PUSH_NOTIFICATION",
|
|
13
|
-
"SLACK"
|
|
14
|
-
];
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
11
|
+
|
|
12
|
+
exports.EcomailConnector = webhook_connector.EcomailConnector;
|
|
13
|
+
exports.IEmailConnector = webhook_connector.IEmailConnector;
|
|
14
|
+
exports.ISmsConnector = webhook_connector.ISmsConnector;
|
|
15
|
+
exports.SlackConnector = webhook_connector.SlackConnector;
|
|
16
|
+
exports.TwilioConnector = webhook_connector.TwilioConnector;
|
|
17
|
+
exports.WebhookConnector = webhook_connector.WebhookConnector;
|
|
18
|
+
exports.clearReceivedEmailsInputSchema = webhook_connector.clearReceivedEmailsInputSchema;
|
|
19
|
+
exports.getReceivedEmailsInputSchema = webhook_connector.getReceivedEmailsInputSchema;
|
|
20
|
+
exports.iAttachmentSchema = webhook_connector.iAttachmentSchema;
|
|
21
|
+
exports.iContactSchema = webhook_connector.iContactSchema;
|
|
22
|
+
exports.iEmailSchema = webhook_connector.iEmailSchema;
|
|
23
|
+
exports.sendEmailInputSchema = webhook_connector.sendEmailInputSchema;
|
|
24
|
+
exports.sendSlackInputSchema = webhook_connector.sendSlackInputSchema;
|
|
25
|
+
exports.sendSmsInputSchema = webhook_connector.sendSmsInputSchema;
|
|
26
|
+
exports.sendWebhookInputSchema = webhook_connector.sendWebhookInputSchema;
|
|
27
|
+
exports.waitForEmailInputSchema = webhook_connector.waitForEmailInputSchema;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { I as IEmailConnector,
|
|
2
|
-
export {
|
|
1
|
+
import { I as IEmailConnector, n as IEmail, o as IContact, a as ISmsConnector, p as ISms } from './shared/notification.BiG4Q650.cjs';
|
|
2
|
+
export { C as ClearReceivedEmailsInput, m as ClearReceivedEmailsOutput, G as GetReceivedEmailsInput, j as GetReceivedEmailsOutput, q as IAttachment, r as IPushNotification, s as ISlack, t as IWebhook, N as NotificationQueueMessage, R as ReceivedEmail, b as SendEmailInput, c as SendEmailOutput, f as SendSlackInput, g as SendSlackOutput, d as SendSmsInput, e as SendSmsOutput, h as SendWebhookInput, i as SendWebhookOutput, S as SlackConnector, k as WaitForEmailInput, l as WaitForEmailOutput, W as WebhookConnector, u as clearReceivedEmailsInputSchema, v as getReceivedEmailsInputSchema, w as iAttachmentSchema, x as iContactSchema, y as iEmailSchema, z as sendEmailInputSchema, A as sendSlackInputSchema, B as sendSmsInputSchema, D as sendWebhookInputSchema, E as waitForEmailInputSchema } from './shared/notification.BiG4Q650.cjs';
|
|
3
3
|
import twilio from 'twilio';
|
|
4
|
-
|
|
5
|
-
export { a as NotificationServiceEnv, b as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.BB9Jl8DI.cjs';
|
|
6
|
-
import './shared/notification.BWLPh6Gb.cjs';
|
|
7
|
-
import 'drizzle-orm/sqlite-core';
|
|
4
|
+
export { a as NotificationServiceEnv, b as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.CdlaOUd0.cjs';
|
|
8
5
|
import 'zod';
|
|
9
6
|
import 'zod/v4';
|
|
10
7
|
|
|
@@ -59,13 +56,5 @@ declare class TwilioConnector extends ISmsConnector {
|
|
|
59
56
|
sendSms(sms: ISms): Promise<void>;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
interface AuditLogInsertType extends InferInsertModel<typeof tables.auditLog> {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare const AUDIT_LOG_EVENT_TYPES: readonly ["EMAIL", "SMS", "PUSH_NOTIFICATION", "SLACK"];
|
|
68
|
-
type AuditLogEventType = (typeof AUDIT_LOG_EVENT_TYPES)[number];
|
|
69
|
-
|
|
70
|
-
export { AUDIT_LOG_EVENT_TYPES, EcomailConnector, IContact, IEmail, IEmailConnector, ISms, ISmsConnector, TwilioConnector };
|
|
71
|
-
export type { AuditLogEventType, AuditLogInsertType, AuditLogSelectType, EMAttachment, EMContact, EMEmail };
|
|
59
|
+
export { EcomailConnector, IContact, IEmail, IEmailConnector, ISms, ISmsConnector, TwilioConnector };
|
|
60
|
+
export type { EMAttachment, EMContact, EMEmail };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { I as IEmailConnector,
|
|
2
|
-
export {
|
|
1
|
+
import { I as IEmailConnector, n as IEmail, o as IContact, a as ISmsConnector, p as ISms } from './shared/notification.BiG4Q650.mjs';
|
|
2
|
+
export { C as ClearReceivedEmailsInput, m as ClearReceivedEmailsOutput, G as GetReceivedEmailsInput, j as GetReceivedEmailsOutput, q as IAttachment, r as IPushNotification, s as ISlack, t as IWebhook, N as NotificationQueueMessage, R as ReceivedEmail, b as SendEmailInput, c as SendEmailOutput, f as SendSlackInput, g as SendSlackOutput, d as SendSmsInput, e as SendSmsOutput, h as SendWebhookInput, i as SendWebhookOutput, S as SlackConnector, k as WaitForEmailInput, l as WaitForEmailOutput, W as WebhookConnector, u as clearReceivedEmailsInputSchema, v as getReceivedEmailsInputSchema, w as iAttachmentSchema, x as iContactSchema, y as iEmailSchema, z as sendEmailInputSchema, A as sendSlackInputSchema, B as sendSmsInputSchema, D as sendWebhookInputSchema, E as waitForEmailInputSchema } from './shared/notification.BiG4Q650.mjs';
|
|
3
3
|
import twilio from 'twilio';
|
|
4
|
-
|
|
5
|
-
export { a as NotificationServiceEnv, b as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.BB9Jl8DI.mjs';
|
|
6
|
-
import './shared/notification.BWLPh6Gb.mjs';
|
|
7
|
-
import 'drizzle-orm/sqlite-core';
|
|
4
|
+
export { a as NotificationServiceEnv, b as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.CdlaOUd0.mjs';
|
|
8
5
|
import 'zod';
|
|
9
6
|
import 'zod/v4';
|
|
10
7
|
|
|
@@ -59,13 +56,5 @@ declare class TwilioConnector extends ISmsConnector {
|
|
|
59
56
|
sendSms(sms: ISms): Promise<void>;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
interface AuditLogInsertType extends InferInsertModel<typeof tables.auditLog> {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare const AUDIT_LOG_EVENT_TYPES: readonly ["EMAIL", "SMS", "PUSH_NOTIFICATION", "SLACK"];
|
|
68
|
-
type AuditLogEventType = (typeof AUDIT_LOG_EVENT_TYPES)[number];
|
|
69
|
-
|
|
70
|
-
export { AUDIT_LOG_EVENT_TYPES, EcomailConnector, IContact, IEmail, IEmailConnector, ISms, ISmsConnector, TwilioConnector };
|
|
71
|
-
export type { AuditLogEventType, AuditLogInsertType, AuditLogSelectType, EMAttachment, EMContact, EMEmail };
|
|
59
|
+
export { EcomailConnector, IContact, IEmail, IEmailConnector, ISms, ISmsConnector, TwilioConnector };
|
|
60
|
+
export type { EMAttachment, EMContact, EMEmail };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { I as IEmailConnector,
|
|
2
|
-
export {
|
|
1
|
+
import { I as IEmailConnector, n as IEmail, o as IContact, a as ISmsConnector, p as ISms } from './shared/notification.BiG4Q650.js';
|
|
2
|
+
export { C as ClearReceivedEmailsInput, m as ClearReceivedEmailsOutput, G as GetReceivedEmailsInput, j as GetReceivedEmailsOutput, q as IAttachment, r as IPushNotification, s as ISlack, t as IWebhook, N as NotificationQueueMessage, R as ReceivedEmail, b as SendEmailInput, c as SendEmailOutput, f as SendSlackInput, g as SendSlackOutput, d as SendSmsInput, e as SendSmsOutput, h as SendWebhookInput, i as SendWebhookOutput, S as SlackConnector, k as WaitForEmailInput, l as WaitForEmailOutput, W as WebhookConnector, u as clearReceivedEmailsInputSchema, v as getReceivedEmailsInputSchema, w as iAttachmentSchema, x as iContactSchema, y as iEmailSchema, z as sendEmailInputSchema, A as sendSlackInputSchema, B as sendSmsInputSchema, D as sendWebhookInputSchema, E as waitForEmailInputSchema } from './shared/notification.BiG4Q650.js';
|
|
3
3
|
import twilio from 'twilio';
|
|
4
|
-
|
|
5
|
-
export { a as NotificationServiceEnv, b as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.BB9Jl8DI.js';
|
|
6
|
-
import './shared/notification.BWLPh6Gb.js';
|
|
7
|
-
import 'drizzle-orm/sqlite-core';
|
|
4
|
+
export { a as NotificationServiceEnv, b as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.CdlaOUd0.js';
|
|
8
5
|
import 'zod';
|
|
9
6
|
import 'zod/v4';
|
|
10
7
|
|
|
@@ -59,13 +56,5 @@ declare class TwilioConnector extends ISmsConnector {
|
|
|
59
56
|
sendSms(sms: ISms): Promise<void>;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
interface AuditLogInsertType extends InferInsertModel<typeof tables.auditLog> {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare const AUDIT_LOG_EVENT_TYPES: readonly ["EMAIL", "SMS", "PUSH_NOTIFICATION", "SLACK"];
|
|
68
|
-
type AuditLogEventType = (typeof AUDIT_LOG_EVENT_TYPES)[number];
|
|
69
|
-
|
|
70
|
-
export { AUDIT_LOG_EVENT_TYPES, EcomailConnector, IContact, IEmail, IEmailConnector, ISms, ISmsConnector, TwilioConnector };
|
|
71
|
-
export type { AuditLogEventType, AuditLogInsertType, AuditLogSelectType, EMAttachment, EMContact, EMEmail };
|
|
59
|
+
export { EcomailConnector, IContact, IEmail, IEmailConnector, ISms, ISmsConnector, TwilioConnector };
|
|
60
|
+
export type { EMAttachment, EMContact, EMEmail };
|
package/dist/types.mjs
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
export { E as EcomailConnector, I as IEmailConnector,
|
|
1
|
+
export { E as EcomailConnector, I as IEmailConnector, a as ISmsConnector, S as SlackConnector, T as TwilioConnector, W as WebhookConnector, c as clearReceivedEmailsInputSchema, g as getReceivedEmailsInputSchema, i as iAttachmentSchema, b as iContactSchema, d as iEmailSchema, s as sendEmailInputSchema, e as sendSlackInputSchema, f as sendSmsInputSchema, h as sendWebhookInputSchema, w as waitForEmailInputSchema } from './shared/notification.CP_hFlNt.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@develit-io/backend-sdk';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'twilio';
|
|
6
|
-
|
|
7
|
-
const AUDIT_LOG_EVENT_TYPES = [
|
|
8
|
-
"EMAIL",
|
|
9
|
-
"SMS",
|
|
10
|
-
"PUSH_NOTIFICATION",
|
|
11
|
-
"SLACK"
|
|
12
|
-
];
|
|
13
|
-
|
|
14
|
-
export { AUDIT_LOG_EVENT_TYPES };
|
|
6
|
+
import '@develit-io/backend-sdk/signature';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/notification",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"build": "unbuild"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"twilio": "^5.12.
|
|
49
|
+
"twilio": "^5.12.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@develit-io/backend-sdk": "^9.
|
|
52
|
+
"@develit-io/backend-sdk": "^9.10.3",
|
|
53
53
|
"drizzle-orm": "^0.45.0",
|
|
54
54
|
"zod": "^4.1.13"
|
|
55
55
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const sqliteCore = require('drizzle-orm/sqlite-core');
|
|
5
|
-
|
|
6
|
-
const auditLog = sqliteCore.sqliteTable("audit_log", {
|
|
7
|
-
...backendSdk.base,
|
|
8
|
-
event: sqliteCore.text("event").$type().notNull(),
|
|
9
|
-
ip: sqliteCore.text("ip"),
|
|
10
|
-
userAgent: sqliteCore.text("user_agent"),
|
|
11
|
-
description: sqliteCore.text("description"),
|
|
12
|
-
initiatorService: sqliteCore.text("initiator_service").notNull(),
|
|
13
|
-
initiatorUserId: sqliteCore.text("initiator_user_id")
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const schema = {
|
|
17
|
-
__proto__: null,
|
|
18
|
-
auditLog: auditLog
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.auditLog = auditLog;
|
|
22
|
-
exports.schema = schema;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
2
|
-
|
|
3
|
-
declare const auditLog: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
4
|
-
name: "audit_log";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
event: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8
|
-
name: "event";
|
|
9
|
-
tableName: "audit_log";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
columnType: "SQLiteText";
|
|
12
|
-
data: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SLACK";
|
|
13
|
-
driverParam: string;
|
|
14
|
-
notNull: true;
|
|
15
|
-
hasDefault: false;
|
|
16
|
-
isPrimaryKey: false;
|
|
17
|
-
isAutoincrement: false;
|
|
18
|
-
hasRuntimeDefault: false;
|
|
19
|
-
enumValues: [string, ...string[]];
|
|
20
|
-
baseColumn: never;
|
|
21
|
-
identity: undefined;
|
|
22
|
-
generated: undefined;
|
|
23
|
-
}, {}, {
|
|
24
|
-
length: number | undefined;
|
|
25
|
-
$type: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SLACK";
|
|
26
|
-
}>;
|
|
27
|
-
ip: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
28
|
-
name: "ip";
|
|
29
|
-
tableName: "audit_log";
|
|
30
|
-
dataType: "string";
|
|
31
|
-
columnType: "SQLiteText";
|
|
32
|
-
data: string;
|
|
33
|
-
driverParam: string;
|
|
34
|
-
notNull: false;
|
|
35
|
-
hasDefault: false;
|
|
36
|
-
isPrimaryKey: false;
|
|
37
|
-
isAutoincrement: false;
|
|
38
|
-
hasRuntimeDefault: false;
|
|
39
|
-
enumValues: [string, ...string[]];
|
|
40
|
-
baseColumn: never;
|
|
41
|
-
identity: undefined;
|
|
42
|
-
generated: undefined;
|
|
43
|
-
}, {}, {
|
|
44
|
-
length: number | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
userAgent: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
47
|
-
name: "user_agent";
|
|
48
|
-
tableName: "audit_log";
|
|
49
|
-
dataType: "string";
|
|
50
|
-
columnType: "SQLiteText";
|
|
51
|
-
data: string;
|
|
52
|
-
driverParam: string;
|
|
53
|
-
notNull: false;
|
|
54
|
-
hasDefault: false;
|
|
55
|
-
isPrimaryKey: false;
|
|
56
|
-
isAutoincrement: false;
|
|
57
|
-
hasRuntimeDefault: false;
|
|
58
|
-
enumValues: [string, ...string[]];
|
|
59
|
-
baseColumn: never;
|
|
60
|
-
identity: undefined;
|
|
61
|
-
generated: undefined;
|
|
62
|
-
}, {}, {
|
|
63
|
-
length: number | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
66
|
-
name: "description";
|
|
67
|
-
tableName: "audit_log";
|
|
68
|
-
dataType: "string";
|
|
69
|
-
columnType: "SQLiteText";
|
|
70
|
-
data: string;
|
|
71
|
-
driverParam: string;
|
|
72
|
-
notNull: false;
|
|
73
|
-
hasDefault: false;
|
|
74
|
-
isPrimaryKey: false;
|
|
75
|
-
isAutoincrement: false;
|
|
76
|
-
hasRuntimeDefault: false;
|
|
77
|
-
enumValues: [string, ...string[]];
|
|
78
|
-
baseColumn: never;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}, {}, {
|
|
82
|
-
length: number | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
initiatorService: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
85
|
-
name: "initiator_service";
|
|
86
|
-
tableName: "audit_log";
|
|
87
|
-
dataType: "string";
|
|
88
|
-
columnType: "SQLiteText";
|
|
89
|
-
data: string;
|
|
90
|
-
driverParam: string;
|
|
91
|
-
notNull: true;
|
|
92
|
-
hasDefault: false;
|
|
93
|
-
isPrimaryKey: false;
|
|
94
|
-
isAutoincrement: false;
|
|
95
|
-
hasRuntimeDefault: false;
|
|
96
|
-
enumValues: [string, ...string[]];
|
|
97
|
-
baseColumn: never;
|
|
98
|
-
identity: undefined;
|
|
99
|
-
generated: undefined;
|
|
100
|
-
}, {}, {
|
|
101
|
-
length: number | undefined;
|
|
102
|
-
}>;
|
|
103
|
-
initiatorUserId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
104
|
-
name: "initiator_user_id";
|
|
105
|
-
tableName: "audit_log";
|
|
106
|
-
dataType: "string";
|
|
107
|
-
columnType: "SQLiteText";
|
|
108
|
-
data: string;
|
|
109
|
-
driverParam: string;
|
|
110
|
-
notNull: false;
|
|
111
|
-
hasDefault: false;
|
|
112
|
-
isPrimaryKey: false;
|
|
113
|
-
isAutoincrement: false;
|
|
114
|
-
hasRuntimeDefault: false;
|
|
115
|
-
enumValues: [string, ...string[]];
|
|
116
|
-
baseColumn: never;
|
|
117
|
-
identity: undefined;
|
|
118
|
-
generated: undefined;
|
|
119
|
-
}, {}, {
|
|
120
|
-
length: number | undefined;
|
|
121
|
-
}>;
|
|
122
|
-
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
123
|
-
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
124
|
-
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
125
|
-
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
126
|
-
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
127
|
-
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
128
|
-
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
129
|
-
};
|
|
130
|
-
dialect: "sqlite";
|
|
131
|
-
}>;
|
|
132
|
-
|
|
133
|
-
declare const schema_auditLog: typeof auditLog;
|
|
134
|
-
declare namespace schema {
|
|
135
|
-
export {
|
|
136
|
-
schema_auditLog as auditLog,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export { auditLog as a, schema as s };
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
2
|
-
|
|
3
|
-
declare const auditLog: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
4
|
-
name: "audit_log";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
event: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8
|
-
name: "event";
|
|
9
|
-
tableName: "audit_log";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
columnType: "SQLiteText";
|
|
12
|
-
data: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SLACK";
|
|
13
|
-
driverParam: string;
|
|
14
|
-
notNull: true;
|
|
15
|
-
hasDefault: false;
|
|
16
|
-
isPrimaryKey: false;
|
|
17
|
-
isAutoincrement: false;
|
|
18
|
-
hasRuntimeDefault: false;
|
|
19
|
-
enumValues: [string, ...string[]];
|
|
20
|
-
baseColumn: never;
|
|
21
|
-
identity: undefined;
|
|
22
|
-
generated: undefined;
|
|
23
|
-
}, {}, {
|
|
24
|
-
length: number | undefined;
|
|
25
|
-
$type: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SLACK";
|
|
26
|
-
}>;
|
|
27
|
-
ip: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
28
|
-
name: "ip";
|
|
29
|
-
tableName: "audit_log";
|
|
30
|
-
dataType: "string";
|
|
31
|
-
columnType: "SQLiteText";
|
|
32
|
-
data: string;
|
|
33
|
-
driverParam: string;
|
|
34
|
-
notNull: false;
|
|
35
|
-
hasDefault: false;
|
|
36
|
-
isPrimaryKey: false;
|
|
37
|
-
isAutoincrement: false;
|
|
38
|
-
hasRuntimeDefault: false;
|
|
39
|
-
enumValues: [string, ...string[]];
|
|
40
|
-
baseColumn: never;
|
|
41
|
-
identity: undefined;
|
|
42
|
-
generated: undefined;
|
|
43
|
-
}, {}, {
|
|
44
|
-
length: number | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
userAgent: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
47
|
-
name: "user_agent";
|
|
48
|
-
tableName: "audit_log";
|
|
49
|
-
dataType: "string";
|
|
50
|
-
columnType: "SQLiteText";
|
|
51
|
-
data: string;
|
|
52
|
-
driverParam: string;
|
|
53
|
-
notNull: false;
|
|
54
|
-
hasDefault: false;
|
|
55
|
-
isPrimaryKey: false;
|
|
56
|
-
isAutoincrement: false;
|
|
57
|
-
hasRuntimeDefault: false;
|
|
58
|
-
enumValues: [string, ...string[]];
|
|
59
|
-
baseColumn: never;
|
|
60
|
-
identity: undefined;
|
|
61
|
-
generated: undefined;
|
|
62
|
-
}, {}, {
|
|
63
|
-
length: number | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
66
|
-
name: "description";
|
|
67
|
-
tableName: "audit_log";
|
|
68
|
-
dataType: "string";
|
|
69
|
-
columnType: "SQLiteText";
|
|
70
|
-
data: string;
|
|
71
|
-
driverParam: string;
|
|
72
|
-
notNull: false;
|
|
73
|
-
hasDefault: false;
|
|
74
|
-
isPrimaryKey: false;
|
|
75
|
-
isAutoincrement: false;
|
|
76
|
-
hasRuntimeDefault: false;
|
|
77
|
-
enumValues: [string, ...string[]];
|
|
78
|
-
baseColumn: never;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}, {}, {
|
|
82
|
-
length: number | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
initiatorService: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
85
|
-
name: "initiator_service";
|
|
86
|
-
tableName: "audit_log";
|
|
87
|
-
dataType: "string";
|
|
88
|
-
columnType: "SQLiteText";
|
|
89
|
-
data: string;
|
|
90
|
-
driverParam: string;
|
|
91
|
-
notNull: true;
|
|
92
|
-
hasDefault: false;
|
|
93
|
-
isPrimaryKey: false;
|
|
94
|
-
isAutoincrement: false;
|
|
95
|
-
hasRuntimeDefault: false;
|
|
96
|
-
enumValues: [string, ...string[]];
|
|
97
|
-
baseColumn: never;
|
|
98
|
-
identity: undefined;
|
|
99
|
-
generated: undefined;
|
|
100
|
-
}, {}, {
|
|
101
|
-
length: number | undefined;
|
|
102
|
-
}>;
|
|
103
|
-
initiatorUserId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
104
|
-
name: "initiator_user_id";
|
|
105
|
-
tableName: "audit_log";
|
|
106
|
-
dataType: "string";
|
|
107
|
-
columnType: "SQLiteText";
|
|
108
|
-
data: string;
|
|
109
|
-
driverParam: string;
|
|
110
|
-
notNull: false;
|
|
111
|
-
hasDefault: false;
|
|
112
|
-
isPrimaryKey: false;
|
|
113
|
-
isAutoincrement: false;
|
|
114
|
-
hasRuntimeDefault: false;
|
|
115
|
-
enumValues: [string, ...string[]];
|
|
116
|
-
baseColumn: never;
|
|
117
|
-
identity: undefined;
|
|
118
|
-
generated: undefined;
|
|
119
|
-
}, {}, {
|
|
120
|
-
length: number | undefined;
|
|
121
|
-
}>;
|
|
122
|
-
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
123
|
-
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
124
|
-
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
125
|
-
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
126
|
-
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
127
|
-
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
128
|
-
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
129
|
-
};
|
|
130
|
-
dialect: "sqlite";
|
|
131
|
-
}>;
|
|
132
|
-
|
|
133
|
-
declare const schema_auditLog: typeof auditLog;
|
|
134
|
-
declare namespace schema {
|
|
135
|
-
export {
|
|
136
|
-
schema_auditLog as auditLog,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export { auditLog as a, schema as s };
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
2
|
-
|
|
3
|
-
declare const auditLog: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
4
|
-
name: "audit_log";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
event: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8
|
-
name: "event";
|
|
9
|
-
tableName: "audit_log";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
columnType: "SQLiteText";
|
|
12
|
-
data: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SLACK";
|
|
13
|
-
driverParam: string;
|
|
14
|
-
notNull: true;
|
|
15
|
-
hasDefault: false;
|
|
16
|
-
isPrimaryKey: false;
|
|
17
|
-
isAutoincrement: false;
|
|
18
|
-
hasRuntimeDefault: false;
|
|
19
|
-
enumValues: [string, ...string[]];
|
|
20
|
-
baseColumn: never;
|
|
21
|
-
identity: undefined;
|
|
22
|
-
generated: undefined;
|
|
23
|
-
}, {}, {
|
|
24
|
-
length: number | undefined;
|
|
25
|
-
$type: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SLACK";
|
|
26
|
-
}>;
|
|
27
|
-
ip: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
28
|
-
name: "ip";
|
|
29
|
-
tableName: "audit_log";
|
|
30
|
-
dataType: "string";
|
|
31
|
-
columnType: "SQLiteText";
|
|
32
|
-
data: string;
|
|
33
|
-
driverParam: string;
|
|
34
|
-
notNull: false;
|
|
35
|
-
hasDefault: false;
|
|
36
|
-
isPrimaryKey: false;
|
|
37
|
-
isAutoincrement: false;
|
|
38
|
-
hasRuntimeDefault: false;
|
|
39
|
-
enumValues: [string, ...string[]];
|
|
40
|
-
baseColumn: never;
|
|
41
|
-
identity: undefined;
|
|
42
|
-
generated: undefined;
|
|
43
|
-
}, {}, {
|
|
44
|
-
length: number | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
userAgent: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
47
|
-
name: "user_agent";
|
|
48
|
-
tableName: "audit_log";
|
|
49
|
-
dataType: "string";
|
|
50
|
-
columnType: "SQLiteText";
|
|
51
|
-
data: string;
|
|
52
|
-
driverParam: string;
|
|
53
|
-
notNull: false;
|
|
54
|
-
hasDefault: false;
|
|
55
|
-
isPrimaryKey: false;
|
|
56
|
-
isAutoincrement: false;
|
|
57
|
-
hasRuntimeDefault: false;
|
|
58
|
-
enumValues: [string, ...string[]];
|
|
59
|
-
baseColumn: never;
|
|
60
|
-
identity: undefined;
|
|
61
|
-
generated: undefined;
|
|
62
|
-
}, {}, {
|
|
63
|
-
length: number | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
66
|
-
name: "description";
|
|
67
|
-
tableName: "audit_log";
|
|
68
|
-
dataType: "string";
|
|
69
|
-
columnType: "SQLiteText";
|
|
70
|
-
data: string;
|
|
71
|
-
driverParam: string;
|
|
72
|
-
notNull: false;
|
|
73
|
-
hasDefault: false;
|
|
74
|
-
isPrimaryKey: false;
|
|
75
|
-
isAutoincrement: false;
|
|
76
|
-
hasRuntimeDefault: false;
|
|
77
|
-
enumValues: [string, ...string[]];
|
|
78
|
-
baseColumn: never;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}, {}, {
|
|
82
|
-
length: number | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
initiatorService: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
85
|
-
name: "initiator_service";
|
|
86
|
-
tableName: "audit_log";
|
|
87
|
-
dataType: "string";
|
|
88
|
-
columnType: "SQLiteText";
|
|
89
|
-
data: string;
|
|
90
|
-
driverParam: string;
|
|
91
|
-
notNull: true;
|
|
92
|
-
hasDefault: false;
|
|
93
|
-
isPrimaryKey: false;
|
|
94
|
-
isAutoincrement: false;
|
|
95
|
-
hasRuntimeDefault: false;
|
|
96
|
-
enumValues: [string, ...string[]];
|
|
97
|
-
baseColumn: never;
|
|
98
|
-
identity: undefined;
|
|
99
|
-
generated: undefined;
|
|
100
|
-
}, {}, {
|
|
101
|
-
length: number | undefined;
|
|
102
|
-
}>;
|
|
103
|
-
initiatorUserId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
104
|
-
name: "initiator_user_id";
|
|
105
|
-
tableName: "audit_log";
|
|
106
|
-
dataType: "string";
|
|
107
|
-
columnType: "SQLiteText";
|
|
108
|
-
data: string;
|
|
109
|
-
driverParam: string;
|
|
110
|
-
notNull: false;
|
|
111
|
-
hasDefault: false;
|
|
112
|
-
isPrimaryKey: false;
|
|
113
|
-
isAutoincrement: false;
|
|
114
|
-
hasRuntimeDefault: false;
|
|
115
|
-
enumValues: [string, ...string[]];
|
|
116
|
-
baseColumn: never;
|
|
117
|
-
identity: undefined;
|
|
118
|
-
generated: undefined;
|
|
119
|
-
}, {}, {
|
|
120
|
-
length: number | undefined;
|
|
121
|
-
}>;
|
|
122
|
-
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
123
|
-
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
124
|
-
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
125
|
-
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
126
|
-
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
127
|
-
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
128
|
-
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
129
|
-
};
|
|
130
|
-
dialect: "sqlite";
|
|
131
|
-
}>;
|
|
132
|
-
|
|
133
|
-
declare const schema_auditLog: typeof auditLog;
|
|
134
|
-
declare namespace schema {
|
|
135
|
-
export {
|
|
136
|
-
schema_auditLog as auditLog,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export { auditLog as a, schema as s };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { base } from '@develit-io/backend-sdk';
|
|
2
|
-
import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
3
|
-
|
|
4
|
-
const auditLog = sqliteTable("audit_log", {
|
|
5
|
-
...base,
|
|
6
|
-
event: text("event").$type().notNull(),
|
|
7
|
-
ip: text("ip"),
|
|
8
|
-
userAgent: text("user_agent"),
|
|
9
|
-
description: text("description"),
|
|
10
|
-
initiatorService: text("initiator_service").notNull(),
|
|
11
|
-
initiatorUserId: text("initiator_user_id")
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
const schema = {
|
|
15
|
-
__proto__: null,
|
|
16
|
-
auditLog: auditLog
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { auditLog as a, schema as s };
|