@famgia/omnify-japan 0.0.15 → 0.0.16
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 -2
- package/schemas/schema-contribution.json +103 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@famgia/omnify-japan",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Japan-specific types plugin for omnify-schema",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
18
|
+
"schemas",
|
|
18
19
|
"README.md"
|
|
19
20
|
],
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@famgia/omnify-types": "0.0.
|
|
22
|
+
"@famgia/omnify-types": "0.0.17"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "tsup",
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Schema contribution for @famgia/omnify-japan plugin",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"JapanPhoneProperty": {
|
|
5
|
+
"allOf": [
|
|
6
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": ["type"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"type": {
|
|
12
|
+
"const": "JapanPhone",
|
|
13
|
+
"description": "Japanese phone number (e.g., 090-1234-5678)"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"JapanPostalCodeProperty": {
|
|
20
|
+
"allOf": [
|
|
21
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["type"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"type": {
|
|
27
|
+
"const": "JapanPostalCode",
|
|
28
|
+
"description": "Japanese postal code (e.g., 123-4567)"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"JapanAddressProperty": {
|
|
35
|
+
"allOf": [
|
|
36
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["type"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"type": {
|
|
42
|
+
"const": "JapanAddress",
|
|
43
|
+
"description": "Full Japanese address (expands to postal_code, prefecture, city, address1, address2)"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"JapanNameProperty": {
|
|
50
|
+
"allOf": [
|
|
51
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
52
|
+
{
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["type"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"type": {
|
|
57
|
+
"const": "JapanName",
|
|
58
|
+
"description": "Japanese name with kanji and kana (expands to last_name, first_name, last_name_kana, first_name_kana)"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"JapanPersonNameProperty": {
|
|
65
|
+
"allOf": [
|
|
66
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
67
|
+
{
|
|
68
|
+
"type": "object",
|
|
69
|
+
"required": ["type"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"type": {
|
|
72
|
+
"const": "JapanPersonName",
|
|
73
|
+
"description": "Japanese person name with legacy naming convention"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"JapanBankAccountProperty": {
|
|
80
|
+
"allOf": [
|
|
81
|
+
{ "$ref": "#/definitions/BaseProperty" },
|
|
82
|
+
{
|
|
83
|
+
"type": "object",
|
|
84
|
+
"required": ["type"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"type": {
|
|
87
|
+
"const": "JapanBankAccount",
|
|
88
|
+
"description": "Japanese bank account (expands to bank_code, branch_code, account_type, account_number, account_holder)"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"propertyTypes": [
|
|
96
|
+
"JapanPhoneProperty",
|
|
97
|
+
"JapanPostalCodeProperty",
|
|
98
|
+
"JapanAddressProperty",
|
|
99
|
+
"JapanNameProperty",
|
|
100
|
+
"JapanPersonNameProperty",
|
|
101
|
+
"JapanBankAccountProperty"
|
|
102
|
+
]
|
|
103
|
+
}
|