@voyant-travel/inventory 0.1.0 → 0.2.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.
- package/dist/action-ledger.d.ts +9 -9
- package/dist/authoring/extension.d.ts +4 -4
- package/dist/authoring/spec.d.ts +16 -16
- package/dist/booking-extension.d.ts +1 -1
- package/dist/extras/routes.d.ts +27 -27
- package/dist/extras/schema.d.ts +2 -2
- package/dist/extras/service.d.ts +8 -8
- package/dist/extras/validation.d.ts +11 -11
- package/dist/extras.d.ts +31 -31
- package/dist/interface.d.ts +102 -102
- package/dist/routes-catalog.d.ts +8 -8
- package/dist/routes-configuration.d.ts +1 -1
- package/dist/routes-core.d.ts +14 -14
- package/dist/routes-itinerary.d.ts +24 -24
- package/dist/routes-media.d.ts +12 -12
- package/dist/routes-merchandising.d.ts +19 -19
- package/dist/routes-options.d.ts +7 -7
- package/dist/routes-public.d.ts +12 -12
- package/dist/routes-translations.d.ts +5 -5
- package/dist/routes.d.ts +90 -90
- package/dist/schema-core.d.ts +2 -2
- package/dist/schema-itinerary.d.ts +1 -1
- package/dist/schema-settings.d.ts +1 -1
- package/dist/service-catalog.d.ts +4 -4
- package/dist/service-configuration.d.ts +1 -1
- package/dist/service-core.d.ts +6 -6
- package/dist/service-destinations.d.ts +8 -8
- package/dist/service-itinerary-history.d.ts +1 -1
- package/dist/service-itinerary.d.ts +15 -15
- package/dist/service-media.d.ts +10 -10
- package/dist/service-merchandising.d.ts +9 -9
- package/dist/service-option-translations.d.ts +8 -8
- package/dist/service-options.d.ts +8 -8
- package/dist/service-public.d.ts +12 -12
- package/dist/service-taxonomy.d.ts +8 -8
- package/dist/service.d.ts +86 -86
- package/dist/tasks/brochures.d.ts +2 -2
- package/package.json +10 -10
package/dist/service.d.ts
CHANGED
|
@@ -104,14 +104,14 @@ export declare const productsService: {
|
|
|
104
104
|
sortOrder: number;
|
|
105
105
|
dayId: string | null;
|
|
106
106
|
mediaType: "image" | "video" | "document";
|
|
107
|
-
isBrochure: boolean;
|
|
108
|
-
isBrochureCurrent: boolean;
|
|
109
107
|
url: string;
|
|
110
108
|
storageKey: string | null;
|
|
111
109
|
mimeType: string | null;
|
|
112
110
|
fileSize: number | null;
|
|
113
111
|
altText: string | null;
|
|
114
112
|
isCover: boolean;
|
|
113
|
+
isBrochure: boolean;
|
|
114
|
+
isBrochureCurrent: boolean;
|
|
115
115
|
brochureVersion: number | null;
|
|
116
116
|
} | null>;
|
|
117
117
|
updateMedia(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
@@ -155,14 +155,14 @@ export declare const productsService: {
|
|
|
155
155
|
sortOrder: number;
|
|
156
156
|
dayId: string | null;
|
|
157
157
|
mediaType: "image" | "video" | "document";
|
|
158
|
-
isBrochure: boolean;
|
|
159
|
-
isBrochureCurrent: boolean;
|
|
160
158
|
url: string;
|
|
161
159
|
storageKey: string | null;
|
|
162
160
|
mimeType: string | null;
|
|
163
161
|
fileSize: number | null;
|
|
164
162
|
altText: string | null;
|
|
165
163
|
isCover: boolean;
|
|
164
|
+
isBrochure: boolean;
|
|
165
|
+
isBrochureCurrent: boolean;
|
|
166
166
|
brochureVersion: number | null;
|
|
167
167
|
} | null>;
|
|
168
168
|
setCoverMedia(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, mediaId: string, dayId?: string | null): Promise<{
|
|
@@ -247,14 +247,14 @@ export declare const productsService: {
|
|
|
247
247
|
sortOrder: number;
|
|
248
248
|
dayId: string | null;
|
|
249
249
|
mediaType: "image" | "video" | "document";
|
|
250
|
-
isBrochure: boolean;
|
|
251
|
-
isBrochureCurrent: boolean;
|
|
252
250
|
url: string;
|
|
253
251
|
storageKey: string | null;
|
|
254
252
|
mimeType: string | null;
|
|
255
253
|
fileSize: number | null;
|
|
256
254
|
altText: string | null;
|
|
257
255
|
isCover: boolean;
|
|
256
|
+
isBrochure: boolean;
|
|
257
|
+
isBrochureCurrent: boolean;
|
|
258
258
|
brochureVersion: number | null;
|
|
259
259
|
} | null>;
|
|
260
260
|
deleteBrochure(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string): Promise<{
|
|
@@ -266,14 +266,14 @@ export declare const productsService: {
|
|
|
266
266
|
sortOrder: number;
|
|
267
267
|
dayId: string | null;
|
|
268
268
|
mediaType: "image" | "video" | "document";
|
|
269
|
-
isBrochure: boolean;
|
|
270
|
-
isBrochureCurrent: boolean;
|
|
271
269
|
url: string;
|
|
272
270
|
storageKey: string | null;
|
|
273
271
|
mimeType: string | null;
|
|
274
272
|
fileSize: number | null;
|
|
275
273
|
altText: string | null;
|
|
276
274
|
isCover: boolean;
|
|
275
|
+
isBrochure: boolean;
|
|
276
|
+
isBrochureCurrent: boolean;
|
|
277
277
|
brochureVersion: number | null;
|
|
278
278
|
} | null>;
|
|
279
279
|
setCurrentBrochure(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, brochureId: string): Promise<{
|
|
@@ -304,14 +304,14 @@ export declare const productsService: {
|
|
|
304
304
|
sortOrder: number;
|
|
305
305
|
dayId: string | null;
|
|
306
306
|
mediaType: "image" | "video" | "document";
|
|
307
|
-
isBrochure: boolean;
|
|
308
|
-
isBrochureCurrent: boolean;
|
|
309
307
|
url: string;
|
|
310
308
|
storageKey: string | null;
|
|
311
309
|
mimeType: string | null;
|
|
312
310
|
fileSize: number | null;
|
|
313
311
|
altText: string | null;
|
|
314
312
|
isCover: boolean;
|
|
313
|
+
isBrochure: boolean;
|
|
314
|
+
isBrochureCurrent: boolean;
|
|
315
315
|
brochureVersion: number | null;
|
|
316
316
|
} | null>;
|
|
317
317
|
listProductTypes(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, query: {
|
|
@@ -356,13 +356,13 @@ export declare const productsService: {
|
|
|
356
356
|
}): Promise<{
|
|
357
357
|
id: string;
|
|
358
358
|
name: string;
|
|
359
|
-
active: boolean;
|
|
360
|
-
description: string | null;
|
|
361
359
|
createdAt: Date;
|
|
360
|
+
description: string | null;
|
|
361
|
+
active: boolean;
|
|
362
362
|
updatedAt: Date;
|
|
363
|
-
metadata: Record<string, unknown> | null;
|
|
364
363
|
code: string;
|
|
365
364
|
sortOrder: number;
|
|
365
|
+
metadata: Record<string, unknown> | null;
|
|
366
366
|
} | undefined>;
|
|
367
367
|
updateProductType(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
368
368
|
name?: string | undefined;
|
|
@@ -443,15 +443,15 @@ export declare const productsService: {
|
|
|
443
443
|
}): Promise<{
|
|
444
444
|
id: string;
|
|
445
445
|
name: string;
|
|
446
|
-
|
|
446
|
+
createdAt: Date;
|
|
447
447
|
description: string | null;
|
|
448
|
+
active: boolean;
|
|
448
449
|
customerPaymentPolicy: unknown;
|
|
449
|
-
createdAt: Date;
|
|
450
450
|
updatedAt: Date;
|
|
451
|
-
metadata: Record<string, unknown> | null;
|
|
452
451
|
sortOrder: number;
|
|
453
|
-
parentId: string | null;
|
|
454
452
|
slug: string;
|
|
453
|
+
metadata: Record<string, unknown> | null;
|
|
454
|
+
parentId: string | null;
|
|
455
455
|
} | undefined>;
|
|
456
456
|
updateProductCategory(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
457
457
|
name?: string | undefined;
|
|
@@ -530,9 +530,9 @@ export declare const productsService: {
|
|
|
530
530
|
addProductToCategory(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, categoryId: string, sortOrder?: number): Promise<{
|
|
531
531
|
createdAt: Date;
|
|
532
532
|
updatedAt: Date;
|
|
533
|
-
categoryId: string;
|
|
534
533
|
productId: string;
|
|
535
534
|
sortOrder: number;
|
|
535
|
+
categoryId: string;
|
|
536
536
|
} | null>;
|
|
537
537
|
removeProductFromCategory(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, categoryId: string): Promise<{
|
|
538
538
|
productId: string;
|
|
@@ -1009,8 +1009,8 @@ export declare const productsService: {
|
|
|
1009
1009
|
id: string;
|
|
1010
1010
|
createdAt: Date;
|
|
1011
1011
|
productId: string;
|
|
1012
|
-
content: string;
|
|
1013
1012
|
authorId: string;
|
|
1013
|
+
content: string;
|
|
1014
1014
|
} | null | undefined>;
|
|
1015
1015
|
recalculate(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string): Promise<{
|
|
1016
1016
|
costAmountCents: number;
|
|
@@ -1626,13 +1626,13 @@ export declare const productsService: {
|
|
|
1626
1626
|
location?: string | null | undefined;
|
|
1627
1627
|
}): Promise<{
|
|
1628
1628
|
id: string;
|
|
1629
|
-
description: string | null;
|
|
1630
1629
|
createdAt: Date;
|
|
1630
|
+
description: string | null;
|
|
1631
1631
|
updatedAt: Date;
|
|
1632
|
+
itineraryId: string;
|
|
1633
|
+
dayNumber: number;
|
|
1632
1634
|
title: string | null;
|
|
1633
1635
|
location: string | null;
|
|
1634
|
-
dayNumber: number;
|
|
1635
|
-
itineraryId: string;
|
|
1636
1636
|
} | null | undefined>;
|
|
1637
1637
|
createItineraryDay(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, itineraryId: string, data: {
|
|
1638
1638
|
dayNumber: number;
|
|
@@ -1641,13 +1641,13 @@ export declare const productsService: {
|
|
|
1641
1641
|
location?: string | null | undefined;
|
|
1642
1642
|
}): Promise<{
|
|
1643
1643
|
id: string;
|
|
1644
|
-
description: string | null;
|
|
1645
1644
|
createdAt: Date;
|
|
1645
|
+
description: string | null;
|
|
1646
1646
|
updatedAt: Date;
|
|
1647
|
+
itineraryId: string;
|
|
1648
|
+
dayNumber: number;
|
|
1647
1649
|
title: string | null;
|
|
1648
1650
|
location: string | null;
|
|
1649
|
-
dayNumber: number;
|
|
1650
|
-
itineraryId: string;
|
|
1651
1651
|
} | null | undefined>;
|
|
1652
1652
|
updateDay(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, dayId: string, data: {
|
|
1653
1653
|
dayNumber?: number | undefined;
|
|
@@ -1724,7 +1724,7 @@ export declare const productsService: {
|
|
|
1724
1724
|
tableName: "product_day_services";
|
|
1725
1725
|
dataType: "string";
|
|
1726
1726
|
columnType: "PgEnumColumn";
|
|
1727
|
-
data: "
|
|
1727
|
+
data: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
1728
1728
|
driverParam: string;
|
|
1729
1729
|
notNull: true;
|
|
1730
1730
|
hasDefault: false;
|
|
@@ -1893,7 +1893,7 @@ export declare const productsService: {
|
|
|
1893
1893
|
id: string;
|
|
1894
1894
|
dayId: string;
|
|
1895
1895
|
supplierServiceId: string | null;
|
|
1896
|
-
serviceType: "
|
|
1896
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
1897
1897
|
name: string;
|
|
1898
1898
|
description: string | null;
|
|
1899
1899
|
countryCode: string | null;
|
|
@@ -1960,7 +1960,7 @@ export declare const productsService: {
|
|
|
1960
1960
|
tableName: "product_day_services";
|
|
1961
1961
|
dataType: "string";
|
|
1962
1962
|
columnType: "PgEnumColumn";
|
|
1963
|
-
data: "
|
|
1963
|
+
data: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
1964
1964
|
driverParam: string;
|
|
1965
1965
|
notNull: true;
|
|
1966
1966
|
hasDefault: false;
|
|
@@ -2131,7 +2131,7 @@ export declare const productsService: {
|
|
|
2131
2131
|
id: string;
|
|
2132
2132
|
dayId: string;
|
|
2133
2133
|
supplierServiceId: string | null;
|
|
2134
|
-
serviceType: "
|
|
2134
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
2135
2135
|
name: string;
|
|
2136
2136
|
description: string | null;
|
|
2137
2137
|
countryCode: string | null;
|
|
@@ -2143,7 +2143,7 @@ export declare const productsService: {
|
|
|
2143
2143
|
createdAt: Date;
|
|
2144
2144
|
} | null>;
|
|
2145
2145
|
createDayService(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, dayId: string, data: {
|
|
2146
|
-
serviceType: "
|
|
2146
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
2147
2147
|
name: string;
|
|
2148
2148
|
costCurrency: string;
|
|
2149
2149
|
costAmountCents: number;
|
|
@@ -2156,20 +2156,20 @@ export declare const productsService: {
|
|
|
2156
2156
|
}): Promise<{
|
|
2157
2157
|
id: string;
|
|
2158
2158
|
name: string;
|
|
2159
|
+
createdAt: Date;
|
|
2159
2160
|
description: string | null;
|
|
2160
2161
|
costAmountCents: number;
|
|
2161
|
-
createdAt: Date;
|
|
2162
|
-
notes: string | null;
|
|
2163
2162
|
sortOrder: number | null;
|
|
2164
|
-
countryCode: string | null;
|
|
2165
2163
|
dayId: string;
|
|
2166
|
-
serviceType: "transfer" | "other" | "accommodation" | "experience" | "guide" | "meal";
|
|
2167
2164
|
supplierServiceId: string | null;
|
|
2165
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
2166
|
+
countryCode: string | null;
|
|
2168
2167
|
costCurrency: string;
|
|
2169
2168
|
quantity: number;
|
|
2169
|
+
notes: string | null;
|
|
2170
2170
|
} | null | undefined>;
|
|
2171
2171
|
updateDayService(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, serviceId: string, data: {
|
|
2172
|
-
serviceType?: "
|
|
2172
|
+
serviceType?: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal" | undefined;
|
|
2173
2173
|
name?: string | undefined;
|
|
2174
2174
|
description?: string | null | undefined;
|
|
2175
2175
|
countryCode?: string | null | undefined;
|
|
@@ -2183,7 +2183,7 @@ export declare const productsService: {
|
|
|
2183
2183
|
id: string;
|
|
2184
2184
|
dayId: string;
|
|
2185
2185
|
supplierServiceId: string | null;
|
|
2186
|
-
serviceType: "
|
|
2186
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
2187
2187
|
name: string;
|
|
2188
2188
|
description: string | null;
|
|
2189
2189
|
countryCode: string | null;
|
|
@@ -2253,18 +2253,18 @@ export declare const productsService: {
|
|
|
2253
2253
|
}): Promise<{
|
|
2254
2254
|
id: string;
|
|
2255
2255
|
name: string;
|
|
2256
|
+
createdAt: Date;
|
|
2256
2257
|
description: string | null;
|
|
2257
2258
|
inclusionsHtml: string | null;
|
|
2258
2259
|
exclusionsHtml: string | null;
|
|
2259
2260
|
termsHtml: string | null;
|
|
2260
|
-
createdAt: Date;
|
|
2261
2261
|
updatedAt: Date;
|
|
2262
2262
|
productId: string;
|
|
2263
2263
|
languageTag: string;
|
|
2264
2264
|
slug: string | null;
|
|
2265
|
+
shortDescription: string | null;
|
|
2265
2266
|
seoTitle: string | null;
|
|
2266
2267
|
seoDescription: string | null;
|
|
2267
|
-
shortDescription: string | null;
|
|
2268
2268
|
} | null>;
|
|
2269
2269
|
updateProductTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
2270
2270
|
languageTag?: string | undefined;
|
|
@@ -2344,13 +2344,13 @@ export declare const productsService: {
|
|
|
2344
2344
|
location?: string | null | undefined;
|
|
2345
2345
|
}): Promise<{
|
|
2346
2346
|
id: string;
|
|
2347
|
-
description: string | null;
|
|
2348
2347
|
createdAt: Date;
|
|
2348
|
+
description: string | null;
|
|
2349
2349
|
updatedAt: Date;
|
|
2350
2350
|
title: string | null;
|
|
2351
|
-
languageTag: string;
|
|
2352
|
-
dayId: string;
|
|
2353
2351
|
location: string | null;
|
|
2352
|
+
dayId: string;
|
|
2353
|
+
languageTag: string;
|
|
2354
2354
|
} | null>;
|
|
2355
2355
|
updateProductDayTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
2356
2356
|
languageTag?: string | undefined;
|
|
@@ -2419,11 +2419,11 @@ export declare const productsService: {
|
|
|
2419
2419
|
}): Promise<{
|
|
2420
2420
|
id: string;
|
|
2421
2421
|
name: string;
|
|
2422
|
-
description: string | null;
|
|
2423
2422
|
createdAt: Date;
|
|
2423
|
+
description: string | null;
|
|
2424
2424
|
updatedAt: Date;
|
|
2425
|
-
languageTag: string;
|
|
2426
2425
|
optionId: string;
|
|
2426
|
+
languageTag: string;
|
|
2427
2427
|
shortDescription: string | null;
|
|
2428
2428
|
} | null>;
|
|
2429
2429
|
updateOptionTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
@@ -2493,8 +2493,8 @@ export declare const productsService: {
|
|
|
2493
2493
|
}): Promise<{
|
|
2494
2494
|
id: string;
|
|
2495
2495
|
name: string;
|
|
2496
|
-
description: string | null;
|
|
2497
2496
|
createdAt: Date;
|
|
2497
|
+
description: string | null;
|
|
2498
2498
|
updatedAt: Date;
|
|
2499
2499
|
languageTag: string;
|
|
2500
2500
|
shortDescription: string | null;
|
|
@@ -2569,11 +2569,11 @@ export declare const productsService: {
|
|
|
2569
2569
|
id: string;
|
|
2570
2570
|
name: string;
|
|
2571
2571
|
status: "draft" | "active" | "archived";
|
|
2572
|
-
description: string | null;
|
|
2573
2572
|
createdAt: Date;
|
|
2573
|
+
description: string | null;
|
|
2574
2574
|
updatedAt: Date;
|
|
2575
|
-
code: string | null;
|
|
2576
2575
|
productId: string;
|
|
2576
|
+
code: string | null;
|
|
2577
2577
|
isDefault: boolean;
|
|
2578
2578
|
sortOrder: number;
|
|
2579
2579
|
availableFrom: string | null;
|
|
@@ -2609,7 +2609,7 @@ export declare const productsService: {
|
|
|
2609
2609
|
limit: number;
|
|
2610
2610
|
offset: number;
|
|
2611
2611
|
optionId?: string | undefined;
|
|
2612
|
-
unitType?: "
|
|
2612
|
+
unitType?: "person" | "group" | "room" | "vehicle" | "service" | "other" | undefined;
|
|
2613
2613
|
}): Promise<{
|
|
2614
2614
|
data: {
|
|
2615
2615
|
id: string;
|
|
@@ -2617,7 +2617,7 @@ export declare const productsService: {
|
|
|
2617
2617
|
name: string;
|
|
2618
2618
|
code: string | null;
|
|
2619
2619
|
description: string | null;
|
|
2620
|
-
unitType: "
|
|
2620
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
2621
2621
|
minQuantity: number | null;
|
|
2622
2622
|
maxQuantity: number | null;
|
|
2623
2623
|
minAge: number | null;
|
|
@@ -2640,7 +2640,7 @@ export declare const productsService: {
|
|
|
2640
2640
|
name: string;
|
|
2641
2641
|
code: string | null;
|
|
2642
2642
|
description: string | null;
|
|
2643
|
-
unitType: "
|
|
2643
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
2644
2644
|
minQuantity: number | null;
|
|
2645
2645
|
maxQuantity: number | null;
|
|
2646
2646
|
minAge: number | null;
|
|
@@ -2660,7 +2660,7 @@ export declare const productsService: {
|
|
|
2660
2660
|
name: string;
|
|
2661
2661
|
code: string | null;
|
|
2662
2662
|
description: string | null;
|
|
2663
|
-
unitType: "
|
|
2663
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
2664
2664
|
minQuantity: number | null;
|
|
2665
2665
|
maxQuantity: number | null;
|
|
2666
2666
|
minAge: number | null;
|
|
@@ -2675,7 +2675,7 @@ export declare const productsService: {
|
|
|
2675
2675
|
} | null>;
|
|
2676
2676
|
createUnit(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, optionId: string, data: {
|
|
2677
2677
|
name: string;
|
|
2678
|
-
unitType: "
|
|
2678
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
2679
2679
|
isRequired: boolean;
|
|
2680
2680
|
isHidden: boolean;
|
|
2681
2681
|
sortOrder: number;
|
|
@@ -2690,13 +2690,13 @@ export declare const productsService: {
|
|
|
2690
2690
|
}): Promise<{
|
|
2691
2691
|
id: string;
|
|
2692
2692
|
name: string;
|
|
2693
|
-
description: string | null;
|
|
2694
2693
|
createdAt: Date;
|
|
2694
|
+
description: string | null;
|
|
2695
2695
|
updatedAt: Date;
|
|
2696
2696
|
code: string | null;
|
|
2697
2697
|
sortOrder: number;
|
|
2698
2698
|
optionId: string;
|
|
2699
|
-
unitType: "
|
|
2699
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
2700
2700
|
minQuantity: number | null;
|
|
2701
2701
|
maxQuantity: number | null;
|
|
2702
2702
|
minAge: number | null;
|
|
@@ -2710,7 +2710,7 @@ export declare const productsService: {
|
|
|
2710
2710
|
name?: string | undefined;
|
|
2711
2711
|
code?: string | null | undefined;
|
|
2712
2712
|
description?: string | null | undefined;
|
|
2713
|
-
unitType?: "
|
|
2713
|
+
unitType?: "person" | "group" | "room" | "vehicle" | "service" | "other" | undefined;
|
|
2714
2714
|
minQuantity?: number | null | undefined;
|
|
2715
2715
|
maxQuantity?: number | null | undefined;
|
|
2716
2716
|
minAge?: number | null | undefined;
|
|
@@ -2726,7 +2726,7 @@ export declare const productsService: {
|
|
|
2726
2726
|
name: string;
|
|
2727
2727
|
code: string | null;
|
|
2728
2728
|
description: string | null;
|
|
2729
|
-
unitType: "
|
|
2729
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
2730
2730
|
minQuantity: number | null;
|
|
2731
2731
|
maxQuantity: number | null;
|
|
2732
2732
|
minAge: number | null;
|
|
@@ -2855,18 +2855,18 @@ export declare const productsService: {
|
|
|
2855
2855
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2856
2856
|
}): Promise<{
|
|
2857
2857
|
id: string;
|
|
2858
|
-
active: boolean;
|
|
2859
2858
|
createdAt: Date;
|
|
2859
|
+
active: boolean;
|
|
2860
2860
|
updatedAt: Date;
|
|
2861
|
-
metadata: Record<string, unknown> | null;
|
|
2862
2861
|
code: string | null;
|
|
2863
2862
|
sortOrder: number;
|
|
2864
2863
|
latitude: number | null;
|
|
2865
2864
|
longitude: number | null;
|
|
2865
|
+
slug: string;
|
|
2866
|
+
metadata: Record<string, unknown> | null;
|
|
2866
2867
|
parentId: string | null;
|
|
2867
|
-
destinationType: string;
|
|
2868
2868
|
canonicalPlaceId: string | null;
|
|
2869
|
-
|
|
2869
|
+
destinationType: string;
|
|
2870
2870
|
} | null>;
|
|
2871
2871
|
updateDestination(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
2872
2872
|
parentId?: string | null | undefined;
|
|
@@ -2927,13 +2927,13 @@ export declare const productsService: {
|
|
|
2927
2927
|
}): Promise<{
|
|
2928
2928
|
id: string;
|
|
2929
2929
|
name: string;
|
|
2930
|
-
description: string | null;
|
|
2931
2930
|
createdAt: Date;
|
|
2931
|
+
description: string | null;
|
|
2932
2932
|
updatedAt: Date;
|
|
2933
2933
|
languageTag: string;
|
|
2934
|
-
destinationId: string;
|
|
2935
2934
|
seoTitle: string | null;
|
|
2936
2935
|
seoDescription: string | null;
|
|
2936
|
+
destinationId: string;
|
|
2937
2937
|
} | null>;
|
|
2938
2938
|
updateDestinationTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
2939
2939
|
languageTag?: string | undefined;
|
|
@@ -2985,13 +2985,13 @@ export declare const productsService: {
|
|
|
2985
2985
|
}): Promise<{
|
|
2986
2986
|
id: string;
|
|
2987
2987
|
name: string;
|
|
2988
|
-
description: string | null;
|
|
2989
2988
|
createdAt: Date;
|
|
2989
|
+
description: string | null;
|
|
2990
2990
|
updatedAt: Date;
|
|
2991
|
-
categoryId: string;
|
|
2992
2991
|
languageTag: string;
|
|
2993
2992
|
seoTitle: string | null;
|
|
2994
2993
|
seoDescription: string | null;
|
|
2994
|
+
categoryId: string;
|
|
2995
2995
|
} | null>;
|
|
2996
2996
|
updateProductCategoryTranslation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
2997
2997
|
languageTag?: string | undefined;
|
|
@@ -3093,13 +3093,13 @@ export declare const productsService: {
|
|
|
3093
3093
|
description?: string | null | undefined;
|
|
3094
3094
|
}): Promise<{
|
|
3095
3095
|
id: string;
|
|
3096
|
-
description: string | null;
|
|
3097
3096
|
createdAt: Date;
|
|
3097
|
+
description: string | null;
|
|
3098
3098
|
updatedAt: Date;
|
|
3099
|
-
title: string;
|
|
3100
3099
|
productId: string;
|
|
3101
|
-
featureType: "other" | "inclusion" | "exclusion" | "highlight" | "important_information";
|
|
3102
3100
|
sortOrder: number;
|
|
3101
|
+
title: string;
|
|
3102
|
+
featureType: "other" | "inclusion" | "exclusion" | "highlight" | "important_information";
|
|
3103
3103
|
} | null>;
|
|
3104
3104
|
updateFeature(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
3105
3105
|
featureType?: "other" | "inclusion" | "exclusion" | "highlight" | "important_information" | undefined;
|
|
@@ -3179,12 +3179,12 @@ export declare const productsService: {
|
|
|
3179
3179
|
limit: number;
|
|
3180
3180
|
offset: number;
|
|
3181
3181
|
productId?: string | undefined;
|
|
3182
|
-
locationType?: "
|
|
3182
|
+
locationType?: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest" | undefined;
|
|
3183
3183
|
}): Promise<{
|
|
3184
3184
|
data: {
|
|
3185
3185
|
id: string;
|
|
3186
3186
|
productId: string;
|
|
3187
|
-
locationType: "
|
|
3187
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
3188
3188
|
title: string;
|
|
3189
3189
|
address: string | null;
|
|
3190
3190
|
city: string | null;
|
|
@@ -3205,7 +3205,7 @@ export declare const productsService: {
|
|
|
3205
3205
|
getLocationById(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
|
|
3206
3206
|
id: string;
|
|
3207
3207
|
productId: string;
|
|
3208
|
-
locationType: "
|
|
3208
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
3209
3209
|
title: string;
|
|
3210
3210
|
address: string | null;
|
|
3211
3211
|
city: string | null;
|
|
@@ -3220,7 +3220,7 @@ export declare const productsService: {
|
|
|
3220
3220
|
updatedAt: Date;
|
|
3221
3221
|
} | null>;
|
|
3222
3222
|
createLocation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, productId: string, data: {
|
|
3223
|
-
locationType: "
|
|
3223
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
3224
3224
|
title: string;
|
|
3225
3225
|
sortOrder: number;
|
|
3226
3226
|
address?: string | null | undefined;
|
|
@@ -3235,13 +3235,13 @@ export declare const productsService: {
|
|
|
3235
3235
|
id: string;
|
|
3236
3236
|
createdAt: Date;
|
|
3237
3237
|
updatedAt: Date;
|
|
3238
|
-
title: string;
|
|
3239
3238
|
productId: string;
|
|
3240
3239
|
sortOrder: number;
|
|
3241
|
-
|
|
3240
|
+
title: string;
|
|
3241
|
+
countryCode: string | null;
|
|
3242
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
3242
3243
|
address: string | null;
|
|
3243
3244
|
city: string | null;
|
|
3244
|
-
countryCode: string | null;
|
|
3245
3245
|
latitude: number | null;
|
|
3246
3246
|
longitude: number | null;
|
|
3247
3247
|
googlePlaceId: string | null;
|
|
@@ -3249,7 +3249,7 @@ export declare const productsService: {
|
|
|
3249
3249
|
tripadvisorLocationId: string | null;
|
|
3250
3250
|
} | null>;
|
|
3251
3251
|
updateLocation(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
3252
|
-
locationType?: "
|
|
3252
|
+
locationType?: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest" | undefined;
|
|
3253
3253
|
title?: string | undefined;
|
|
3254
3254
|
address?: string | null | undefined;
|
|
3255
3255
|
city?: string | null | undefined;
|
|
@@ -3263,7 +3263,7 @@ export declare const productsService: {
|
|
|
3263
3263
|
}): Promise<{
|
|
3264
3264
|
id: string;
|
|
3265
3265
|
productId: string;
|
|
3266
|
-
locationType: "
|
|
3266
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
3267
3267
|
title: string;
|
|
3268
3268
|
address: string | null;
|
|
3269
3269
|
city: string | null;
|
|
@@ -3627,9 +3627,9 @@ export declare const productsService: {
|
|
|
3627
3627
|
createdAt: Date;
|
|
3628
3628
|
updatedAt: Date;
|
|
3629
3629
|
productId: string;
|
|
3630
|
+
notes: string | null;
|
|
3630
3631
|
capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
|
|
3631
3632
|
enabled: boolean;
|
|
3632
|
-
notes: string | null;
|
|
3633
3633
|
} | null>;
|
|
3634
3634
|
updateCapability(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
3635
3635
|
capability?: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport" | undefined;
|
|
@@ -3648,12 +3648,12 @@ export declare const productsService: {
|
|
|
3648
3648
|
id: string;
|
|
3649
3649
|
} | null>;
|
|
3650
3650
|
listProducts(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, query: {
|
|
3651
|
-
sortBy: "name" | "status" | "
|
|
3651
|
+
sortBy: "name" | "status" | "createdAt" | "startDate" | "endDate" | "pax" | "sellAmount";
|
|
3652
3652
|
sortDir: "asc" | "desc";
|
|
3653
3653
|
limit: number;
|
|
3654
3654
|
offset: number;
|
|
3655
3655
|
status?: "draft" | "active" | "archived" | undefined;
|
|
3656
|
-
bookingMode?: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary" |
|
|
3656
|
+
bookingMode?: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary" | undefined;
|
|
3657
3657
|
visibility?: "public" | "private" | "hidden" | undefined;
|
|
3658
3658
|
activated?: boolean | undefined;
|
|
3659
3659
|
facilityId?: string | undefined;
|
|
@@ -3680,7 +3680,7 @@ export declare const productsService: {
|
|
|
3680
3680
|
exclusionsHtml: string | null;
|
|
3681
3681
|
termsHtml: string | null;
|
|
3682
3682
|
termsShowOnContract: boolean;
|
|
3683
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
3683
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
3684
3684
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
3685
3685
|
timezone: string | null;
|
|
3686
3686
|
defaultLanguageTag: string | null;
|
|
@@ -3717,7 +3717,7 @@ export declare const productsService: {
|
|
|
3717
3717
|
exclusionsHtml: string | null;
|
|
3718
3718
|
termsHtml: string | null;
|
|
3719
3719
|
termsShowOnContract: boolean;
|
|
3720
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
3720
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
3721
3721
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
3722
3722
|
timezone: string | null;
|
|
3723
3723
|
defaultLanguageTag: string | null;
|
|
@@ -3755,7 +3755,7 @@ export declare const productsService: {
|
|
|
3755
3755
|
exclusionsHtml: string | null;
|
|
3756
3756
|
termsHtml: string | null;
|
|
3757
3757
|
termsShowOnContract: boolean;
|
|
3758
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
3758
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
3759
3759
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
3760
3760
|
timezone: string | null;
|
|
3761
3761
|
defaultLanguageTag: string | null;
|
|
@@ -3783,7 +3783,7 @@ export declare const productsService: {
|
|
|
3783
3783
|
name: string;
|
|
3784
3784
|
status: "draft" | "active" | "archived";
|
|
3785
3785
|
termsShowOnContract: boolean;
|
|
3786
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
3786
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
3787
3787
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
3788
3788
|
visibility: "public" | "private" | "hidden";
|
|
3789
3789
|
activated: boolean;
|
|
@@ -3821,12 +3821,13 @@ export declare const productsService: {
|
|
|
3821
3821
|
id: string;
|
|
3822
3822
|
name: string;
|
|
3823
3823
|
status: "draft" | "active" | "archived";
|
|
3824
|
+
createdAt: Date;
|
|
3824
3825
|
description: string | null;
|
|
3825
3826
|
inclusionsHtml: string | null;
|
|
3826
3827
|
exclusionsHtml: string | null;
|
|
3827
3828
|
termsHtml: string | null;
|
|
3828
3829
|
termsShowOnContract: boolean;
|
|
3829
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
3830
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
3830
3831
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
3831
3832
|
timezone: string | null;
|
|
3832
3833
|
defaultLanguageTag: string | null;
|
|
@@ -3847,7 +3848,6 @@ export declare const productsService: {
|
|
|
3847
3848
|
taxClassId: string | null;
|
|
3848
3849
|
customerPaymentPolicy: unknown;
|
|
3849
3850
|
tags: string[] | null;
|
|
3850
|
-
createdAt: Date;
|
|
3851
3851
|
updatedAt: Date;
|
|
3852
3852
|
}>;
|
|
3853
3853
|
updateProduct(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: {
|
|
@@ -3879,7 +3879,7 @@ export declare const productsService: {
|
|
|
3879
3879
|
balanceDueMinDaysFromNow: number;
|
|
3880
3880
|
} | null | undefined;
|
|
3881
3881
|
status?: "draft" | "active" | "archived" | undefined;
|
|
3882
|
-
bookingMode?: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary" |
|
|
3882
|
+
bookingMode?: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary" | undefined;
|
|
3883
3883
|
capacityMode?: "free_sale" | "limited" | "on_request" | undefined;
|
|
3884
3884
|
visibility?: "public" | "private" | "hidden" | undefined;
|
|
3885
3885
|
activated?: boolean | undefined;
|
|
@@ -3897,7 +3897,7 @@ export declare const productsService: {
|
|
|
3897
3897
|
exclusionsHtml: string | null;
|
|
3898
3898
|
termsHtml: string | null;
|
|
3899
3899
|
termsShowOnContract: boolean;
|
|
3900
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
3900
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
3901
3901
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
3902
3902
|
timezone: string | null;
|
|
3903
3903
|
defaultLanguageTag: string | null;
|
|
@@ -24,14 +24,14 @@ export declare function generateAndStoreProductBrochure(db: PostgresJsDatabase,
|
|
|
24
24
|
sortOrder: number;
|
|
25
25
|
dayId: string | null;
|
|
26
26
|
mediaType: "image" | "video" | "document";
|
|
27
|
-
isBrochure: boolean;
|
|
28
|
-
isBrochureCurrent: boolean;
|
|
29
27
|
url: string;
|
|
30
28
|
storageKey: string | null;
|
|
31
29
|
mimeType: string | null;
|
|
32
30
|
fileSize: number | null;
|
|
33
31
|
altText: string | null;
|
|
34
32
|
isCover: boolean;
|
|
33
|
+
isBrochure: boolean;
|
|
34
|
+
isBrochureCurrent: boolean;
|
|
35
35
|
brochureVersion: number | null;
|
|
36
36
|
};
|
|
37
37
|
filename: string;
|