@voyantjs/booking-requirements 0.1.1 → 0.3.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.
@@ -0,0 +1,71 @@
1
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
+ import type { BookingAnswerListQuery, CreateBookingAnswerInput, UpdateBookingAnswerInput } from "./service-shared.js";
3
+ export declare function listBookingAnswers(db: PostgresJsDatabase, query: BookingAnswerListQuery): Promise<{
4
+ data: {
5
+ id: string;
6
+ bookingId: string;
7
+ productBookingQuestionId: string;
8
+ bookingParticipantId: string | null;
9
+ bookingExtraId: string | null;
10
+ target: "booking" | "participant" | "extra";
11
+ valueText: string | null;
12
+ valueNumber: number | null;
13
+ valueBoolean: boolean | null;
14
+ valueJson: Record<string, unknown> | string[] | null;
15
+ notes: string | null;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ }[];
19
+ total: number;
20
+ limit: number;
21
+ offset: number;
22
+ }>;
23
+ export declare function getBookingAnswerById(db: PostgresJsDatabase, id: string): Promise<{
24
+ id: string;
25
+ bookingId: string;
26
+ productBookingQuestionId: string;
27
+ bookingParticipantId: string | null;
28
+ bookingExtraId: string | null;
29
+ target: "booking" | "participant" | "extra";
30
+ valueText: string | null;
31
+ valueNumber: number | null;
32
+ valueBoolean: boolean | null;
33
+ valueJson: Record<string, unknown> | string[] | null;
34
+ notes: string | null;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ } | null>;
38
+ export declare function createBookingAnswer(db: PostgresJsDatabase, data: CreateBookingAnswerInput): Promise<{
39
+ id: string;
40
+ notes: string | null;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ target: "booking" | "participant" | "extra";
44
+ productBookingQuestionId: string;
45
+ bookingId: string;
46
+ bookingParticipantId: string | null;
47
+ bookingExtraId: string | null;
48
+ valueText: string | null;
49
+ valueNumber: number | null;
50
+ valueBoolean: boolean | null;
51
+ valueJson: Record<string, unknown> | string[] | null;
52
+ } | null>;
53
+ export declare function updateBookingAnswer(db: PostgresJsDatabase, id: string, data: UpdateBookingAnswerInput): Promise<{
54
+ id: string;
55
+ bookingId: string;
56
+ productBookingQuestionId: string;
57
+ bookingParticipantId: string | null;
58
+ bookingExtraId: string | null;
59
+ target: "booking" | "participant" | "extra";
60
+ valueText: string | null;
61
+ valueNumber: number | null;
62
+ valueBoolean: boolean | null;
63
+ valueJson: Record<string, unknown> | string[] | null;
64
+ notes: string | null;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ } | null>;
68
+ export declare function deleteBookingAnswer(db: PostgresJsDatabase, id: string): Promise<{
69
+ id: string;
70
+ } | null>;
71
+ //# sourceMappingURL=service-answers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-answers.d.ts","sourceRoot":"","sources":["../src/service-answers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGjE,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,qBAAqB,CAAA;AAG5B,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;GAsB7F;AAED,wBAAsB,oBAAoB,CAAC,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;UAG5E;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,wBAAwB;;;;;;;;;;;;;;UAG/F;AAED,wBAAsB,mBAAmB,CACvC,EAAE,EAAE,kBAAkB,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,wBAAwB;;;;;;;;;;;;;;UAQ/B;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM;;UAM3E"}
@@ -0,0 +1,47 @@
1
+ import { and, desc, eq, sql } from "drizzle-orm";
2
+ import { bookingAnswers } from "./schema.js";
3
+ import { paginate } from "./service-shared.js";
4
+ export async function listBookingAnswers(db, query) {
5
+ const conditions = [];
6
+ if (query.bookingId)
7
+ conditions.push(eq(bookingAnswers.bookingId, query.bookingId));
8
+ if (query.productBookingQuestionId)
9
+ conditions.push(eq(bookingAnswers.productBookingQuestionId, query.productBookingQuestionId));
10
+ if (query.bookingParticipantId)
11
+ conditions.push(eq(bookingAnswers.bookingParticipantId, query.bookingParticipantId));
12
+ if (query.bookingExtraId)
13
+ conditions.push(eq(bookingAnswers.bookingExtraId, query.bookingExtraId));
14
+ if (query.target)
15
+ conditions.push(eq(bookingAnswers.target, query.target));
16
+ const where = conditions.length ? and(...conditions) : undefined;
17
+ return paginate(db
18
+ .select()
19
+ .from(bookingAnswers)
20
+ .where(where)
21
+ .limit(query.limit)
22
+ .offset(query.offset)
23
+ .orderBy(desc(bookingAnswers.updatedAt)), db.select({ count: sql `count(*)::int` }).from(bookingAnswers).where(where), query.limit, query.offset);
24
+ }
25
+ export async function getBookingAnswerById(db, id) {
26
+ const [row] = await db.select().from(bookingAnswers).where(eq(bookingAnswers.id, id)).limit(1);
27
+ return row ?? null;
28
+ }
29
+ export async function createBookingAnswer(db, data) {
30
+ const [row] = await db.insert(bookingAnswers).values(data).returning();
31
+ return row ?? null;
32
+ }
33
+ export async function updateBookingAnswer(db, id, data) {
34
+ const [row] = await db
35
+ .update(bookingAnswers)
36
+ .set({ ...data, updatedAt: new Date() })
37
+ .where(eq(bookingAnswers.id, id))
38
+ .returning();
39
+ return row ?? null;
40
+ }
41
+ export async function deleteBookingAnswer(db, id) {
42
+ const [row] = await db
43
+ .delete(bookingAnswers)
44
+ .where(eq(bookingAnswers.id, id))
45
+ .returning({ id: bookingAnswers.id });
46
+ return row ?? null;
47
+ }
@@ -0,0 +1,391 @@
1
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
+ import type { BookingQuestionExtraTriggerListQuery, BookingQuestionOptionListQuery, BookingQuestionOptionTriggerListQuery, BookingQuestionUnitTriggerListQuery, CreateBookingQuestionExtraTriggerInput, CreateBookingQuestionOptionInput, CreateBookingQuestionOptionTriggerInput, CreateBookingQuestionUnitTriggerInput, CreateOptionBookingQuestionInput, CreateProductBookingQuestionInput, CreateProductContactRequirementInput, OptionBookingQuestionListQuery, ProductBookingQuestionListQuery, ProductContactRequirementListQuery, UpdateBookingQuestionExtraTriggerInput, UpdateBookingQuestionOptionInput, UpdateBookingQuestionOptionTriggerInput, UpdateBookingQuestionUnitTriggerInput, UpdateOptionBookingQuestionInput, UpdateProductBookingQuestionInput, UpdateProductContactRequirementInput } from "./service-shared.js";
3
+ export declare function listProductContactRequirements(db: PostgresJsDatabase, query: ProductContactRequirementListQuery): Promise<{
4
+ data: {
5
+ id: string;
6
+ productId: string;
7
+ optionId: string | null;
8
+ fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
9
+ scope: "booking" | "lead_traveler" | "participant" | "booker";
10
+ isRequired: boolean;
11
+ perParticipant: boolean;
12
+ active: boolean;
13
+ sortOrder: number;
14
+ notes: string | null;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ }[];
18
+ total: number;
19
+ limit: number;
20
+ offset: number;
21
+ }>;
22
+ export declare function getProductContactRequirementById(db: PostgresJsDatabase, id: string): Promise<{
23
+ id: string;
24
+ productId: string;
25
+ optionId: string | null;
26
+ fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
27
+ scope: "booking" | "lead_traveler" | "participant" | "booker";
28
+ isRequired: boolean;
29
+ perParticipant: boolean;
30
+ active: boolean;
31
+ sortOrder: number;
32
+ notes: string | null;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ } | null>;
36
+ export declare function createProductContactRequirement(db: PostgresJsDatabase, data: CreateProductContactRequirementInput): Promise<{
37
+ id: string;
38
+ productId: string;
39
+ optionId: string | null;
40
+ fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
41
+ scope: "booking" | "lead_traveler" | "participant" | "booker";
42
+ isRequired: boolean;
43
+ perParticipant: boolean;
44
+ active: boolean;
45
+ sortOrder: number;
46
+ notes: string | null;
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ } | null>;
50
+ export declare function updateProductContactRequirement(db: PostgresJsDatabase, id: string, data: UpdateProductContactRequirementInput): Promise<{
51
+ id: string;
52
+ productId: string;
53
+ optionId: string | null;
54
+ fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
55
+ scope: "booking" | "lead_traveler" | "participant" | "booker";
56
+ isRequired: boolean;
57
+ perParticipant: boolean;
58
+ active: boolean;
59
+ sortOrder: number;
60
+ notes: string | null;
61
+ createdAt: Date;
62
+ updatedAt: Date;
63
+ } | null>;
64
+ export declare function deleteProductContactRequirement(db: PostgresJsDatabase, id: string): Promise<{
65
+ id: string;
66
+ } | null>;
67
+ export declare function listProductBookingQuestions(db: PostgresJsDatabase, query: ProductBookingQuestionListQuery): Promise<{
68
+ data: {
69
+ id: string;
70
+ productId: string;
71
+ code: string | null;
72
+ label: string;
73
+ description: string | null;
74
+ target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
75
+ fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
76
+ placeholder: string | null;
77
+ helpText: string | null;
78
+ isRequired: boolean;
79
+ active: boolean;
80
+ sortOrder: number;
81
+ metadata: Record<string, unknown> | null;
82
+ createdAt: Date;
83
+ updatedAt: Date;
84
+ }[];
85
+ total: number;
86
+ limit: number;
87
+ offset: number;
88
+ }>;
89
+ export declare function getProductBookingQuestionById(db: PostgresJsDatabase, id: string): Promise<{
90
+ id: string;
91
+ productId: string;
92
+ code: string | null;
93
+ label: string;
94
+ description: string | null;
95
+ target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
96
+ fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
97
+ placeholder: string | null;
98
+ helpText: string | null;
99
+ isRequired: boolean;
100
+ active: boolean;
101
+ sortOrder: number;
102
+ metadata: Record<string, unknown> | null;
103
+ createdAt: Date;
104
+ updatedAt: Date;
105
+ } | null>;
106
+ export declare function createProductBookingQuestion(db: PostgresJsDatabase, data: CreateProductBookingQuestionInput): Promise<{
107
+ id: string;
108
+ productId: string;
109
+ isRequired: boolean;
110
+ active: boolean;
111
+ sortOrder: number;
112
+ createdAt: Date;
113
+ updatedAt: Date;
114
+ code: string | null;
115
+ label: string;
116
+ description: string | null;
117
+ target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
118
+ fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
119
+ placeholder: string | null;
120
+ helpText: string | null;
121
+ metadata: Record<string, unknown> | null;
122
+ } | null>;
123
+ export declare function updateProductBookingQuestion(db: PostgresJsDatabase, id: string, data: UpdateProductBookingQuestionInput): Promise<{
124
+ id: string;
125
+ productId: string;
126
+ code: string | null;
127
+ label: string;
128
+ description: string | null;
129
+ target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
130
+ fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
131
+ placeholder: string | null;
132
+ helpText: string | null;
133
+ isRequired: boolean;
134
+ active: boolean;
135
+ sortOrder: number;
136
+ metadata: Record<string, unknown> | null;
137
+ createdAt: Date;
138
+ updatedAt: Date;
139
+ } | null>;
140
+ export declare function deleteProductBookingQuestion(db: PostgresJsDatabase, id: string): Promise<{
141
+ id: string;
142
+ } | null>;
143
+ export declare function listOptionBookingQuestions(db: PostgresJsDatabase, query: OptionBookingQuestionListQuery): Promise<{
144
+ data: {
145
+ id: string;
146
+ optionId: string;
147
+ productBookingQuestionId: string;
148
+ isRequiredOverride: boolean | null;
149
+ active: boolean;
150
+ sortOrder: number;
151
+ notes: string | null;
152
+ createdAt: Date;
153
+ updatedAt: Date;
154
+ }[];
155
+ total: number;
156
+ limit: number;
157
+ offset: number;
158
+ }>;
159
+ export declare function getOptionBookingQuestionById(db: PostgresJsDatabase, id: string): Promise<{
160
+ id: string;
161
+ optionId: string;
162
+ productBookingQuestionId: string;
163
+ isRequiredOverride: boolean | null;
164
+ active: boolean;
165
+ sortOrder: number;
166
+ notes: string | null;
167
+ createdAt: Date;
168
+ updatedAt: Date;
169
+ } | null>;
170
+ export declare function createOptionBookingQuestion(db: PostgresJsDatabase, data: CreateOptionBookingQuestionInput): Promise<{
171
+ id: string;
172
+ optionId: string;
173
+ active: boolean;
174
+ sortOrder: number;
175
+ notes: string | null;
176
+ createdAt: Date;
177
+ updatedAt: Date;
178
+ productBookingQuestionId: string;
179
+ isRequiredOverride: boolean | null;
180
+ } | null>;
181
+ export declare function updateOptionBookingQuestion(db: PostgresJsDatabase, id: string, data: UpdateOptionBookingQuestionInput): Promise<{
182
+ id: string;
183
+ optionId: string;
184
+ productBookingQuestionId: string;
185
+ isRequiredOverride: boolean | null;
186
+ active: boolean;
187
+ sortOrder: number;
188
+ notes: string | null;
189
+ createdAt: Date;
190
+ updatedAt: Date;
191
+ } | null>;
192
+ export declare function deleteOptionBookingQuestion(db: PostgresJsDatabase, id: string): Promise<{
193
+ id: string;
194
+ } | null>;
195
+ export declare function listBookingQuestionOptions(db: PostgresJsDatabase, query: BookingQuestionOptionListQuery): Promise<{
196
+ data: {
197
+ id: string;
198
+ productBookingQuestionId: string;
199
+ value: string;
200
+ label: string;
201
+ sortOrder: number;
202
+ isDefault: boolean;
203
+ active: boolean;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ }[];
207
+ total: number;
208
+ limit: number;
209
+ offset: number;
210
+ }>;
211
+ export declare function getBookingQuestionOptionById(db: PostgresJsDatabase, id: string): Promise<{
212
+ id: string;
213
+ productBookingQuestionId: string;
214
+ value: string;
215
+ label: string;
216
+ sortOrder: number;
217
+ isDefault: boolean;
218
+ active: boolean;
219
+ createdAt: Date;
220
+ updatedAt: Date;
221
+ } | null>;
222
+ export declare function createBookingQuestionOption(db: PostgresJsDatabase, data: CreateBookingQuestionOptionInput): Promise<{
223
+ value: string;
224
+ id: string;
225
+ active: boolean;
226
+ sortOrder: number;
227
+ createdAt: Date;
228
+ updatedAt: Date;
229
+ label: string;
230
+ productBookingQuestionId: string;
231
+ isDefault: boolean;
232
+ } | null>;
233
+ export declare function updateBookingQuestionOption(db: PostgresJsDatabase, id: string, data: UpdateBookingQuestionOptionInput): Promise<{
234
+ id: string;
235
+ productBookingQuestionId: string;
236
+ value: string;
237
+ label: string;
238
+ sortOrder: number;
239
+ isDefault: boolean;
240
+ active: boolean;
241
+ createdAt: Date;
242
+ updatedAt: Date;
243
+ } | null>;
244
+ export declare function deleteBookingQuestionOption(db: PostgresJsDatabase, id: string): Promise<{
245
+ id: string;
246
+ } | null>;
247
+ export declare function listBookingQuestionUnitTriggers(db: PostgresJsDatabase, query: BookingQuestionUnitTriggerListQuery): Promise<{
248
+ data: {
249
+ id: string;
250
+ productBookingQuestionId: string;
251
+ unitId: string;
252
+ triggerMode: "required" | "optional" | "hidden";
253
+ minQuantity: number | null;
254
+ active: boolean;
255
+ createdAt: Date;
256
+ updatedAt: Date;
257
+ }[];
258
+ total: number;
259
+ limit: number;
260
+ offset: number;
261
+ }>;
262
+ export declare function getBookingQuestionUnitTriggerById(db: PostgresJsDatabase, id: string): Promise<{
263
+ id: string;
264
+ productBookingQuestionId: string;
265
+ unitId: string;
266
+ triggerMode: "required" | "optional" | "hidden";
267
+ minQuantity: number | null;
268
+ active: boolean;
269
+ createdAt: Date;
270
+ updatedAt: Date;
271
+ } | null>;
272
+ export declare function createBookingQuestionUnitTrigger(db: PostgresJsDatabase, data: CreateBookingQuestionUnitTriggerInput): Promise<{
273
+ id: string;
274
+ active: boolean;
275
+ createdAt: Date;
276
+ updatedAt: Date;
277
+ productBookingQuestionId: string;
278
+ unitId: string;
279
+ triggerMode: "required" | "optional" | "hidden";
280
+ minQuantity: number | null;
281
+ } | null>;
282
+ export declare function updateBookingQuestionUnitTrigger(db: PostgresJsDatabase, id: string, data: UpdateBookingQuestionUnitTriggerInput): Promise<{
283
+ id: string;
284
+ productBookingQuestionId: string;
285
+ unitId: string;
286
+ triggerMode: "required" | "optional" | "hidden";
287
+ minQuantity: number | null;
288
+ active: boolean;
289
+ createdAt: Date;
290
+ updatedAt: Date;
291
+ } | null>;
292
+ export declare function deleteBookingQuestionUnitTrigger(db: PostgresJsDatabase, id: string): Promise<{
293
+ id: string;
294
+ } | null>;
295
+ export declare function listBookingQuestionOptionTriggers(db: PostgresJsDatabase, query: BookingQuestionOptionTriggerListQuery): Promise<{
296
+ data: {
297
+ id: string;
298
+ productBookingQuestionId: string;
299
+ optionId: string;
300
+ triggerMode: "required" | "optional" | "hidden";
301
+ active: boolean;
302
+ createdAt: Date;
303
+ updatedAt: Date;
304
+ }[];
305
+ total: number;
306
+ limit: number;
307
+ offset: number;
308
+ }>;
309
+ export declare function getBookingQuestionOptionTriggerById(db: PostgresJsDatabase, id: string): Promise<{
310
+ id: string;
311
+ productBookingQuestionId: string;
312
+ optionId: string;
313
+ triggerMode: "required" | "optional" | "hidden";
314
+ active: boolean;
315
+ createdAt: Date;
316
+ updatedAt: Date;
317
+ } | null>;
318
+ export declare function createBookingQuestionOptionTrigger(db: PostgresJsDatabase, data: CreateBookingQuestionOptionTriggerInput): Promise<{
319
+ id: string;
320
+ optionId: string;
321
+ active: boolean;
322
+ createdAt: Date;
323
+ updatedAt: Date;
324
+ productBookingQuestionId: string;
325
+ triggerMode: "required" | "optional" | "hidden";
326
+ } | null>;
327
+ export declare function updateBookingQuestionOptionTrigger(db: PostgresJsDatabase, id: string, data: UpdateBookingQuestionOptionTriggerInput): Promise<{
328
+ id: string;
329
+ productBookingQuestionId: string;
330
+ optionId: string;
331
+ triggerMode: "required" | "optional" | "hidden";
332
+ active: boolean;
333
+ createdAt: Date;
334
+ updatedAt: Date;
335
+ } | null>;
336
+ export declare function deleteBookingQuestionOptionTrigger(db: PostgresJsDatabase, id: string): Promise<{
337
+ id: string;
338
+ } | null>;
339
+ export declare function listBookingQuestionExtraTriggers(db: PostgresJsDatabase, query: BookingQuestionExtraTriggerListQuery): Promise<{
340
+ data: {
341
+ id: string;
342
+ productBookingQuestionId: string;
343
+ productExtraId: string | null;
344
+ optionExtraConfigId: string | null;
345
+ triggerMode: "required" | "optional" | "hidden";
346
+ minQuantity: number | null;
347
+ active: boolean;
348
+ createdAt: Date;
349
+ updatedAt: Date;
350
+ }[];
351
+ total: number;
352
+ limit: number;
353
+ offset: number;
354
+ }>;
355
+ export declare function getBookingQuestionExtraTriggerById(db: PostgresJsDatabase, id: string): Promise<{
356
+ id: string;
357
+ productBookingQuestionId: string;
358
+ productExtraId: string | null;
359
+ optionExtraConfigId: string | null;
360
+ triggerMode: "required" | "optional" | "hidden";
361
+ minQuantity: number | null;
362
+ active: boolean;
363
+ createdAt: Date;
364
+ updatedAt: Date;
365
+ } | null>;
366
+ export declare function createBookingQuestionExtraTrigger(db: PostgresJsDatabase, data: CreateBookingQuestionExtraTriggerInput): Promise<{
367
+ id: string;
368
+ active: boolean;
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ productBookingQuestionId: string;
372
+ triggerMode: "required" | "optional" | "hidden";
373
+ minQuantity: number | null;
374
+ productExtraId: string | null;
375
+ optionExtraConfigId: string | null;
376
+ } | null>;
377
+ export declare function updateBookingQuestionExtraTrigger(db: PostgresJsDatabase, id: string, data: UpdateBookingQuestionExtraTriggerInput): Promise<{
378
+ id: string;
379
+ productBookingQuestionId: string;
380
+ productExtraId: string | null;
381
+ optionExtraConfigId: string | null;
382
+ triggerMode: "required" | "optional" | "hidden";
383
+ minQuantity: number | null;
384
+ active: boolean;
385
+ createdAt: Date;
386
+ updatedAt: Date;
387
+ } | null>;
388
+ export declare function deleteBookingQuestionExtraTrigger(db: PostgresJsDatabase, id: string): Promise<{
389
+ id: string;
390
+ } | null>;
391
+ //# sourceMappingURL=service-questions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-questions.d.ts","sourceRoot":"","sources":["../src/service-questions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAWjE,OAAO,KAAK,EACV,oCAAoC,EACpC,8BAA8B,EAC9B,qCAAqC,EACrC,mCAAmC,EACnC,sCAAsC,EACtC,gCAAgC,EAChC,uCAAuC,EACvC,qCAAqC,EACrC,gCAAgC,EAChC,iCAAiC,EACjC,oCAAoC,EACpC,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,uCAAuC,EACvC,qCAAqC,EACrC,gCAAgC,EAChC,iCAAiC,EACjC,oCAAoC,EACrC,MAAM,qBAAqB,CAAA;AAG5B,wBAAsB,8BAA8B,CAClD,EAAE,EAAE,kBAAkB,EACtB,KAAK,EAAE,kCAAkC;;;;;;;;;;;;;;;;;;GAoB1C;AAED,wBAAsB,gCAAgC,CAAC,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;UAOxF;AAED,wBAAsB,+BAA+B,CACnD,EAAE,EAAE,kBAAkB,EACtB,IAAI,EAAE,oCAAoC;;;;;;;;;;;;;UAI3C;AAED,wBAAsB,+BAA+B,CACnD,EAAE,EAAE,kBAAkB,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oCAAoC;;;;;;;;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