@voyant-travel/openapi 0.2.6 → 0.4.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/package.json +8 -5
- package/spec/admin/accommodations.json +1443 -0
- package/spec/admin/action-ledger.json +6285 -0
- package/spec/admin/booking-requirements.json +5975 -0
- package/spec/admin/bookings.json +19276 -0
- package/spec/admin/catalog.json +703 -0
- package/spec/admin/distribution.json +20434 -0
- package/spec/admin/external-refs.json +1437 -0
- package/spec/admin/extras.json +4787 -0
- package/spec/admin/finance.json +36583 -0
- package/spec/admin/identity.json +4141 -0
- package/spec/admin/legal.json +14821 -0
- package/spec/admin/markets.json +5551 -0
- package/spec/admin/notifications.json +8667 -0
- package/spec/admin/operations.json +41627 -0
- package/spec/admin/operator-settings.json +1451 -0
- package/spec/admin/pricing.json +11136 -0
- package/spec/admin/products.json +23257 -0
- package/spec/admin/promotions.json +2778 -0
- package/spec/admin/quotes.json +7333 -0
- package/spec/admin/relationships.json +14512 -0
- package/spec/admin/sellability.json +5056 -0
- package/spec/admin/storefront.json +1973 -0
- package/spec/admin/suppliers.json +6094 -0
- package/spec/admin/trips.json +9531 -0
- package/spec/framework-admin.json +12715 -1375
- package/spec/framework-openapi.json +13731 -1482
- package/spec/framework-storefront.json +1022 -107
- package/spec/storefront/booking-requirements.json +380 -0
- package/spec/storefront/bookings.json +6213 -0
- package/spec/storefront/catalog.json +703 -0
- package/spec/storefront/customer-portal.json +6177 -0
- package/spec/storefront/finance.json +4914 -0
- package/spec/storefront/legal.json +2165 -0
- package/spec/storefront/markets.json +269 -0
- package/spec/storefront/operator-settings.json +329 -0
- package/spec/storefront/pricing.json +598 -0
- package/spec/storefront/products.json +2965 -0
- package/spec/storefront/storefront-verification.json +943 -0
- package/spec/storefront/storefront.json +4157 -0
- package/spec/storefront/trips.json +9531 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Voyant Framework API",
|
|
5
|
+
"version": "0.0.0",
|
|
6
|
+
"description": "Generated from the Voyant framework's standard module composition. Do not edit by hand."
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "/",
|
|
11
|
+
"description": "This deployment (same origin)"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"components": {
|
|
15
|
+
"schemas": {
|
|
16
|
+
"CatalogSearchFilter": {
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"kind": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"eq"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"field": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"value": {
|
|
32
|
+
"anyOf": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "number"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"kind",
|
|
47
|
+
"field",
|
|
48
|
+
"value"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"kind": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"in"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"field": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"values": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "number"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"kind",
|
|
80
|
+
"field",
|
|
81
|
+
"values"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"kind": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"range"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"field": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1
|
|
96
|
+
},
|
|
97
|
+
"gte": {
|
|
98
|
+
"type": "number"
|
|
99
|
+
},
|
|
100
|
+
"lte": {
|
|
101
|
+
"type": "number"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"kind",
|
|
106
|
+
"field"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"kind": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": [
|
|
115
|
+
"and"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"clauses": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": {
|
|
121
|
+
"$ref": "#/components/schemas/CatalogSearchFilter"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"kind",
|
|
127
|
+
"clauses"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"kind": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": [
|
|
136
|
+
"or"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"clauses": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"$ref": "#/components/schemas/CatalogSearchFilter"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"kind",
|
|
148
|
+
"clauses"
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"parameters": {}
|
|
155
|
+
},
|
|
156
|
+
"paths": {
|
|
157
|
+
"/v1/public/markets": {
|
|
158
|
+
"get": {
|
|
159
|
+
"responses": {
|
|
160
|
+
"200": {
|
|
161
|
+
"description": "The supported markets, locales, and currencies for anonymous discovery",
|
|
162
|
+
"content": {
|
|
163
|
+
"application/json": {
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"data": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"id": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"code": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
"name": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"regionCode": {
|
|
182
|
+
"type": [
|
|
183
|
+
"string",
|
|
184
|
+
"null"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"countryCode": {
|
|
188
|
+
"type": [
|
|
189
|
+
"string",
|
|
190
|
+
"null"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"defaultLocale": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"defaultCurrency": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"locales": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"items": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"languageTag": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"isDefault": {
|
|
208
|
+
"type": "boolean"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"languageTag",
|
|
213
|
+
"isDefault"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"currencies": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"currencyCode": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"isDefault": {
|
|
226
|
+
"type": "boolean"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"currencyCode",
|
|
231
|
+
"isDefault"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": [
|
|
237
|
+
"id",
|
|
238
|
+
"code",
|
|
239
|
+
"name",
|
|
240
|
+
"regionCode",
|
|
241
|
+
"countryCode",
|
|
242
|
+
"defaultLocale",
|
|
243
|
+
"defaultCurrency",
|
|
244
|
+
"locales",
|
|
245
|
+
"currencies"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"data"
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"operationId": "getPublicMarkets",
|
|
259
|
+
"summary": "GET /v1/public/markets",
|
|
260
|
+
"tags": [
|
|
261
|
+
"markets"
|
|
262
|
+
],
|
|
263
|
+
"x-voyant-module": "markets",
|
|
264
|
+
"x-voyant-surface": "storefront"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"webhooks": {}
|
|
269
|
+
}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Voyant Framework API",
|
|
5
|
+
"version": "0.0.0",
|
|
6
|
+
"description": "Generated from the Voyant framework's standard module composition. Do not edit by hand."
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "/",
|
|
11
|
+
"description": "This deployment (same origin)"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"components": {
|
|
15
|
+
"schemas": {
|
|
16
|
+
"CatalogSearchFilter": {
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"kind": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"eq"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"field": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"value": {
|
|
32
|
+
"anyOf": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "number"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"kind",
|
|
47
|
+
"field",
|
|
48
|
+
"value"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"kind": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"in"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"field": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"values": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "number"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"kind",
|
|
80
|
+
"field",
|
|
81
|
+
"values"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"kind": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"range"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"field": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1
|
|
96
|
+
},
|
|
97
|
+
"gte": {
|
|
98
|
+
"type": "number"
|
|
99
|
+
},
|
|
100
|
+
"lte": {
|
|
101
|
+
"type": "number"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"kind",
|
|
106
|
+
"field"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"kind": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": [
|
|
115
|
+
"and"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"clauses": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": {
|
|
121
|
+
"$ref": "#/components/schemas/CatalogSearchFilter"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"kind",
|
|
127
|
+
"clauses"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"kind": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": [
|
|
136
|
+
"or"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"clauses": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"$ref": "#/components/schemas/CatalogSearchFilter"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"kind",
|
|
148
|
+
"clauses"
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"parameters": {}
|
|
155
|
+
},
|
|
156
|
+
"paths": {
|
|
157
|
+
"/v1/public/operator-profile": {
|
|
158
|
+
"get": {
|
|
159
|
+
"responses": {
|
|
160
|
+
"200": {
|
|
161
|
+
"description": "The public operator profile (null when unset)",
|
|
162
|
+
"content": {
|
|
163
|
+
"application/json": {
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"data": {
|
|
168
|
+
"type": [
|
|
169
|
+
"object",
|
|
170
|
+
"null"
|
|
171
|
+
],
|
|
172
|
+
"properties": {
|
|
173
|
+
"name": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"legalName": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"address": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
"phone": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"email": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"website": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"license": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"licenseAuthority": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"customerPaymentPolicy": {},
|
|
198
|
+
"bookingCheckoutUrlTemplate": {
|
|
199
|
+
"type": [
|
|
200
|
+
"string",
|
|
201
|
+
"null"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"invoicePayUrlTemplate": {
|
|
205
|
+
"type": [
|
|
206
|
+
"string",
|
|
207
|
+
"null"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"name",
|
|
213
|
+
"legalName",
|
|
214
|
+
"address",
|
|
215
|
+
"phone",
|
|
216
|
+
"email",
|
|
217
|
+
"website",
|
|
218
|
+
"license",
|
|
219
|
+
"licenseAuthority",
|
|
220
|
+
"bookingCheckoutUrlTemplate",
|
|
221
|
+
"invoicePayUrlTemplate"
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": [
|
|
226
|
+
"data"
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"operationId": "getPublicOperatorProfile",
|
|
234
|
+
"summary": "GET /v1/public/operator-profile",
|
|
235
|
+
"tags": [
|
|
236
|
+
"operator-settings"
|
|
237
|
+
],
|
|
238
|
+
"x-voyant-module": "operator-settings",
|
|
239
|
+
"x-voyant-surface": "storefront"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"/v1/public/settings/operator": {
|
|
243
|
+
"get": {
|
|
244
|
+
"responses": {
|
|
245
|
+
"200": {
|
|
246
|
+
"description": "The public operator settings (null when unset)",
|
|
247
|
+
"content": {
|
|
248
|
+
"application/json": {
|
|
249
|
+
"schema": {
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"data": {
|
|
253
|
+
"type": [
|
|
254
|
+
"object",
|
|
255
|
+
"null"
|
|
256
|
+
],
|
|
257
|
+
"properties": {
|
|
258
|
+
"name": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"legalName": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
|
+
"address": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"phone": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"email": {
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
"website": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
"license": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"licenseAuthority": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"customerPaymentPolicy": {},
|
|
283
|
+
"bookingCheckoutUrlTemplate": {
|
|
284
|
+
"type": [
|
|
285
|
+
"string",
|
|
286
|
+
"null"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"invoicePayUrlTemplate": {
|
|
290
|
+
"type": [
|
|
291
|
+
"string",
|
|
292
|
+
"null"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"required": [
|
|
297
|
+
"name",
|
|
298
|
+
"legalName",
|
|
299
|
+
"address",
|
|
300
|
+
"phone",
|
|
301
|
+
"email",
|
|
302
|
+
"website",
|
|
303
|
+
"license",
|
|
304
|
+
"licenseAuthority",
|
|
305
|
+
"bookingCheckoutUrlTemplate",
|
|
306
|
+
"invoicePayUrlTemplate"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": [
|
|
311
|
+
"data"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"operationId": "getPublicSettingsOperator",
|
|
319
|
+
"summary": "GET /v1/public/settings/operator",
|
|
320
|
+
"tags": [
|
|
321
|
+
"operator-settings"
|
|
322
|
+
],
|
|
323
|
+
"x-voyant-module": "operator-settings",
|
|
324
|
+
"x-voyant-surface": "storefront"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"webhooks": {}
|
|
329
|
+
}
|