@porulle/plugin-appointments 0.10.4 → 0.10.6

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.
@@ -13,22 +13,22 @@ export declare class ProviderService {
13
13
  bufferAfterMinutes?: number;
14
14
  }): Promise<{
15
15
  id: string;
16
- createdAt: Date;
17
16
  name: string;
18
- organizationId: string;
17
+ mode: string;
18
+ createdAt: Date;
19
+ updatedAt: Date;
19
20
  slug: string;
21
+ metadata: Record<string, unknown> | null;
22
+ organizationId: string;
20
23
  description: string | null;
24
+ isActive: boolean;
25
+ currency: string;
21
26
  durationMinutes: number;
22
27
  priceCents: number;
23
- currency: string;
24
- mode: string;
25
28
  bufferBeforeMinutes: number;
26
29
  bufferAfterMinutes: number;
27
30
  maxAdvanceDays: number;
28
31
  minNoticeMins: number;
29
- isActive: boolean;
30
- metadata: Record<string, unknown> | null;
31
- updatedAt: Date;
32
32
  } | undefined>;
33
33
  getServiceType(id: string): Promise<{
34
34
  id: string;
@@ -117,22 +117,22 @@ export declare class ProviderService {
117
117
  } | null>;
118
118
  deleteServiceType(id: string): Promise<{
119
119
  id: string;
120
- createdAt: Date;
121
120
  name: string;
122
- organizationId: string;
121
+ mode: string;
122
+ createdAt: Date;
123
+ updatedAt: Date;
123
124
  slug: string;
125
+ metadata: Record<string, unknown> | null;
126
+ organizationId: string;
124
127
  description: string | null;
128
+ isActive: boolean;
129
+ currency: string;
125
130
  durationMinutes: number;
126
131
  priceCents: number;
127
- currency: string;
128
- mode: string;
129
132
  bufferBeforeMinutes: number;
130
133
  bufferAfterMinutes: number;
131
134
  maxAdvanceDays: number;
132
135
  minNoticeMins: number;
133
- isActive: boolean;
134
- metadata: Record<string, unknown> | null;
135
- updatedAt: Date;
136
136
  } | null>;
137
137
  createProvider(orgId: string, data: {
138
138
  name: string;
@@ -142,17 +142,17 @@ export declare class ProviderService {
142
142
  metadata?: Record<string, unknown>;
143
143
  }): Promise<{
144
144
  id: string;
145
- createdAt: Date;
146
145
  name: string;
147
- organizationId: string;
148
- isActive: boolean;
149
- metadata: Record<string, unknown> | null;
146
+ email: string | null;
147
+ createdAt: Date;
150
148
  updatedAt: Date;
151
149
  userId: string | null;
152
- bio: string | null;
153
- email: string | null;
150
+ metadata: Record<string, unknown> | null;
151
+ organizationId: string;
152
+ isActive: boolean;
154
153
  phone: string | null;
155
154
  timezone: string;
155
+ bio: string | null;
156
156
  } | undefined>;
157
157
  getProvider(id: string): Promise<{
158
158
  id: string;
@@ -205,26 +205,26 @@ export declare class ProviderService {
205
205
  } | null>;
206
206
  deleteProvider(id: string): Promise<{
207
207
  id: string;
208
- createdAt: Date;
209
208
  name: string;
210
- organizationId: string;
211
- isActive: boolean;
212
- metadata: Record<string, unknown> | null;
209
+ email: string | null;
210
+ createdAt: Date;
213
211
  updatedAt: Date;
214
212
  userId: string | null;
215
- bio: string | null;
216
- email: string | null;
213
+ metadata: Record<string, unknown> | null;
214
+ organizationId: string;
215
+ isActive: boolean;
217
216
  phone: string | null;
218
217
  timezone: string;
218
+ bio: string | null;
219
219
  } | null>;
220
220
  linkServiceType(providerId: string, serviceTypeId: string, overrides?: {
221
221
  customDurationMinutes?: number;
222
222
  customPriceCents?: number;
223
223
  }): Promise<{
224
224
  id: string;
225
+ createdAt: Date;
225
226
  providerId: string;
226
227
  serviceTypeId: string;
227
- createdAt: Date;
228
228
  customDurationMinutes: number | null;
229
229
  customPriceCents: number | null;
230
230
  } | undefined>;
@@ -242,9 +242,9 @@ export declare class ProviderService {
242
242
  endTime: string;
243
243
  }>): Promise<{
244
244
  id: string;
245
+ createdAt: Date;
245
246
  providerId: string;
246
247
  startTime: string;
247
- createdAt: Date;
248
248
  dayOfWeek: number;
249
249
  endTime: string;
250
250
  }[]>;
@@ -263,12 +263,12 @@ export declare class ProviderService {
263
263
  label?: string | undefined;
264
264
  }): Promise<{
265
265
  id: string;
266
+ createdAt: Date;
266
267
  providerId: string;
268
+ label: string | null;
267
269
  startTime: string;
268
- createdAt: Date;
269
270
  dayOfWeek: number | null;
270
271
  endTime: string;
271
- label: string | null;
272
272
  } | undefined>;
273
273
  getBreaks(providerId: string): Promise<{
274
274
  id: string;
@@ -281,12 +281,12 @@ export declare class ProviderService {
281
281
  }[]>;
282
282
  deleteBreak(id: string): Promise<{
283
283
  id: string;
284
+ createdAt: Date;
284
285
  providerId: string;
286
+ label: string | null;
285
287
  startTime: string;
286
- createdAt: Date;
287
288
  dayOfWeek: number | null;
288
289
  endTime: string;
289
- label: string | null;
290
290
  } | null>;
291
291
  addOverride(providerId: string, data: {
292
292
  date: string;
@@ -295,14 +295,14 @@ export declare class ProviderService {
295
295
  endTime?: string | undefined;
296
296
  reason?: string | undefined;
297
297
  }): Promise<{
298
+ date: string;
298
299
  id: string;
300
+ createdAt: Date;
299
301
  providerId: string;
302
+ reason: string | null;
300
303
  startTime: string | null;
301
- createdAt: Date;
302
- date: string;
303
304
  endTime: string | null;
304
305
  isAvailable: boolean;
305
- reason: string | null;
306
306
  } | undefined>;
307
307
  getOverrides(providerId: string): Promise<{
308
308
  id: string;
@@ -315,14 +315,14 @@ export declare class ProviderService {
315
315
  createdAt: Date;
316
316
  }[]>;
317
317
  deleteOverride(id: string): Promise<{
318
+ date: string;
318
319
  id: string;
320
+ createdAt: Date;
319
321
  providerId: string;
322
+ reason: string | null;
320
323
  startTime: string | null;
321
- createdAt: Date;
322
- date: string;
323
324
  endTime: string | null;
324
325
  isAvailable: boolean;
325
- reason: string | null;
326
326
  } | null>;
327
327
  }
328
328
  //# sourceMappingURL=provider-service.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porulle/plugin-appointments",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -19,15 +19,15 @@
19
19
  "dependencies": {
20
20
  "@hono/zod-openapi": "^1.2.2",
21
21
  "hono": "^4.12.5",
22
- "@porulle/core": "0.10.4"
22
+ "@porulle/core": "0.10.6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^24.5.2",
26
26
  "eslint": "^9.39.1",
27
27
  "typescript": "5.9.2",
28
28
  "vitest": "^3.2.4",
29
- "@porulle/eslint-config": "0.1.0",
30
- "@porulle/typescript-config": "0.1.0"
29
+ "@porulle/typescript-config": "0.1.0",
30
+ "@porulle/eslint-config": "0.1.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"