@ordinatio/scheduling-api 0.5.1 → 0.7.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.
@@ -1,4 +1,46 @@
1
- import { SchedulingDb, CalendarSyncAdapter, WebhookTransport, PaymentAdapter } from '@ordinatio/scheduling';
1
+ import { SchedulingDb, CalendarSyncAdapter, WebhookTransport, TextProvider, PaymentAdapter } from '@ordinatio/scheduling';
2
+
3
+ /** One record a business must add at its domain host. `name` is relative to the domain, with "@" for the domain itself. */
4
+ interface SendingDomainRecord {
5
+ purpose: 'spf' | 'dkim' | 'dmarc' | 'other';
6
+ type: 'TXT' | 'CNAME';
7
+ name: string;
8
+ /** What the published record must say. */
9
+ value: string;
10
+ /** "contains" suits SPF, where the record may list other senders too: every term of `value` must appear as a whole term. Default: "exact". */
11
+ match?: 'exact' | 'contains';
12
+ /** A record that is not required never blocks verification. Default: true. */
13
+ required?: boolean;
14
+ }
15
+ /** The records for one domain. A provider that issues a different token per domain needs the function form. */
16
+ type SendingDomainRecords = SendingDomainRecord[] | ((domain: string) => SendingDomainRecord[]);
17
+ /** The two lookups used, shaped like node:dns/promises `resolveTxt` and `resolveCname`. */
18
+ interface DnsResolver {
19
+ resolveTxt(name: string): Promise<string[][]>;
20
+ resolveCname(name: string): Promise<string[]>;
21
+ }
22
+ type RecordStatus = 'found' | 'missing' | 'wrong' | 'unknown';
23
+ interface RecordCheck {
24
+ record: SendingDomainRecord;
25
+ /** The full name to publish at, such as "s1._domainkey.mail.acme.example". */
26
+ host: string;
27
+ status: RecordStatus;
28
+ /** A sentence a business owner can act on. */
29
+ message: string;
30
+ }
31
+ interface SendingDomainCheck {
32
+ domain: string;
33
+ /** True when every required record is found. */
34
+ verified: boolean;
35
+ records: RecordCheck[];
36
+ }
37
+ /** Returns the domain in lower case, or null when it is not a plain domain name. */
38
+ declare function normalizeSendingDomain(raw: string): string | null;
39
+ /** Looks up every record. Never throws: a lookup that fails is reported as "unknown" and leaves the domain unverified. */
40
+ declare function checkSendingDomain(config: {
41
+ records: SendingDomainRecords;
42
+ resolver: DnsResolver;
43
+ }, rawDomain: string): Promise<SendingDomainCheck>;
2
44
 
3
45
  /** Named limits. A host that counts requests maps each name to its own numbers. */
4
46
  type RateLimitTier = 'PUBLIC_BOOKING' | 'AVAILABILITY' | 'GENERAL' | 'CREATE' | 'UPDATE' | 'DELETE' | 'PAYMENT_INTENT' | 'RESOLVE_REFUND' | 'INTERNAL' | 'SETTINGS';
@@ -257,6 +299,19 @@ interface BrandSettings {
257
299
  * A rejection counts as "no".
258
300
  */
259
301
  isSendingDomainVerified?(domain: string, organizationId: string): boolean | Promise<boolean>;
302
+ /**
303
+ * Checks a sending domain record by record, so a setup screen can say exactly what is missing. With
304
+ * `createSendingDomainVerifier` pass its `check`. Without it the sending-domain check route answers 501.
305
+ */
306
+ checkSendingDomain?(domain: string, organizationId: string): Promise<SendingDomainCheck>;
307
+ }
308
+ /**
309
+ * Switches per-organization text-message settings on: each organization picks a provider and a sending number. A host that
310
+ * supplies none has it off: the routes answer 501. The host keeps the provider accounts; nothing secret is stored per organization.
311
+ */
312
+ interface TextMessageSettings {
313
+ /** The providers this server has accounts for. Default: Telnyx and Twilio. */
314
+ providers?: readonly TextProvider[];
260
315
  }
261
316
  /** Switches data export and erasure on. A host that supplies none has them off: the routes answer 501. */
262
317
  type PrivacySettings = Record<string, never>;
@@ -316,6 +371,10 @@ interface SchedulingHost {
316
371
  * also asks for it (see `processPendingNotifications`' `brand` option). Default: off, so the routes answer 501.
317
372
  */
318
373
  brand?: BrandSettings | null;
374
+ /**
375
+ * Turns on per-organization text-message settings. Needs the text-settings table. Default: off, so the routes answer 501.
376
+ */
377
+ textMessages?: TextMessageSettings | null;
319
378
  /** The domain used after the "@" in calendar-file event ids. Keep it unchanged once calendars have subscribed. Default: ordinatio-scheduling. */
320
379
  icalUidDomain?(): string | null | undefined;
321
380
  /** Records what happened in the activity feed. Default: nothing is recorded. */
@@ -383,4 +442,4 @@ interface Route {
383
442
  handler: RouteHandler;
384
443
  }
385
444
 
386
- export type { AvailabilityCache as A, BalancePaymentControl as B, CacheOptions as C, HttpMethod as H, InternalAccess as I, NoShowPolicy as N, PublicBookingResolver as P, Route as R, SchedulingHost as S, WaitlistSettings as W, RateLimitTier as a, SchedulingCache as b, PublicOrganizationResolver as c, StaffResolver as d, StaffContext as e, ActivityEntry as f, ActivityLog as g, AppointmentEventSink as h, BookingClientResolver as i, BookingPolicy as j, BrandSettings as k, CalendarConnectOutcome as l, CalendarConnector as m, CalendarConnectors as n, CalendarVisibility as o, PrivacySettings as p, PublicBookingContext as q, PublicBookingKind as r, PublicOrganization as s, ResolvedHost as t, RouteContext as u, RouteHandler as v, RoutingFormSettings as w, StaffDirectory as x, WebhookSettings as y, WorkerCommands as z };
445
+ export { type AvailabilityCache as A, type BalancePaymentControl as B, type CacheOptions as C, type DnsResolver as D, type RouteHandler as E, type RoutingFormSettings as F, type StaffDirectory as G, type HttpMethod as H, type InternalAccess as I, type WebhookSettings as J, type WorkerCommands as K, checkSendingDomain as L, normalizeSendingDomain as M, type NoShowPolicy as N, type PublicBookingResolver as P, type Route as R, type SchedulingHost as S, type WaitlistSettings as W, type RateLimitTier as a, type SchedulingCache as b, type PublicOrganizationResolver as c, type SendingDomainCheck as d, type SendingDomainRecord as e, type SendingDomainRecords as f, type StaffResolver as g, type StaffContext as h, type ActivityEntry as i, type ActivityLog as j, type AppointmentEventSink as k, type BookingClientResolver as l, type BookingPolicy as m, type BrandSettings as n, type CalendarConnectOutcome as o, type CalendarConnector as p, type CalendarConnectors as q, type CalendarVisibility as r, type PrivacySettings as s, type PublicBookingContext as t, type PublicBookingKind as u, type PublicOrganization as v, type RecordCheck as w, type RecordStatus as x, type ResolvedHost as y, type RouteContext as z };
@@ -1,4 +1,46 @@
1
- import { SchedulingDb, CalendarSyncAdapter, WebhookTransport, PaymentAdapter } from '@ordinatio/scheduling';
1
+ import { SchedulingDb, CalendarSyncAdapter, WebhookTransport, TextProvider, PaymentAdapter } from '@ordinatio/scheduling';
2
+
3
+ /** One record a business must add at its domain host. `name` is relative to the domain, with "@" for the domain itself. */
4
+ interface SendingDomainRecord {
5
+ purpose: 'spf' | 'dkim' | 'dmarc' | 'other';
6
+ type: 'TXT' | 'CNAME';
7
+ name: string;
8
+ /** What the published record must say. */
9
+ value: string;
10
+ /** "contains" suits SPF, where the record may list other senders too: every term of `value` must appear as a whole term. Default: "exact". */
11
+ match?: 'exact' | 'contains';
12
+ /** A record that is not required never blocks verification. Default: true. */
13
+ required?: boolean;
14
+ }
15
+ /** The records for one domain. A provider that issues a different token per domain needs the function form. */
16
+ type SendingDomainRecords = SendingDomainRecord[] | ((domain: string) => SendingDomainRecord[]);
17
+ /** The two lookups used, shaped like node:dns/promises `resolveTxt` and `resolveCname`. */
18
+ interface DnsResolver {
19
+ resolveTxt(name: string): Promise<string[][]>;
20
+ resolveCname(name: string): Promise<string[]>;
21
+ }
22
+ type RecordStatus = 'found' | 'missing' | 'wrong' | 'unknown';
23
+ interface RecordCheck {
24
+ record: SendingDomainRecord;
25
+ /** The full name to publish at, such as "s1._domainkey.mail.acme.example". */
26
+ host: string;
27
+ status: RecordStatus;
28
+ /** A sentence a business owner can act on. */
29
+ message: string;
30
+ }
31
+ interface SendingDomainCheck {
32
+ domain: string;
33
+ /** True when every required record is found. */
34
+ verified: boolean;
35
+ records: RecordCheck[];
36
+ }
37
+ /** Returns the domain in lower case, or null when it is not a plain domain name. */
38
+ declare function normalizeSendingDomain(raw: string): string | null;
39
+ /** Looks up every record. Never throws: a lookup that fails is reported as "unknown" and leaves the domain unverified. */
40
+ declare function checkSendingDomain(config: {
41
+ records: SendingDomainRecords;
42
+ resolver: DnsResolver;
43
+ }, rawDomain: string): Promise<SendingDomainCheck>;
2
44
 
3
45
  /** Named limits. A host that counts requests maps each name to its own numbers. */
4
46
  type RateLimitTier = 'PUBLIC_BOOKING' | 'AVAILABILITY' | 'GENERAL' | 'CREATE' | 'UPDATE' | 'DELETE' | 'PAYMENT_INTENT' | 'RESOLVE_REFUND' | 'INTERNAL' | 'SETTINGS';
@@ -257,6 +299,19 @@ interface BrandSettings {
257
299
  * A rejection counts as "no".
258
300
  */
259
301
  isSendingDomainVerified?(domain: string, organizationId: string): boolean | Promise<boolean>;
302
+ /**
303
+ * Checks a sending domain record by record, so a setup screen can say exactly what is missing. With
304
+ * `createSendingDomainVerifier` pass its `check`. Without it the sending-domain check route answers 501.
305
+ */
306
+ checkSendingDomain?(domain: string, organizationId: string): Promise<SendingDomainCheck>;
307
+ }
308
+ /**
309
+ * Switches per-organization text-message settings on: each organization picks a provider and a sending number. A host that
310
+ * supplies none has it off: the routes answer 501. The host keeps the provider accounts; nothing secret is stored per organization.
311
+ */
312
+ interface TextMessageSettings {
313
+ /** The providers this server has accounts for. Default: Telnyx and Twilio. */
314
+ providers?: readonly TextProvider[];
260
315
  }
261
316
  /** Switches data export and erasure on. A host that supplies none has them off: the routes answer 501. */
262
317
  type PrivacySettings = Record<string, never>;
@@ -316,6 +371,10 @@ interface SchedulingHost {
316
371
  * also asks for it (see `processPendingNotifications`' `brand` option). Default: off, so the routes answer 501.
317
372
  */
318
373
  brand?: BrandSettings | null;
374
+ /**
375
+ * Turns on per-organization text-message settings. Needs the text-settings table. Default: off, so the routes answer 501.
376
+ */
377
+ textMessages?: TextMessageSettings | null;
319
378
  /** The domain used after the "@" in calendar-file event ids. Keep it unchanged once calendars have subscribed. Default: ordinatio-scheduling. */
320
379
  icalUidDomain?(): string | null | undefined;
321
380
  /** Records what happened in the activity feed. Default: nothing is recorded. */
@@ -383,4 +442,4 @@ interface Route {
383
442
  handler: RouteHandler;
384
443
  }
385
444
 
386
- export type { AvailabilityCache as A, BalancePaymentControl as B, CacheOptions as C, HttpMethod as H, InternalAccess as I, NoShowPolicy as N, PublicBookingResolver as P, Route as R, SchedulingHost as S, WaitlistSettings as W, RateLimitTier as a, SchedulingCache as b, PublicOrganizationResolver as c, StaffResolver as d, StaffContext as e, ActivityEntry as f, ActivityLog as g, AppointmentEventSink as h, BookingClientResolver as i, BookingPolicy as j, BrandSettings as k, CalendarConnectOutcome as l, CalendarConnector as m, CalendarConnectors as n, CalendarVisibility as o, PrivacySettings as p, PublicBookingContext as q, PublicBookingKind as r, PublicOrganization as s, ResolvedHost as t, RouteContext as u, RouteHandler as v, RoutingFormSettings as w, StaffDirectory as x, WebhookSettings as y, WorkerCommands as z };
445
+ export { type AvailabilityCache as A, type BalancePaymentControl as B, type CacheOptions as C, type DnsResolver as D, type RouteHandler as E, type RoutingFormSettings as F, type StaffDirectory as G, type HttpMethod as H, type InternalAccess as I, type WebhookSettings as J, type WorkerCommands as K, checkSendingDomain as L, normalizeSendingDomain as M, type NoShowPolicy as N, type PublicBookingResolver as P, type Route as R, type SchedulingHost as S, type WaitlistSettings as W, type RateLimitTier as a, type SchedulingCache as b, type PublicOrganizationResolver as c, type SendingDomainCheck as d, type SendingDomainRecord as e, type SendingDomainRecords as f, type StaffResolver as g, type StaffContext as h, type ActivityEntry as i, type ActivityLog as j, type AppointmentEventSink as k, type BookingClientResolver as l, type BookingPolicy as m, type BrandSettings as n, type CalendarConnectOutcome as o, type CalendarConnector as p, type CalendarConnectors as q, type CalendarVisibility as r, type PrivacySettings as s, type PublicBookingContext as t, type PublicBookingKind as u, type PublicOrganization as v, type RecordCheck as w, type RecordStatus as x, type ResolvedHost as y, type RouteContext as z };
@@ -515,4 +515,10 @@ declare const BrandSchema: z.ZodObject<{
515
515
  fromEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
516
  }, z.core.$strict>;
517
517
 
518
- export { type BookingPageConfig, BookingPageConfigSchema, type BookingPageTheme, BookingPageThemeSchema, BrandSchema, CancelRecurringScopeSchema, type CancelRecurringSeriesInput, CancelRecurringSeriesSchema, type CreateAppointmentCategoryInput, CreateAppointmentCategorySchema, type CreateAppointmentTypeInput, CreateAppointmentTypeSchema, type CreateAvailabilityRuleInput, CreateAvailabilityRuleSchema, type CreateCalendarInput, CreateCalendarSchema, type CreateCouponCodeInput, CreateCouponCodeSchema, type CreateNotificationTemplateInput, CreateNotificationTemplateSchema, type CreatePackagePurchaseInput, CreatePackagePurchaseSchema, type CreateRecurringSeriesInput, CreateRecurringSeriesSchema, type CreateRoutingFormInput, CreateRoutingFormSchema, type CreateServicePackageInput, CreateServicePackageSchema, type CreateWebhookEndpointInput, CreateWebhookEndpointSchema, DEFAULT_CANCELLATION_POLICY, IntakeFormFieldSchema, type NoShowPrevention, type NoShowPreventionAction, NoShowPreventionActionSchema, NotificationChannelSchema, NotificationTriggerSchema, type OrgCancellationPolicy, OrgCancellationPolicySchema, PrivacyEraseSchema, PrivacySubjectSchema, RecurringFrequencySchema, RouteClientSchema, SLOT_GRANULARITY_DEFAULT, SLOT_GRANULARITY_OPTIONS, type SlotGranularityMinutes, TestRoutingFormSchema, type UpdateAppointmentCategoryInput, UpdateAppointmentCategorySchema, type UpdateAppointmentTypeInput, UpdateAppointmentTypeSchema, type UpdateBookingPageInput, UpdateBookingPageSchema, type UpdateCalendarInput, UpdateCalendarSchema, type UpdateCouponCodeInput, UpdateCouponCodeSchema, type UpdateNotificationTemplateInput, UpdateNotificationTemplateSchema, type UpdatePackagePurchaseInput, UpdatePackagePurchaseSchema, type UpdateRoutingFormInput, UpdateRoutingFormSchema, type UpdateServicePackageInput, UpdateServicePackageSchema };
518
+ declare const TextSettingsSchema: z.ZodObject<{
519
+ provider: z.ZodString;
520
+ fromNumber: z.ZodString;
521
+ enabled: z.ZodOptional<z.ZodBoolean>;
522
+ }, z.core.$strict>;
523
+
524
+ export { type BookingPageConfig, BookingPageConfigSchema, type BookingPageTheme, BookingPageThemeSchema, BrandSchema, CancelRecurringScopeSchema, type CancelRecurringSeriesInput, CancelRecurringSeriesSchema, type CreateAppointmentCategoryInput, CreateAppointmentCategorySchema, type CreateAppointmentTypeInput, CreateAppointmentTypeSchema, type CreateAvailabilityRuleInput, CreateAvailabilityRuleSchema, type CreateCalendarInput, CreateCalendarSchema, type CreateCouponCodeInput, CreateCouponCodeSchema, type CreateNotificationTemplateInput, CreateNotificationTemplateSchema, type CreatePackagePurchaseInput, CreatePackagePurchaseSchema, type CreateRecurringSeriesInput, CreateRecurringSeriesSchema, type CreateRoutingFormInput, CreateRoutingFormSchema, type CreateServicePackageInput, CreateServicePackageSchema, type CreateWebhookEndpointInput, CreateWebhookEndpointSchema, DEFAULT_CANCELLATION_POLICY, IntakeFormFieldSchema, type NoShowPrevention, type NoShowPreventionAction, NoShowPreventionActionSchema, NotificationChannelSchema, NotificationTriggerSchema, type OrgCancellationPolicy, OrgCancellationPolicySchema, PrivacyEraseSchema, PrivacySubjectSchema, RecurringFrequencySchema, RouteClientSchema, SLOT_GRANULARITY_DEFAULT, SLOT_GRANULARITY_OPTIONS, type SlotGranularityMinutes, TestRoutingFormSchema, TextSettingsSchema, type UpdateAppointmentCategoryInput, UpdateAppointmentCategorySchema, type UpdateAppointmentTypeInput, UpdateAppointmentTypeSchema, type UpdateBookingPageInput, UpdateBookingPageSchema, type UpdateCalendarInput, UpdateCalendarSchema, type UpdateCouponCodeInput, UpdateCouponCodeSchema, type UpdateNotificationTemplateInput, UpdateNotificationTemplateSchema, type UpdatePackagePurchaseInput, UpdatePackagePurchaseSchema, type UpdateRoutingFormInput, UpdateRoutingFormSchema, type UpdateServicePackageInput, UpdateServicePackageSchema };
@@ -515,4 +515,10 @@ declare const BrandSchema: z.ZodObject<{
515
515
  fromEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
516
  }, z.core.$strict>;
517
517
 
518
- export { type BookingPageConfig, BookingPageConfigSchema, type BookingPageTheme, BookingPageThemeSchema, BrandSchema, CancelRecurringScopeSchema, type CancelRecurringSeriesInput, CancelRecurringSeriesSchema, type CreateAppointmentCategoryInput, CreateAppointmentCategorySchema, type CreateAppointmentTypeInput, CreateAppointmentTypeSchema, type CreateAvailabilityRuleInput, CreateAvailabilityRuleSchema, type CreateCalendarInput, CreateCalendarSchema, type CreateCouponCodeInput, CreateCouponCodeSchema, type CreateNotificationTemplateInput, CreateNotificationTemplateSchema, type CreatePackagePurchaseInput, CreatePackagePurchaseSchema, type CreateRecurringSeriesInput, CreateRecurringSeriesSchema, type CreateRoutingFormInput, CreateRoutingFormSchema, type CreateServicePackageInput, CreateServicePackageSchema, type CreateWebhookEndpointInput, CreateWebhookEndpointSchema, DEFAULT_CANCELLATION_POLICY, IntakeFormFieldSchema, type NoShowPrevention, type NoShowPreventionAction, NoShowPreventionActionSchema, NotificationChannelSchema, NotificationTriggerSchema, type OrgCancellationPolicy, OrgCancellationPolicySchema, PrivacyEraseSchema, PrivacySubjectSchema, RecurringFrequencySchema, RouteClientSchema, SLOT_GRANULARITY_DEFAULT, SLOT_GRANULARITY_OPTIONS, type SlotGranularityMinutes, TestRoutingFormSchema, type UpdateAppointmentCategoryInput, UpdateAppointmentCategorySchema, type UpdateAppointmentTypeInput, UpdateAppointmentTypeSchema, type UpdateBookingPageInput, UpdateBookingPageSchema, type UpdateCalendarInput, UpdateCalendarSchema, type UpdateCouponCodeInput, UpdateCouponCodeSchema, type UpdateNotificationTemplateInput, UpdateNotificationTemplateSchema, type UpdatePackagePurchaseInput, UpdatePackagePurchaseSchema, type UpdateRoutingFormInput, UpdateRoutingFormSchema, type UpdateServicePackageInput, UpdateServicePackageSchema };
518
+ declare const TextSettingsSchema: z.ZodObject<{
519
+ provider: z.ZodString;
520
+ fromNumber: z.ZodString;
521
+ enabled: z.ZodOptional<z.ZodBoolean>;
522
+ }, z.core.$strict>;
523
+
524
+ export { type BookingPageConfig, BookingPageConfigSchema, type BookingPageTheme, BookingPageThemeSchema, BrandSchema, CancelRecurringScopeSchema, type CancelRecurringSeriesInput, CancelRecurringSeriesSchema, type CreateAppointmentCategoryInput, CreateAppointmentCategorySchema, type CreateAppointmentTypeInput, CreateAppointmentTypeSchema, type CreateAvailabilityRuleInput, CreateAvailabilityRuleSchema, type CreateCalendarInput, CreateCalendarSchema, type CreateCouponCodeInput, CreateCouponCodeSchema, type CreateNotificationTemplateInput, CreateNotificationTemplateSchema, type CreatePackagePurchaseInput, CreatePackagePurchaseSchema, type CreateRecurringSeriesInput, CreateRecurringSeriesSchema, type CreateRoutingFormInput, CreateRoutingFormSchema, type CreateServicePackageInput, CreateServicePackageSchema, type CreateWebhookEndpointInput, CreateWebhookEndpointSchema, DEFAULT_CANCELLATION_POLICY, IntakeFormFieldSchema, type NoShowPrevention, type NoShowPreventionAction, NoShowPreventionActionSchema, NotificationChannelSchema, NotificationTriggerSchema, type OrgCancellationPolicy, OrgCancellationPolicySchema, PrivacyEraseSchema, PrivacySubjectSchema, RecurringFrequencySchema, RouteClientSchema, SLOT_GRANULARITY_DEFAULT, SLOT_GRANULARITY_OPTIONS, type SlotGranularityMinutes, TestRoutingFormSchema, TextSettingsSchema, type UpdateAppointmentCategoryInput, UpdateAppointmentCategorySchema, type UpdateAppointmentTypeInput, UpdateAppointmentTypeSchema, type UpdateBookingPageInput, UpdateBookingPageSchema, type UpdateCalendarInput, UpdateCalendarSchema, type UpdateCouponCodeInput, UpdateCouponCodeSchema, type UpdateNotificationTemplateInput, UpdateNotificationTemplateSchema, type UpdatePackagePurchaseInput, UpdatePackagePurchaseSchema, type UpdateRoutingFormInput, UpdateRoutingFormSchema, type UpdateServicePackageInput, UpdateServicePackageSchema };
@@ -49,6 +49,7 @@ __export(schemas_exports, {
49
49
  SLOT_GRANULARITY_DEFAULT: () => SLOT_GRANULARITY_DEFAULT,
50
50
  SLOT_GRANULARITY_OPTIONS: () => SLOT_GRANULARITY_OPTIONS,
51
51
  TestRoutingFormSchema: () => TestRoutingFormSchema,
52
+ TextSettingsSchema: () => TextSettingsSchema,
52
53
  UpdateAppointmentCategorySchema: () => UpdateAppointmentCategorySchema,
53
54
  UpdateAppointmentTypeSchema: () => UpdateAppointmentTypeSchema,
54
55
  UpdateBookingPageSchema: () => UpdateBookingPageSchema,
@@ -491,6 +492,14 @@ var BrandSchema = import_zod8.z.object({
491
492
  fromName: optionalText(200),
492
493
  fromEmail: optionalText(400)
493
494
  }).strict();
495
+
496
+ // src/schemas/text-settings.schema.ts
497
+ var import_zod9 = require("zod");
498
+ var TextSettingsSchema = import_zod9.z.object({
499
+ provider: import_zod9.z.string().max(40),
500
+ fromNumber: import_zod9.z.string().max(40),
501
+ enabled: import_zod9.z.boolean().optional()
502
+ }).strict();
494
503
  // Annotate the CommonJS export names for ESM import in node:
495
504
  0 && (module.exports = {
496
505
  BookingPageConfigSchema,
@@ -522,6 +531,7 @@ var BrandSchema = import_zod8.z.object({
522
531
  SLOT_GRANULARITY_DEFAULT,
523
532
  SLOT_GRANULARITY_OPTIONS,
524
533
  TestRoutingFormSchema,
534
+ TextSettingsSchema,
525
535
  UpdateAppointmentCategorySchema,
526
536
  UpdateAppointmentTypeSchema,
527
537
  UpdateBookingPageSchema,
@@ -28,6 +28,7 @@ import {
28
28
  SLOT_GRANULARITY_DEFAULT,
29
29
  SLOT_GRANULARITY_OPTIONS,
30
30
  TestRoutingFormSchema,
31
+ TextSettingsSchema,
31
32
  UpdateAppointmentCategorySchema,
32
33
  UpdateAppointmentTypeSchema,
33
34
  UpdateBookingPageSchema,
@@ -37,7 +38,7 @@ import {
37
38
  UpdatePackagePurchaseSchema,
38
39
  UpdateRoutingFormSchema,
39
40
  UpdateServicePackageSchema
40
- } from "../chunk-WZ5KO7IW.mjs";
41
+ } from "../chunk-IW6AN5WE.mjs";
41
42
  export {
42
43
  BookingPageConfigSchema,
43
44
  BookingPageThemeSchema,
@@ -68,6 +69,7 @@ export {
68
69
  SLOT_GRANULARITY_DEFAULT,
69
70
  SLOT_GRANULARITY_OPTIONS,
70
71
  TestRoutingFormSchema,
72
+ TextSettingsSchema,
71
73
  UpdateAppointmentCategorySchema,
72
74
  UpdateAppointmentTypeSchema,
73
75
  UpdateBookingPageSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordinatio/scheduling-api",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "description": "HTTP API for @ordinatio/scheduling. Every handler takes a Request and returns a Response.",
6
6
  "main": "./dist/index.js",
@@ -11,14 +11,15 @@
11
11
  "sanitize-html": "^2.16.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@ordinatio/scheduling": "^0.6.0"
14
+ "@ordinatio/scheduling": "^0.6.1"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/sanitize-html": "^2.13.0",
18
+ "stripe": "^22.1.1",
18
19
  "tsup": "^8.0.0",
19
20
  "typescript": "5",
20
21
  "vitest": "4.0.18",
21
- "@ordinatio/scheduling": "0.6.0"
22
+ "@ordinatio/scheduling": "0.6.1"
22
23
  },
23
24
  "engines": {
24
25
  "node": ">=22.0.0"