@frigear-nu/events 0.2.4 → 0.3.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/module.d.mts
CHANGED
|
@@ -10,6 +10,11 @@ type EventStatus = 'draft' | 'published' | 'archived';
|
|
|
10
10
|
type TicketStatus = 'pending' | 'paid' | 'cancelled' | 'refunded' | 'expired';
|
|
11
11
|
type ModuleOptions = {
|
|
12
12
|
settings?: {
|
|
13
|
+
/**
|
|
14
|
+
* Ship an `eventmanager` role (role-based access control, `@frigear-nu/authorization`): every user's permissions
|
|
15
|
+
* plus `events:manage` and `events:pii`, just below `admin`. Defaults to `false`.
|
|
16
|
+
*/
|
|
17
|
+
roles?: boolean;
|
|
13
18
|
mcp?: boolean;
|
|
14
19
|
pages?: {
|
|
15
20
|
/** Event list. `true` = `/events`. */
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, hasNuxtModule, addServerImportsDir, addServerPlugin, addImports, addComponentsDir } from '@nuxt/kit';
|
|
2
2
|
import { registerModule, registerTailwindSource, registerLocales, resolvePagePath, registerDatabaseTable, addModuleRoutes, registerBootstrapProvider, inlineModuleRuntime, addModulePages, addOptionalMenuSource } from '@frigear-nu/module-kit/utils';
|
|
3
3
|
import { adminRoute } from '@frigear-nu/admin/utils';
|
|
4
|
-
import { addAuthScope } from '@frigear-nu/auth/utils';
|
|
4
|
+
import { addAuthScope, addAuthRole } from '@frigear-nu/auth/utils';
|
|
5
5
|
import { addMcpDefinitions } from '@frigear-nu/mcp/utils';
|
|
6
6
|
|
|
7
7
|
const MODULE_NAME = "@frigear-nu/events";
|
|
@@ -32,11 +32,14 @@ const module$1 = defineNuxtModule({
|
|
|
32
32
|
registerModule(MODULE_NAME, nuxt);
|
|
33
33
|
addAuthScope(
|
|
34
34
|
nuxt,
|
|
35
|
-
{ name: "events:manage", description: "Manage events, tickets and check-in (staff)" },
|
|
36
|
-
{ name: "tickets:read", description: "Read your tickets and event details" },
|
|
37
|
-
{ name: "tickets:write", description: "Buy tickets and pay for them" },
|
|
38
|
-
{ name: "events:pii", description: "See attendee names and emails through MCP tools (also needs events:manage)" }
|
|
35
|
+
{ name: "events:manage", description: "Manage events, tickets and check-in (staff)", aggregateTo: ["eventmanager"] },
|
|
36
|
+
{ name: "tickets:read", description: "Read your tickets and event details", aggregateTo: ["user"] },
|
|
37
|
+
{ name: "tickets:write", description: "Buy tickets and pay for them", aggregateTo: ["user"] },
|
|
38
|
+
{ name: "events:pii", description: "See attendee names and emails through MCP tools (also needs events:manage)", aggregateTo: ["eventmanager"] }
|
|
39
39
|
);
|
|
40
|
+
if (options.settings?.roles) {
|
|
41
|
+
addAuthRole(nuxt, { name: "eventmanager", label: "Event manager", description: "Manages events, tickets and check-in.", inherits: ["user"], inheritedBy: ["admin"] });
|
|
42
|
+
}
|
|
40
43
|
const resolver = createResolver(import.meta.url);
|
|
41
44
|
registerTailwindSource(nuxt, resolver.resolve("./runtime/app"));
|
|
42
45
|
registerLocales(nuxt, resolver.resolve("./runtime/i18n/lang"));
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
body?: (props: {
|
|
4
|
+
event: any;
|
|
5
|
+
body: any;
|
|
6
|
+
}) => any;
|
|
7
|
+
};
|
|
7
8
|
};
|
|
9
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
8
10
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
12
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
body?: (props: {
|
|
4
|
+
event: any;
|
|
5
|
+
body: any;
|
|
6
|
+
}) => any;
|
|
7
|
+
};
|
|
7
8
|
};
|
|
9
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
8
10
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
12
|
declare const _default: typeof __VLS_export;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frigear-nu/events",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Events with ticket types, addons, capacity, membership requirements, Stripe payments and QR check-in for the frigear ecosystem, built on @frigear-nu/payments.",
|
|
5
5
|
"homepage": "https://docs.frigear.dev/modules/features/events",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/Frigear-nu/frigear-nu.git",
|
|
9
9
|
"directory": "packages/events"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
@@ -35,31 +35,31 @@
|
|
|
35
35
|
"playground"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@frigear-nu/admin": "^0.
|
|
39
|
-
"@frigear-nu/
|
|
40
|
-
"@frigear-nu/
|
|
41
|
-
"@frigear-nu/
|
|
42
|
-
"@frigear-nu/
|
|
43
|
-
"@frigear-nu/
|
|
44
|
-
"@frigear-nu/
|
|
45
|
-
"@frigear-nu/
|
|
46
|
-
"@frigear-nu/users": "^
|
|
38
|
+
"@frigear-nu/admin": "^0.3.0",
|
|
39
|
+
"@frigear-nu/auth": "^0.4.0",
|
|
40
|
+
"@frigear-nu/mcp": "^0.3.0",
|
|
41
|
+
"@frigear-nu/module-kit": "^1.3.4",
|
|
42
|
+
"@frigear-nu/payments": "^0.3.0",
|
|
43
|
+
"@frigear-nu/stripe": "^0.3.0",
|
|
44
|
+
"@frigear-nu/subscriptions": "^0.3.0",
|
|
45
|
+
"@frigear-nu/ui": "^0.2.5",
|
|
46
|
+
"@frigear-nu/users": "^2.0.0",
|
|
47
47
|
"@libsql/client": "^0.18.0",
|
|
48
|
-
"@nuxt/kit": "^4.6.
|
|
48
|
+
"@nuxt/kit": "^4.6.4",
|
|
49
49
|
"@vueuse/core": "^15.0.0",
|
|
50
50
|
"drizzle-kit": "^0.31.11",
|
|
51
|
-
"drizzle-orm": "^0.45.
|
|
51
|
+
"drizzle-orm": "^0.45.4",
|
|
52
52
|
"h3": "^1.15.11",
|
|
53
|
-
"stripe": "^23.
|
|
53
|
+
"stripe": "^23.1.0",
|
|
54
54
|
"unstorage": "^1.17.5",
|
|
55
55
|
"uqr": "^0.1.3",
|
|
56
|
-
"zod": "^4.6.
|
|
56
|
+
"zod": "^4.6.7"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@frigear-nu/menu": "^0.2.
|
|
60
|
-
"@frigear-nu/widget": "^0.2.
|
|
59
|
+
"@frigear-nu/menu": "^0.2.4",
|
|
60
|
+
"@frigear-nu/widget": "^0.2.4",
|
|
61
61
|
"@nuxt/ui": "^4.12.0",
|
|
62
|
-
"@nuxthub/core": "^0.10.
|
|
62
|
+
"@nuxthub/core": "^0.10.12"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@frigear-nu/menu": {
|
|
@@ -73,22 +73,22 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@frigear-nu/menu": "^0.2.
|
|
77
|
-
"@frigear-nu/widget": "^0.2.
|
|
78
|
-
"@nuxt/devtools": "^
|
|
76
|
+
"@frigear-nu/menu": "^0.2.4",
|
|
77
|
+
"@frigear-nu/widget": "^0.2.4",
|
|
78
|
+
"@nuxt/devtools": "^4.1.0",
|
|
79
79
|
"@nuxt/eslint-config": "^1.17.0",
|
|
80
80
|
"@nuxt/module-builder": "^1.0.3",
|
|
81
|
-
"@nuxt/schema": "^4.6.
|
|
82
|
-
"@nuxt/test-utils": "^4.3.
|
|
81
|
+
"@nuxt/schema": "^4.6.4",
|
|
82
|
+
"@nuxt/test-utils": "^4.3.4",
|
|
83
83
|
"@nuxt/ui": "^4.12.0",
|
|
84
|
-
"@nuxthub/core": "^0.10.
|
|
85
|
-
"@types/node": "^26.6.
|
|
84
|
+
"@nuxthub/core": "^0.10.12",
|
|
85
|
+
"@types/node": "^26.6.6",
|
|
86
86
|
"changelogen": "^0.6.2",
|
|
87
|
-
"eslint": "^10.
|
|
88
|
-
"nuxt": "^4.6.
|
|
87
|
+
"eslint": "^10.14.0",
|
|
88
|
+
"nuxt": "^4.6.4",
|
|
89
89
|
"typescript": "^6.0.3",
|
|
90
|
-
"vitest": "^5.0
|
|
91
|
-
"vue-tsc": "^3.3.
|
|
90
|
+
"vitest": "^5.1.0",
|
|
91
|
+
"vue-tsc": "^3.3.14"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"dev:stub": "nuxt-module-build build --stub && nuxt prepare",
|