@voyant-travel/openapi 0.2.4 → 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 +2 -2
- package/spec/framework-openapi.json +103 -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,7 +25,7 @@
|
|
|
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.
|
|
28
|
+
"@voyant-travel/framework": "^0.9.33",
|
|
29
29
|
"@voyant-travel/hono": "^0.118.3",
|
|
30
30
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
31
31
|
},
|
|
@@ -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": {
|
|
@@ -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": [
|