create-nexwire 4.2.3 → 4.2.4
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/express/package.json +48 -23
- package/express/src/database/migrations/sqlite/0000_init.sql +47 -60
- package/express/src/database/migrations/sqlite/meta/0000_snapshot.json +1 -89
- package/express/src/database/migrations/sqlite/meta/_journal.json +1 -1
- package/express/src/database/schema.ts +2 -3
- package/express/src/framework/facade.ts +12 -1
- package/express/src/framework/maker-cli/db/core.mjs +291 -288
- package/express/src/framework/maker-cli/module/core.mjs +125 -87
- package/express/src/framework/maker-cli/module/index.mjs +3 -3
- package/express/src/framework/maker-cli/stubs/notification/controller.ts.stub +61 -62
- package/express/src/framework/maker-cli/stubs/notification/job.ts.stub +11 -13
- package/express/src/framework/maker-cli/stubs/notification/model.ts.stub +29 -0
- package/express/src/framework/maker-cli/stubs/notification/provider.ts.stub +174 -0
- package/express/src/framework/maker-cli/stubs/notification/route.api.ts.stub +11 -10
- package/express/src/framework/maker-cli/stubs/notification/route.plain.ts.stub +1 -1
- package/express/src/framework/maker-cli/stubs/notification/schema.plain.ts.stub +25 -25
- package/express/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -25
- package/express/src/framework/notification/index.ts +49 -87
- package/express/src/framework/providers/adapter.ts +24 -10
- package/express/src/framework/providers/contracts.ts +80 -10
- package/express/src/framework/providers/registry.ts +27 -1
- package/express/src/resources/src/main.ts +1 -1
- package/express/src/resources/src/pages/auth/forgetPassword.vue +1 -1
- package/express/src/resources/src/pages/auth/login.vue +1 -1
- package/express/src/resources/src/pages/auth/register.vue +1 -1
- package/express/src/resources/src/pages/auth/resetPassword.vue +1 -1
- package/express/src/resources/src/pages/auth/verifyEmail.vue +1 -1
- package/express/src/resources/src/pages/dashboard/index.vue +66 -66
- package/express/src/storage/database/nexwire.sqlite +0 -0
- package/hono/package.json +44 -19
- package/hono/src/database/migrations/sqlite/0000_init.sql +47 -60
- package/hono/src/database/migrations/sqlite/meta/0000_snapshot.json +1 -89
- package/hono/src/database/migrations/sqlite/meta/_journal.json +1 -1
- package/hono/src/database/schema.ts +2 -3
- package/hono/src/framework/facade.ts +12 -1
- package/hono/src/framework/maker-cli/db/core.mjs +291 -288
- package/hono/src/framework/maker-cli/module/core.mjs +93 -52
- package/hono/src/framework/maker-cli/module/index.mjs +3 -3
- package/hono/src/framework/maker-cli/stubs/notification/controller.ts.stub +63 -58
- package/hono/src/framework/maker-cli/stubs/notification/job.ts.stub +10 -12
- package/hono/src/framework/maker-cli/stubs/notification/model.ts.stub +29 -0
- package/hono/src/framework/maker-cli/stubs/notification/provider.ts.stub +174 -0
- package/hono/src/framework/maker-cli/stubs/notification/route.api.ts.stub +11 -10
- package/hono/src/framework/maker-cli/stubs/notification/route.plain.ts.stub +1 -1
- package/hono/src/framework/maker-cli/stubs/notification/schema.plain.ts.stub +25 -25
- package/hono/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -25
- package/hono/src/framework/notification/index.ts +49 -87
- package/hono/src/framework/providers/adapter.ts +24 -10
- package/hono/src/framework/providers/contracts.ts +80 -10
- package/hono/src/framework/providers/registry.ts +27 -1
- package/hono/src/resources/src/main.ts +1 -1
- package/hono/src/resources/src/pages/auth/forgetPassword.vue +1 -1
- package/hono/src/resources/src/pages/auth/login.vue +1 -1
- package/hono/src/resources/src/pages/auth/register.vue +1 -1
- package/hono/src/resources/src/pages/auth/resetPassword.vue +1 -1
- package/hono/src/resources/src/pages/auth/verifyEmail.vue +1 -1
- package/hono/src/resources/src/pages/dashboard/index.vue +66 -66
- package/hono/src/storage/database/nexwire.sqlite +0 -0
- package/package.json +10 -10
- package/express/src/modules/auth/database/models/notification.ts +0 -24
- package/hono/src/modules/auth/database/models/notification.ts +0 -24
|
@@ -1,97 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "6",
|
|
3
3
|
"dialect": "sqlite",
|
|
4
|
-
"id": "
|
|
4
|
+
"id": "f0fe475e-8a3e-4c5c-9b5e-9ec41ddfde71",
|
|
5
5
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
6
|
"tables": {
|
|
7
|
-
"notifications": {
|
|
8
|
-
"name": "notifications",
|
|
9
|
-
"columns": {
|
|
10
|
-
"id": {
|
|
11
|
-
"name": "id",
|
|
12
|
-
"type": "integer",
|
|
13
|
-
"primaryKey": true,
|
|
14
|
-
"notNull": true,
|
|
15
|
-
"autoincrement": true
|
|
16
|
-
},
|
|
17
|
-
"user_id": {
|
|
18
|
-
"name": "user_id",
|
|
19
|
-
"type": "integer",
|
|
20
|
-
"primaryKey": false,
|
|
21
|
-
"notNull": true,
|
|
22
|
-
"autoincrement": false
|
|
23
|
-
},
|
|
24
|
-
"type": {
|
|
25
|
-
"name": "type",
|
|
26
|
-
"type": "text",
|
|
27
|
-
"primaryKey": false,
|
|
28
|
-
"notNull": true,
|
|
29
|
-
"autoincrement": false
|
|
30
|
-
},
|
|
31
|
-
"title": {
|
|
32
|
-
"name": "title",
|
|
33
|
-
"type": "text",
|
|
34
|
-
"primaryKey": false,
|
|
35
|
-
"notNull": true,
|
|
36
|
-
"autoincrement": false
|
|
37
|
-
},
|
|
38
|
-
"body": {
|
|
39
|
-
"name": "body",
|
|
40
|
-
"type": "text",
|
|
41
|
-
"primaryKey": false,
|
|
42
|
-
"notNull": false,
|
|
43
|
-
"autoincrement": false
|
|
44
|
-
},
|
|
45
|
-
"data": {
|
|
46
|
-
"name": "data",
|
|
47
|
-
"type": "text",
|
|
48
|
-
"primaryKey": false,
|
|
49
|
-
"notNull": false,
|
|
50
|
-
"autoincrement": false
|
|
51
|
-
},
|
|
52
|
-
"link": {
|
|
53
|
-
"name": "link",
|
|
54
|
-
"type": "text",
|
|
55
|
-
"primaryKey": false,
|
|
56
|
-
"notNull": false,
|
|
57
|
-
"autoincrement": false
|
|
58
|
-
},
|
|
59
|
-
"read_at": {
|
|
60
|
-
"name": "read_at",
|
|
61
|
-
"type": "integer",
|
|
62
|
-
"primaryKey": false,
|
|
63
|
-
"notNull": false,
|
|
64
|
-
"autoincrement": false
|
|
65
|
-
},
|
|
66
|
-
"created_at": {
|
|
67
|
-
"name": "created_at",
|
|
68
|
-
"type": "integer",
|
|
69
|
-
"primaryKey": false,
|
|
70
|
-
"notNull": true,
|
|
71
|
-
"autoincrement": false,
|
|
72
|
-
"default": "(cast((julianday('now') - 2440587.5)*86400000 as integer))"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"indexes": {},
|
|
76
|
-
"foreignKeys": {
|
|
77
|
-
"notifications_user_id_users_id_fk": {
|
|
78
|
-
"name": "notifications_user_id_users_id_fk",
|
|
79
|
-
"tableFrom": "notifications",
|
|
80
|
-
"tableTo": "users",
|
|
81
|
-
"columnsFrom": [
|
|
82
|
-
"user_id"
|
|
83
|
-
],
|
|
84
|
-
"columnsTo": [
|
|
85
|
-
"id"
|
|
86
|
-
],
|
|
87
|
-
"onDelete": "cascade",
|
|
88
|
-
"onUpdate": "cascade"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"compositePrimaryKeys": {},
|
|
92
|
-
"uniqueConstraints": {},
|
|
93
|
-
"checkConstraints": {}
|
|
94
|
-
},
|
|
95
7
|
"roles": {
|
|
96
8
|
"name": "roles",
|
|
97
9
|
"columns": {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "../modules/auth/database/models/
|
|
2
|
-
export * from "../modules/auth/database/models/
|
|
3
|
-
export * from "../modules/auth/database/models/user.js";
|
|
1
|
+
export * from "../modules/auth/database/models/role.js";
|
|
2
|
+
export * from "../modules/auth/database/models/user.js";
|
|
@@ -21,18 +21,29 @@ export type {
|
|
|
21
21
|
AuthProviderRefreshToken,
|
|
22
22
|
AuthProviderUser,
|
|
23
23
|
AuthUserContact,
|
|
24
|
-
AuthUserContext
|
|
24
|
+
AuthUserContext,
|
|
25
|
+
NotifiableTarget,
|
|
26
|
+
NotificationCreateInput,
|
|
27
|
+
NotificationListOptions,
|
|
28
|
+
NotificationPage,
|
|
29
|
+
NotificationProvider,
|
|
30
|
+
NotificationRecord
|
|
25
31
|
} from "@/framework/providers/contracts.js";
|
|
32
|
+
export { resolveAuthProvider, resolveNotificationProvider } from "@/framework/providers/adapter.js";
|
|
26
33
|
export { loadProviders } from "@/framework/providers/loader.js";
|
|
27
34
|
export {
|
|
28
35
|
clearAuthProvider,
|
|
36
|
+
clearNotificationProvider,
|
|
29
37
|
clearProvider,
|
|
30
38
|
getAuthProvider,
|
|
39
|
+
getNotificationProvider,
|
|
31
40
|
getProvider,
|
|
32
41
|
hasAuthProvider,
|
|
42
|
+
hasNotificationProvider,
|
|
33
43
|
hasProvider,
|
|
34
44
|
listProviders,
|
|
35
45
|
registerAuthProvider,
|
|
46
|
+
registerNotificationProvider,
|
|
36
47
|
registerProvider
|
|
37
48
|
} from "@/framework/providers/registry.js";
|
|
38
49
|
export { queue, queueJob, shouldQueue } from "@/framework/queue/queue.js";
|