@voyantjs/booking-requirements 0.1.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/LICENSE ADDED
@@ -0,0 +1,109 @@
1
+ # Functional Source License, Version 1.1, Apache 2.0 Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-Apache-2.0
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 PixelMakers Studio SRL
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly
28
+ display and redistribute the Software for any Permitted Purpose identified
29
+ below.
30
+
31
+ ### Permitted Purpose
32
+
33
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing
34
+ Use means making the Software available to others in a commercial product or
35
+ service that:
36
+
37
+ 1. substitutes for the Software;
38
+
39
+ 2. substitutes for any other product or service we offer using the Software
40
+ that exists as of the date we make the Software available; or
41
+
42
+ 3. offers the same or substantially similar functionality as the Software.
43
+
44
+ Permitted Purposes specifically include using the Software:
45
+
46
+ 1. for your internal use and access;
47
+
48
+ 2. for non-commercial education;
49
+
50
+ 3. for non-commercial research; and
51
+
52
+ 4. in connection with professional services that you provide to a licensee
53
+ using the Software in accordance with these Terms and Conditions.
54
+
55
+ ### Patents
56
+
57
+ To the extent your use for a Permitted Purpose would necessarily infringe
58
+ our patents, the license grant above includes a license under our patents.
59
+ If you make a claim against any party that the Software infringes or
60
+ contributes to the infringement of any patent, then your patent license to
61
+ the Software ends immediately.
62
+
63
+ ### Redistribution
64
+
65
+ The Terms and Conditions apply to all copies, modifications and derivatives
66
+ of the Software.
67
+
68
+ If you redistribute any copies, modifications or derivatives of the
69
+ Software, you must include a copy of or a link to these Terms and Conditions
70
+ and not remove any copyright notices provided in or with the Software.
71
+
72
+ ### Disclaimer
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS
75
+ OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A
76
+ PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
77
+
78
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO
79
+ THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
80
+ DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
81
+
82
+ ### Trademarks
83
+
84
+ Except for displaying the License Details and identifying us as the origin
85
+ of the Software, you have no right under these Terms and Conditions to use
86
+ our trademarks, trade names, service marks or product names.
87
+
88
+ ---
89
+
90
+ ## Grant of Future License
91
+
92
+ We hereby irrevocably grant you an additional license to use the Software
93
+ under the Apache License, Version 2.0 that is effective on the second
94
+ anniversary of the date we make the Software available. On or after that
95
+ date, you may use the Software under the Apache License, Version 2.0, in
96
+ which case the following will apply:
97
+
98
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
99
+ use this file except in compliance with the License.
100
+
101
+ You may obtain a copy of the License at
102
+
103
+ http://www.apache.org/licenses/LICENSE-2.0
104
+
105
+ Unless required by applicable law or agreed to in writing, software
106
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
107
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
108
+ License for the specific language governing permissions and limitations
109
+ under the License.
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @voyantjs/booking-requirements
2
+
3
+ Booking requirements module for Voyant. Intake requirements, questions, and answers — the declarative layer that captures what data a product needs at booking time (dietary, passport, pickup, etc.).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @voyantjs/booking-requirements
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { bookingRequirementsModule } from "@voyantjs/booking-requirements"
15
+ import { createApp } from "@voyantjs/hono"
16
+
17
+ const app = createApp({
18
+ modules: [bookingRequirementsModule],
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Exports
24
+
25
+ | Entry | Description |
26
+ | --- | --- |
27
+ | `.` | Module export |
28
+ | `./schema` | Drizzle tables |
29
+ | `./validation` | Zod schemas |
30
+ | `./routes` | Hono routes |
31
+
32
+ ## License
33
+
34
+ FSL-1.1-Apache-2.0
@@ -0,0 +1,11 @@
1
+ import type { Module } from "@voyantjs/core";
2
+ import type { HonoModule } from "@voyantjs/hono/module";
3
+ import { bookingRequirementsService } from "./service.js";
4
+ export type { BookingRequirementsRoutes } from "./routes.js";
5
+ export declare const bookingRequirementsModule: Module;
6
+ export declare const bookingRequirementsHonoModule: HonoModule;
7
+ export type { BookingAnswer, BookingQuestionExtraTrigger, BookingQuestionOption, BookingQuestionOptionTrigger, BookingQuestionUnitTrigger, NewBookingAnswer, NewBookingQuestionExtraTrigger, NewBookingQuestionOption, NewBookingQuestionOptionTrigger, NewBookingQuestionUnitTrigger, NewOptionBookingQuestion, NewProductBookingQuestion, NewProductContactRequirement, OptionBookingQuestion, ProductBookingQuestion, ProductContactRequirement, } from "./schema.js";
8
+ export { bookingAnswers, bookingAnswerTargetEnum, bookingQuestionExtraTriggers, bookingQuestionFieldTypeEnum, bookingQuestionOptions, bookingQuestionOptionTriggers, bookingQuestionTargetEnum, bookingQuestionTriggerModeEnum, bookingQuestionUnitTriggers, contactRequirementFieldEnum, contactRequirementScopeEnum, optionBookingQuestions, productBookingQuestions, productContactRequirements, } from "./schema.js";
9
+ export { bookingAnswerListQuerySchema, bookingAnswerTargetSchema, bookingQuestionExtraTriggerListQuerySchema, bookingQuestionFieldTypeSchema, bookingQuestionOptionListQuerySchema, bookingQuestionOptionTriggerListQuerySchema, bookingQuestionTargetSchema, bookingQuestionTriggerModeSchema, bookingQuestionUnitTriggerListQuerySchema, contactRequirementFieldSchema, contactRequirementScopeSchema, insertBookingAnswerSchema, insertBookingQuestionExtraTriggerSchema, insertBookingQuestionOptionSchema, insertBookingQuestionOptionTriggerSchema, insertBookingQuestionUnitTriggerSchema, insertOptionBookingQuestionSchema, insertProductBookingQuestionSchema, insertProductContactRequirementSchema, optionBookingQuestionListQuerySchema, productBookingQuestionListQuerySchema, productContactRequirementListQuerySchema, updateBookingAnswerSchema, updateBookingQuestionExtraTriggerSchema, updateBookingQuestionOptionSchema, updateBookingQuestionOptionTriggerSchema, updateBookingQuestionUnitTriggerSchema, updateOptionBookingQuestionSchema, updateProductBookingQuestionSchema, updateProductContactRequirementSchema, } from "./validation.js";
10
+ export { bookingRequirementsService };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAEzD,YAAY,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAE5D,eAAO,MAAM,yBAAyB,EAAE,MAEvC,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,UAG3C,CAAA;AAED,YAAY,EACV,aAAa,EACb,2BAA2B,EAC3B,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,gBAAgB,EAChB,8BAA8B,EAC9B,wBAAwB,EACxB,+BAA+B,EAC/B,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,6BAA6B,EAC7B,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,0CAA0C,EAC1C,8BAA8B,EAC9B,oCAAoC,EACpC,2CAA2C,EAC3C,2BAA2B,EAC3B,gCAAgC,EAChC,yCAAyC,EACzC,6BAA6B,EAC7B,6BAA6B,EAC7B,yBAAyB,EACzB,uCAAuC,EACvC,iCAAiC,EACjC,wCAAwC,EACxC,sCAAsC,EACtC,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,EACrC,oCAAoC,EACpC,qCAAqC,EACrC,wCAAwC,EACxC,yBAAyB,EACzB,uCAAuC,EACvC,iCAAiC,EACjC,wCAAwC,EACxC,sCAAsC,EACtC,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,GACtC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import { bookingRequirementsRoutes } from "./routes.js";
2
+ import { bookingRequirementsService } from "./service.js";
3
+ export const bookingRequirementsModule = {
4
+ name: "booking-requirements",
5
+ };
6
+ export const bookingRequirementsHonoModule = {
7
+ module: bookingRequirementsModule,
8
+ routes: bookingRequirementsRoutes,
9
+ };
10
+ export { bookingAnswers, bookingAnswerTargetEnum, bookingQuestionExtraTriggers, bookingQuestionFieldTypeEnum, bookingQuestionOptions, bookingQuestionOptionTriggers, bookingQuestionTargetEnum, bookingQuestionTriggerModeEnum, bookingQuestionUnitTriggers, contactRequirementFieldEnum, contactRequirementScopeEnum, optionBookingQuestions, productBookingQuestions, productContactRequirements, } from "./schema.js";
11
+ export { bookingAnswerListQuerySchema, bookingAnswerTargetSchema, bookingQuestionExtraTriggerListQuerySchema, bookingQuestionFieldTypeSchema, bookingQuestionOptionListQuerySchema, bookingQuestionOptionTriggerListQuerySchema, bookingQuestionTargetSchema, bookingQuestionTriggerModeSchema, bookingQuestionUnitTriggerListQuerySchema, contactRequirementFieldSchema, contactRequirementScopeSchema, insertBookingAnswerSchema, insertBookingQuestionExtraTriggerSchema, insertBookingQuestionOptionSchema, insertBookingQuestionOptionTriggerSchema, insertBookingQuestionUnitTriggerSchema, insertOptionBookingQuestionSchema, insertProductBookingQuestionSchema, insertProductContactRequirementSchema, optionBookingQuestionListQuerySchema, productBookingQuestionListQuerySchema, productContactRequirementListQuerySchema, updateBookingAnswerSchema, updateBookingQuestionExtraTriggerSchema, updateBookingQuestionOptionSchema, updateBookingQuestionOptionTriggerSchema, updateBookingQuestionUnitTriggerSchema, updateOptionBookingQuestionSchema, updateProductBookingQuestionSchema, updateProductContactRequirementSchema, } from "./validation.js";
12
+ export { bookingRequirementsService };