@voyant-travel/openapi 0.4.1 → 0.4.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/openapi",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
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": {
@@ -27,9 +27,9 @@
27
27
  "@types/node": "^25.5.2",
28
28
  "typescript": "^6.0.3",
29
29
  "vitest": "^4.1.9",
30
- "@voyant-travel/hono": "^0.120.1",
31
- "@voyant-travel/voyant-typescript-config": "^0.1.0",
32
- "@voyant-travel/framework": "^0.11.0"
30
+ "@voyant-travel/framework": "^0.12.0",
31
+ "@voyant-travel/hono": "^0.121.0",
32
+ "@voyant-travel/voyant-typescript-config": "^0.1.0"
33
33
  },
34
34
  "scripts": {
35
35
  "typecheck": "NODE_OPTIONS=--max-old-space-size=14336 tsc -p tsconfig.typecheck.json",
@@ -1253,6 +1253,34 @@
1253
1253
  }
1254
1254
  }
1255
1255
  },
1256
+ "400": {
1257
+ "description": "invalid_reference: product-scoped offer references unknown product ids",
1258
+ "content": {
1259
+ "application/json": {
1260
+ "schema": {
1261
+ "type": "object",
1262
+ "properties": {
1263
+ "error": {
1264
+ "type": "string"
1265
+ },
1266
+ "code": {
1267
+ "type": "string"
1268
+ },
1269
+ "requestId": {
1270
+ "type": "string"
1271
+ },
1272
+ "details": {
1273
+ "type": "object",
1274
+ "additionalProperties": {}
1275
+ }
1276
+ },
1277
+ "required": [
1278
+ "error"
1279
+ ]
1280
+ }
1281
+ }
1282
+ }
1283
+ },
1256
1284
  "409": {
1257
1285
  "description": "Active promotional offer slug or code already exists",
1258
1286
  "content": {
@@ -2278,6 +2306,34 @@
2278
2306
  }
2279
2307
  }
2280
2308
  },
2309
+ "400": {
2310
+ "description": "invalid_reference: product-scoped offer references unknown product ids",
2311
+ "content": {
2312
+ "application/json": {
2313
+ "schema": {
2314
+ "type": "object",
2315
+ "properties": {
2316
+ "error": {
2317
+ "type": "string"
2318
+ },
2319
+ "code": {
2320
+ "type": "string"
2321
+ },
2322
+ "requestId": {
2323
+ "type": "string"
2324
+ },
2325
+ "details": {
2326
+ "type": "object",
2327
+ "additionalProperties": {}
2328
+ }
2329
+ },
2330
+ "required": [
2331
+ "error"
2332
+ ]
2333
+ }
2334
+ }
2335
+ }
2336
+ },
2281
2337
  "404": {
2282
2338
  "description": "Promotional offer not found",
2283
2339
  "content": {
@@ -526,7 +526,10 @@
526
526
  "type": [
527
527
  "string",
528
528
  "null"
529
- ]
529
+ ],
530
+ "minLength": 3,
531
+ "maxLength": 3,
532
+ "pattern": "^[A-Z]{3}$"
530
533
  },
531
534
  "preferredLanguage": {
532
535
  "type": [
@@ -539,7 +542,8 @@
539
542
  "integer",
540
543
  "null"
541
544
  ],
542
- "exclusiveMinimum": 0
545
+ "exclusiveMinimum": 0,
546
+ "maximum": 365
543
547
  },
544
548
  "status": {
545
549
  "type": "string",
@@ -1053,7 +1057,10 @@
1053
1057
  "type": [
1054
1058
  "string",
1055
1059
  "null"
1056
- ]
1060
+ ],
1061
+ "minLength": 3,
1062
+ "maxLength": 3,
1063
+ "pattern": "^[A-Z]{3}$"
1057
1064
  },
1058
1065
  "preferredLanguage": {
1059
1066
  "type": [
@@ -1066,7 +1073,8 @@
1066
1073
  "integer",
1067
1074
  "null"
1068
1075
  ],
1069
- "exclusiveMinimum": 0
1076
+ "exclusiveMinimum": 0,
1077
+ "maximum": 365
1070
1078
  },
1071
1079
  "status": {
1072
1080
  "type": "string",
@@ -1074,8 +1082,7 @@
1074
1082
  "active",
1075
1083
  "inactive",
1076
1084
  "archived"
1077
- ],
1078
- "default": "active"
1085
+ ]
1079
1086
  },
1080
1087
  "source": {
1081
1088
  "type": [
@@ -1093,8 +1100,7 @@
1093
1100
  "type": "array",
1094
1101
  "items": {
1095
1102
  "type": "string"
1096
- },
1097
- "default": []
1103
+ }
1098
1104
  },
1099
1105
  "customFields": {
1100
1106
  "type": "object",
@@ -1364,6 +1370,24 @@
1364
1370
  }
1365
1371
  }
1366
1372
  }
1373
+ },
1374
+ "409": {
1375
+ "description": "Organization has linked people",
1376
+ "content": {
1377
+ "application/json": {
1378
+ "schema": {
1379
+ "type": "object",
1380
+ "properties": {
1381
+ "error": {
1382
+ "type": "string"
1383
+ }
1384
+ },
1385
+ "required": [
1386
+ "error"
1387
+ ]
1388
+ }
1389
+ }
1390
+ }
1367
1391
  }
1368
1392
  },
1369
1393
  "operationId": "deleteAdminRelationshipsOrganizationsById",
@@ -1736,16 +1760,6 @@
1736
1760
  "schema": {
1737
1761
  "type": "object",
1738
1762
  "properties": {
1739
- "entityType": {
1740
- "type": "string",
1741
- "minLength": 1,
1742
- "maxLength": 100
1743
- },
1744
- "entityId": {
1745
- "type": "string",
1746
- "minLength": 1,
1747
- "maxLength": 100
1748
- },
1749
1763
  "kind": {
1750
1764
  "type": "string",
1751
1765
  "enum": [
@@ -1798,8 +1812,6 @@
1798
1812
  }
1799
1813
  },
1800
1814
  "required": [
1801
- "entityType",
1802
- "entityId",
1803
1815
  "kind",
1804
1816
  "value"
1805
1817
  ]
@@ -1908,6 +1920,24 @@
1908
1920
  }
1909
1921
  }
1910
1922
  }
1923
+ },
1924
+ "404": {
1925
+ "description": "Organization not found",
1926
+ "content": {
1927
+ "application/json": {
1928
+ "schema": {
1929
+ "type": "object",
1930
+ "properties": {
1931
+ "error": {
1932
+ "type": "string"
1933
+ }
1934
+ },
1935
+ "required": [
1936
+ "error"
1937
+ ]
1938
+ }
1939
+ }
1940
+ }
1911
1941
  }
1912
1942
  },
1913
1943
  "operationId": "postAdminRelationshipsOrganizationsByIdContactMethods",
@@ -2097,16 +2127,6 @@
2097
2127
  "schema": {
2098
2128
  "type": "object",
2099
2129
  "properties": {
2100
- "entityType": {
2101
- "type": "string",
2102
- "minLength": 1,
2103
- "maxLength": 100
2104
- },
2105
- "entityId": {
2106
- "type": "string",
2107
- "minLength": 1,
2108
- "maxLength": 100
2109
- },
2110
2130
  "label": {
2111
2131
  "type": "string",
2112
2132
  "enum": [
@@ -2199,11 +2219,7 @@
2199
2219
  ],
2200
2220
  "additionalProperties": {}
2201
2221
  }
2202
- },
2203
- "required": [
2204
- "entityType",
2205
- "entityId"
2206
- ]
2222
+ }
2207
2223
  }
2208
2224
  }
2209
2225
  }
@@ -2361,6 +2377,24 @@
2361
2377
  }
2362
2378
  }
2363
2379
  }
2380
+ },
2381
+ "404": {
2382
+ "description": "Organization not found",
2383
+ "content": {
2384
+ "application/json": {
2385
+ "schema": {
2386
+ "type": "object",
2387
+ "properties": {
2388
+ "error": {
2389
+ "type": "string"
2390
+ }
2391
+ },
2392
+ "required": [
2393
+ "error"
2394
+ ]
2395
+ }
2396
+ }
2397
+ }
2364
2398
  }
2365
2399
  },
2366
2400
  "operationId": "postAdminRelationshipsOrganizationsByIdAddresses",
@@ -3817,8 +3851,7 @@
3817
3851
  "active",
3818
3852
  "inactive",
3819
3853
  "archived"
3820
- ],
3821
- "default": "active"
3854
+ ]
3822
3855
  },
3823
3856
  "source": {
3824
3857
  "type": [
@@ -3836,8 +3869,7 @@
3836
3869
  "type": "array",
3837
3870
  "items": {
3838
3871
  "type": "string"
3839
- },
3840
- "default": []
3872
+ }
3841
3873
  },
3842
3874
  "customFields": {
3843
3875
  "type": "object",
@@ -4637,16 +4669,6 @@
4637
4669
  "schema": {
4638
4670
  "type": "object",
4639
4671
  "properties": {
4640
- "entityType": {
4641
- "type": "string",
4642
- "minLength": 1,
4643
- "maxLength": 100
4644
- },
4645
- "entityId": {
4646
- "type": "string",
4647
- "minLength": 1,
4648
- "maxLength": 100
4649
- },
4650
4672
  "kind": {
4651
4673
  "type": "string",
4652
4674
  "enum": [
@@ -4699,8 +4721,6 @@
4699
4721
  }
4700
4722
  },
4701
4723
  "required": [
4702
- "entityType",
4703
- "entityId",
4704
4724
  "kind",
4705
4725
  "value"
4706
4726
  ]
@@ -4809,6 +4829,24 @@
4809
4829
  }
4810
4830
  }
4811
4831
  }
4832
+ },
4833
+ "404": {
4834
+ "description": "Person not found",
4835
+ "content": {
4836
+ "application/json": {
4837
+ "schema": {
4838
+ "type": "object",
4839
+ "properties": {
4840
+ "error": {
4841
+ "type": "string"
4842
+ }
4843
+ },
4844
+ "required": [
4845
+ "error"
4846
+ ]
4847
+ }
4848
+ }
4849
+ }
4812
4850
  }
4813
4851
  },
4814
4852
  "operationId": "postAdminRelationshipsPeopleByIdContactMethods",
@@ -4998,16 +5036,6 @@
4998
5036
  "schema": {
4999
5037
  "type": "object",
5000
5038
  "properties": {
5001
- "entityType": {
5002
- "type": "string",
5003
- "minLength": 1,
5004
- "maxLength": 100
5005
- },
5006
- "entityId": {
5007
- "type": "string",
5008
- "minLength": 1,
5009
- "maxLength": 100
5010
- },
5011
5039
  "label": {
5012
5040
  "type": "string",
5013
5041
  "enum": [
@@ -5100,11 +5128,7 @@
5100
5128
  ],
5101
5129
  "additionalProperties": {}
5102
5130
  }
5103
- },
5104
- "required": [
5105
- "entityType",
5106
- "entityId"
5107
- ]
5131
+ }
5108
5132
  }
5109
5133
  }
5110
5134
  }
@@ -5262,6 +5286,24 @@
5262
5286
  }
5263
5287
  }
5264
5288
  }
5289
+ },
5290
+ "404": {
5291
+ "description": "Person not found",
5292
+ "content": {
5293
+ "application/json": {
5294
+ "schema": {
5295
+ "type": "object",
5296
+ "properties": {
5297
+ "error": {
5298
+ "type": "string"
5299
+ }
5300
+ },
5301
+ "required": [
5302
+ "error"
5303
+ ]
5304
+ }
5305
+ }
5306
+ }
5265
5307
  }
5266
5308
  },
5267
5309
  "operationId": "postAdminRelationshipsPeopleByIdAddresses",
@@ -5756,60 +5798,97 @@
5756
5798
  "content": {
5757
5799
  "application/json": {
5758
5800
  "schema": {
5759
- "type": "object",
5760
- "properties": {
5761
- "brand": {
5762
- "type": "string",
5763
- "enum": [
5764
- "visa",
5765
- "mastercard",
5766
- "amex",
5767
- "revolut",
5768
- "bank_transfer"
5769
- ]
5770
- },
5771
- "last4": {
5772
- "type": [
5773
- "string",
5774
- "null"
5775
- ],
5776
- "minLength": 2,
5777
- "maxLength": 8
5778
- },
5779
- "holderName": {
5780
- "type": [
5781
- "string",
5782
- "null"
5783
- ]
5784
- },
5785
- "expMonth": {
5786
- "type": [
5787
- "integer",
5788
- "null"
5801
+ "anyOf": [
5802
+ {
5803
+ "type": "object",
5804
+ "properties": {
5805
+ "holderName": {
5806
+ "type": [
5807
+ "string",
5808
+ "null"
5809
+ ]
5810
+ },
5811
+ "processorToken": {
5812
+ "type": "string",
5813
+ "minLength": 1
5814
+ },
5815
+ "isDefault": {
5816
+ "type": "boolean",
5817
+ "default": false
5818
+ },
5819
+ "brand": {
5820
+ "type": "string",
5821
+ "enum": [
5822
+ "visa",
5823
+ "mastercard",
5824
+ "amex",
5825
+ "revolut"
5826
+ ]
5827
+ },
5828
+ "last4": {
5829
+ "type": "string",
5830
+ "minLength": 2,
5831
+ "maxLength": 8
5832
+ },
5833
+ "expMonth": {
5834
+ "type": "integer",
5835
+ "minimum": 1,
5836
+ "maximum": 12
5837
+ },
5838
+ "expYear": {
5839
+ "type": "integer",
5840
+ "minimum": 2000,
5841
+ "maximum": 2100
5842
+ }
5843
+ },
5844
+ "required": [
5845
+ "processorToken",
5846
+ "brand",
5847
+ "last4",
5848
+ "expMonth",
5849
+ "expYear"
5789
5850
  ],
5790
- "minimum": 1,
5791
- "maximum": 12
5851
+ "additionalProperties": false
5792
5852
  },
5793
- "expYear": {
5794
- "type": [
5795
- "integer",
5796
- "null"
5853
+ {
5854
+ "type": "object",
5855
+ "properties": {
5856
+ "holderName": {
5857
+ "type": [
5858
+ "string",
5859
+ "null"
5860
+ ]
5861
+ },
5862
+ "processorToken": {
5863
+ "type": "string",
5864
+ "minLength": 1
5865
+ },
5866
+ "isDefault": {
5867
+ "type": "boolean",
5868
+ "default": false
5869
+ },
5870
+ "brand": {
5871
+ "type": "string",
5872
+ "enum": [
5873
+ "bank_transfer"
5874
+ ]
5875
+ },
5876
+ "last4": {
5877
+ "type": "null"
5878
+ },
5879
+ "expMonth": {
5880
+ "type": "null"
5881
+ },
5882
+ "expYear": {
5883
+ "type": "null"
5884
+ }
5885
+ },
5886
+ "required": [
5887
+ "processorToken",
5888
+ "brand"
5797
5889
  ],
5798
- "minimum": 2000,
5799
- "maximum": 2100
5800
- },
5801
- "processorToken": {
5802
- "type": "string",
5803
- "minLength": 1
5804
- },
5805
- "isDefault": {
5806
- "type": "boolean",
5807
- "default": false
5890
+ "additionalProperties": false
5808
5891
  }
5809
- },
5810
- "required": [
5811
- "brand",
5812
- "processorToken"
5813
5892
  ]
5814
5893
  }
5815
5894
  }
@@ -5955,6 +6034,20 @@
5955
6034
  "schema": {
5956
6035
  "type": "object",
5957
6036
  "properties": {
6037
+ "holderName": {
6038
+ "type": [
6039
+ "string",
6040
+ "null"
6041
+ ]
6042
+ },
6043
+ "processorToken": {
6044
+ "type": "string",
6045
+ "minLength": 1
6046
+ },
6047
+ "isDefault": {
6048
+ "type": "boolean",
6049
+ "default": false
6050
+ },
5958
6051
  "brand": {
5959
6052
  "type": "string",
5960
6053
  "enum": [
@@ -5973,12 +6066,6 @@
5973
6066
  "minLength": 2,
5974
6067
  "maxLength": 8
5975
6068
  },
5976
- "holderName": {
5977
- "type": [
5978
- "string",
5979
- "null"
5980
- ]
5981
- },
5982
6069
  "expMonth": {
5983
6070
  "type": [
5984
6071
  "integer",
@@ -5994,16 +6081,9 @@
5994
6081
  ],
5995
6082
  "minimum": 2000,
5996
6083
  "maximum": 2100
5997
- },
5998
- "processorToken": {
5999
- "type": "string",
6000
- "minLength": 1
6001
- },
6002
- "isDefault": {
6003
- "type": "boolean",
6004
- "default": false
6005
6084
  }
6006
- }
6085
+ },
6086
+ "additionalProperties": false
6007
6087
  }
6008
6088
  }
6009
6089
  }
@@ -6423,7 +6503,8 @@
6423
6503
  "type": [
6424
6504
  "string",
6425
6505
  "null"
6426
- ]
6506
+ ],
6507
+ "format": "date-time"
6427
6508
  }
6428
6509
  },
6429
6510
  "required": [
@@ -9931,6 +10012,24 @@
9931
10012
  }
9932
10013
  }
9933
10014
  }
10015
+ },
10016
+ "409": {
10017
+ "description": "Relationship already exists",
10018
+ "content": {
10019
+ "application/json": {
10020
+ "schema": {
10021
+ "type": "object",
10022
+ "properties": {
10023
+ "error": {
10024
+ "type": "string"
10025
+ }
10026
+ },
10027
+ "required": [
10028
+ "error"
10029
+ ]
10030
+ }
10031
+ }
10032
+ }
9934
10033
  }
9935
10034
  },
9936
10035
  "operationId": "postAdminRelationshipsPeopleByIdRelationships",
@@ -12956,6 +13055,24 @@
12956
13055
  }
12957
13056
  }
12958
13057
  }
13058
+ },
13059
+ "404": {
13060
+ "description": "Linked entity not found",
13061
+ "content": {
13062
+ "application/json": {
13063
+ "schema": {
13064
+ "type": "object",
13065
+ "properties": {
13066
+ "error": {
13067
+ "type": "string"
13068
+ }
13069
+ },
13070
+ "required": [
13071
+ "error"
13072
+ ]
13073
+ }
13074
+ }
13075
+ }
12959
13076
  }
12960
13077
  },
12961
13078
  "operationId": "postAdminRelationshipsActivitiesByIdLinks",