@voyantjs/booking-requirements 0.6.3 → 0.6.7

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 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BtC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBnC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AEH,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,8 @@ 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_product").on(table.productId),
73
- index("idx_product_contact_requirements_option").on(table.optionId),
72
+ index("idx_product_contact_requirements_product_sort").on(table.productId, table.sortOrder),
73
+ index("idx_product_contact_requirements_option_sort").on(table.optionId, table.sortOrder),
74
74
  uniqueIndex("uidx_product_contact_requirements_scope_field").on(table.productId, table.optionId, table.scope, table.fieldKey),
75
75
  ]);
76
76
  export const productBookingQuestions = pgTable("product_booking_questions", {
@@ -90,7 +90,7 @@ export const productBookingQuestions = pgTable("product_booking_questions", {
90
90
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
91
91
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
92
92
  }, (table) => [
93
- index("idx_product_booking_questions_product").on(table.productId),
93
+ index("idx_product_booking_questions_product_sort").on(table.productId, table.sortOrder),
94
94
  index("idx_product_booking_questions_active").on(table.active),
95
95
  uniqueIndex("uidx_product_booking_questions_product_code").on(table.productId, table.code),
96
96
  ]);
@@ -107,7 +107,7 @@ export const optionBookingQuestions = pgTable("option_booking_questions", {
107
107
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
108
108
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
109
109
  }, (table) => [
110
- index("idx_option_booking_questions_option").on(table.optionId),
110
+ index("idx_option_booking_questions_option_sort").on(table.optionId, table.sortOrder),
111
111
  index("idx_option_booking_questions_question").on(table.productBookingQuestionId),
112
112
  uniqueIndex("uidx_option_booking_questions_option_question").on(table.optionId, table.productBookingQuestionId),
113
113
  ]);
@@ -124,7 +124,7 @@ export const bookingQuestionOptions = pgTable("booking_question_options", {
124
124
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
125
125
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
126
126
  }, (table) => [
127
- index("idx_booking_question_options_question").on(table.productBookingQuestionId),
127
+ index("idx_booking_question_options_question_sort").on(table.productBookingQuestionId, table.sortOrder),
128
128
  uniqueIndex("uidx_booking_question_options_question_value").on(table.productBookingQuestionId, table.value),
129
129
  ]);
130
130
  export const bookingQuestionUnitTriggers = pgTable("booking_question_unit_triggers", {
@@ -139,7 +139,7 @@ export const bookingQuestionUnitTriggers = pgTable("booking_question_unit_trigge
139
139
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
140
140
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
141
141
  }, (table) => [
142
- index("idx_booking_question_unit_triggers_question").on(table.productBookingQuestionId),
142
+ index("idx_booking_question_unit_triggers_question_created").on(table.productBookingQuestionId, table.createdAt),
143
143
  index("idx_booking_question_unit_triggers_unit").on(table.unitId),
144
144
  uniqueIndex("uidx_booking_question_unit_triggers_question_unit").on(table.productBookingQuestionId, table.unitId),
145
145
  ]);
@@ -154,7 +154,7 @@ export const bookingQuestionOptionTriggers = pgTable("booking_question_option_tr
154
154
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
155
155
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
156
156
  }, (table) => [
157
- index("idx_booking_question_option_triggers_question").on(table.productBookingQuestionId),
157
+ index("idx_booking_question_option_triggers_question_created").on(table.productBookingQuestionId, table.createdAt),
158
158
  index("idx_booking_question_option_triggers_option").on(table.optionId),
159
159
  uniqueIndex("uidx_booking_question_option_triggers_question_option").on(table.productBookingQuestionId, table.optionId),
160
160
  ]);
@@ -171,7 +171,7 @@ export const bookingQuestionExtraTriggers = pgTable("booking_question_extra_trig
171
171
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
172
172
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
173
173
  }, (table) => [
174
- index("idx_booking_question_extra_triggers_question").on(table.productBookingQuestionId),
174
+ index("idx_booking_question_extra_triggers_question_created").on(table.productBookingQuestionId, table.createdAt),
175
175
  index("idx_booking_question_extra_triggers_product_extra").on(table.productExtraId),
176
176
  index("idx_booking_question_extra_triggers_option_extra_config").on(table.optionExtraConfigId),
177
177
  ]);
@@ -192,10 +192,10 @@ export const bookingAnswers = pgTable("booking_answers", {
192
192
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
193
193
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
194
194
  }, (table) => [
195
- index("idx_booking_answers_booking").on(table.bookingId),
195
+ index("idx_booking_answers_booking_updated").on(table.bookingId, table.updatedAt),
196
196
  index("idx_booking_answers_question").on(table.productBookingQuestionId),
197
- index("idx_booking_answers_participant").on(table.bookingParticipantId),
198
- index("idx_booking_answers_booking_extra").on(table.bookingExtraId),
197
+ index("idx_booking_answers_participant_updated").on(table.bookingParticipantId, table.updatedAt),
198
+ index("idx_booking_answers_booking_extra_updated").on(table.bookingExtraId, table.updatedAt),
199
199
  ]);
200
200
  export const productContactRequirementsRelations = relations(productContactRequirements, () => ({}));
201
201
  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",
3
+ "version": "0.6.7",
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.3",
33
- "@voyantjs/db": "0.6.3",
34
- "@voyantjs/hono": "0.6.3",
35
- "@voyantjs/products": "0.6.3"
32
+ "@voyantjs/core": "0.6.7",
33
+ "@voyantjs/db": "0.6.7",
34
+ "@voyantjs/hono": "0.6.7",
35
+ "@voyantjs/products": "0.6.7"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "^6.0.2",
39
- "@voyantjs/bookings": "0.6.3",
40
- "@voyantjs/products": "0.6.3",
39
+ "@voyantjs/bookings": "0.6.7",
40
+ "@voyantjs/products": "0.6.7",
41
41
  "@voyantjs/voyant-typescript-config": "0.1.0"
42
42
  },
43
43
  "files": [