@voyantjs/booking-requirements 0.6.7 → 0.6.8
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/schema.d.ts.map +1 -1
- package/dist/schema.js +23 -7
- package/package.json +7 -7
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,2BAA2B,kPActC,CAAA;AAEF,eAAO,MAAM,2BAA2B,6FAKtC,CAAA;AAEF,eAAO,MAAM,yBAAyB,iHAOpC,CAAA;AAEF,eAAO,MAAM,4BAA4B,oLAcvC,CAAA;AAEF,eAAO,MAAM,8BAA8B,0EAIzC,CAAA;AAEF,eAAO,MAAM,uBAAuB,2EAIlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,2BAA2B,kPActC,CAAA;AAEF,eAAO,MAAM,2BAA2B,6FAKtC,CAAA;AAEF,eAAO,MAAM,yBAAyB,iHAOpC,CAAA;AAEF,eAAO,MAAM,4BAA4B,oLAcvC,CAAA;AAEF,eAAO,MAAM,8BAA8B,0EAIzC,CAAA;AAEF,eAAO,MAAM,uBAAuB,2EAIlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAA;AACjF,MAAM,MAAM,0BAA0B,GAAG,OAAO,2BAA2B,CAAC,YAAY,CAAA;AACxF,MAAM,MAAM,6BAA6B,GAAG,OAAO,2BAA2B,CAAC,YAAY,CAAA;AAC3F,MAAM,MAAM,4BAA4B,GAAG,OAAO,6BAA6B,CAAC,YAAY,CAAA;AAC5F,MAAM,MAAM,+BAA+B,GAAG,OAAO,6BAA6B,CAAC,YAAY,CAAA;AAC/F,MAAM,MAAM,2BAA2B,GAAG,OAAO,4BAA4B,CAAC,YAAY,CAAA;AAC1F,MAAM,MAAM,8BAA8B,GAAG,OAAO,4BAA4B,CAAC,YAAY,CAAA;AAC7F,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAEjE,eAAO,MAAM,mCAAmC,qEAAoD,CAAA;AAEpG,eAAO,MAAM,gCAAgC;;;;;;;EAO1C,CAAA;AAEH,eAAO,MAAM,+BAA+B;;EAKzC,CAAA;AAEH,eAAO,MAAM,+BAA+B;;EAKzC,CAAA;AAEH,eAAO,MAAM,oCAAoC;;EAQhD,CAAA;AAED,eAAO,MAAM,sCAAsC;;EAQlD,CAAA;AAED,eAAO,MAAM,qCAAqC;;EAQjD,CAAA;AAED,eAAO,MAAM,uBAAuB;;EAKjC,CAAA"}
|
package/dist/schema.js
CHANGED
|
@@ -69,8 +69,10 @@ export const productContactRequirements = pgTable("product_contact_requirements"
|
|
|
69
69
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
70
70
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
71
71
|
}, (table) => [
|
|
72
|
+
index("idx_product_contact_requirements_sort").on(table.sortOrder),
|
|
72
73
|
index("idx_product_contact_requirements_product_sort").on(table.productId, table.sortOrder),
|
|
73
74
|
index("idx_product_contact_requirements_option_sort").on(table.optionId, table.sortOrder),
|
|
75
|
+
index("idx_product_contact_requirements_active_sort").on(table.active, table.sortOrder),
|
|
74
76
|
uniqueIndex("uidx_product_contact_requirements_scope_field").on(table.productId, table.optionId, table.scope, table.fieldKey),
|
|
75
77
|
]);
|
|
76
78
|
export const productBookingQuestions = pgTable("product_booking_questions", {
|
|
@@ -90,8 +92,11 @@ export const productBookingQuestions = pgTable("product_booking_questions", {
|
|
|
90
92
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
91
93
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
92
94
|
}, (table) => [
|
|
95
|
+
index("idx_product_booking_questions_sort").on(table.sortOrder),
|
|
93
96
|
index("idx_product_booking_questions_product_sort").on(table.productId, table.sortOrder),
|
|
94
|
-
index("
|
|
97
|
+
index("idx_product_booking_questions_target_sort").on(table.target, table.sortOrder),
|
|
98
|
+
index("idx_product_booking_questions_field_type_sort").on(table.fieldType, table.sortOrder),
|
|
99
|
+
index("idx_product_booking_questions_active_sort").on(table.active, table.sortOrder),
|
|
95
100
|
uniqueIndex("uidx_product_booking_questions_product_code").on(table.productId, table.code),
|
|
96
101
|
]);
|
|
97
102
|
export const optionBookingQuestions = pgTable("option_booking_questions", {
|
|
@@ -107,8 +112,10 @@ export const optionBookingQuestions = pgTable("option_booking_questions", {
|
|
|
107
112
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
108
113
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
109
114
|
}, (table) => [
|
|
115
|
+
index("idx_option_booking_questions_sort").on(table.sortOrder),
|
|
110
116
|
index("idx_option_booking_questions_option_sort").on(table.optionId, table.sortOrder),
|
|
111
|
-
index("
|
|
117
|
+
index("idx_option_booking_questions_question_sort").on(table.productBookingQuestionId, table.sortOrder),
|
|
118
|
+
index("idx_option_booking_questions_active_sort").on(table.active, table.sortOrder),
|
|
112
119
|
uniqueIndex("uidx_option_booking_questions_option_question").on(table.optionId, table.productBookingQuestionId),
|
|
113
120
|
]);
|
|
114
121
|
export const bookingQuestionOptions = pgTable("booking_question_options", {
|
|
@@ -124,7 +131,9 @@ export const bookingQuestionOptions = pgTable("booking_question_options", {
|
|
|
124
131
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
125
132
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
126
133
|
}, (table) => [
|
|
134
|
+
index("idx_booking_question_options_sort").on(table.sortOrder),
|
|
127
135
|
index("idx_booking_question_options_question_sort").on(table.productBookingQuestionId, table.sortOrder),
|
|
136
|
+
index("idx_booking_question_options_active_sort").on(table.active, table.sortOrder),
|
|
128
137
|
uniqueIndex("uidx_booking_question_options_question_value").on(table.productBookingQuestionId, table.value),
|
|
129
138
|
]);
|
|
130
139
|
export const bookingQuestionUnitTriggers = pgTable("booking_question_unit_triggers", {
|
|
@@ -139,8 +148,10 @@ export const bookingQuestionUnitTriggers = pgTable("booking_question_unit_trigge
|
|
|
139
148
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
140
149
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
141
150
|
}, (table) => [
|
|
151
|
+
index("idx_booking_question_unit_triggers_created").on(table.createdAt),
|
|
142
152
|
index("idx_booking_question_unit_triggers_question_created").on(table.productBookingQuestionId, table.createdAt),
|
|
143
|
-
index("
|
|
153
|
+
index("idx_booking_question_unit_triggers_unit_created").on(table.unitId, table.createdAt),
|
|
154
|
+
index("idx_booking_question_unit_triggers_active_created").on(table.active, table.createdAt),
|
|
144
155
|
uniqueIndex("uidx_booking_question_unit_triggers_question_unit").on(table.productBookingQuestionId, table.unitId),
|
|
145
156
|
]);
|
|
146
157
|
export const bookingQuestionOptionTriggers = pgTable("booking_question_option_triggers", {
|
|
@@ -154,8 +165,10 @@ export const bookingQuestionOptionTriggers = pgTable("booking_question_option_tr
|
|
|
154
165
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
155
166
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
156
167
|
}, (table) => [
|
|
168
|
+
index("idx_booking_question_option_triggers_created").on(table.createdAt),
|
|
157
169
|
index("idx_booking_question_option_triggers_question_created").on(table.productBookingQuestionId, table.createdAt),
|
|
158
|
-
index("
|
|
170
|
+
index("idx_booking_question_option_triggers_option_created").on(table.optionId, table.createdAt),
|
|
171
|
+
index("idx_booking_question_option_triggers_active_created").on(table.active, table.createdAt),
|
|
159
172
|
uniqueIndex("uidx_booking_question_option_triggers_question_option").on(table.productBookingQuestionId, table.optionId),
|
|
160
173
|
]);
|
|
161
174
|
export const bookingQuestionExtraTriggers = pgTable("booking_question_extra_triggers", {
|
|
@@ -171,9 +184,11 @@ export const bookingQuestionExtraTriggers = pgTable("booking_question_extra_trig
|
|
|
171
184
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
172
185
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
173
186
|
}, (table) => [
|
|
187
|
+
index("idx_booking_question_extra_triggers_created").on(table.createdAt),
|
|
174
188
|
index("idx_booking_question_extra_triggers_question_created").on(table.productBookingQuestionId, table.createdAt),
|
|
175
|
-
index("
|
|
176
|
-
index("
|
|
189
|
+
index("idx_booking_question_extra_triggers_product_extra_created").on(table.productExtraId, table.createdAt),
|
|
190
|
+
index("idx_booking_question_extra_triggers_option_extra_config_created").on(table.optionExtraConfigId, table.createdAt),
|
|
191
|
+
index("idx_booking_question_extra_triggers_active_created").on(table.active, table.createdAt),
|
|
177
192
|
]);
|
|
178
193
|
export const bookingAnswers = pgTable("booking_answers", {
|
|
179
194
|
id: typeId("booking_answers"),
|
|
@@ -193,9 +208,10 @@ export const bookingAnswers = pgTable("booking_answers", {
|
|
|
193
208
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
194
209
|
}, (table) => [
|
|
195
210
|
index("idx_booking_answers_booking_updated").on(table.bookingId, table.updatedAt),
|
|
196
|
-
index("
|
|
211
|
+
index("idx_booking_answers_question_updated").on(table.productBookingQuestionId, table.updatedAt),
|
|
197
212
|
index("idx_booking_answers_participant_updated").on(table.bookingParticipantId, table.updatedAt),
|
|
198
213
|
index("idx_booking_answers_booking_extra_updated").on(table.bookingExtraId, table.updatedAt),
|
|
214
|
+
index("idx_booking_answers_target_updated").on(table.target, table.updatedAt),
|
|
199
215
|
]);
|
|
200
216
|
export const productContactRequirementsRelations = relations(productContactRequirements, () => ({}));
|
|
201
217
|
export const productBookingQuestionsRelations = relations(productBookingQuestions, ({ many }) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/booking-requirements",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/core": "0.6.
|
|
33
|
-
"@voyantjs/db": "0.6.
|
|
34
|
-
"@voyantjs/hono": "0.6.
|
|
35
|
-
"@voyantjs/products": "0.6.
|
|
32
|
+
"@voyantjs/core": "0.6.8",
|
|
33
|
+
"@voyantjs/db": "0.6.8",
|
|
34
|
+
"@voyantjs/hono": "0.6.8",
|
|
35
|
+
"@voyantjs/products": "0.6.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.2",
|
|
39
|
-
"@voyantjs/bookings": "0.6.
|
|
40
|
-
"@voyantjs/products": "0.6.
|
|
39
|
+
"@voyantjs/bookings": "0.6.8",
|
|
40
|
+
"@voyantjs/products": "0.6.8",
|
|
41
41
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|