write-travel-json.ps1 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Writes travel.json as UTF-8 (no BOM). Requires this .ps1 saved as UTF-8 BOM per .editorconfig.
  2. # Usage: powershell -NoProfile -ExecutionPolicy Bypass -File write-travel-json.ps1
  3. $path = Join-Path $PSScriptRoot "..\fs-service\src\main\resources\lobster\validation\dialogues\travel.json"
  4. $json = @'
  5. {
  6. "industryType": "travel",
  7. "industryLabel": "???????????��",
  8. "businessRequirement": "???��???????????????????????????????????????��???????????????????????????��?????????��????????????????",
  9. "generateParams": {
  10. "companyShortName": "??????????",
  11. "advisorName": "��??",
  12. "advisorRole": "???????��???",
  13. "mainProduct": "????????"
  14. },
  15. "stages": {
  16. "bookingFunnel": {
  17. "label": "????????????????",
  18. "description": "E2E ?????????????????????????",
  19. "lines": [
  20. "????????????????????",
  21. "??????????��?????????????",
  22. "???????????",
  23. "????7?��????????????5000????",
  24. "?????????????????????????��??",
  25. "??????��???????????????????????��???????",
  26. "?��????????��????????????????",
  27. "??????????????????????",
  28. "?????????????????????",
  29. "????????????"
  30. ]
  31. },
  32. "postBookingLifecycle": {
  33. "label": "??????????��???��?????",
  34. "description": "?????????????????????",
  35. "lines": [
  36. "???????????????????????????",
  37. "????????��??????????",
  38. "�ݧ�???????�Q???�?????",
  39. "????????????????��????",
  40. "?????????????��?????",
  41. "??????5???????????",
  42. "?????��?????????",
  43. "?????????????��???",
  44. "?????????????????"
  45. ]
  46. },
  47. "consultMultiTurn": {
  48. "label": "?????��???",
  49. "description": "?????????????????????",
  50. "lines": [
  51. "??????????",
  52. "?????????",
  53. "??????????",
  54. "????????",
  55. "?��????????",
  56. "?????????????"
  57. ]
  58. },
  59. "preTripCareMultiTurn": {
  60. "label": "????????????????��???",
  61. "description": "T-5 ??????? PRE_TRIP_CARE ???????",
  62. "lines": [
  63. "?????��?????????????",
  64. "??????????",
  65. "??????�ݧ�"
  66. ]
  67. },
  68. "postBookingPreTripMultiTurn": {
  69. "label": "???????????????????????",
  70. "description": "?????????????????��? PRE_TRIP ????",
  71. "lines": [
  72. "?????????????????",
  73. "????????????????",
  74. "?????????"
  75. ]
  76. },
  77. "holidayPromoMultiTurn": {
  78. "label": "???????????",
  79. "description": "HOLIDAY_PROMO ????????",
  80. "lines": [
  81. "?????��??��????",
  82. "???????????��",
  83. "????????"
  84. ]
  85. },
  86. "stressMultiTurn": {
  87. "label": "?????????",
  88. "description": "stress.multiTurn ?????????????",
  89. "lines": [
  90. "?????????��?????",
  91. "??????????��???????",
  92. "????????????",
  93. "????��???",
  94. "??????????",
  95. "????????????"
  96. ]
  97. }
  98. }
  99. }
  100. '@
  101. $utf8 = New-Object System.Text.UTF8Encoding $false
  102. [System.IO.File]::WriteAllText($path, $json.Trim(), $utf8)
  103. Write-Host "Wrote UTF-8: $path"