@axium/calendar 0.4.4 → 0.4.5
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/{client.d.ts → client/index.d.ts} +1 -1
- package/dist/{web_hook.d.ts → client/web_hook.d.ts} +2 -2
- package/dist/client/web_hook.js +4 -0
- package/dist/{hooks.d.ts → server/hooks.d.ts} +2 -2
- package/dist/{hooks.js → server/hooks.js} +2 -2
- package/dist/{server.d.ts → server/index.d.ts} +1 -1
- package/dist/{server.js → server/index.js} +1 -1
- package/package.json +5 -3
- package/dist/web_hook.js +0 -4
- /package/dist/{client.js → client/index.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AttendeeInit, Calendar, Event, EventData, EventFilter } from '
|
|
1
|
+
import type { AttendeeInit, Calendar, Event, EventData, EventFilter } from '../common.js';
|
|
2
2
|
export declare function getEvents(calendars: Calendar[], filter: EventFilter): Promise<Event[]>;
|
|
3
3
|
export interface EventInitFormData extends Record<Exclude<keyof EventData, 'attendees' | 'recurrenceExcludes'>, string> {
|
|
4
4
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import './
|
|
1
|
+
import '../common.js';
|
|
2
|
+
import './index.js';
|
|
3
3
|
export declare function statusText(): Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { count } from '@axium/server/database';
|
|
2
|
-
import '
|
|
3
|
-
import './
|
|
2
|
+
import '../common.js';
|
|
3
|
+
import './index.js';
|
|
4
4
|
export async function statusText() {
|
|
5
5
|
const { calendars, events } = await count('calendars', 'events');
|
|
6
6
|
return `${calendars} calendars containing ${events} events`;
|
|
@@ -6,7 +6,7 @@ import { addRoute } from '@axium/server/routes';
|
|
|
6
6
|
import { sql } from 'kysely';
|
|
7
7
|
import { jsonArrayFrom, jsonObjectFrom } from 'kysely/helpers/postgres';
|
|
8
8
|
import * as z from 'zod';
|
|
9
|
-
import { Attendee, CalendarInit, EventFilter, EventInit } from '
|
|
9
|
+
import { Attendee, CalendarInit, EventFilter, EventInit } from '../common.js';
|
|
10
10
|
function withEncoded(value) {
|
|
11
11
|
return (value.color === undefined || value.color === null
|
|
12
12
|
? value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/calendar",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "Calendar for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": "./dist/index.js",
|
|
24
|
+
"./server": "./dist/server/index.js",
|
|
25
|
+
"./client": "./dist/client/index.js",
|
|
24
26
|
"./*": "./dist/*.js",
|
|
25
27
|
"./components": "./lib/index.js",
|
|
26
28
|
"./components/*": "./lib/*.svelte"
|
|
@@ -50,9 +52,9 @@
|
|
|
50
52
|
"axium": {
|
|
51
53
|
"server": {
|
|
52
54
|
"routes": "routes",
|
|
53
|
-
"hooks": "./dist/hooks.js",
|
|
55
|
+
"hooks": "./dist/server/hooks.js",
|
|
54
56
|
"db": "./db.json",
|
|
55
|
-
"web_client_hooks": "./dist/web_hook.js"
|
|
57
|
+
"web_client_hooks": "./dist/client/web_hook.js"
|
|
56
58
|
},
|
|
57
59
|
"apps": [
|
|
58
60
|
{
|
package/dist/web_hook.js
DELETED
|
File without changes
|