| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- # Writes travel.json as UTF-8 (no BOM). Requires this .ps1 saved as UTF-8 BOM per .editorconfig.
- # Usage: powershell -NoProfile -ExecutionPolicy Bypass -File write-travel-json.ps1
- $path = Join-Path $PSScriptRoot "..\fs-service\src\main\resources\lobster\validation\dialogues\travel.json"
- $json = @'
- {
- "industryType": "travel",
- "industryLabel": "???????????��",
- "businessRequirement": "???��???????????????????????????????????????��???????????????????????????��?????????��????????????????",
- "generateParams": {
- "companyShortName": "??????????",
- "advisorName": "��??",
- "advisorRole": "???????��???",
- "mainProduct": "????????"
- },
- "stages": {
- "bookingFunnel": {
- "label": "????????????????",
- "description": "E2E ?????????????????????????",
- "lines": [
- "????????????????????",
- "??????????��?????????????",
- "???????????",
- "????7?��????????????5000????",
- "?????????????????????????��??",
- "??????��???????????????????????��???????",
- "?��????????��????????????????",
- "??????????????????????",
- "?????????????????????",
- "????????????"
- ]
- },
- "postBookingLifecycle": {
- "label": "??????????��???��?????",
- "description": "?????????????????????",
- "lines": [
- "???????????????????????????",
- "????????��??????????",
- "�ݧ�???????�Q???�?????",
- "????????????????��????",
- "?????????????��?????",
- "??????5???????????",
- "?????��?????????",
- "?????????????��???",
- "?????????????????"
- ]
- },
- "consultMultiTurn": {
- "label": "?????��???",
- "description": "?????????????????????",
- "lines": [
- "??????????",
- "?????????",
- "??????????",
- "????????",
- "?��????????",
- "?????????????"
- ]
- },
- "preTripCareMultiTurn": {
- "label": "????????????????��???",
- "description": "T-5 ??????? PRE_TRIP_CARE ???????",
- "lines": [
- "?????��?????????????",
- "??????????",
- "??????�ݧ�"
- ]
- },
- "postBookingPreTripMultiTurn": {
- "label": "???????????????????????",
- "description": "?????????????????��? PRE_TRIP ????",
- "lines": [
- "?????????????????",
- "????????????????",
- "?????????"
- ]
- },
- "holidayPromoMultiTurn": {
- "label": "???????????",
- "description": "HOLIDAY_PROMO ????????",
- "lines": [
- "?????��??��????",
- "???????????��",
- "????????"
- ]
- },
- "stressMultiTurn": {
- "label": "?????????",
- "description": "stress.multiTurn ?????????????",
- "lines": [
- "?????????��?????",
- "??????????��???????",
- "????????????",
- "????��???",
- "??????????",
- "????????????"
- ]
- }
- }
- }
- '@
- $utf8 = New-Object System.Text.UTF8Encoding $false
- [System.IO.File]::WriteAllText($path, $json.Trim(), $utf8)
- Write-Host "Wrote UTF-8: $path"
|