@voyant-travel/inventory 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-brochure.d.ts +56 -0
- package/dist/routes-brochure.d.ts.map +1 -0
- package/dist/routes-brochure.js +73 -0
- package/dist/routes-brochure.test.d.ts +2 -0
- package/dist/routes-brochure.test.d.ts.map +1 -0
- package/dist/routes-brochure.test.js +92 -0
- 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 +16 -11
|
@@ -20,7 +20,7 @@ export declare const catalogProductsService: {
|
|
|
20
20
|
shortDescription: string | null;
|
|
21
21
|
seoTitle: string | null;
|
|
22
22
|
seoDescription: string | null;
|
|
23
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
23
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
24
24
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
25
25
|
visibility: "public" | "private" | "hidden";
|
|
26
26
|
sellCurrency: string;
|
|
@@ -64,7 +64,7 @@ export declare const catalogProductsService: {
|
|
|
64
64
|
}[];
|
|
65
65
|
locations: {
|
|
66
66
|
id: string;
|
|
67
|
-
locationType: "
|
|
67
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
68
68
|
title: string;
|
|
69
69
|
address: string | null;
|
|
70
70
|
city: string | null;
|
|
@@ -138,7 +138,7 @@ export declare const catalogProductsService: {
|
|
|
138
138
|
shortDescription: string | null;
|
|
139
139
|
seoTitle: string | null;
|
|
140
140
|
seoDescription: string | null;
|
|
141
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
141
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
142
142
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
143
143
|
visibility: "public" | "private" | "hidden";
|
|
144
144
|
sellCurrency: string;
|
|
@@ -182,7 +182,7 @@ export declare const catalogProductsService: {
|
|
|
182
182
|
}[];
|
|
183
183
|
locations: {
|
|
184
184
|
id: string;
|
|
185
|
-
locationType: "
|
|
185
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
186
186
|
title: string;
|
|
187
187
|
address: string | null;
|
|
188
188
|
city: string | null;
|
|
@@ -240,9 +240,9 @@ export declare const configurationProductsService: {
|
|
|
240
240
|
createdAt: Date;
|
|
241
241
|
updatedAt: Date;
|
|
242
242
|
productId: string;
|
|
243
|
+
notes: string | null;
|
|
243
244
|
capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
|
|
244
245
|
enabled: boolean;
|
|
245
|
-
notes: string | null;
|
|
246
246
|
} | null>;
|
|
247
247
|
updateCapability(db: PostgresJsDatabase, id: string, data: UpdateProductCapabilityInput): Promise<{
|
|
248
248
|
id: string;
|
package/dist/service-core.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const coreProductsService: {
|
|
|
15
15
|
exclusionsHtml: string | null;
|
|
16
16
|
termsHtml: string | null;
|
|
17
17
|
termsShowOnContract: boolean;
|
|
18
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
18
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
19
19
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
20
20
|
timezone: string | null;
|
|
21
21
|
defaultLanguageTag: string | null;
|
|
@@ -52,7 +52,7 @@ export declare const coreProductsService: {
|
|
|
52
52
|
exclusionsHtml: string | null;
|
|
53
53
|
termsHtml: string | null;
|
|
54
54
|
termsShowOnContract: boolean;
|
|
55
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
55
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
56
56
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
57
57
|
timezone: string | null;
|
|
58
58
|
defaultLanguageTag: string | null;
|
|
@@ -96,7 +96,7 @@ export declare const coreProductsService: {
|
|
|
96
96
|
exclusionsHtml: string | null;
|
|
97
97
|
termsHtml: string | null;
|
|
98
98
|
termsShowOnContract: boolean;
|
|
99
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
99
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
100
100
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
101
101
|
timezone: string | null;
|
|
102
102
|
defaultLanguageTag: string | null;
|
|
@@ -124,12 +124,13 @@ export declare const coreProductsService: {
|
|
|
124
124
|
id: string;
|
|
125
125
|
name: string;
|
|
126
126
|
status: "draft" | "active" | "archived";
|
|
127
|
+
createdAt: Date;
|
|
127
128
|
description: string | null;
|
|
128
129
|
inclusionsHtml: string | null;
|
|
129
130
|
exclusionsHtml: string | null;
|
|
130
131
|
termsHtml: string | null;
|
|
131
132
|
termsShowOnContract: boolean;
|
|
132
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
133
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
133
134
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
134
135
|
timezone: string | null;
|
|
135
136
|
defaultLanguageTag: string | null;
|
|
@@ -150,7 +151,6 @@ export declare const coreProductsService: {
|
|
|
150
151
|
taxClassId: string | null;
|
|
151
152
|
customerPaymentPolicy: unknown;
|
|
152
153
|
tags: string[] | null;
|
|
153
|
-
createdAt: Date;
|
|
154
154
|
updatedAt: Date;
|
|
155
155
|
}>;
|
|
156
156
|
updateProduct(db: PostgresJsDatabase, id: string, data: UpdateProductInput): Promise<{
|
|
@@ -162,7 +162,7 @@ export declare const coreProductsService: {
|
|
|
162
162
|
exclusionsHtml: string | null;
|
|
163
163
|
termsHtml: string | null;
|
|
164
164
|
termsShowOnContract: boolean;
|
|
165
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
165
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
166
166
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
167
167
|
timezone: string | null;
|
|
168
168
|
defaultLanguageTag: string | null;
|
|
@@ -73,18 +73,18 @@ export declare const destinationProductsService: {
|
|
|
73
73
|
} | null>;
|
|
74
74
|
createDestination(db: PostgresJsDatabase, data: CreateDestinationInput): Promise<{
|
|
75
75
|
id: string;
|
|
76
|
-
active: boolean;
|
|
77
76
|
createdAt: Date;
|
|
77
|
+
active: boolean;
|
|
78
78
|
updatedAt: Date;
|
|
79
|
-
metadata: Record<string, unknown> | null;
|
|
80
79
|
code: string | null;
|
|
81
80
|
sortOrder: number;
|
|
82
81
|
latitude: number | null;
|
|
83
82
|
longitude: number | null;
|
|
83
|
+
slug: string;
|
|
84
|
+
metadata: Record<string, unknown> | null;
|
|
84
85
|
parentId: string | null;
|
|
85
|
-
destinationType: string;
|
|
86
86
|
canonicalPlaceId: string | null;
|
|
87
|
-
|
|
87
|
+
destinationType: string;
|
|
88
88
|
} | null>;
|
|
89
89
|
updateDestination(db: PostgresJsDatabase, id: string, data: UpdateDestinationInput): Promise<{
|
|
90
90
|
id: string;
|
|
@@ -123,13 +123,13 @@ export declare const destinationProductsService: {
|
|
|
123
123
|
upsertDestinationTranslation(db: PostgresJsDatabase, destinationId: string, data: CreateDestinationTranslationInput): Promise<{
|
|
124
124
|
id: string;
|
|
125
125
|
name: string;
|
|
126
|
-
description: string | null;
|
|
127
126
|
createdAt: Date;
|
|
127
|
+
description: string | null;
|
|
128
128
|
updatedAt: Date;
|
|
129
129
|
languageTag: string;
|
|
130
|
-
destinationId: string;
|
|
131
130
|
seoTitle: string | null;
|
|
132
131
|
seoDescription: string | null;
|
|
132
|
+
destinationId: string;
|
|
133
133
|
} | null>;
|
|
134
134
|
updateDestinationTranslation(db: PostgresJsDatabase, id: string, data: UpdateDestinationTranslationInput): Promise<{
|
|
135
135
|
id: string;
|
|
@@ -164,13 +164,13 @@ export declare const destinationProductsService: {
|
|
|
164
164
|
upsertProductCategoryTranslation(db: PostgresJsDatabase, categoryId: string, data: CreateProductCategoryTranslationInput): Promise<{
|
|
165
165
|
id: string;
|
|
166
166
|
name: string;
|
|
167
|
-
description: string | null;
|
|
168
167
|
createdAt: Date;
|
|
168
|
+
description: string | null;
|
|
169
169
|
updatedAt: Date;
|
|
170
|
-
categoryId: string;
|
|
171
170
|
languageTag: string;
|
|
172
171
|
seoTitle: string | null;
|
|
173
172
|
seoDescription: string | null;
|
|
173
|
+
categoryId: string;
|
|
174
174
|
} | null>;
|
|
175
175
|
updateProductCategoryTranslation(db: PostgresJsDatabase, id: string, data: UpdateProductCategoryTranslationInput): Promise<{
|
|
176
176
|
id: string;
|
|
@@ -445,8 +445,8 @@ export declare const itineraryHistoryProductsService: {
|
|
|
445
445
|
id: string;
|
|
446
446
|
createdAt: Date;
|
|
447
447
|
productId: string;
|
|
448
|
-
content: string;
|
|
449
448
|
authorId: string;
|
|
449
|
+
content: string;
|
|
450
450
|
} | null | undefined>;
|
|
451
451
|
recalculate(db: PostgresJsDatabase, productId: string): Promise<{
|
|
452
452
|
costAmountCents: number;
|
|
@@ -605,23 +605,23 @@ export declare const itineraryProductsService: {
|
|
|
605
605
|
} | null>;
|
|
606
606
|
createDay(db: PostgresJsDatabase, productId: string, data: CreateDayInput): Promise<{
|
|
607
607
|
id: string;
|
|
608
|
-
description: string | null;
|
|
609
608
|
createdAt: Date;
|
|
609
|
+
description: string | null;
|
|
610
610
|
updatedAt: Date;
|
|
611
|
+
itineraryId: string;
|
|
612
|
+
dayNumber: number;
|
|
611
613
|
title: string | null;
|
|
612
614
|
location: string | null;
|
|
613
|
-
dayNumber: number;
|
|
614
|
-
itineraryId: string;
|
|
615
615
|
} | null | undefined>;
|
|
616
616
|
createItineraryDay(db: PostgresJsDatabase, productId: string, itineraryId: string, data: CreateDayInput): Promise<{
|
|
617
617
|
id: string;
|
|
618
|
-
description: string | null;
|
|
619
618
|
createdAt: Date;
|
|
619
|
+
description: string | null;
|
|
620
620
|
updatedAt: Date;
|
|
621
|
+
itineraryId: string;
|
|
622
|
+
dayNumber: number;
|
|
621
623
|
title: string | null;
|
|
622
624
|
location: string | null;
|
|
623
|
-
dayNumber: number;
|
|
624
|
-
itineraryId: string;
|
|
625
625
|
} | null | undefined>;
|
|
626
626
|
updateDay(db: PostgresJsDatabase, dayId: string, data: UpdateDayInput): Promise<{
|
|
627
627
|
id: string;
|
|
@@ -693,7 +693,7 @@ export declare const itineraryProductsService: {
|
|
|
693
693
|
tableName: "product_day_services";
|
|
694
694
|
dataType: "string";
|
|
695
695
|
columnType: "PgEnumColumn";
|
|
696
|
-
data: "
|
|
696
|
+
data: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
697
697
|
driverParam: string;
|
|
698
698
|
notNull: true;
|
|
699
699
|
hasDefault: false;
|
|
@@ -862,7 +862,7 @@ export declare const itineraryProductsService: {
|
|
|
862
862
|
id: string;
|
|
863
863
|
dayId: string;
|
|
864
864
|
supplierServiceId: string | null;
|
|
865
|
-
serviceType: "
|
|
865
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
866
866
|
name: string;
|
|
867
867
|
description: string | null;
|
|
868
868
|
countryCode: string | null;
|
|
@@ -929,7 +929,7 @@ export declare const itineraryProductsService: {
|
|
|
929
929
|
tableName: "product_day_services";
|
|
930
930
|
dataType: "string";
|
|
931
931
|
columnType: "PgEnumColumn";
|
|
932
|
-
data: "
|
|
932
|
+
data: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
933
933
|
driverParam: string;
|
|
934
934
|
notNull: true;
|
|
935
935
|
hasDefault: false;
|
|
@@ -1100,7 +1100,7 @@ export declare const itineraryProductsService: {
|
|
|
1100
1100
|
id: string;
|
|
1101
1101
|
dayId: string;
|
|
1102
1102
|
supplierServiceId: string | null;
|
|
1103
|
-
serviceType: "
|
|
1103
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
1104
1104
|
name: string;
|
|
1105
1105
|
description: string | null;
|
|
1106
1106
|
countryCode: string | null;
|
|
@@ -1114,23 +1114,23 @@ export declare const itineraryProductsService: {
|
|
|
1114
1114
|
createDayService(db: PostgresJsDatabase, productId: string, dayId: string, data: CreateDayServiceInput): Promise<{
|
|
1115
1115
|
id: string;
|
|
1116
1116
|
name: string;
|
|
1117
|
+
createdAt: Date;
|
|
1117
1118
|
description: string | null;
|
|
1118
1119
|
costAmountCents: number;
|
|
1119
|
-
createdAt: Date;
|
|
1120
|
-
notes: string | null;
|
|
1121
1120
|
sortOrder: number | null;
|
|
1122
|
-
countryCode: string | null;
|
|
1123
1121
|
dayId: string;
|
|
1124
|
-
serviceType: "transfer" | "other" | "accommodation" | "experience" | "guide" | "meal";
|
|
1125
1122
|
supplierServiceId: string | null;
|
|
1123
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
1124
|
+
countryCode: string | null;
|
|
1126
1125
|
costCurrency: string;
|
|
1127
1126
|
quantity: number;
|
|
1127
|
+
notes: string | null;
|
|
1128
1128
|
} | null | undefined>;
|
|
1129
1129
|
updateDayService(db: PostgresJsDatabase, productId: string, serviceId: string, data: UpdateDayServiceInput): Promise<{
|
|
1130
1130
|
id: string;
|
|
1131
1131
|
dayId: string;
|
|
1132
1132
|
supplierServiceId: string | null;
|
|
1133
|
-
serviceType: "
|
|
1133
|
+
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
1134
1134
|
name: string;
|
|
1135
1135
|
description: string | null;
|
|
1136
1136
|
countryCode: string | null;
|
package/dist/service-media.d.ts
CHANGED
|
@@ -83,14 +83,14 @@ export declare const mediaProductsService: {
|
|
|
83
83
|
sortOrder: number;
|
|
84
84
|
dayId: string | null;
|
|
85
85
|
mediaType: "image" | "video" | "document";
|
|
86
|
-
isBrochure: boolean;
|
|
87
|
-
isBrochureCurrent: boolean;
|
|
88
86
|
url: string;
|
|
89
87
|
storageKey: string | null;
|
|
90
88
|
mimeType: string | null;
|
|
91
89
|
fileSize: number | null;
|
|
92
90
|
altText: string | null;
|
|
93
91
|
isCover: boolean;
|
|
92
|
+
isBrochure: boolean;
|
|
93
|
+
isBrochureCurrent: boolean;
|
|
94
94
|
brochureVersion: number | null;
|
|
95
95
|
} | null>;
|
|
96
96
|
updateMedia(db: PostgresJsDatabase, id: string, data: UpdateProductMediaInput): Promise<{
|
|
@@ -121,14 +121,14 @@ export declare const mediaProductsService: {
|
|
|
121
121
|
sortOrder: number;
|
|
122
122
|
dayId: string | null;
|
|
123
123
|
mediaType: "image" | "video" | "document";
|
|
124
|
-
isBrochure: boolean;
|
|
125
|
-
isBrochureCurrent: boolean;
|
|
126
124
|
url: string;
|
|
127
125
|
storageKey: string | null;
|
|
128
126
|
mimeType: string | null;
|
|
129
127
|
fileSize: number | null;
|
|
130
128
|
altText: string | null;
|
|
131
129
|
isCover: boolean;
|
|
130
|
+
isBrochure: boolean;
|
|
131
|
+
isBrochureCurrent: boolean;
|
|
132
132
|
brochureVersion: number | null;
|
|
133
133
|
} | null>;
|
|
134
134
|
setCoverMedia(db: PostgresJsDatabase, productId: string, mediaId: string, dayId?: string | null): Promise<{
|
|
@@ -200,14 +200,14 @@ export declare const mediaProductsService: {
|
|
|
200
200
|
sortOrder: number;
|
|
201
201
|
dayId: string | null;
|
|
202
202
|
mediaType: "image" | "video" | "document";
|
|
203
|
-
isBrochure: boolean;
|
|
204
|
-
isBrochureCurrent: boolean;
|
|
205
203
|
url: string;
|
|
206
204
|
storageKey: string | null;
|
|
207
205
|
mimeType: string | null;
|
|
208
206
|
fileSize: number | null;
|
|
209
207
|
altText: string | null;
|
|
210
208
|
isCover: boolean;
|
|
209
|
+
isBrochure: boolean;
|
|
210
|
+
isBrochureCurrent: boolean;
|
|
211
211
|
brochureVersion: number | null;
|
|
212
212
|
} | null>;
|
|
213
213
|
deleteBrochure(db: PostgresJsDatabase, productId: string): Promise<{
|
|
@@ -219,14 +219,14 @@ export declare const mediaProductsService: {
|
|
|
219
219
|
sortOrder: number;
|
|
220
220
|
dayId: string | null;
|
|
221
221
|
mediaType: "image" | "video" | "document";
|
|
222
|
-
isBrochure: boolean;
|
|
223
|
-
isBrochureCurrent: boolean;
|
|
224
222
|
url: string;
|
|
225
223
|
storageKey: string | null;
|
|
226
224
|
mimeType: string | null;
|
|
227
225
|
fileSize: number | null;
|
|
228
226
|
altText: string | null;
|
|
229
227
|
isCover: boolean;
|
|
228
|
+
isBrochure: boolean;
|
|
229
|
+
isBrochureCurrent: boolean;
|
|
230
230
|
brochureVersion: number | null;
|
|
231
231
|
} | null>;
|
|
232
232
|
setCurrentBrochure(db: PostgresJsDatabase, productId: string, brochureId: string): Promise<{
|
|
@@ -257,14 +257,14 @@ export declare const mediaProductsService: {
|
|
|
257
257
|
sortOrder: number;
|
|
258
258
|
dayId: string | null;
|
|
259
259
|
mediaType: "image" | "video" | "document";
|
|
260
|
-
isBrochure: boolean;
|
|
261
|
-
isBrochureCurrent: boolean;
|
|
262
260
|
url: string;
|
|
263
261
|
storageKey: string | null;
|
|
264
262
|
mimeType: string | null;
|
|
265
263
|
fileSize: number | null;
|
|
266
264
|
altText: string | null;
|
|
267
265
|
isCover: boolean;
|
|
266
|
+
isBrochure: boolean;
|
|
267
|
+
isBrochureCurrent: boolean;
|
|
268
268
|
brochureVersion: number | null;
|
|
269
269
|
} | null>;
|
|
270
270
|
};
|
|
@@ -38,13 +38,13 @@ export declare const merchandisingProductsService: {
|
|
|
38
38
|
} | null>;
|
|
39
39
|
createFeature(db: PostgresJsDatabase, productId: string, data: CreateProductFeatureInput): Promise<{
|
|
40
40
|
id: string;
|
|
41
|
-
description: string | null;
|
|
42
41
|
createdAt: Date;
|
|
42
|
+
description: string | null;
|
|
43
43
|
updatedAt: Date;
|
|
44
|
-
title: string;
|
|
45
44
|
productId: string;
|
|
46
|
-
featureType: "other" | "inclusion" | "exclusion" | "highlight" | "important_information";
|
|
47
45
|
sortOrder: number;
|
|
46
|
+
title: string;
|
|
47
|
+
featureType: "other" | "inclusion" | "exclusion" | "highlight" | "important_information";
|
|
48
48
|
} | null>;
|
|
49
49
|
updateFeature(db: PostgresJsDatabase, id: string, data: UpdateProductFeatureInput): Promise<{
|
|
50
50
|
id: string;
|
|
@@ -107,7 +107,7 @@ export declare const merchandisingProductsService: {
|
|
|
107
107
|
data: {
|
|
108
108
|
id: string;
|
|
109
109
|
productId: string;
|
|
110
|
-
locationType: "
|
|
110
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
111
111
|
title: string;
|
|
112
112
|
address: string | null;
|
|
113
113
|
city: string | null;
|
|
@@ -128,7 +128,7 @@ export declare const merchandisingProductsService: {
|
|
|
128
128
|
getLocationById(db: PostgresJsDatabase, id: string): Promise<{
|
|
129
129
|
id: string;
|
|
130
130
|
productId: string;
|
|
131
|
-
locationType: "
|
|
131
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
132
132
|
title: string;
|
|
133
133
|
address: string | null;
|
|
134
134
|
city: string | null;
|
|
@@ -146,13 +146,13 @@ export declare const merchandisingProductsService: {
|
|
|
146
146
|
id: string;
|
|
147
147
|
createdAt: Date;
|
|
148
148
|
updatedAt: Date;
|
|
149
|
-
title: string;
|
|
150
149
|
productId: string;
|
|
151
150
|
sortOrder: number;
|
|
152
|
-
|
|
151
|
+
title: string;
|
|
152
|
+
countryCode: string | null;
|
|
153
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
153
154
|
address: string | null;
|
|
154
155
|
city: string | null;
|
|
155
|
-
countryCode: string | null;
|
|
156
156
|
latitude: number | null;
|
|
157
157
|
longitude: number | null;
|
|
158
158
|
googlePlaceId: string | null;
|
|
@@ -162,7 +162,7 @@ export declare const merchandisingProductsService: {
|
|
|
162
162
|
updateLocation(db: PostgresJsDatabase, id: string, data: UpdateProductLocationInput): Promise<{
|
|
163
163
|
id: string;
|
|
164
164
|
productId: string;
|
|
165
|
-
locationType: "
|
|
165
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
166
166
|
title: string;
|
|
167
167
|
address: string | null;
|
|
168
168
|
city: string | null;
|
|
@@ -54,18 +54,18 @@ export declare const optionTranslationProductsService: {
|
|
|
54
54
|
createProductTranslation(db: PostgresJsDatabase, productId: string, data: CreateProductTranslationInput): Promise<{
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
57
|
+
createdAt: Date;
|
|
57
58
|
description: string | null;
|
|
58
59
|
inclusionsHtml: string | null;
|
|
59
60
|
exclusionsHtml: string | null;
|
|
60
61
|
termsHtml: string | null;
|
|
61
|
-
createdAt: Date;
|
|
62
62
|
updatedAt: Date;
|
|
63
63
|
productId: string;
|
|
64
64
|
languageTag: string;
|
|
65
65
|
slug: string | null;
|
|
66
|
+
shortDescription: string | null;
|
|
66
67
|
seoTitle: string | null;
|
|
67
68
|
seoDescription: string | null;
|
|
68
|
-
shortDescription: string | null;
|
|
69
69
|
} | null>;
|
|
70
70
|
updateProductTranslation(db: PostgresJsDatabase, id: string, data: UpdateProductTranslationInput): Promise<{
|
|
71
71
|
id: string;
|
|
@@ -124,13 +124,13 @@ export declare const optionTranslationProductsService: {
|
|
|
124
124
|
} | null>;
|
|
125
125
|
createProductDayTranslation(db: PostgresJsDatabase, productId: string, dayId: string, data: CreateProductDayTranslationInput): Promise<{
|
|
126
126
|
id: string;
|
|
127
|
-
description: string | null;
|
|
128
127
|
createdAt: Date;
|
|
128
|
+
description: string | null;
|
|
129
129
|
updatedAt: Date;
|
|
130
130
|
title: string | null;
|
|
131
|
-
languageTag: string;
|
|
132
|
-
dayId: string;
|
|
133
131
|
location: string | null;
|
|
132
|
+
dayId: string;
|
|
133
|
+
languageTag: string;
|
|
134
134
|
} | null>;
|
|
135
135
|
updateProductDayTranslation(db: PostgresJsDatabase, id: string, data: UpdateProductDayTranslationInput): Promise<{
|
|
136
136
|
id: string;
|
|
@@ -184,11 +184,11 @@ export declare const optionTranslationProductsService: {
|
|
|
184
184
|
createOptionTranslation(db: PostgresJsDatabase, optionId: string, data: CreateProductOptionTranslationInput): Promise<{
|
|
185
185
|
id: string;
|
|
186
186
|
name: string;
|
|
187
|
-
description: string | null;
|
|
188
187
|
createdAt: Date;
|
|
188
|
+
description: string | null;
|
|
189
189
|
updatedAt: Date;
|
|
190
|
-
languageTag: string;
|
|
191
190
|
optionId: string;
|
|
191
|
+
languageTag: string;
|
|
192
192
|
shortDescription: string | null;
|
|
193
193
|
} | null>;
|
|
194
194
|
updateOptionTranslation(db: PostgresJsDatabase, id: string, data: UpdateProductOptionTranslationInput): Promise<{
|
|
@@ -243,8 +243,8 @@ export declare const optionTranslationProductsService: {
|
|
|
243
243
|
createUnitTranslation(db: PostgresJsDatabase, unitId: string, data: CreateOptionUnitTranslationInput): Promise<{
|
|
244
244
|
id: string;
|
|
245
245
|
name: string;
|
|
246
|
-
description: string | null;
|
|
247
246
|
createdAt: Date;
|
|
247
|
+
description: string | null;
|
|
248
248
|
updatedAt: Date;
|
|
249
249
|
languageTag: string;
|
|
250
250
|
shortDescription: string | null;
|
|
@@ -45,11 +45,11 @@ export declare const optionProductsService: {
|
|
|
45
45
|
id: string;
|
|
46
46
|
name: string;
|
|
47
47
|
status: "draft" | "active" | "archived";
|
|
48
|
-
description: string | null;
|
|
49
48
|
createdAt: Date;
|
|
49
|
+
description: string | null;
|
|
50
50
|
updatedAt: Date;
|
|
51
|
-
code: string | null;
|
|
52
51
|
productId: string;
|
|
52
|
+
code: string | null;
|
|
53
53
|
isDefault: boolean;
|
|
54
54
|
sortOrder: number;
|
|
55
55
|
availableFrom: string | null;
|
|
@@ -79,7 +79,7 @@ export declare const optionProductsService: {
|
|
|
79
79
|
name: string;
|
|
80
80
|
code: string | null;
|
|
81
81
|
description: string | null;
|
|
82
|
-
unitType: "
|
|
82
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
83
83
|
minQuantity: number | null;
|
|
84
84
|
maxQuantity: number | null;
|
|
85
85
|
minAge: number | null;
|
|
@@ -102,7 +102,7 @@ export declare const optionProductsService: {
|
|
|
102
102
|
name: string;
|
|
103
103
|
code: string | null;
|
|
104
104
|
description: string | null;
|
|
105
|
-
unitType: "
|
|
105
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
106
106
|
minQuantity: number | null;
|
|
107
107
|
maxQuantity: number | null;
|
|
108
108
|
minAge: number | null;
|
|
@@ -122,7 +122,7 @@ export declare const optionProductsService: {
|
|
|
122
122
|
name: string;
|
|
123
123
|
code: string | null;
|
|
124
124
|
description: string | null;
|
|
125
|
-
unitType: "
|
|
125
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
126
126
|
minQuantity: number | null;
|
|
127
127
|
maxQuantity: number | null;
|
|
128
128
|
minAge: number | null;
|
|
@@ -138,13 +138,13 @@ export declare const optionProductsService: {
|
|
|
138
138
|
createUnit(db: PostgresJsDatabase, optionId: string, data: CreateOptionUnitInput): Promise<{
|
|
139
139
|
id: string;
|
|
140
140
|
name: string;
|
|
141
|
-
description: string | null;
|
|
142
141
|
createdAt: Date;
|
|
142
|
+
description: string | null;
|
|
143
143
|
updatedAt: Date;
|
|
144
144
|
code: string | null;
|
|
145
145
|
sortOrder: number;
|
|
146
146
|
optionId: string;
|
|
147
|
-
unitType: "
|
|
147
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
148
148
|
minQuantity: number | null;
|
|
149
149
|
maxQuantity: number | null;
|
|
150
150
|
minAge: number | null;
|
|
@@ -160,7 +160,7 @@ export declare const optionProductsService: {
|
|
|
160
160
|
name: string;
|
|
161
161
|
code: string | null;
|
|
162
162
|
description: string | null;
|
|
163
|
-
unitType: "
|
|
163
|
+
unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
|
|
164
164
|
minQuantity: number | null;
|
|
165
165
|
maxQuantity: number | null;
|
|
166
166
|
minAge: number | null;
|
package/dist/service-public.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const publicProductsService: {
|
|
|
16
16
|
shortDescription: string | null;
|
|
17
17
|
seoTitle: string | null;
|
|
18
18
|
seoDescription: string | null;
|
|
19
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
19
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
20
20
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
21
21
|
visibility: "public" | "private" | "hidden";
|
|
22
22
|
sellCurrency: string;
|
|
@@ -60,7 +60,7 @@ export declare const publicProductsService: {
|
|
|
60
60
|
}[];
|
|
61
61
|
locations: {
|
|
62
62
|
id: string;
|
|
63
|
-
locationType: "
|
|
63
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
64
64
|
title: string;
|
|
65
65
|
address: string | null;
|
|
66
66
|
city: string | null;
|
|
@@ -134,7 +134,7 @@ export declare const publicProductsService: {
|
|
|
134
134
|
shortDescription: string | null;
|
|
135
135
|
seoTitle: string | null;
|
|
136
136
|
seoDescription: string | null;
|
|
137
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
137
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
138
138
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
139
139
|
visibility: "public" | "private" | "hidden";
|
|
140
140
|
sellCurrency: string;
|
|
@@ -178,7 +178,7 @@ export declare const publicProductsService: {
|
|
|
178
178
|
}[];
|
|
179
179
|
locations: {
|
|
180
180
|
id: string;
|
|
181
|
-
locationType: "
|
|
181
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
182
182
|
title: string;
|
|
183
183
|
address: string | null;
|
|
184
184
|
city: string | null;
|
|
@@ -220,7 +220,7 @@ export declare const publicProductsService: {
|
|
|
220
220
|
shortDescription: string | null;
|
|
221
221
|
seoTitle: string | null;
|
|
222
222
|
seoDescription: string | null;
|
|
223
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
223
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
224
224
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
225
225
|
visibility: "public" | "private" | "hidden";
|
|
226
226
|
sellCurrency: string;
|
|
@@ -264,7 +264,7 @@ export declare const publicProductsService: {
|
|
|
264
264
|
}[];
|
|
265
265
|
locations: {
|
|
266
266
|
id: string;
|
|
267
|
-
locationType: "
|
|
267
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
268
268
|
title: string;
|
|
269
269
|
address: string | null;
|
|
270
270
|
city: string | null;
|
|
@@ -338,7 +338,7 @@ export declare const publicProductsService: {
|
|
|
338
338
|
shortDescription: string | null;
|
|
339
339
|
seoTitle: string | null;
|
|
340
340
|
seoDescription: string | null;
|
|
341
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
341
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
342
342
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
343
343
|
visibility: "public" | "private" | "hidden";
|
|
344
344
|
sellCurrency: string;
|
|
@@ -382,7 +382,7 @@ export declare const publicProductsService: {
|
|
|
382
382
|
}[];
|
|
383
383
|
locations: {
|
|
384
384
|
id: string;
|
|
385
|
-
locationType: "
|
|
385
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
386
386
|
title: string;
|
|
387
387
|
address: string | null;
|
|
388
388
|
city: string | null;
|
|
@@ -418,7 +418,7 @@ export declare const publicProductsService: {
|
|
|
418
418
|
shortDescription: string | null;
|
|
419
419
|
seoTitle: string | null;
|
|
420
420
|
seoDescription: string | null;
|
|
421
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
421
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
422
422
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
423
423
|
visibility: "public" | "private" | "hidden";
|
|
424
424
|
sellCurrency: string;
|
|
@@ -462,7 +462,7 @@ export declare const publicProductsService: {
|
|
|
462
462
|
}[];
|
|
463
463
|
locations: {
|
|
464
464
|
id: string;
|
|
465
|
-
locationType: "
|
|
465
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
466
466
|
title: string;
|
|
467
467
|
address: string | null;
|
|
468
468
|
city: string | null;
|
|
@@ -536,7 +536,7 @@ export declare const publicProductsService: {
|
|
|
536
536
|
shortDescription: string | null;
|
|
537
537
|
seoTitle: string | null;
|
|
538
538
|
seoDescription: string | null;
|
|
539
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
539
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
540
540
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
541
541
|
visibility: "public" | "private" | "hidden";
|
|
542
542
|
sellCurrency: string;
|
|
@@ -580,7 +580,7 @@ export declare const publicProductsService: {
|
|
|
580
580
|
}[];
|
|
581
581
|
locations: {
|
|
582
582
|
id: string;
|
|
583
|
-
locationType: "
|
|
583
|
+
locationType: "end" | "other" | "start" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
584
584
|
title: string;
|
|
585
585
|
address: string | null;
|
|
586
586
|
city: string | null;
|