@voyantjs/products 0.5.0 → 0.6.2

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.
@@ -690,7 +690,7 @@ export declare const optionUnits: import("drizzle-orm/pg-core").PgTableWithColum
690
690
  tableName: "option_units";
691
691
  dataType: "string";
692
692
  columnType: "PgEnumColumn";
693
- data: "person" | "group" | "room" | "vehicle" | "service" | "other";
693
+ data: "service" | "other" | "person" | "group" | "room" | "vehicle";
694
694
  driverParam: string;
695
695
  notNull: true;
696
696
  hasDefault: true;
@@ -218,7 +218,7 @@ export declare const productTicketSettings: import("drizzle-orm/pg-core").PgTabl
218
218
  tableName: "product_ticket_settings";
219
219
  dataType: "string";
220
220
  columnType: "PgEnumColumn";
221
- data: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
221
+ data: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
222
222
  driverParam: string;
223
223
  notNull: true;
224
224
  hasDefault: true;
@@ -647,7 +647,7 @@ export declare const productDeliveryFormats: import("drizzle-orm/pg-core").PgTab
647
647
  tableName: "product_delivery_formats";
648
648
  dataType: "string";
649
649
  columnType: "PgEnumColumn";
650
- data: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
650
+ data: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
651
651
  driverParam: string;
652
652
  notNull: true;
653
653
  hasDefault: false;
@@ -1035,7 +1035,7 @@ export declare const productLocations: import("drizzle-orm/pg-core").PgTableWith
1035
1035
  tableName: "product_locations";
1036
1036
  dataType: "string";
1037
1037
  columnType: "PgEnumColumn";
1038
- data: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
1038
+ data: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
1039
1039
  driverParam: string;
1040
1040
  notNull: true;
1041
1041
  hasDefault: true;
@@ -57,7 +57,7 @@ export declare const catalogProductsService: {
57
57
  }[];
58
58
  locations: {
59
59
  id: string;
60
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
60
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
61
61
  title: string;
62
62
  address: string | null;
63
63
  city: string | null;
@@ -168,7 +168,7 @@ export declare const catalogProductsService: {
168
168
  }[];
169
169
  locations: {
170
170
  id: string;
171
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
171
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
172
172
  title: string;
173
173
  address: string | null;
174
174
  city: string | null;
@@ -51,7 +51,7 @@ export declare const publicProductsService: {
51
51
  }[];
52
52
  locations: {
53
53
  id: string;
54
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
54
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
55
55
  title: string;
56
56
  address: string | null;
57
57
  city: string | null;
@@ -162,7 +162,7 @@ export declare const publicProductsService: {
162
162
  }[];
163
163
  locations: {
164
164
  id: string;
165
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
165
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
166
166
  title: string;
167
167
  address: string | null;
168
168
  city: string | null;
@@ -241,7 +241,7 @@ export declare const publicProductsService: {
241
241
  }[];
242
242
  locations: {
243
243
  id: string;
244
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
244
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
245
245
  title: string;
246
246
  address: string | null;
247
247
  city: string | null;
@@ -314,7 +314,7 @@ export declare const publicProductsService: {
314
314
  }[];
315
315
  locations: {
316
316
  id: string;
317
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
317
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
318
318
  title: string;
319
319
  address: string | null;
320
320
  city: string | null;
package/dist/service.d.ts CHANGED
@@ -125,15 +125,17 @@ export declare const productsService: {
125
125
  updatedAt: Date;
126
126
  } | null>;
127
127
  createProduct(db: PostgresJsDatabase, data: CreateProductInput): Promise<{
128
+ id: string;
128
129
  name: string;
129
130
  createdAt: Date;
130
131
  updatedAt: Date;
131
- description: string | null;
132
- id: string;
133
132
  status: "draft" | "active" | "archived";
133
+ startDate: string | null;
134
+ endDate: string | null;
135
+ timezone: string | null;
136
+ description: string | null;
134
137
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
135
138
  capacityMode: "free_sale" | "limited" | "on_request";
136
- timezone: string | null;
137
139
  visibility: "public" | "private" | "hidden";
138
140
  activated: boolean;
139
141
  reservationTimeoutMinutes: number | null;
@@ -142,8 +144,6 @@ export declare const productsService: {
142
144
  costAmountCents: number | null;
143
145
  marginPercent: number | null;
144
146
  facilityId: string | null;
145
- startDate: string | null;
146
- endDate: string | null;
147
147
  pax: number | null;
148
148
  productTypeId: string | null;
149
149
  tags: string[] | null;
@@ -203,10 +203,10 @@ export declare const productsService: {
203
203
  updatedAt: Date;
204
204
  } | null>;
205
205
  upsertActivationSetting(db: PostgresJsDatabase, productId: string, data: CreateProductActivationSettingInput): Promise<{
206
- productId: string;
206
+ id: string;
207
207
  createdAt: Date;
208
208
  updatedAt: Date;
209
- id: string;
209
+ productId: string;
210
210
  activationMode: "manual" | "scheduled" | "channel_controlled";
211
211
  activateAt: Date | null;
212
212
  deactivateAt: Date | null;
@@ -232,7 +232,7 @@ export declare const productsService: {
232
232
  id: string;
233
233
  productId: string;
234
234
  fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
235
- defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
235
+ defaultDeliveryFormat: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
236
236
  ticketPerUnit: boolean;
237
237
  barcodeFormat: string | null;
238
238
  voucherMessage: string | null;
@@ -248,7 +248,7 @@ export declare const productsService: {
248
248
  id: string;
249
249
  productId: string;
250
250
  fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
251
- defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
251
+ defaultDeliveryFormat: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
252
252
  ticketPerUnit: boolean;
253
253
  barcodeFormat: string | null;
254
254
  voucherMessage: string | null;
@@ -257,12 +257,12 @@ export declare const productsService: {
257
257
  updatedAt: Date;
258
258
  } | null>;
259
259
  upsertTicketSetting(db: PostgresJsDatabase, productId: string, data: CreateProductTicketSettingInput): Promise<{
260
- productId: string;
260
+ id: string;
261
261
  createdAt: Date;
262
262
  updatedAt: Date;
263
- id: string;
263
+ productId: string;
264
264
  fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
265
- defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
265
+ defaultDeliveryFormat: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
266
266
  ticketPerUnit: boolean;
267
267
  barcodeFormat: string | null;
268
268
  voucherMessage: string | null;
@@ -272,7 +272,7 @@ export declare const productsService: {
272
272
  id: string;
273
273
  productId: string;
274
274
  fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
275
- defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
275
+ defaultDeliveryFormat: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
276
276
  ticketPerUnit: boolean;
277
277
  barcodeFormat: string | null;
278
278
  voucherMessage: string | null;
@@ -309,10 +309,10 @@ export declare const productsService: {
309
309
  updatedAt: Date;
310
310
  } | null>;
311
311
  upsertVisibilitySetting(db: PostgresJsDatabase, productId: string, data: CreateProductVisibilitySettingInput): Promise<{
312
- productId: string;
312
+ id: string;
313
313
  createdAt: Date;
314
314
  updatedAt: Date;
315
- id: string;
315
+ productId: string;
316
316
  isSearchable: boolean;
317
317
  isBookable: boolean;
318
318
  isFeatured: boolean;
@@ -356,11 +356,11 @@ export declare const productsService: {
356
356
  } | null>;
357
357
  createCapability(db: PostgresJsDatabase, productId: string, data: CreateProductCapabilityInput): Promise<{
358
358
  enabled: boolean;
359
- productId: string;
359
+ id: string;
360
360
  createdAt: Date;
361
361
  updatedAt: Date;
362
- id: string;
363
362
  notes: string | null;
363
+ productId: string;
364
364
  capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
365
365
  } | null>;
366
366
  updateCapability(db: PostgresJsDatabase, id: string, data: UpdateProductCapabilityInput): Promise<{
@@ -379,7 +379,7 @@ export declare const productsService: {
379
379
  data: {
380
380
  id: string;
381
381
  productId: string;
382
- format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
382
+ format: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
383
383
  isDefault: boolean;
384
384
  createdAt: Date;
385
385
  updatedAt: Date;
@@ -391,23 +391,23 @@ export declare const productsService: {
391
391
  getDeliveryFormatById(db: PostgresJsDatabase, id: string): Promise<{
392
392
  id: string;
393
393
  productId: string;
394
- format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
394
+ format: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
395
395
  isDefault: boolean;
396
396
  createdAt: Date;
397
397
  updatedAt: Date;
398
398
  } | null>;
399
399
  createDeliveryFormat(db: PostgresJsDatabase, productId: string, data: CreateProductDeliveryFormatInput): Promise<{
400
- productId: string;
400
+ id: string;
401
401
  createdAt: Date;
402
402
  updatedAt: Date;
403
- format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
404
- id: string;
403
+ format: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
404
+ productId: string;
405
405
  isDefault: boolean;
406
406
  } | null>;
407
407
  updateDeliveryFormat(db: PostgresJsDatabase, id: string, data: UpdateProductDeliveryFormatInput): Promise<{
408
408
  id: string;
409
409
  productId: string;
410
- format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
410
+ format: "email" | "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
411
411
  isDefault: boolean;
412
412
  createdAt: Date;
413
413
  updatedAt: Date;
@@ -441,13 +441,13 @@ export declare const productsService: {
441
441
  updatedAt: Date;
442
442
  } | null>;
443
443
  createFeature(db: PostgresJsDatabase, productId: string, data: CreateProductFeatureInput): Promise<{
444
- productId: string;
444
+ id: string;
445
445
  createdAt: Date;
446
446
  updatedAt: Date;
447
447
  description: string | null;
448
- id: string;
449
- sortOrder: number;
448
+ productId: string;
450
449
  title: string;
450
+ sortOrder: number;
451
451
  featureType: "other" | "inclusion" | "exclusion" | "highlight" | "important_information";
452
452
  } | null>;
453
453
  updateFeature(db: PostgresJsDatabase, id: string, data: UpdateProductFeatureInput): Promise<{
@@ -487,10 +487,10 @@ export declare const productsService: {
487
487
  updatedAt: Date;
488
488
  } | null>;
489
489
  createFaq(db: PostgresJsDatabase, productId: string, data: CreateProductFaqInput): Promise<{
490
- productId: string;
490
+ id: string;
491
491
  createdAt: Date;
492
492
  updatedAt: Date;
493
- id: string;
493
+ productId: string;
494
494
  sortOrder: number;
495
495
  question: string;
496
496
  answer: string;
@@ -511,7 +511,7 @@ export declare const productsService: {
511
511
  data: {
512
512
  id: string;
513
513
  productId: string;
514
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
514
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
515
515
  title: string;
516
516
  address: string | null;
517
517
  city: string | null;
@@ -532,7 +532,7 @@ export declare const productsService: {
532
532
  getLocationById(db: PostgresJsDatabase, id: string): Promise<{
533
533
  id: string;
534
534
  productId: string;
535
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
535
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
536
536
  title: string;
537
537
  address: string | null;
538
538
  city: string | null;
@@ -547,13 +547,13 @@ export declare const productsService: {
547
547
  updatedAt: Date;
548
548
  } | null>;
549
549
  createLocation(db: PostgresJsDatabase, productId: string, data: CreateProductLocationInput): Promise<{
550
- productId: string;
550
+ id: string;
551
551
  createdAt: Date;
552
552
  updatedAt: Date;
553
- id: string;
554
- sortOrder: number;
553
+ productId: string;
555
554
  title: string;
556
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
555
+ sortOrder: number;
556
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
557
557
  address: string | null;
558
558
  city: string | null;
559
559
  countryCode: string | null;
@@ -566,7 +566,7 @@ export declare const productsService: {
566
566
  updateLocation(db: PostgresJsDatabase, id: string, data: UpdateProductLocationInput): Promise<{
567
567
  id: string;
568
568
  productId: string;
569
- locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
569
+ locationType: "start" | "other" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
570
570
  title: string;
571
571
  address: string | null;
572
572
  city: string | null;
@@ -635,14 +635,14 @@ export declare const productsService: {
635
635
  updatedAt: Date;
636
636
  } | null>;
637
637
  createDestination(db: PostgresJsDatabase, data: CreateDestinationInput): Promise<{
638
+ metadata: Record<string, unknown> | null;
639
+ id: string;
638
640
  createdAt: Date;
639
641
  updatedAt: Date;
640
- id: string;
641
- active: boolean;
642
+ slug: string;
642
643
  code: string | null;
644
+ active: boolean;
643
645
  sortOrder: number;
644
- slug: string;
645
- metadata: Record<string, unknown> | null;
646
646
  parentId: string | null;
647
647
  destinationType: string;
648
648
  } | null>;
@@ -678,11 +678,11 @@ export declare const productsService: {
678
678
  offset: number;
679
679
  }>;
680
680
  upsertDestinationTranslation(db: PostgresJsDatabase, destinationId: string, data: CreateDestinationTranslationInput): Promise<{
681
+ id: string;
681
682
  name: string;
682
683
  createdAt: Date;
683
684
  updatedAt: Date;
684
685
  description: string | null;
685
- id: string;
686
686
  languageTag: string;
687
687
  seoTitle: string | null;
688
688
  seoDescription: string | null;
@@ -721,9 +721,9 @@ export declare const productsService: {
721
721
  destinationId: string;
722
722
  sortOrder?: number;
723
723
  }): Promise<{
724
- productId: string;
725
724
  createdAt: Date;
726
725
  updatedAt: Date;
726
+ productId: string;
727
727
  sortOrder: number;
728
728
  destinationId: string;
729
729
  } | null>;
@@ -765,14 +765,14 @@ export declare const productsService: {
765
765
  updatedAt: Date;
766
766
  } | null>;
767
767
  createOption(db: PostgresJsDatabase, productId: string, data: CreateProductOptionInput): Promise<{
768
- productId: string;
768
+ id: string;
769
769
  name: string;
770
770
  createdAt: Date;
771
771
  updatedAt: Date;
772
- description: string | null;
773
- id: string;
774
772
  status: "draft" | "active" | "archived";
773
+ description: string | null;
775
774
  code: string | null;
775
+ productId: string;
776
776
  isDefault: boolean;
777
777
  sortOrder: number;
778
778
  availableFrom: string | null;
@@ -802,7 +802,7 @@ export declare const productsService: {
802
802
  name: string;
803
803
  code: string | null;
804
804
  description: string | null;
805
- unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
805
+ unitType: "service" | "other" | "person" | "group" | "room" | "vehicle";
806
806
  minQuantity: number | null;
807
807
  maxQuantity: number | null;
808
808
  minAge: number | null;
@@ -825,7 +825,7 @@ export declare const productsService: {
825
825
  name: string;
826
826
  code: string | null;
827
827
  description: string | null;
828
- unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
828
+ unitType: "service" | "other" | "person" | "group" | "room" | "vehicle";
829
829
  minQuantity: number | null;
830
830
  maxQuantity: number | null;
831
831
  minAge: number | null;
@@ -839,15 +839,15 @@ export declare const productsService: {
839
839
  updatedAt: Date;
840
840
  } | null>;
841
841
  createUnit(db: PostgresJsDatabase, optionId: string, data: CreateOptionUnitInput): Promise<{
842
+ id: string;
842
843
  name: string;
843
- optionId: string;
844
844
  createdAt: Date;
845
845
  updatedAt: Date;
846
846
  description: string | null;
847
- id: string;
848
847
  code: string | null;
848
+ optionId: string;
849
849
  sortOrder: number;
850
- unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
850
+ unitType: "service" | "other" | "person" | "group" | "room" | "vehicle";
851
851
  minQuantity: number | null;
852
852
  maxQuantity: number | null;
853
853
  minAge: number | null;
@@ -863,7 +863,7 @@ export declare const productsService: {
863
863
  name: string;
864
864
  code: string | null;
865
865
  description: string | null;
866
- unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
866
+ unitType: "service" | "other" | "person" | "group" | "room" | "vehicle";
867
867
  minQuantity: number | null;
868
868
  maxQuantity: number | null;
869
869
  minAge: number | null;
@@ -911,14 +911,14 @@ export declare const productsService: {
911
911
  updatedAt: Date;
912
912
  } | null>;
913
913
  createProductTranslation(db: PostgresJsDatabase, productId: string, data: CreateProductTranslationInput): Promise<{
914
- productId: string;
914
+ id: string;
915
915
  name: string;
916
916
  createdAt: Date;
917
917
  updatedAt: Date;
918
+ slug: string | null;
918
919
  description: string | null;
919
- id: string;
920
+ productId: string;
920
921
  languageTag: string;
921
- slug: string | null;
922
922
  shortDescription: string | null;
923
923
  seoTitle: string | null;
924
924
  seoDescription: string | null;
@@ -965,12 +965,12 @@ export declare const productsService: {
965
965
  updatedAt: Date;
966
966
  } | null>;
967
967
  createOptionTranslation(db: PostgresJsDatabase, optionId: string, data: CreateProductOptionTranslationInput): Promise<{
968
+ id: string;
968
969
  name: string;
969
- optionId: string;
970
970
  createdAt: Date;
971
971
  updatedAt: Date;
972
972
  description: string | null;
973
- id: string;
973
+ optionId: string;
974
974
  languageTag: string;
975
975
  shortDescription: string | null;
976
976
  } | null>;
@@ -1013,12 +1013,12 @@ export declare const productsService: {
1013
1013
  updatedAt: Date;
1014
1014
  } | null>;
1015
1015
  createUnitTranslation(db: PostgresJsDatabase, unitId: string, data: CreateOptionUnitTranslationInput): Promise<{
1016
+ id: string;
1016
1017
  name: string;
1017
1018
  createdAt: Date;
1018
1019
  updatedAt: Date;
1019
- unitId: string;
1020
1020
  description: string | null;
1021
- id: string;
1021
+ unitId: string;
1022
1022
  languageTag: string;
1023
1023
  shortDescription: string | null;
1024
1024
  } | null>;
@@ -1320,13 +1320,13 @@ export declare const productsService: {
1320
1320
  }, {}, {}>;
1321
1321
  }>, "where" | "orderBy">;
1322
1322
  createDay(db: PostgresJsDatabase, productId: string, data: CreateDayInput): Promise<{
1323
- productId: string;
1323
+ id: string;
1324
1324
  createdAt: Date;
1325
1325
  updatedAt: Date;
1326
1326
  description: string | null;
1327
- id: string;
1328
- dayNumber: number;
1327
+ productId: string;
1329
1328
  title: string | null;
1329
+ dayNumber: number;
1330
1330
  location: string | null;
1331
1331
  } | null | undefined>;
1332
1332
  updateDay(db: PostgresJsDatabase, dayId: string, data: UpdateDayInput): Promise<{
@@ -1767,18 +1767,18 @@ export declare const productsService: {
1767
1767
  }, {}, {}>;
1768
1768
  }>, "where" | "orderBy">;
1769
1769
  createDayService(db: PostgresJsDatabase, productId: string, dayId: string, data: CreateDayServiceInput): Promise<{
1770
+ id: string;
1770
1771
  name: string;
1771
1772
  createdAt: Date;
1772
- supplierServiceId: string | null;
1773
+ notes: string | null;
1773
1774
  description: string | null;
1774
- id: string;
1775
+ supplierServiceId: string | null;
1775
1776
  costAmountCents: number;
1776
1777
  sortOrder: number | null;
1777
1778
  dayId: string;
1778
1779
  serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
1779
1780
  costCurrency: string;
1780
1781
  quantity: number;
1781
- notes: string | null;
1782
1782
  } | null | undefined>;
1783
1783
  updateDayService(db: PostgresJsDatabase, productId: string, serviceId: string, data: UpdateDayServiceInput): Promise<{
1784
1784
  id: string;
@@ -2047,10 +2047,10 @@ export declare const productsService: {
2047
2047
  }, {}, {}>;
2048
2048
  }>, "where" | "orderBy">;
2049
2049
  createVersion(db: PostgresJsDatabase, productId: string, userId: string, data: CreateVersionInput): Promise<{
2050
- productId: string;
2051
- createdAt: Date;
2052
2050
  id: string;
2051
+ createdAt: Date;
2053
2052
  notes: string | null;
2053
+ productId: string;
2054
2054
  versionNumber: number;
2055
2055
  snapshot: unknown;
2056
2056
  authorId: string;
@@ -2235,9 +2235,9 @@ export declare const productsService: {
2235
2235
  }, {}, {}>;
2236
2236
  }>, "where" | "orderBy">;
2237
2237
  createNote(db: PostgresJsDatabase, productId: string, userId: string, data: CreateProductNoteInput): Promise<{
2238
- productId: string;
2239
- createdAt: Date;
2240
2238
  id: string;
2239
+ createdAt: Date;
2240
+ productId: string;
2241
2241
  authorId: string;
2242
2242
  content: string;
2243
2243
  } | null | undefined>;
@@ -2273,15 +2273,15 @@ export declare const productsService: {
2273
2273
  updatedAt: Date;
2274
2274
  } | null>;
2275
2275
  createProductType(db: PostgresJsDatabase, data: CreateProductTypeInput): Promise<{
2276
+ metadata: Record<string, unknown> | null;
2277
+ id: string;
2276
2278
  name: string;
2277
2279
  createdAt: Date;
2278
2280
  updatedAt: Date;
2279
2281
  description: string | null;
2280
- id: string;
2281
- active: boolean;
2282
2282
  code: string;
2283
+ active: boolean;
2283
2284
  sortOrder: number;
2284
- metadata: Record<string, unknown> | null;
2285
2285
  } | undefined>;
2286
2286
  updateProductType(db: PostgresJsDatabase, id: string, data: UpdateProductTypeInput): Promise<{
2287
2287
  id: string;
@@ -2327,15 +2327,15 @@ export declare const productsService: {
2327
2327
  updatedAt: Date;
2328
2328
  } | null>;
2329
2329
  createProductCategory(db: PostgresJsDatabase, data: CreateProductCategoryInput): Promise<{
2330
+ metadata: Record<string, unknown> | null;
2331
+ id: string;
2330
2332
  name: string;
2331
2333
  createdAt: Date;
2332
2334
  updatedAt: Date;
2335
+ slug: string;
2333
2336
  description: string | null;
2334
- id: string;
2335
2337
  active: boolean;
2336
2338
  sortOrder: number;
2337
- slug: string;
2338
- metadata: Record<string, unknown> | null;
2339
2339
  parentId: string | null;
2340
2340
  } | undefined>;
2341
2341
  updateProductCategory(db: PostgresJsDatabase, id: string, data: UpdateProductCategoryInput): Promise<{
@@ -2371,10 +2371,10 @@ export declare const productsService: {
2371
2371
  updatedAt: Date;
2372
2372
  } | null>;
2373
2373
  createProductTag(db: PostgresJsDatabase, data: CreateProductTagInput): Promise<{
2374
+ id: string;
2374
2375
  name: string;
2375
2376
  createdAt: Date;
2376
2377
  updatedAt: Date;
2377
- id: string;
2378
2378
  } | undefined>;
2379
2379
  updateProductTag(db: PostgresJsDatabase, id: string, data: UpdateProductTagInput): Promise<{
2380
2380
  id: string;
@@ -2386,9 +2386,9 @@ export declare const productsService: {
2386
2386
  id: string;
2387
2387
  } | null>;
2388
2388
  addProductToCategory(db: PostgresJsDatabase, productId: string, categoryId: string, sortOrder?: number): Promise<{
2389
- productId: string;
2390
2389
  createdAt: Date;
2391
2390
  updatedAt: Date;
2391
+ productId: string;
2392
2392
  sortOrder: number;
2393
2393
  categoryId: string;
2394
2394
  } | null>;
@@ -2408,8 +2408,8 @@ export declare const productsService: {
2408
2408
  updatedAt: Date;
2409
2409
  }[]>;
2410
2410
  addProductTag(db: PostgresJsDatabase, productId: string, tagId: string): Promise<{
2411
- productId: string;
2412
2411
  createdAt: Date;
2412
+ productId: string;
2413
2413
  tagId: string;
2414
2414
  } | null>;
2415
2415
  removeProductTag(db: PostgresJsDatabase, productId: string, tagId: string): Promise<{
@@ -2489,11 +2489,11 @@ export declare const productsService: {
2489
2489
  updatedAt: Date;
2490
2490
  } | null>;
2491
2491
  createMedia(db: PostgresJsDatabase, productId: string, data: CreateProductMediaInput): Promise<{
2492
- productId: string;
2492
+ id: string;
2493
2493
  name: string;
2494
2494
  createdAt: Date;
2495
2495
  updatedAt: Date;
2496
- id: string;
2496
+ productId: string;
2497
2497
  sortOrder: number;
2498
2498
  dayId: string | null;
2499
2499
  mediaType: "image" | "video" | "document";
@@ -2527,11 +2527,11 @@ export declare const productsService: {
2527
2527
  updatedAt: Date;
2528
2528
  } | null>;
2529
2529
  deleteMedia(db: PostgresJsDatabase, id: string): Promise<{
2530
- productId: string;
2530
+ id: string;
2531
2531
  name: string;
2532
2532
  createdAt: Date;
2533
2533
  updatedAt: Date;
2534
- id: string;
2534
+ productId: string;
2535
2535
  sortOrder: number;
2536
2536
  dayId: string | null;
2537
2537
  mediaType: "image" | "video" | "document";
@@ -2606,11 +2606,11 @@ export declare const productsService: {
2606
2606
  updatedAt: Date;
2607
2607
  }[]>;
2608
2608
  upsertBrochure(db: PostgresJsDatabase, productId: string, data: UpsertProductBrochureInput): Promise<{
2609
- productId: string;
2609
+ id: string;
2610
2610
  name: string;
2611
2611
  createdAt: Date;
2612
2612
  updatedAt: Date;
2613
- id: string;
2613
+ productId: string;
2614
2614
  sortOrder: number;
2615
2615
  dayId: string | null;
2616
2616
  mediaType: "image" | "video" | "document";
@@ -2625,11 +2625,11 @@ export declare const productsService: {
2625
2625
  brochureVersion: number | null;
2626
2626
  } | null>;
2627
2627
  deleteBrochure(db: PostgresJsDatabase, productId: string): Promise<{
2628
- productId: string;
2628
+ id: string;
2629
2629
  name: string;
2630
2630
  createdAt: Date;
2631
2631
  updatedAt: Date;
2632
- id: string;
2632
+ productId: string;
2633
2633
  sortOrder: number;
2634
2634
  dayId: string | null;
2635
2635
  mediaType: "image" | "video" | "document";
@@ -2663,11 +2663,11 @@ export declare const productsService: {
2663
2663
  updatedAt: Date;
2664
2664
  } | null>;
2665
2665
  deleteBrochureVersion(db: PostgresJsDatabase, productId: string, brochureId: string): Promise<{
2666
- productId: string;
2666
+ id: string;
2667
2667
  name: string;
2668
2668
  createdAt: Date;
2669
2669
  updatedAt: Date;
2670
- id: string;
2670
+ productId: string;
2671
2671
  sortOrder: number;
2672
2672
  dayId: string | null;
2673
2673
  mediaType: "image" | "video" | "document";