@voyant-travel/openapi 0.2.3 → 0.2.5
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 +3 -3
- package/spec/framework-admin.json +26 -0
- package/spec/framework-openapi.json +129 -0
- package/spec/framework-storefront.json +103 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/openapi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Generated OpenAPI 3.1 specification for the Voyant framework's standard API surface (admin + storefront).",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@types/node": "^25.5.2",
|
|
26
26
|
"typescript": "^6.0.3",
|
|
27
27
|
"vitest": "^4.1.9",
|
|
28
|
-
"@voyant-travel/framework": "^0.9.
|
|
29
|
-
"@voyant-travel/hono": "^0.118.
|
|
28
|
+
"@voyant-travel/framework": "^0.9.33",
|
|
29
|
+
"@voyant-travel/hono": "^0.118.3",
|
|
30
30
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
@@ -142991,6 +142991,24 @@
|
|
|
142991
142991
|
}
|
|
142992
142992
|
}
|
|
142993
142993
|
},
|
|
142994
|
+
"400": {
|
|
142995
|
+
"description": "Only image media can be set as cover",
|
|
142996
|
+
"content": {
|
|
142997
|
+
"application/json": {
|
|
142998
|
+
"schema": {
|
|
142999
|
+
"type": "object",
|
|
143000
|
+
"properties": {
|
|
143001
|
+
"error": {
|
|
143002
|
+
"type": "string"
|
|
143003
|
+
}
|
|
143004
|
+
},
|
|
143005
|
+
"required": [
|
|
143006
|
+
"error"
|
|
143007
|
+
]
|
|
143008
|
+
}
|
|
143009
|
+
}
|
|
143010
|
+
}
|
|
143011
|
+
},
|
|
142994
143012
|
"404": {
|
|
142995
143013
|
"description": "Media not found",
|
|
142996
143014
|
"content": {
|
|
@@ -214911,6 +214929,14 @@
|
|
|
214911
214929
|
"name": "offset",
|
|
214912
214930
|
"in": "query"
|
|
214913
214931
|
},
|
|
214932
|
+
{
|
|
214933
|
+
"schema": {
|
|
214934
|
+
"type": "string"
|
|
214935
|
+
},
|
|
214936
|
+
"required": false,
|
|
214937
|
+
"name": "policyId",
|
|
214938
|
+
"in": "query"
|
|
214939
|
+
},
|
|
214914
214940
|
{
|
|
214915
214941
|
"schema": {
|
|
214916
214942
|
"type": "string"
|
|
@@ -122841,6 +122841,109 @@
|
|
|
122841
122841
|
}
|
|
122842
122842
|
}
|
|
122843
122843
|
},
|
|
122844
|
+
"/v1/public/markets": {
|
|
122845
|
+
"get": {
|
|
122846
|
+
"responses": {
|
|
122847
|
+
"200": {
|
|
122848
|
+
"description": "The supported markets, locales, and currencies for anonymous discovery",
|
|
122849
|
+
"content": {
|
|
122850
|
+
"application/json": {
|
|
122851
|
+
"schema": {
|
|
122852
|
+
"type": "object",
|
|
122853
|
+
"properties": {
|
|
122854
|
+
"data": {
|
|
122855
|
+
"type": "array",
|
|
122856
|
+
"items": {
|
|
122857
|
+
"type": "object",
|
|
122858
|
+
"properties": {
|
|
122859
|
+
"id": {
|
|
122860
|
+
"type": "string"
|
|
122861
|
+
},
|
|
122862
|
+
"code": {
|
|
122863
|
+
"type": "string"
|
|
122864
|
+
},
|
|
122865
|
+
"name": {
|
|
122866
|
+
"type": "string"
|
|
122867
|
+
},
|
|
122868
|
+
"regionCode": {
|
|
122869
|
+
"type": [
|
|
122870
|
+
"string",
|
|
122871
|
+
"null"
|
|
122872
|
+
]
|
|
122873
|
+
},
|
|
122874
|
+
"countryCode": {
|
|
122875
|
+
"type": [
|
|
122876
|
+
"string",
|
|
122877
|
+
"null"
|
|
122878
|
+
]
|
|
122879
|
+
},
|
|
122880
|
+
"defaultLocale": {
|
|
122881
|
+
"type": "string"
|
|
122882
|
+
},
|
|
122883
|
+
"defaultCurrency": {
|
|
122884
|
+
"type": "string"
|
|
122885
|
+
},
|
|
122886
|
+
"locales": {
|
|
122887
|
+
"type": "array",
|
|
122888
|
+
"items": {
|
|
122889
|
+
"type": "object",
|
|
122890
|
+
"properties": {
|
|
122891
|
+
"languageTag": {
|
|
122892
|
+
"type": "string"
|
|
122893
|
+
},
|
|
122894
|
+
"isDefault": {
|
|
122895
|
+
"type": "boolean"
|
|
122896
|
+
}
|
|
122897
|
+
},
|
|
122898
|
+
"required": [
|
|
122899
|
+
"languageTag",
|
|
122900
|
+
"isDefault"
|
|
122901
|
+
]
|
|
122902
|
+
}
|
|
122903
|
+
},
|
|
122904
|
+
"currencies": {
|
|
122905
|
+
"type": "array",
|
|
122906
|
+
"items": {
|
|
122907
|
+
"type": "object",
|
|
122908
|
+
"properties": {
|
|
122909
|
+
"currencyCode": {
|
|
122910
|
+
"type": "string"
|
|
122911
|
+
},
|
|
122912
|
+
"isDefault": {
|
|
122913
|
+
"type": "boolean"
|
|
122914
|
+
}
|
|
122915
|
+
},
|
|
122916
|
+
"required": [
|
|
122917
|
+
"currencyCode",
|
|
122918
|
+
"isDefault"
|
|
122919
|
+
]
|
|
122920
|
+
}
|
|
122921
|
+
}
|
|
122922
|
+
},
|
|
122923
|
+
"required": [
|
|
122924
|
+
"id",
|
|
122925
|
+
"code",
|
|
122926
|
+
"name",
|
|
122927
|
+
"regionCode",
|
|
122928
|
+
"countryCode",
|
|
122929
|
+
"defaultLocale",
|
|
122930
|
+
"defaultCurrency",
|
|
122931
|
+
"locales",
|
|
122932
|
+
"currencies"
|
|
122933
|
+
]
|
|
122934
|
+
}
|
|
122935
|
+
}
|
|
122936
|
+
},
|
|
122937
|
+
"required": [
|
|
122938
|
+
"data"
|
|
122939
|
+
]
|
|
122940
|
+
}
|
|
122941
|
+
}
|
|
122942
|
+
}
|
|
122943
|
+
}
|
|
122944
|
+
}
|
|
122945
|
+
}
|
|
122946
|
+
},
|
|
122844
122947
|
"/v1/admin/sellability/resolve": {
|
|
122845
122948
|
"post": {
|
|
122846
122949
|
"requestBody": {
|
|
@@ -143637,6 +143740,24 @@
|
|
|
143637
143740
|
}
|
|
143638
143741
|
}
|
|
143639
143742
|
},
|
|
143743
|
+
"400": {
|
|
143744
|
+
"description": "Only image media can be set as cover",
|
|
143745
|
+
"content": {
|
|
143746
|
+
"application/json": {
|
|
143747
|
+
"schema": {
|
|
143748
|
+
"type": "object",
|
|
143749
|
+
"properties": {
|
|
143750
|
+
"error": {
|
|
143751
|
+
"type": "string"
|
|
143752
|
+
}
|
|
143753
|
+
},
|
|
143754
|
+
"required": [
|
|
143755
|
+
"error"
|
|
143756
|
+
]
|
|
143757
|
+
}
|
|
143758
|
+
}
|
|
143759
|
+
}
|
|
143760
|
+
},
|
|
143640
143761
|
"404": {
|
|
143641
143762
|
"description": "Media not found",
|
|
143642
143763
|
"content": {
|
|
@@ -229488,6 +229609,14 @@
|
|
|
229488
229609
|
"name": "offset",
|
|
229489
229610
|
"in": "query"
|
|
229490
229611
|
},
|
|
229612
|
+
{
|
|
229613
|
+
"schema": {
|
|
229614
|
+
"type": "string"
|
|
229615
|
+
},
|
|
229616
|
+
"required": false,
|
|
229617
|
+
"name": "policyId",
|
|
229618
|
+
"in": "query"
|
|
229619
|
+
},
|
|
229491
229620
|
{
|
|
229492
229621
|
"schema": {
|
|
229493
229622
|
"type": "string"
|
|
@@ -794,6 +794,109 @@
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
},
|
|
797
|
+
"/v1/public/markets": {
|
|
798
|
+
"get": {
|
|
799
|
+
"responses": {
|
|
800
|
+
"200": {
|
|
801
|
+
"description": "The supported markets, locales, and currencies for anonymous discovery",
|
|
802
|
+
"content": {
|
|
803
|
+
"application/json": {
|
|
804
|
+
"schema": {
|
|
805
|
+
"type": "object",
|
|
806
|
+
"properties": {
|
|
807
|
+
"data": {
|
|
808
|
+
"type": "array",
|
|
809
|
+
"items": {
|
|
810
|
+
"type": "object",
|
|
811
|
+
"properties": {
|
|
812
|
+
"id": {
|
|
813
|
+
"type": "string"
|
|
814
|
+
},
|
|
815
|
+
"code": {
|
|
816
|
+
"type": "string"
|
|
817
|
+
},
|
|
818
|
+
"name": {
|
|
819
|
+
"type": "string"
|
|
820
|
+
},
|
|
821
|
+
"regionCode": {
|
|
822
|
+
"type": [
|
|
823
|
+
"string",
|
|
824
|
+
"null"
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"countryCode": {
|
|
828
|
+
"type": [
|
|
829
|
+
"string",
|
|
830
|
+
"null"
|
|
831
|
+
]
|
|
832
|
+
},
|
|
833
|
+
"defaultLocale": {
|
|
834
|
+
"type": "string"
|
|
835
|
+
},
|
|
836
|
+
"defaultCurrency": {
|
|
837
|
+
"type": "string"
|
|
838
|
+
},
|
|
839
|
+
"locales": {
|
|
840
|
+
"type": "array",
|
|
841
|
+
"items": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"properties": {
|
|
844
|
+
"languageTag": {
|
|
845
|
+
"type": "string"
|
|
846
|
+
},
|
|
847
|
+
"isDefault": {
|
|
848
|
+
"type": "boolean"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"required": [
|
|
852
|
+
"languageTag",
|
|
853
|
+
"isDefault"
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"currencies": {
|
|
858
|
+
"type": "array",
|
|
859
|
+
"items": {
|
|
860
|
+
"type": "object",
|
|
861
|
+
"properties": {
|
|
862
|
+
"currencyCode": {
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
"isDefault": {
|
|
866
|
+
"type": "boolean"
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"required": [
|
|
870
|
+
"currencyCode",
|
|
871
|
+
"isDefault"
|
|
872
|
+
]
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"required": [
|
|
877
|
+
"id",
|
|
878
|
+
"code",
|
|
879
|
+
"name",
|
|
880
|
+
"regionCode",
|
|
881
|
+
"countryCode",
|
|
882
|
+
"defaultLocale",
|
|
883
|
+
"defaultCurrency",
|
|
884
|
+
"locales",
|
|
885
|
+
"currencies"
|
|
886
|
+
]
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"required": [
|
|
891
|
+
"data"
|
|
892
|
+
]
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
},
|
|
797
900
|
"/v1/public/products/tags": {
|
|
798
901
|
"get": {
|
|
799
902
|
"parameters": [
|