@voyantjs/products 0.53.0 → 0.53.1

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.
@@ -40,7 +40,7 @@ export declare function listProductActionLedger(c: Context<Env>): Promise<(Respo
40
40
  id: string;
41
41
  actionName: string;
42
42
  actionVersion: string;
43
- actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
43
+ actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
44
44
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
45
45
  evaluatedRisk: "low" | "medium" | "high" | "critical";
46
46
  actorType: string | null;
@@ -69,10 +69,10 @@ export declare const productCatalogRoutes: import("hono/hono-base").HonoBase<Env
69
69
  input: {};
70
70
  output: {
71
71
  data: {
72
- name: string;
73
72
  id: string;
74
- description: string | null;
73
+ name: string;
75
74
  createdAt: string;
75
+ description: string | null;
76
76
  active: boolean;
77
77
  updatedAt: string;
78
78
  code: string;
@@ -224,10 +224,10 @@ export declare const productCatalogRoutes: import("hono/hono-base").HonoBase<Env
224
224
  input: {};
225
225
  output: {
226
226
  data: {
227
- name: string;
228
227
  id: string;
229
- description: string | null;
228
+ name: string;
230
229
  createdAt: string;
230
+ description: string | null;
231
231
  active: boolean;
232
232
  customerPaymentPolicy: import("hono/utils/types").JSONValue;
233
233
  updatedAt: string;
@@ -365,8 +365,8 @@ export declare const productCatalogRoutes: import("hono/hono-base").HonoBase<Env
365
365
  input: {};
366
366
  output: {
367
367
  data: {
368
- name: string;
369
368
  id: string;
369
+ name: string;
370
370
  createdAt: string;
371
371
  updatedAt: string;
372
372
  } | undefined;
@@ -68,11 +68,11 @@ export declare const productCoreRoutes: import("hono/hono-base").HonoBase<Env, {
68
68
  input: {};
69
69
  output: {
70
70
  data: {
71
- name: string;
72
71
  id: string;
73
- description: string | null;
72
+ name: string;
74
73
  status: "draft" | "active" | "archived";
75
74
  createdAt: string;
75
+ description: string | null;
76
76
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
77
77
  capacityMode: "free_sale" | "limited" | "on_request";
78
78
  timezone: string | null;
@@ -175,7 +175,7 @@ export declare const productCoreRoutes: import("hono/hono-base").HonoBase<Env, {
175
175
  id: string;
176
176
  actionName: string;
177
177
  actionVersion: string;
178
- actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
178
+ actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
179
179
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
180
180
  evaluatedRisk: "low" | "medium" | "high" | "critical";
181
181
  actorType: string | null;
@@ -43,8 +43,8 @@ export declare const productItineraryRoutes: import("hono/hono-base").HonoBase<E
43
43
  };
44
44
  output: {
45
45
  data: {
46
- name: string;
47
46
  id: string;
47
+ name: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
50
  productId: string;
@@ -137,8 +137,8 @@ export declare const productItineraryRoutes: import("hono/hono-base").HonoBase<E
137
137
  };
138
138
  output: {
139
139
  data: {
140
- name: string;
141
140
  id: string;
141
+ name: string;
142
142
  createdAt: string;
143
143
  updatedAt: string;
144
144
  productId: string;
@@ -202,8 +202,8 @@ export declare const productItineraryRoutes: import("hono/hono-base").HonoBase<E
202
202
  output: {
203
203
  data: {
204
204
  id: string;
205
- description: string | null;
206
205
  createdAt: string;
206
+ description: string | null;
207
207
  updatedAt: string;
208
208
  itineraryId: string;
209
209
  dayNumber: number;
@@ -261,8 +261,8 @@ export declare const productItineraryRoutes: import("hono/hono-base").HonoBase<E
261
261
  output: {
262
262
  data: {
263
263
  id: string;
264
- description: string | null;
265
264
  createdAt: string;
265
+ description: string | null;
266
266
  updatedAt: string;
267
267
  itineraryId: string;
268
268
  dayNumber: number;
@@ -399,10 +399,10 @@ export declare const productItineraryRoutes: import("hono/hono-base").HonoBase<E
399
399
  };
400
400
  output: {
401
401
  data: {
402
- name: string;
403
402
  id: string;
404
- description: string | null;
403
+ name: string;
405
404
  createdAt: string;
405
+ description: string | null;
406
406
  costAmountCents: number;
407
407
  sortOrder: number | null;
408
408
  dayId: string;
@@ -163,8 +163,8 @@ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env,
163
163
  };
164
164
  output: {
165
165
  data: {
166
- name: string;
167
166
  id: string;
167
+ name: string;
168
168
  createdAt: string;
169
169
  updatedAt: string;
170
170
  productId: string;
@@ -284,8 +284,8 @@ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env,
284
284
  };
285
285
  output: {
286
286
  data: {
287
- name: string;
288
287
  id: string;
288
+ name: string;
289
289
  createdAt: string;
290
290
  updatedAt: string;
291
291
  productId: string;
@@ -328,8 +328,8 @@ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env,
328
328
  };
329
329
  output: {
330
330
  data: {
331
- name: string;
332
331
  id: string;
332
+ name: string;
333
333
  createdAt: string;
334
334
  updatedAt: string;
335
335
  productId: string;
@@ -424,8 +424,8 @@ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env,
424
424
  };
425
425
  output: {
426
426
  data: {
427
- name: string;
428
427
  id: string;
428
+ name: string;
429
429
  createdAt: string;
430
430
  updatedAt: string;
431
431
  productId: string;
@@ -504,8 +504,8 @@ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env,
504
504
  };
505
505
  output: {
506
506
  data: {
507
- name: string;
508
507
  id: string;
508
+ name: string;
509
509
  createdAt: string;
510
510
  updatedAt: string;
511
511
  productId: string;
@@ -607,8 +607,8 @@ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env,
607
607
  };
608
608
  output: {
609
609
  data: {
610
- name: string;
611
610
  id: string;
611
+ name: string;
612
612
  createdAt: string;
613
613
  updatedAt: string;
614
614
  productId: string;
@@ -79,8 +79,8 @@ export declare const productMerchandisingRoutes: import("hono/hono-base").HonoBa
79
79
  output: {
80
80
  data: {
81
81
  id: string;
82
- description: string | null;
83
82
  createdAt: string;
83
+ description: string | null;
84
84
  updatedAt: string;
85
85
  productId: string;
86
86
  sortOrder: number;
@@ -707,10 +707,10 @@ export declare const productMerchandisingRoutes: import("hono/hono-base").HonoBa
707
707
  };
708
708
  output: {
709
709
  data: {
710
- name: string;
711
710
  id: string;
712
- description: string | null;
711
+ name: string;
713
712
  createdAt: string;
713
+ description: string | null;
714
714
  updatedAt: string;
715
715
  languageTag: string;
716
716
  seoTitle: string | null;
@@ -829,10 +829,10 @@ export declare const productMerchandisingRoutes: import("hono/hono-base").HonoBa
829
829
  };
830
830
  output: {
831
831
  data: {
832
- name: string;
833
832
  id: string;
834
- description: string | null;
833
+ name: string;
835
834
  createdAt: string;
835
+ description: string | null;
836
836
  updatedAt: string;
837
837
  languageTag: string;
838
838
  seoTitle: string | null;
@@ -948,8 +948,8 @@ export declare const productMerchandisingRoutes: import("hono/hono-base").HonoBa
948
948
  };
949
949
  output: {
950
950
  data: {
951
- name: string;
952
951
  id: string;
952
+ name: string;
953
953
  createdAt: string;
954
954
  updatedAt: string;
955
955
  languageTag: string;
@@ -86,11 +86,11 @@ export declare const productOptionRoutes: import("hono/hono-base").HonoBase<Env,
86
86
  };
87
87
  output: {
88
88
  data: {
89
- name: string;
90
89
  id: string;
91
- description: string | null;
90
+ name: string;
92
91
  status: "draft" | "active" | "archived";
93
92
  createdAt: string;
93
+ description: string | null;
94
94
  updatedAt: string;
95
95
  productId: string;
96
96
  code: string | null;
@@ -266,10 +266,10 @@ export declare const productOptionRoutes: import("hono/hono-base").HonoBase<Env,
266
266
  };
267
267
  output: {
268
268
  data: {
269
- name: string;
270
269
  id: string;
271
- description: string | null;
270
+ name: string;
272
271
  createdAt: string;
272
+ description: string | null;
273
273
  updatedAt: string;
274
274
  code: string | null;
275
275
  sortOrder: number;
@@ -84,10 +84,10 @@ export declare const productTranslationRoutes: import("hono/hono-base").HonoBase
84
84
  };
85
85
  output: {
86
86
  data: {
87
- name: string;
88
87
  id: string;
89
- description: string | null;
88
+ name: string;
90
89
  createdAt: string;
90
+ description: string | null;
91
91
  updatedAt: string;
92
92
  productId: string;
93
93
  languageTag: string;
@@ -244,10 +244,10 @@ export declare const productTranslationRoutes: import("hono/hono-base").HonoBase
244
244
  };
245
245
  output: {
246
246
  data: {
247
- name: string;
248
247
  id: string;
249
- description: string | null;
248
+ name: string;
250
249
  createdAt: string;
250
+ description: string | null;
251
251
  updatedAt: string;
252
252
  optionId: string;
253
253
  languageTag: string;
@@ -398,10 +398,10 @@ export declare const productTranslationRoutes: import("hono/hono-base").HonoBase
398
398
  };
399
399
  output: {
400
400
  data: {
401
- name: string;
402
401
  id: string;
403
- description: string | null;
402
+ name: string;
404
403
  createdAt: string;
404
+ description: string | null;
405
405
  updatedAt: string;
406
406
  languageTag: string;
407
407
  shortDescription: string | null;
package/dist/routes.d.ts CHANGED
@@ -850,8 +850,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
850
850
  output: {
851
851
  data: {
852
852
  id: string;
853
- description: string | null;
854
853
  createdAt: string;
854
+ description: string | null;
855
855
  updatedAt: string;
856
856
  productId: string;
857
857
  sortOrder: number;
@@ -1478,10 +1478,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
1478
1478
  };
1479
1479
  output: {
1480
1480
  data: {
1481
- name: string;
1482
1481
  id: string;
1483
- description: string | null;
1482
+ name: string;
1484
1483
  createdAt: string;
1484
+ description: string | null;
1485
1485
  updatedAt: string;
1486
1486
  languageTag: string;
1487
1487
  seoTitle: string | null;
@@ -1600,10 +1600,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
1600
1600
  };
1601
1601
  output: {
1602
1602
  data: {
1603
- name: string;
1604
1603
  id: string;
1605
- description: string | null;
1604
+ name: string;
1606
1605
  createdAt: string;
1606
+ description: string | null;
1607
1607
  updatedAt: string;
1608
1608
  languageTag: string;
1609
1609
  seoTitle: string | null;
@@ -1719,8 +1719,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
1719
1719
  };
1720
1720
  output: {
1721
1721
  data: {
1722
- name: string;
1723
1722
  id: string;
1723
+ name: string;
1724
1724
  createdAt: string;
1725
1725
  updatedAt: string;
1726
1726
  languageTag: string;
@@ -1962,11 +1962,11 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
1962
1962
  };
1963
1963
  output: {
1964
1964
  data: {
1965
- name: string;
1966
1965
  id: string;
1967
- description: string | null;
1966
+ name: string;
1968
1967
  status: "draft" | "active" | "archived";
1969
1968
  createdAt: string;
1969
+ description: string | null;
1970
1970
  updatedAt: string;
1971
1971
  productId: string;
1972
1972
  code: string | null;
@@ -2142,10 +2142,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
2142
2142
  };
2143
2143
  output: {
2144
2144
  data: {
2145
- name: string;
2146
2145
  id: string;
2147
- description: string | null;
2146
+ name: string;
2148
2147
  createdAt: string;
2148
+ description: string | null;
2149
2149
  updatedAt: string;
2150
2150
  code: string | null;
2151
2151
  sortOrder: number;
@@ -2320,10 +2320,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
2320
2320
  };
2321
2321
  output: {
2322
2322
  data: {
2323
- name: string;
2324
2323
  id: string;
2325
- description: string | null;
2324
+ name: string;
2326
2325
  createdAt: string;
2326
+ description: string | null;
2327
2327
  updatedAt: string;
2328
2328
  productId: string;
2329
2329
  languageTag: string;
@@ -2480,10 +2480,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
2480
2480
  };
2481
2481
  output: {
2482
2482
  data: {
2483
- name: string;
2484
2483
  id: string;
2485
- description: string | null;
2484
+ name: string;
2486
2485
  createdAt: string;
2486
+ description: string | null;
2487
2487
  updatedAt: string;
2488
2488
  optionId: string;
2489
2489
  languageTag: string;
@@ -2634,10 +2634,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
2634
2634
  };
2635
2635
  output: {
2636
2636
  data: {
2637
- name: string;
2638
2637
  id: string;
2639
- description: string | null;
2638
+ name: string;
2640
2639
  createdAt: string;
2640
+ description: string | null;
2641
2641
  updatedAt: string;
2642
2642
  languageTag: string;
2643
2643
  shortDescription: string | null;
@@ -2779,10 +2779,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
2779
2779
  input: {};
2780
2780
  output: {
2781
2781
  data: {
2782
- name: string;
2783
2782
  id: string;
2784
- description: string | null;
2783
+ name: string;
2785
2784
  createdAt: string;
2785
+ description: string | null;
2786
2786
  active: boolean;
2787
2787
  updatedAt: string;
2788
2788
  code: string;
@@ -2934,10 +2934,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
2934
2934
  input: {};
2935
2935
  output: {
2936
2936
  data: {
2937
- name: string;
2938
2937
  id: string;
2939
- description: string | null;
2938
+ name: string;
2940
2939
  createdAt: string;
2940
+ description: string | null;
2941
2941
  active: boolean;
2942
2942
  customerPaymentPolicy: import("hono/utils/types").JSONValue;
2943
2943
  updatedAt: string;
@@ -3075,8 +3075,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3075
3075
  input: {};
3076
3076
  output: {
3077
3077
  data: {
3078
- name: string;
3079
3078
  id: string;
3079
+ name: string;
3080
3080
  createdAt: string;
3081
3081
  updatedAt: string;
3082
3082
  } | undefined;
@@ -3306,8 +3306,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3306
3306
  };
3307
3307
  output: {
3308
3308
  data: {
3309
- name: string;
3310
3309
  id: string;
3310
+ name: string;
3311
3311
  createdAt: string;
3312
3312
  updatedAt: string;
3313
3313
  productId: string;
@@ -3427,8 +3427,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3427
3427
  };
3428
3428
  output: {
3429
3429
  data: {
3430
- name: string;
3431
3430
  id: string;
3431
+ name: string;
3432
3432
  createdAt: string;
3433
3433
  updatedAt: string;
3434
3434
  productId: string;
@@ -3471,8 +3471,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3471
3471
  };
3472
3472
  output: {
3473
3473
  data: {
3474
- name: string;
3475
3474
  id: string;
3475
+ name: string;
3476
3476
  createdAt: string;
3477
3477
  updatedAt: string;
3478
3478
  productId: string;
@@ -3567,8 +3567,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3567
3567
  };
3568
3568
  output: {
3569
3569
  data: {
3570
- name: string;
3571
3570
  id: string;
3571
+ name: string;
3572
3572
  createdAt: string;
3573
3573
  updatedAt: string;
3574
3574
  productId: string;
@@ -3647,8 +3647,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3647
3647
  };
3648
3648
  output: {
3649
3649
  data: {
3650
- name: string;
3651
3650
  id: string;
3651
+ name: string;
3652
3652
  createdAt: string;
3653
3653
  updatedAt: string;
3654
3654
  productId: string;
@@ -3750,8 +3750,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3750
3750
  };
3751
3751
  output: {
3752
3752
  data: {
3753
- name: string;
3754
3753
  id: string;
3754
+ name: string;
3755
3755
  createdAt: string;
3756
3756
  updatedAt: string;
3757
3757
  productId: string;
@@ -3817,8 +3817,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3817
3817
  };
3818
3818
  output: {
3819
3819
  data: {
3820
- name: string;
3821
3820
  id: string;
3821
+ name: string;
3822
3822
  createdAt: string;
3823
3823
  updatedAt: string;
3824
3824
  productId: string;
@@ -3911,8 +3911,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3911
3911
  };
3912
3912
  output: {
3913
3913
  data: {
3914
- name: string;
3915
3914
  id: string;
3915
+ name: string;
3916
3916
  createdAt: string;
3917
3917
  updatedAt: string;
3918
3918
  productId: string;
@@ -3976,8 +3976,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
3976
3976
  output: {
3977
3977
  data: {
3978
3978
  id: string;
3979
- description: string | null;
3980
3979
  createdAt: string;
3980
+ description: string | null;
3981
3981
  updatedAt: string;
3982
3982
  itineraryId: string;
3983
3983
  dayNumber: number;
@@ -4035,8 +4035,8 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
4035
4035
  output: {
4036
4036
  data: {
4037
4037
  id: string;
4038
- description: string | null;
4039
4038
  createdAt: string;
4039
+ description: string | null;
4040
4040
  updatedAt: string;
4041
4041
  itineraryId: string;
4042
4042
  dayNumber: number;
@@ -4173,10 +4173,10 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
4173
4173
  };
4174
4174
  output: {
4175
4175
  data: {
4176
- name: string;
4177
4176
  id: string;
4178
- description: string | null;
4177
+ name: string;
4179
4178
  createdAt: string;
4179
+ description: string | null;
4180
4180
  costAmountCents: number;
4181
4181
  sortOrder: number | null;
4182
4182
  dayId: string;
@@ -4643,11 +4643,11 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
4643
4643
  input: {};
4644
4644
  output: {
4645
4645
  data: {
4646
- name: string;
4647
4646
  id: string;
4648
- description: string | null;
4647
+ name: string;
4649
4648
  status: "draft" | "active" | "archived";
4650
4649
  createdAt: string;
4650
+ description: string | null;
4651
4651
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
4652
4652
  capacityMode: "free_sale" | "limited" | "on_request";
4653
4653
  timezone: string | null;
@@ -4750,7 +4750,7 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, impor
4750
4750
  id: string;
4751
4751
  actionName: string;
4752
4752
  actionVersion: string;
4753
- actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
4753
+ actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
4754
4754
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
4755
4755
  evaluatedRisk: "low" | "medium" | "high" | "critical";
4756
4756
  actorType: string | null;
package/dist/service.d.ts CHANGED
@@ -141,11 +141,11 @@ export declare const productsService: {
141
141
  updatedAt: Date;
142
142
  } | null>;
143
143
  createProduct(db: PostgresJsDatabase, data: CreateProductInput): Promise<{
144
- name: string;
145
144
  id: string;
146
- description: string | null;
145
+ name: string;
147
146
  status: "draft" | "active" | "archived";
148
147
  createdAt: Date;
148
+ description: string | null;
149
149
  bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
150
150
  capacityMode: "free_sale" | "limited" | "on_request";
151
151
  timezone: string | null;
@@ -514,8 +514,8 @@ export declare const productsService: {
514
514
  } | null>;
515
515
  createFeature(db: PostgresJsDatabase, productId: string, data: CreateProductFeatureInput): Promise<{
516
516
  id: string;
517
- description: string | null;
518
517
  createdAt: Date;
518
+ description: string | null;
519
519
  updatedAt: Date;
520
520
  productId: string;
521
521
  sortOrder: number;
@@ -750,10 +750,10 @@ export declare const productsService: {
750
750
  offset: number;
751
751
  }>;
752
752
  upsertDestinationTranslation(db: PostgresJsDatabase, destinationId: string, data: CreateDestinationTranslationInput): Promise<{
753
- name: string;
754
753
  id: string;
755
- description: string | null;
754
+ name: string;
756
755
  createdAt: Date;
756
+ description: string | null;
757
757
  updatedAt: Date;
758
758
  languageTag: string;
759
759
  seoTitle: string | null;
@@ -791,10 +791,10 @@ export declare const productsService: {
791
791
  offset: number;
792
792
  }>;
793
793
  upsertProductCategoryTranslation(db: PostgresJsDatabase, categoryId: string, data: CreateProductCategoryTranslationInput): Promise<{
794
- name: string;
795
794
  id: string;
796
- description: string | null;
795
+ name: string;
797
796
  createdAt: Date;
797
+ description: string | null;
798
798
  updatedAt: Date;
799
799
  languageTag: string;
800
800
  seoTitle: string | null;
@@ -829,8 +829,8 @@ export declare const productsService: {
829
829
  offset: number;
830
830
  }>;
831
831
  upsertProductTagTranslation(db: PostgresJsDatabase, tagId: string, data: CreateProductTagTranslationInput): Promise<{
832
- name: string;
833
832
  id: string;
833
+ name: string;
834
834
  createdAt: Date;
835
835
  updatedAt: Date;
836
836
  languageTag: string;
@@ -910,11 +910,11 @@ export declare const productsService: {
910
910
  updatedAt: Date;
911
911
  } | null>;
912
912
  createOption(db: PostgresJsDatabase, productId: string, data: CreateProductOptionInput): Promise<{
913
- name: string;
914
913
  id: string;
915
- description: string | null;
914
+ name: string;
916
915
  status: "draft" | "active" | "archived";
917
916
  createdAt: Date;
917
+ description: string | null;
918
918
  updatedAt: Date;
919
919
  productId: string;
920
920
  code: string | null;
@@ -1004,10 +1004,10 @@ export declare const productsService: {
1004
1004
  updatedAt: Date;
1005
1005
  } | null>;
1006
1006
  createUnit(db: PostgresJsDatabase, optionId: string, data: CreateOptionUnitInput): Promise<{
1007
- name: string;
1008
1007
  id: string;
1009
- description: string | null;
1008
+ name: string;
1010
1009
  createdAt: Date;
1010
+ description: string | null;
1011
1011
  updatedAt: Date;
1012
1012
  code: string | null;
1013
1013
  sortOrder: number;
@@ -1076,10 +1076,10 @@ export declare const productsService: {
1076
1076
  updatedAt: Date;
1077
1077
  } | null>;
1078
1078
  createProductTranslation(db: PostgresJsDatabase, productId: string, data: CreateProductTranslationInput): Promise<{
1079
- name: string;
1080
1079
  id: string;
1081
- description: string | null;
1080
+ name: string;
1082
1081
  createdAt: Date;
1082
+ description: string | null;
1083
1083
  updatedAt: Date;
1084
1084
  productId: string;
1085
1085
  languageTag: string;
@@ -1141,10 +1141,10 @@ export declare const productsService: {
1141
1141
  updatedAt: Date;
1142
1142
  } | null>;
1143
1143
  createOptionTranslation(db: PostgresJsDatabase, optionId: string, data: CreateProductOptionTranslationInput): Promise<{
1144
- name: string;
1145
1144
  id: string;
1146
- description: string | null;
1145
+ name: string;
1147
1146
  createdAt: Date;
1147
+ description: string | null;
1148
1148
  updatedAt: Date;
1149
1149
  optionId: string;
1150
1150
  languageTag: string;
@@ -1200,10 +1200,10 @@ export declare const productsService: {
1200
1200
  updatedAt: Date;
1201
1201
  } | null>;
1202
1202
  createUnitTranslation(db: PostgresJsDatabase, unitId: string, data: CreateOptionUnitTranslationInput): Promise<{
1203
- name: string;
1204
1203
  id: string;
1205
- description: string | null;
1204
+ name: string;
1206
1205
  createdAt: Date;
1206
+ description: string | null;
1207
1207
  updatedAt: Date;
1208
1208
  languageTag: string;
1209
1209
  shortDescription: string | null;
@@ -1481,8 +1481,8 @@ export declare const productsService: {
1481
1481
  updatedAt: Date;
1482
1482
  } | null>;
1483
1483
  createItinerary(db: PostgresJsDatabase, productId: string, data: CreateItineraryInput): Promise<{
1484
- name: string;
1485
1484
  id: string;
1485
+ name: string;
1486
1486
  createdAt: Date;
1487
1487
  updatedAt: Date;
1488
1488
  productId: string;
@@ -1504,8 +1504,8 @@ export declare const productsService: {
1504
1504
  duplicateItinerary(db: PostgresJsDatabase, itineraryId: string, options?: {
1505
1505
  name?: string;
1506
1506
  }): Promise<{
1507
- name: string;
1508
1507
  id: string;
1508
+ name: string;
1509
1509
  createdAt: Date;
1510
1510
  updatedAt: Date;
1511
1511
  productId: string;
@@ -1819,8 +1819,8 @@ export declare const productsService: {
1819
1819
  } | null>;
1820
1820
  createDay(db: PostgresJsDatabase, productId: string, data: CreateDayInput): Promise<{
1821
1821
  id: string;
1822
- description: string | null;
1823
1822
  createdAt: Date;
1823
+ description: string | null;
1824
1824
  updatedAt: Date;
1825
1825
  itineraryId: string;
1826
1826
  dayNumber: number;
@@ -1829,8 +1829,8 @@ export declare const productsService: {
1829
1829
  } | null | undefined>;
1830
1830
  createItineraryDay(db: PostgresJsDatabase, productId: string, itineraryId: string, data: CreateDayInput): Promise<{
1831
1831
  id: string;
1832
- description: string | null;
1833
1832
  createdAt: Date;
1833
+ description: string | null;
1834
1834
  updatedAt: Date;
1835
1835
  itineraryId: string;
1836
1836
  dayNumber: number;
@@ -2326,10 +2326,10 @@ export declare const productsService: {
2326
2326
  createdAt: Date;
2327
2327
  } | null>;
2328
2328
  createDayService(db: PostgresJsDatabase, productId: string, dayId: string, data: CreateDayServiceInput): Promise<{
2329
- name: string;
2330
2329
  id: string;
2331
- description: string | null;
2330
+ name: string;
2332
2331
  createdAt: Date;
2332
+ description: string | null;
2333
2333
  costAmountCents: number;
2334
2334
  sortOrder: number | null;
2335
2335
  dayId: string;
@@ -2834,10 +2834,10 @@ export declare const productsService: {
2834
2834
  updatedAt: Date;
2835
2835
  } | null>;
2836
2836
  createProductType(db: PostgresJsDatabase, data: CreateProductTypeInput): Promise<{
2837
- name: string;
2838
2837
  id: string;
2839
- description: string | null;
2838
+ name: string;
2840
2839
  createdAt: Date;
2840
+ description: string | null;
2841
2841
  active: boolean;
2842
2842
  updatedAt: Date;
2843
2843
  code: string;
@@ -2890,10 +2890,10 @@ export declare const productsService: {
2890
2890
  updatedAt: Date;
2891
2891
  } | null>;
2892
2892
  createProductCategory(db: PostgresJsDatabase, data: CreateProductCategoryInput): Promise<{
2893
- name: string;
2894
2893
  id: string;
2895
- description: string | null;
2894
+ name: string;
2896
2895
  createdAt: Date;
2896
+ description: string | null;
2897
2897
  active: boolean;
2898
2898
  customerPaymentPolicy: unknown;
2899
2899
  updatedAt: Date;
@@ -2936,8 +2936,8 @@ export declare const productsService: {
2936
2936
  updatedAt: Date;
2937
2937
  } | null>;
2938
2938
  createProductTag(db: PostgresJsDatabase, data: CreateProductTagInput): Promise<{
2939
- name: string;
2940
2939
  id: string;
2940
+ name: string;
2941
2941
  createdAt: Date;
2942
2942
  updatedAt: Date;
2943
2943
  } | undefined>;
@@ -3055,8 +3055,8 @@ export declare const productsService: {
3055
3055
  updatedAt: Date;
3056
3056
  } | null>;
3057
3057
  createMedia(db: PostgresJsDatabase, productId: string, data: CreateProductMediaInput): Promise<{
3058
- name: string;
3059
3058
  id: string;
3059
+ name: string;
3060
3060
  createdAt: Date;
3061
3061
  updatedAt: Date;
3062
3062
  productId: string;
@@ -3093,8 +3093,8 @@ export declare const productsService: {
3093
3093
  updatedAt: Date;
3094
3094
  } | null>;
3095
3095
  deleteMedia(db: PostgresJsDatabase, id: string): Promise<{
3096
- name: string;
3097
3096
  id: string;
3097
+ name: string;
3098
3098
  createdAt: Date;
3099
3099
  updatedAt: Date;
3100
3100
  productId: string;
@@ -3172,8 +3172,8 @@ export declare const productsService: {
3172
3172
  updatedAt: Date;
3173
3173
  }[]>;
3174
3174
  upsertBrochure(db: PostgresJsDatabase, productId: string, data: UpsertProductBrochureInput): Promise<{
3175
- name: string;
3176
3175
  id: string;
3176
+ name: string;
3177
3177
  createdAt: Date;
3178
3178
  updatedAt: Date;
3179
3179
  productId: string;
@@ -3191,8 +3191,8 @@ export declare const productsService: {
3191
3191
  brochureVersion: number | null;
3192
3192
  } | null>;
3193
3193
  deleteBrochure(db: PostgresJsDatabase, productId: string): Promise<{
3194
- name: string;
3195
3194
  id: string;
3195
+ name: string;
3196
3196
  createdAt: Date;
3197
3197
  updatedAt: Date;
3198
3198
  productId: string;
@@ -3229,8 +3229,8 @@ export declare const productsService: {
3229
3229
  updatedAt: Date;
3230
3230
  } | null>;
3231
3231
  deleteBrochureVersion(db: PostgresJsDatabase, productId: string, brochureId: string): Promise<{
3232
- name: string;
3233
3232
  id: string;
3233
+ name: string;
3234
3234
  createdAt: Date;
3235
3235
  updatedAt: Date;
3236
3236
  productId: string;
@@ -16,8 +16,8 @@ export interface GenerateAndStoreProductBrochureOptions {
16
16
  }
17
17
  export declare function generateAndStoreProductBrochure(db: PostgresJsDatabase, productId: string, options: GenerateAndStoreProductBrochureOptions): Promise<{
18
18
  brochure: {
19
- name: string;
20
19
  id: string;
20
+ name: string;
21
21
  createdAt: Date;
22
22
  updatedAt: Date;
23
23
  productId: string;
@@ -101,17 +101,17 @@ export declare const updateProductVisibilitySettingSchema: z.ZodObject<{
101
101
  export declare const productVisibilitySettingListQuerySchema: z.ZodObject<{
102
102
  productId: z.ZodOptional<z.ZodString>;
103
103
  isSearchable: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
104
- true: "true";
105
104
  0: "0";
106
- false: "false";
107
105
  1: "1";
108
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
109
- isBookable: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
110
106
  true: "true";
111
- 0: "0";
112
107
  false: "false";
108
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
109
+ isBookable: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
110
+ 0: "0";
113
111
  1: "1";
114
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
112
+ true: "true";
113
+ false: "false";
114
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
115
115
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
116
116
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
117
117
  }, z.core.$strip>;
@@ -171,11 +171,11 @@ export declare const productCapabilityListQuerySchema: z.ZodObject<{
171
171
  transport: "transport";
172
172
  }>>;
173
173
  enabled: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
174
- true: "true";
175
174
  0: "0";
176
- false: "false";
177
175
  1: "1";
178
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
176
+ true: "true";
177
+ false: "false";
178
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
179
179
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
180
180
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
181
181
  }, z.core.$strip>;
@@ -137,11 +137,11 @@ export declare const updateDestinationSchema: z.ZodObject<{
137
137
  export declare const destinationListQuerySchema: z.ZodObject<{
138
138
  parentId: z.ZodOptional<z.ZodString>;
139
139
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
140
- true: "true";
141
140
  0: "0";
142
- false: "false";
143
141
  1: "1";
144
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
142
+ true: "true";
143
+ false: "false";
144
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
145
145
  search: z.ZodOptional<z.ZodString>;
146
146
  languageTag: z.ZodOptional<z.ZodString>;
147
147
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -421,17 +421,17 @@ export declare const productMediaListQuerySchema: z.ZodObject<{
421
421
  document: "document";
422
422
  }>>;
423
423
  isBrochure: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
424
- true: "true";
425
424
  0: "0";
426
- false: "false";
427
425
  1: "1";
428
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
429
- isBrochureCurrent: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
430
426
  true: "true";
431
- 0: "0";
432
427
  false: "false";
428
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
429
+ isBrochureCurrent: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
430
+ 0: "0";
433
431
  1: "1";
434
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
432
+ true: "true";
433
+ false: "false";
434
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
435
435
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
436
436
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
437
437
  }, z.core.$strip>;
@@ -464,11 +464,11 @@ export declare const updateProductTypeSchema: z.ZodObject<{
464
464
  }, z.core.$strip>;
465
465
  export declare const productTypeListQuerySchema: z.ZodObject<{
466
466
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
467
- true: "true";
468
467
  0: "0";
469
- false: "false";
470
468
  1: "1";
471
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
469
+ true: "true";
470
+ false: "false";
471
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
472
472
  search: z.ZodOptional<z.ZodString>;
473
473
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
474
474
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -524,11 +524,11 @@ export declare const updateProductCategorySchema: z.ZodObject<{
524
524
  export declare const productCategoryListQuerySchema: z.ZodObject<{
525
525
  parentId: z.ZodOptional<z.ZodString>;
526
526
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
527
- true: "true";
528
527
  0: "0";
529
- false: "false";
530
528
  1: "1";
531
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
529
+ true: "true";
530
+ false: "false";
531
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
532
532
  search: z.ZodOptional<z.ZodString>;
533
533
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
534
534
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -207,11 +207,11 @@ export declare const productListQuerySchema: z.ZodObject<{
207
207
  hidden: "hidden";
208
208
  }>>;
209
209
  activated: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
210
- true: "true";
211
210
  0: "0";
212
- false: "false";
213
211
  1: "1";
214
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
212
+ true: "true";
213
+ false: "false";
214
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
215
215
  facilityId: z.ZodOptional<z.ZodString>;
216
216
  supplierId: z.ZodOptional<z.ZodString>;
217
217
  productTypeId: z.ZodOptional<z.ZodString>;
@@ -34,11 +34,11 @@ export declare const publicCatalogProductListQuerySchema: z.ZodObject<{
34
34
  point_of_interest: "point_of_interest";
35
35
  }>>;
36
36
  featured: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
37
- true: "true";
38
37
  0: "0";
39
- false: "false";
40
38
  1: "1";
41
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
39
+ true: "true";
40
+ false: "false";
41
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
42
42
  sort: z.ZodDefault<z.ZodEnum<{
43
43
  name: "name";
44
44
  createdAt: "createdAt";
@@ -67,11 +67,11 @@ export declare const publicCatalogDestinationListQuerySchema: z.ZodObject<{
67
67
  search: z.ZodOptional<z.ZodString>;
68
68
  parentId: z.ZodOptional<z.ZodString>;
69
69
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
70
- true: "true";
71
70
  0: "0";
72
- false: "false";
73
71
  1: "1";
74
- }>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
72
+ true: "true";
73
+ false: "false";
74
+ }>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
75
75
  languageTag: z.ZodOptional<z.ZodString>;
76
76
  destinationType: z.ZodOptional<z.ZodEnum<{
77
77
  city: "city";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/products",
3
- "version": "0.53.0",
3
+ "version": "0.53.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -130,13 +130,13 @@
130
130
  "hono": "^4.12.10",
131
131
  "pdf-lib": "^1.17.1",
132
132
  "zod": "^4.3.6",
133
- "@voyantjs/action-ledger": "0.53.0",
134
- "@voyantjs/core": "0.53.0",
135
- "@voyantjs/db": "0.53.0",
136
- "@voyantjs/hono": "0.53.0",
137
- "@voyantjs/utils": "0.53.0",
138
- "@voyantjs/catalog": "0.53.0",
139
- "@voyantjs/storage": "0.53.0"
133
+ "@voyantjs/action-ledger": "0.53.1",
134
+ "@voyantjs/core": "0.53.1",
135
+ "@voyantjs/db": "0.53.1",
136
+ "@voyantjs/hono": "0.53.1",
137
+ "@voyantjs/utils": "0.53.1",
138
+ "@voyantjs/catalog": "0.53.1",
139
+ "@voyantjs/storage": "0.53.1"
140
140
  },
141
141
  "devDependencies": {
142
142
  "typescript": "^6.0.2",