@porulle/plugin-appointments 0.64.0 → 0.65.1
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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/services/provider-service.d.ts +0 -19
- package/dist/services/provider-service.d.ts.map +1 -1
- package/dist/services/provider-service.js +0 -4
- package/dist/types.d.ts +0 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -10
- package/src/index.ts +1 -2
- package/src/services/provider-service.ts +0 -5
- package/src/types.ts +0 -5
- package/dist/hooks.d.ts +0 -13
- package/dist/hooks.d.ts.map +0 -1
- package/dist/hooks.js +0 -12
- package/src/hooks.ts +0 -15
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Models service types, staff/resources (providers), weekly templates, breaks, day
|
|
|
53
53
|
|
|
54
54
|
## Configuration options
|
|
55
55
|
|
|
56
|
-
`AppointmentPluginOptions`: `
|
|
56
|
+
`AppointmentPluginOptions`: `minNoticeMinutes`, `maxAdvanceDays`.
|
|
57
57
|
|
|
58
58
|
## License
|
|
59
59
|
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,wBAAwB,EAAM,MAAM,YAAY,CAAC;AAE/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAcrD,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,0CAwCvE"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import { serviceTypes, providers, providerServices, weeklyAvailability, availabi
|
|
|
4
4
|
import { ProviderService } from "./services/provider-service.js";
|
|
5
5
|
import { SlotService } from "./services/slot-service.js";
|
|
6
6
|
import { BookingService } from "./services/booking-service.js";
|
|
7
|
-
import { buildHooks } from "./hooks.js";
|
|
8
7
|
import { buildServiceRoutes } from "./routes/services.js";
|
|
9
8
|
import { buildProviderRoutes } from "./routes/providers.js";
|
|
10
9
|
import { buildAvailabilityRoutes } from "./routes/availability.js";
|
|
@@ -41,7 +40,7 @@ export function appointmentPlugin(options = {}) {
|
|
|
41
40
|
bookings,
|
|
42
41
|
bookingPayments,
|
|
43
42
|
}),
|
|
44
|
-
hooks: () =>
|
|
43
|
+
hooks: () => [],
|
|
45
44
|
routes: (ctx) => {
|
|
46
45
|
const db = ctx.database.db;
|
|
47
46
|
const services = db ? createServices(db, options, ctx.services) : null;
|
|
@@ -49,25 +49,6 @@ export declare class ProviderService {
|
|
|
49
49
|
createdAt: Date;
|
|
50
50
|
updatedAt: Date;
|
|
51
51
|
} | null>;
|
|
52
|
-
getServiceTypeBySlug(slug: string): Promise<{
|
|
53
|
-
id: string;
|
|
54
|
-
organizationId: string;
|
|
55
|
-
name: string;
|
|
56
|
-
slug: string;
|
|
57
|
-
description: string | null;
|
|
58
|
-
durationMinutes: number;
|
|
59
|
-
priceCents: number;
|
|
60
|
-
currency: string;
|
|
61
|
-
mode: string;
|
|
62
|
-
bufferBeforeMinutes: number;
|
|
63
|
-
bufferAfterMinutes: number;
|
|
64
|
-
maxAdvanceDays: number;
|
|
65
|
-
minNoticeMins: number;
|
|
66
|
-
isActive: boolean;
|
|
67
|
-
metadata: Record<string, unknown> | null;
|
|
68
|
-
createdAt: Date;
|
|
69
|
-
updatedAt: Date;
|
|
70
|
-
} | null>;
|
|
71
52
|
listServiceTypes(): Promise<{
|
|
72
53
|
id: string;
|
|
73
54
|
organizationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-service.d.ts","sourceRoot":"","sources":["../../src/services/provider-service.ts"],"names":[],"mappings":"AAKA,OAAO,KAA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AM,CAAC;QAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;;;;;;;;IAUK,mBAAmB,CAAC,UAAU,EAAE,MAAM;;;;;;;;IAOtC,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC;QAC/D,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;;;;;;;;IAmBI,qBAAqB,CAAC,UAAU,EAAE,MAAM;;;;;;;;IAQxC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;QACvC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC/B,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC5B;;;;;;;;;IAWK,SAAS,CAAC,UAAU,EAAE,MAAM;;;;;;;;;IAK5B,WAAW,CAAC,EAAE,EAAE,MAAM;;;;;;;;;IAOtB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;QAC1C,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC7B;;;;;;;;;;IAYK,YAAY,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;IAM/B,cAAc,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;CAKhC"}
|
|
@@ -24,10 +24,6 @@ export class ProviderService {
|
|
|
24
24
|
const [row] = await this.db.select().from(serviceTypes).where(eq(serviceTypes.id, id));
|
|
25
25
|
return row ?? null;
|
|
26
26
|
}
|
|
27
|
-
async getServiceTypeBySlug(slug) {
|
|
28
|
-
const [row] = await this.db.select().from(serviceTypes).where(eq(serviceTypes.slug, slug));
|
|
29
|
-
return row ?? null;
|
|
30
|
-
}
|
|
31
27
|
async listServiceTypes() {
|
|
32
28
|
return this.db.select().from(serviceTypes).where(eq(serviceTypes.isActive, true)).orderBy(desc(serviceTypes.createdAt));
|
|
33
29
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -31,12 +31,7 @@ export interface SlotGenerationParams {
|
|
|
31
31
|
now?: Date | undefined;
|
|
32
32
|
}
|
|
33
33
|
export interface AppointmentPluginOptions {
|
|
34
|
-
defaultDurationMinutes?: number;
|
|
35
|
-
defaultBufferBeforeMinutes?: number;
|
|
36
|
-
defaultBufferAfterMinutes?: number;
|
|
37
34
|
minNoticeMinutes?: number;
|
|
38
35
|
maxAdvanceDays?: number;
|
|
39
|
-
defaultTimezone?: string;
|
|
40
|
-
autoConfirmCashBookings?: boolean;
|
|
41
36
|
}
|
|
42
37
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,eAAe,CAAC;AAIpD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhG,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,CAMtE,CAAC;AAIF,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;CACX;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,M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AW,eAAe;IAC9B,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;IACnC,gBAAgB,CAAC,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC;IACjD,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAID,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porulle/plugin-appointments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"@porulle/source": "./src/index.ts",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"./schema": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
"@porulle/source": "./src/schema.ts",
|
|
14
|
+
"types": "./dist/schema.d.ts",
|
|
15
|
+
"default": "./dist/schema.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20.19.0"
|
|
18
21
|
},
|
|
19
22
|
"dependencies": {
|
|
20
23
|
"@hono/zod-openapi": "^1.2.2",
|
|
21
24
|
"hono": "^4.12.5",
|
|
22
|
-
"@porulle/core": "0.
|
|
25
|
+
"@porulle/core": "0.65.1"
|
|
23
26
|
},
|
|
24
27
|
"devDependencies": {
|
|
25
28
|
"@types/node": "^24.5.2",
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
import { ProviderService } from "./services/provider-service.js";
|
|
9
9
|
import { SlotService } from "./services/slot-service.js";
|
|
10
10
|
import { BookingService } from "./services/booking-service.js";
|
|
11
|
-
import { buildHooks } from "./hooks.js";
|
|
12
11
|
import { buildServiceRoutes } from "./routes/services.js";
|
|
13
12
|
import { buildProviderRoutes } from "./routes/providers.js";
|
|
14
13
|
import { buildAvailabilityRoutes } from "./routes/availability.js";
|
|
@@ -53,7 +52,7 @@ export function appointmentPlugin(options: AppointmentPluginOptions = {}) {
|
|
|
53
52
|
bookingPayments,
|
|
54
53
|
}),
|
|
55
54
|
|
|
56
|
-
hooks: () =>
|
|
55
|
+
hooks: () => [],
|
|
57
56
|
|
|
58
57
|
routes: (ctx) => {
|
|
59
58
|
const db = ctx.database.db as Db;
|
|
@@ -39,11 +39,6 @@ export class ProviderService {
|
|
|
39
39
|
return row ?? null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
async getServiceTypeBySlug(slug: string) {
|
|
43
|
-
const [row] = await this.db.select().from(serviceTypes).where(eq(serviceTypes.slug, slug));
|
|
44
|
-
return row ?? null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
42
|
async listServiceTypes() {
|
|
48
43
|
return this.db.select().from(serviceTypes).where(eq(serviceTypes.isActive, true)).orderBy(desc(serviceTypes.createdAt));
|
|
49
44
|
}
|
package/src/types.ts
CHANGED
|
@@ -51,11 +51,6 @@ export interface SlotGenerationParams {
|
|
|
51
51
|
// ─── Plugin Options ─────────────────────────────────────────────────────────
|
|
52
52
|
|
|
53
53
|
export interface AppointmentPluginOptions {
|
|
54
|
-
defaultDurationMinutes?: number;
|
|
55
|
-
defaultBufferBeforeMinutes?: number;
|
|
56
|
-
defaultBufferAfterMinutes?: number;
|
|
57
54
|
minNoticeMinutes?: number;
|
|
58
55
|
maxAdvanceDays?: number;
|
|
59
|
-
defaultTimezone?: string;
|
|
60
|
-
autoConfirmCashBookings?: boolean;
|
|
61
56
|
}
|
package/dist/hooks.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { PluginHookRegistration } from "@porulle/core";
|
|
2
|
-
import type { AppointmentPluginOptions } from "./types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Appointment plugin hooks.
|
|
5
|
-
*
|
|
6
|
-
* Notification job enqueueing (reminders, cancellation notices, etc.) is handled
|
|
7
|
-
* directly by BookingService, not via hooks. The BookingService receives a
|
|
8
|
-
* JobsAdapter from the kernel's service container and enqueues jobs inline
|
|
9
|
-
* after successful operations. This avoids the dead-code problem where plugin
|
|
10
|
-
* hooks register handlers for custom keys that nobody fires.
|
|
11
|
-
*/
|
|
12
|
-
export declare function buildHooks(_options: AppointmentPluginOptions): PluginHookRegistration[];
|
|
13
|
-
//# sourceMappingURL=hooks.d.ts.map
|
package/dist/hooks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,wBAAwB,GAAG,sBAAsB,EAAE,CAEvF"}
|
package/dist/hooks.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Appointment plugin hooks.
|
|
3
|
-
*
|
|
4
|
-
* Notification job enqueueing (reminders, cancellation notices, etc.) is handled
|
|
5
|
-
* directly by BookingService, not via hooks. The BookingService receives a
|
|
6
|
-
* JobsAdapter from the kernel's service container and enqueues jobs inline
|
|
7
|
-
* after successful operations. This avoids the dead-code problem where plugin
|
|
8
|
-
* hooks register handlers for custom keys that nobody fires.
|
|
9
|
-
*/
|
|
10
|
-
export function buildHooks(_options) {
|
|
11
|
-
return [];
|
|
12
|
-
}
|
package/src/hooks.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { PluginHookRegistration } from "@porulle/core";
|
|
2
|
-
import type { AppointmentPluginOptions } from "./types.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Appointment plugin hooks.
|
|
6
|
-
*
|
|
7
|
-
* Notification job enqueueing (reminders, cancellation notices, etc.) is handled
|
|
8
|
-
* directly by BookingService, not via hooks. The BookingService receives a
|
|
9
|
-
* JobsAdapter from the kernel's service container and enqueues jobs inline
|
|
10
|
-
* after successful operations. This avoids the dead-code problem where plugin
|
|
11
|
-
* hooks register handlers for custom keys that nobody fires.
|
|
12
|
-
*/
|
|
13
|
-
export function buildHooks(_options: AppointmentPluginOptions): PluginHookRegistration[] {
|
|
14
|
-
return [];
|
|
15
|
-
}
|