@famgia/omnify-cli 0.0.30 → 0.0.32

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/dist/cli.js CHANGED
@@ -953,24 +953,24 @@ This project uses \`@famgia/omnify-japan\` plugin which provides Japan-specific
953
953
 
954
954
  ### Simple Types
955
955
 
956
- #### JapanPhone
956
+ #### JapanesePhone
957
957
  Japanese phone number format (e.g., \`090-1234-5678\`, \`03-1234-5678\`)
958
958
  - SQL: \`VARCHAR(15)\`
959
959
  - Accepts with or without hyphens
960
960
 
961
961
  \`\`\`yaml
962
962
  phone:
963
- type: JapanPhone
963
+ type: JapanesePhone
964
964
  \`\`\`
965
965
 
966
- #### JapanPostalCode
966
+ #### JapanesePostalCode
967
967
  Japanese postal code format (e.g., \`123-4567\`)
968
968
  - SQL: \`VARCHAR(8)\`
969
969
  - Accepts with or without hyphen
970
970
 
971
971
  \`\`\`yaml
972
972
  postal_code:
973
- type: JapanPostalCode
973
+ type: JapanesePostalCode
974
974
  nullable: true
975
975
  \`\`\`
976
976
 
@@ -978,7 +978,7 @@ postal_code:
978
978
 
979
979
  Compound types expand into multiple database columns automatically.
980
980
 
981
- #### JapanName
981
+ #### JapaneseName
982
982
  Japanese name with kanji and kana variants.
983
983
 
984
984
  **Expands to 4 columns:**
@@ -993,7 +993,7 @@ Japanese name with kanji and kana variants.
993
993
 
994
994
  \`\`\`yaml
995
995
  name:
996
- type: JapanName
996
+ type: JapaneseName
997
997
  displayName:
998
998
  ja: \u6C0F\u540D
999
999
  en: Full Name
@@ -1007,7 +1007,7 @@ name:
1007
1007
  hidden: true
1008
1008
  \`\`\`
1009
1009
 
1010
- #### JapanAddress
1010
+ #### JapaneseAddress
1011
1011
  Japanese address with postal code and prefecture ID.
1012
1012
 
1013
1013
  **Expands to 5 columns:**
@@ -1022,7 +1022,7 @@ Japanese address with postal code and prefecture ID.
1022
1022
 
1023
1023
  \`\`\`yaml
1024
1024
  address:
1025
- type: JapanAddress
1025
+ type: JapaneseAddress
1026
1026
  displayName:
1027
1027
  ja: \u4F4F\u6240
1028
1028
  en: Address
@@ -1051,7 +1051,7 @@ address:
1051
1051
  | 15 | \u65B0\u6F5F\u770C | 31 | \u9CE5\u53D6\u770C | 47 | \u6C96\u7E04\u770C |
1052
1052
  | 16 | \u5BCC\u5C71\u770C | 32 | \u5CF6\u6839\u770C | | |
1053
1053
 
1054
- #### JapanBankAccount
1054
+ #### JapaneseBankAccount
1055
1055
  Japanese bank account information.
1056
1056
 
1057
1057
  **Expands to 5 columns:**
@@ -1063,7 +1063,7 @@ Japanese bank account information.
1063
1063
 
1064
1064
  \`\`\`yaml
1065
1065
  bank_account:
1066
- type: JapanBankAccount
1066
+ type: JapaneseBankAccount
1067
1067
  \`\`\`
1068
1068
 
1069
1069
  ## Per-field Overrides
@@ -1072,17 +1072,24 @@ All compound types support per-field overrides:
1072
1072
 
1073
1073
  \`\`\`yaml
1074
1074
  name:
1075
- type: JapanName
1075
+ type: JapaneseName
1076
1076
  fields:
1077
+ Lastname:
1078
+ length: 100 # Override default VARCHAR length
1079
+ Firstname:
1080
+ length: 100
1077
1081
  KanaLastname:
1082
+ length: 200
1078
1083
  nullable: true
1079
1084
  hidden: true
1080
1085
  KanaFirstname:
1086
+ length: 200
1081
1087
  nullable: true
1082
1088
  hidden: true
1083
1089
  \`\`\`
1084
1090
 
1085
1091
  **Available overrides:**
1092
+ - \`length\` - VARCHAR length (override default)
1086
1093
  - \`nullable\` - Whether the field can be NULL
1087
1094
  - \`hidden\` - Exclude from JSON/array output
1088
1095
  - \`fillable\` - Control mass assignment
@@ -1093,19 +1100,19 @@ name:
1093
1100
  $faker = fake('ja_JP');
1094
1101
 
1095
1102
  return [
1096
- // JapanName
1103
+ // JapaneseName
1097
1104
  'name_lastname' => $faker->lastName(),
1098
1105
  'name_firstname' => $faker->firstName(),
1099
1106
  'name_kana_lastname' => $faker->lastKanaName(),
1100
1107
  'name_kana_firstname' => $faker->firstKanaName(),
1101
1108
 
1102
- // JapanPhone
1109
+ // JapanesePhone
1103
1110
  'phone' => $faker->phoneNumber(),
1104
1111
 
1105
- // JapanPostalCode
1112
+ // JapanesePostalCode
1106
1113
  'postal_code' => $faker->postcode(),
1107
1114
 
1108
- // JapanAddress
1115
+ // JapaneseAddress
1109
1116
  'address_postal_code' => $faker->postcode(),
1110
1117
  'address_prefecture_id' => $faker->numberBetween(1, 47),
1111
1118
  'address_address1' => $faker->city(),
@@ -1117,11 +1124,11 @@ return [
1117
1124
  ## Model Accessors
1118
1125
 
1119
1126
  \`\`\`php
1120
- // JapanName accessors
1127
+ // JapaneseName accessors
1121
1128
  $customer->name_full_name; // "\u7530\u4E2D \u592A\u90CE"
1122
1129
  $customer->name_full_name_kana; // "\u30BF\u30CA\u30AB \u30BF\u30ED\u30A6"
1123
1130
 
1124
- // JapanAddress accessor
1131
+ // JapaneseAddress accessor
1125
1132
  $customer->address_full_address; // "\u5343\u4EE3\u7530\u533A\u4E38\u306E\u51851-1-1\u30D3\u30EB5F"
1126
1133
  \`\`\`
1127
1134
  `;