Skip to content

Commit 5ba5418

Browse files
committed
fix(USPS): Add missing countries
1 parent d2f4688 commit 5ba5418

File tree

3 files changed

+123
-49
lines changed

3 files changed

+123
-49
lines changed

dist/openapi.json

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4965,29 +4965,47 @@
49654965
"type": "string",
49664966
"description": " Full country names (ISO 3166)\n",
49674967
"enum": [
4968-
"United States",
4968+
"American Samoa",
4969+
"Federated States of Micronesia",
49694970
"Guam",
4970-
"Puerto Rico"
4971+
"Marshall Islands",
4972+
"Northern Mariana Islands",
4973+
"Palau",
4974+
"Puerto Rico",
4975+
"United States",
4976+
"United States Virgin Islands"
49714977
]
49724978
},
49734979
"usps_country_iso": {
49744980
"title": "ISO Country Code (3)",
49754981
"type": "string",
49764982
"description": " 3 letter country code (ISO 3166-1)\n",
49774983
"enum": [
4978-
"USA",
4984+
"ASM",
4985+
"FSM",
4986+
"GUM",
4987+
"MHL",
4988+
"MNP",
4989+
"PLW",
49794990
"PRI",
4980-
"GUM"
4991+
"USA",
4992+
"VIR"
49814993
]
49824994
},
49834995
"usps_country_iso_2": {
49844996
"title": "ISO Country Code (2)",
49854997
"type": "string",
49864998
"description": " 2 letter country code (ISO 3166-1)\n",
49874999
"enum": [
4988-
"US",
5000+
"AS",
5001+
"FM",
5002+
"GU",
5003+
"MH",
5004+
"MP",
49895005
"PR",
4990-
"GU"
5006+
"PW",
5007+
"US",
5008+
"VI"
49915009
]
49925010
},
49935011
"usps_language": {
@@ -5582,18 +5600,34 @@
55825600
"example": "1"
55835601
},
55845602
"delivery_latitude": {
5585-
"type": "number",
5586-
"description": "Latitude defining the arrival position of the Point Address.",
5587-
"example": 45.28447,
5588-
"minimum": -90,
5589-
"maximum": 90
5603+
"oneOf": [
5604+
{
5605+
"type": "string",
5606+
"description": "Empty string `\"\"` if not available"
5607+
},
5608+
{
5609+
"type": "number",
5610+
"minimum": -90,
5611+
"maximum": 90,
5612+
"description": "Latitude defining the arrival position of the Point Address.",
5613+
"example": 45.28441
5614+
}
5615+
]
55905616
},
55915617
"delivery_longitude": {
5592-
"type": "number",
5593-
"description": "Longitude defining the arrival position of the Point Address.",
5594-
"example": 12.00821,
5595-
"minimum": -180,
5596-
"maximum": 180
5618+
"oneOf": [
5619+
{
5620+
"type": "string",
5621+
"description": "Empty string `\"\"` if not available"
5622+
},
5623+
{
5624+
"type": "number",
5625+
"minimum": -180,
5626+
"maximum": 180,
5627+
"description": "Longitude defining the arrival position of the Point Address.",
5628+
"example": 12.00825
5629+
}
5630+
]
55975631
},
55985632
"building_name": {
55995633
"type": "string",
@@ -5612,7 +5646,7 @@
56125646
"type": "number",
56135647
"minimum": -90,
56145648
"maximum": 90,
5615-
"description": "Latitude of the display position for the Point Address.\n\nCan be empty string `\"\"` if not present.",
5649+
"description": "Latitude of the display position for the Point Address.",
56165650
"example": 45.28441
56175651
}
56185652
]

dist/openapi.yaml

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4395,27 +4395,45 @@ components:
43954395
description: |2
43964396
Full country names (ISO 3166)
43974397
enum:
4398-
- United States
4398+
- American Samoa
4399+
- Federated States of Micronesia
43994400
- Guam
4401+
- Marshall Islands
4402+
- Northern Mariana Islands
4403+
- Palau
44004404
- Puerto Rico
4405+
- United States
4406+
- United States Virgin Islands
44014407
usps_country_iso:
44024408
title: ISO Country Code (3)
44034409
type: string
44044410
description: |2
44054411
3 letter country code (ISO 3166-1)
44064412
enum:
4407-
- USA
4408-
- PRI
4413+
- ASM
4414+
- FSM
44094415
- GUM
4416+
- MHL
4417+
- MNP
4418+
- PLW
4419+
- PRI
4420+
- USA
4421+
- VIR
44104422
usps_country_iso_2:
44114423
title: ISO Country Code (2)
44124424
type: string
44134425
description: |2
44144426
2 letter country code (ISO 3166-1)
44154427
enum:
4416-
- US
4417-
- PR
4428+
- AS
4429+
- FM
44184430
- GU
4431+
- MH
4432+
- MP
4433+
- PR
4434+
- PW
4435+
- US
4436+
- VI
44194437
usps_language:
44204438
title: Language
44214439
type: string
@@ -4955,17 +4973,23 @@ components:
49554973
Can be empty string `""` if not present.
49564974
example: '1'
49574975
delivery_latitude:
4958-
type: number
4959-
description: Latitude defining the arrival position of the Point Address.
4960-
example: 45.28447
4961-
minimum: -90
4962-
maximum: 90
4976+
oneOf:
4977+
- type: string
4978+
description: Empty string `""` if not available
4979+
- type: number
4980+
minimum: -90
4981+
maximum: 90
4982+
description: Latitude defining the arrival position of the Point Address.
4983+
example: 45.28441
49634984
delivery_longitude:
4964-
type: number
4965-
description: Longitude defining the arrival position of the Point Address.
4966-
example: 12.00821
4967-
minimum: -180
4968-
maximum: 180
4985+
oneOf:
4986+
- type: string
4987+
description: Empty string `""` if not available
4988+
- type: number
4989+
minimum: -180
4990+
maximum: 180
4991+
description: Longitude defining the arrival position of the Point Address.
4992+
example: 12.00825
49694993
building_name:
49704994
type: string
49714995
description: |
@@ -4982,10 +5006,7 @@ components:
49825006
- type: number
49835007
minimum: -90
49845008
maximum: 90
4985-
description: |-
4986-
Latitude of the display position for the Point Address.
4987-
4988-
Can be empty string `""` if not present.
5009+
description: Latitude of the display position for the Point Address.
49895010
example: 45.28441
49905011
longitude:
49915012
oneOf:

openapi.ts

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,21 +2294,48 @@ export interface components {
22942294
*
22952295
* @enum {string}
22962296
*/
2297-
usps_country: "United States" | "Guam" | "Puerto Rico";
2297+
usps_country:
2298+
| "American Samoa"
2299+
| "Federated States of Micronesia"
2300+
| "Guam"
2301+
| "Marshall Islands"
2302+
| "Northern Mariana Islands"
2303+
| "Palau"
2304+
| "Puerto Rico"
2305+
| "United States"
2306+
| "United States Virgin Islands";
22982307
/**
22992308
* ISO Country Code (3)
23002309
* @description 3 letter country code (ISO 3166-1)
23012310
*
23022311
* @enum {string}
23032312
*/
2304-
usps_country_iso: "USA" | "PRI" | "GUM";
2313+
usps_country_iso:
2314+
| "ASM"
2315+
| "FSM"
2316+
| "GUM"
2317+
| "MHL"
2318+
| "MNP"
2319+
| "PLW"
2320+
| "PRI"
2321+
| "USA"
2322+
| "VIR";
23052323
/**
23062324
* ISO Country Code (2)
23072325
* @description 2 letter country code (ISO 3166-1)
23082326
*
23092327
* @enum {string}
23102328
*/
2311-
usps_country_iso_2: "US" | "PR" | "GU";
2329+
usps_country_iso_2:
2330+
| "AS"
2331+
| "FM"
2332+
| "GU"
2333+
| "MH"
2334+
| "MP"
2335+
| "PR"
2336+
| "PW"
2337+
| "US"
2338+
| "VI";
23122339
/**
23132340
* Language
23142341
* @description Language represented by 2 letter ISO Code (639-1)
@@ -2682,16 +2709,8 @@ export interface components {
26822709
* @example 1
26832710
*/
26842711
address_type?: string;
2685-
/**
2686-
* @description Latitude defining the arrival position of the Point Address.
2687-
* @example 45.28447
2688-
*/
2689-
delivery_latitude: number;
2690-
/**
2691-
* @description Longitude defining the arrival position of the Point Address.
2692-
* @example 12.00821
2693-
*/
2694-
delivery_longitude: number;
2712+
delivery_latitude: string | number;
2713+
delivery_longitude: string | number;
26952714
/**
26962715
* @description Name of the Building to which the Point Address is associated.
26972716
*

0 commit comments

Comments
 (0)