@voyantjs/products 0.2.0 → 0.3.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.
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/routes-public.d.ts +337 -0
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-public.js +32 -0
- package/dist/routes.d.ts +4 -4
- package/dist/schema-core.d.ts +897 -0
- package/dist/schema-core.d.ts.map +1 -0
- package/dist/schema-core.js +77 -0
- package/dist/schema-itinerary.d.ts +828 -0
- package/dist/schema-itinerary.d.ts.map +1 -0
- package/dist/schema-itinerary.js +77 -0
- package/dist/schema-relations.d.ts +99 -0
- package/dist/schema-relations.d.ts.map +1 -0
- package/dist/schema-relations.js +155 -0
- package/dist/schema-settings.d.ts +1749 -0
- package/dist/schema-settings.d.ts.map +1 -0
- package/dist/schema-settings.js +175 -0
- package/dist/schema-shared.d.ts +15 -0
- package/dist/schema-shared.d.ts.map +1 -0
- package/dist/schema-shared.js +91 -0
- package/dist/schema-taxonomy.d.ts +573 -0
- package/dist/schema-taxonomy.d.ts.map +1 -0
- package/dist/schema-taxonomy.js +65 -0
- package/dist/schema.d.ts +6 -4155
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +6 -653
- package/dist/service-public.d.ts +259 -0
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-public.js +479 -0
- package/dist/service.d.ts +4 -4
- package/dist/validation-config.d.ts +233 -0
- package/dist/validation-config.d.ts.map +1 -0
- package/dist/validation-config.js +73 -0
- package/dist/validation-content.d.ts +358 -0
- package/dist/validation-content.d.ts.map +1 -0
- package/dist/validation-content.js +177 -0
- package/dist/validation-core.d.ts +268 -0
- package/dist/validation-core.d.ts.map +1 -0
- package/dist/validation-core.js +91 -0
- package/dist/validation-public.d.ts +454 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-public.js +130 -0
- package/dist/validation-shared.d.ts +108 -0
- package/dist/validation-shared.d.ts.map +1 -0
- package/dist/validation-shared.js +87 -0
- package/dist/validation.d.ts +5 -854
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +5 -433
- package/package.json +12 -4
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
2
|
+
import type { PublicCatalogCategoryListQuery, PublicCatalogProductListQuery, PublicCatalogProductLookupBySlugQuery, PublicCatalogTagListQuery } from "./validation-public.js";
|
|
3
|
+
export declare const publicProductsService: {
|
|
4
|
+
listCatalogProducts(db: PostgresJsDatabase, query: PublicCatalogProductListQuery): Promise<{
|
|
5
|
+
data: ({
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
contentLanguageTag: string | null;
|
|
10
|
+
slug: string | null;
|
|
11
|
+
shortDescription: string | null;
|
|
12
|
+
seoTitle: string | null;
|
|
13
|
+
seoDescription: string | null;
|
|
14
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
15
|
+
capacityMode: "free_sale" | "limited" | "on_request";
|
|
16
|
+
visibility: "public" | "private" | "hidden";
|
|
17
|
+
sellCurrency: string;
|
|
18
|
+
sellAmountCents: number | null;
|
|
19
|
+
startDate: string | null;
|
|
20
|
+
endDate: string | null;
|
|
21
|
+
pax: number | null;
|
|
22
|
+
productType: {
|
|
23
|
+
id: string;
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
categories: {
|
|
29
|
+
id: string;
|
|
30
|
+
parentId: string | null;
|
|
31
|
+
name: string;
|
|
32
|
+
slug: string;
|
|
33
|
+
description: string | null;
|
|
34
|
+
sortOrder: number;
|
|
35
|
+
}[];
|
|
36
|
+
tags: {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
}[];
|
|
40
|
+
capabilities: string[];
|
|
41
|
+
coverMedia: {
|
|
42
|
+
id: string;
|
|
43
|
+
mediaType: "image" | "video" | "document";
|
|
44
|
+
name: string;
|
|
45
|
+
url: string;
|
|
46
|
+
mimeType: string | null;
|
|
47
|
+
altText: string | null;
|
|
48
|
+
sortOrder: number;
|
|
49
|
+
isCover: boolean;
|
|
50
|
+
} | null;
|
|
51
|
+
isFeatured: boolean;
|
|
52
|
+
} | {
|
|
53
|
+
media: {
|
|
54
|
+
id: string;
|
|
55
|
+
mediaType: "image" | "video" | "document";
|
|
56
|
+
name: string;
|
|
57
|
+
url: string;
|
|
58
|
+
mimeType: string | null;
|
|
59
|
+
altText: string | null;
|
|
60
|
+
sortOrder: number;
|
|
61
|
+
isCover: boolean;
|
|
62
|
+
}[];
|
|
63
|
+
features: {
|
|
64
|
+
id: string;
|
|
65
|
+
featureType: "other" | "inclusion" | "exclusion" | "highlight" | "important_information";
|
|
66
|
+
title: string;
|
|
67
|
+
description: string | null;
|
|
68
|
+
sortOrder: number;
|
|
69
|
+
}[];
|
|
70
|
+
faqs: {
|
|
71
|
+
id: string;
|
|
72
|
+
question: string;
|
|
73
|
+
answer: string;
|
|
74
|
+
sortOrder: number;
|
|
75
|
+
}[];
|
|
76
|
+
locations: {
|
|
77
|
+
id: string;
|
|
78
|
+
locationType: "other" | "start" | "end" | "meeting_point" | "pickup" | "dropoff" | "point_of_interest";
|
|
79
|
+
title: string;
|
|
80
|
+
address: string | null;
|
|
81
|
+
city: string | null;
|
|
82
|
+
countryCode: string | null;
|
|
83
|
+
latitude: number | null;
|
|
84
|
+
longitude: number | null;
|
|
85
|
+
sortOrder: number;
|
|
86
|
+
}[];
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
description: string | null;
|
|
90
|
+
contentLanguageTag: string | null;
|
|
91
|
+
slug: string | null;
|
|
92
|
+
shortDescription: string | null;
|
|
93
|
+
seoTitle: string | null;
|
|
94
|
+
seoDescription: string | null;
|
|
95
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
96
|
+
capacityMode: "free_sale" | "limited" | "on_request";
|
|
97
|
+
visibility: "public" | "private" | "hidden";
|
|
98
|
+
sellCurrency: string;
|
|
99
|
+
sellAmountCents: number | null;
|
|
100
|
+
startDate: string | null;
|
|
101
|
+
endDate: string | null;
|
|
102
|
+
pax: number | null;
|
|
103
|
+
productType: {
|
|
104
|
+
id: string;
|
|
105
|
+
code: string;
|
|
106
|
+
name: string;
|
|
107
|
+
description: string | null;
|
|
108
|
+
} | null;
|
|
109
|
+
categories: {
|
|
110
|
+
id: string;
|
|
111
|
+
parentId: string | null;
|
|
112
|
+
name: string;
|
|
113
|
+
slug: string;
|
|
114
|
+
description: string | null;
|
|
115
|
+
sortOrder: number;
|
|
116
|
+
}[];
|
|
117
|
+
tags: {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
}[];
|
|
121
|
+
capabilities: string[];
|
|
122
|
+
coverMedia: {
|
|
123
|
+
id: string;
|
|
124
|
+
mediaType: "image" | "video" | "document";
|
|
125
|
+
name: string;
|
|
126
|
+
url: string;
|
|
127
|
+
mimeType: string | null;
|
|
128
|
+
altText: string | null;
|
|
129
|
+
sortOrder: number;
|
|
130
|
+
isCover: boolean;
|
|
131
|
+
} | null;
|
|
132
|
+
isFeatured: boolean;
|
|
133
|
+
})[];
|
|
134
|
+
total: number;
|
|
135
|
+
limit: number;
|
|
136
|
+
offset: number;
|
|
137
|
+
}>;
|
|
138
|
+
getCatalogProductById(db: PostgresJsDatabase, id: string, query?: {
|
|
139
|
+
languageTag?: string | null;
|
|
140
|
+
}): Promise<{
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
description: string | null;
|
|
144
|
+
contentLanguageTag: string | null;
|
|
145
|
+
slug: string | null;
|
|
146
|
+
shortDescription: string | null;
|
|
147
|
+
seoTitle: string | null;
|
|
148
|
+
seoDescription: string | null;
|
|
149
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
150
|
+
capacityMode: "free_sale" | "limited" | "on_request";
|
|
151
|
+
visibility: "public" | "private" | "hidden";
|
|
152
|
+
sellCurrency: string;
|
|
153
|
+
sellAmountCents: number | null;
|
|
154
|
+
startDate: string | null;
|
|
155
|
+
endDate: string | null;
|
|
156
|
+
pax: number | null;
|
|
157
|
+
productType: {
|
|
158
|
+
id: string;
|
|
159
|
+
code: string;
|
|
160
|
+
name: string;
|
|
161
|
+
description: string | null;
|
|
162
|
+
} | null;
|
|
163
|
+
categories: {
|
|
164
|
+
id: string;
|
|
165
|
+
parentId: string | null;
|
|
166
|
+
name: string;
|
|
167
|
+
slug: string;
|
|
168
|
+
description: string | null;
|
|
169
|
+
sortOrder: number;
|
|
170
|
+
}[];
|
|
171
|
+
tags: {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
}[];
|
|
175
|
+
capabilities: string[];
|
|
176
|
+
coverMedia: {
|
|
177
|
+
id: string;
|
|
178
|
+
mediaType: "image" | "video" | "document";
|
|
179
|
+
name: string;
|
|
180
|
+
url: string;
|
|
181
|
+
mimeType: string | null;
|
|
182
|
+
altText: string | null;
|
|
183
|
+
sortOrder: number;
|
|
184
|
+
isCover: boolean;
|
|
185
|
+
} | null;
|
|
186
|
+
isFeatured: boolean;
|
|
187
|
+
} | null>;
|
|
188
|
+
getCatalogProductBySlug(db: PostgresJsDatabase, slug: string, query?: PublicCatalogProductLookupBySlugQuery): Promise<{
|
|
189
|
+
id: string;
|
|
190
|
+
name: string;
|
|
191
|
+
description: string | null;
|
|
192
|
+
contentLanguageTag: string | null;
|
|
193
|
+
slug: string | null;
|
|
194
|
+
shortDescription: string | null;
|
|
195
|
+
seoTitle: string | null;
|
|
196
|
+
seoDescription: string | null;
|
|
197
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
198
|
+
capacityMode: "free_sale" | "limited" | "on_request";
|
|
199
|
+
visibility: "public" | "private" | "hidden";
|
|
200
|
+
sellCurrency: string;
|
|
201
|
+
sellAmountCents: number | null;
|
|
202
|
+
startDate: string | null;
|
|
203
|
+
endDate: string | null;
|
|
204
|
+
pax: number | null;
|
|
205
|
+
productType: {
|
|
206
|
+
id: string;
|
|
207
|
+
code: string;
|
|
208
|
+
name: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
} | null;
|
|
211
|
+
categories: {
|
|
212
|
+
id: string;
|
|
213
|
+
parentId: string | null;
|
|
214
|
+
name: string;
|
|
215
|
+
slug: string;
|
|
216
|
+
description: string | null;
|
|
217
|
+
sortOrder: number;
|
|
218
|
+
}[];
|
|
219
|
+
tags: {
|
|
220
|
+
id: string;
|
|
221
|
+
name: string;
|
|
222
|
+
}[];
|
|
223
|
+
capabilities: string[];
|
|
224
|
+
coverMedia: {
|
|
225
|
+
id: string;
|
|
226
|
+
mediaType: "image" | "video" | "document";
|
|
227
|
+
name: string;
|
|
228
|
+
url: string;
|
|
229
|
+
mimeType: string | null;
|
|
230
|
+
altText: string | null;
|
|
231
|
+
sortOrder: number;
|
|
232
|
+
isCover: boolean;
|
|
233
|
+
} | null;
|
|
234
|
+
isFeatured: boolean;
|
|
235
|
+
} | null>;
|
|
236
|
+
listCatalogCategories(db: PostgresJsDatabase, query: PublicCatalogCategoryListQuery): Promise<{
|
|
237
|
+
data: {
|
|
238
|
+
parentId: string | null;
|
|
239
|
+
description: string | null;
|
|
240
|
+
id: string;
|
|
241
|
+
name: string;
|
|
242
|
+
slug: string;
|
|
243
|
+
sortOrder: number;
|
|
244
|
+
}[];
|
|
245
|
+
total: number;
|
|
246
|
+
limit: number;
|
|
247
|
+
offset: number;
|
|
248
|
+
}>;
|
|
249
|
+
listCatalogTags(db: PostgresJsDatabase, query: PublicCatalogTagListQuery): Promise<{
|
|
250
|
+
data: {
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
}[];
|
|
254
|
+
total: number;
|
|
255
|
+
limit: number;
|
|
256
|
+
offset: number;
|
|
257
|
+
}>;
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=service-public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-public.d.ts","sourceRoot":"","sources":["../src/service-public.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAiBjE,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,qCAAqC,EACrC,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAiY/B,eAAO,MAAM,qBAAqB;4BACF,kBAAkB,SAAS,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA8EhF,kBAAkB,MAClB,MAAM,UACH;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA2BlC,kBAAkB,QAChB,MAAM,UACL,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAmCd,kBAAkB,SAAS,8BAA8B;;;;;;;;;;;;;wBAkD/D,kBAAkB,SAAS,yBAAyB;;;;;;;;;CA8B/E,CAAA"}
|