From 623186ca707d90126d29ba67eea120ff83ddc630 Mon Sep 17 00:00:00 2001 From: Chambers Date: Tue, 12 Dec 2023 11:02:47 +0800 Subject: [PATCH 01/36] docs: update readme.md (#1523) --- README_ZH.md | 2 +- docs/readme/de-DE/README.md | 2 +- docs/readme/es-ES/README.md | 2 +- docs/readme/fr-FR/README.md | 2 +- docs/readme/ja-JP/README.md | 2 +- docs/readme/zh-CN/README.md | 2 +- docs/readme/zh-HK/README.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README_ZH.md b/README_ZH.md index e1bb8854d4..d93e6d9ad8 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -245,7 +245,7 @@ APITable 将提供一个数据表查询语言(DQL)来查询您的数据库电子 curl https://apitable.github.io/install.sh | bash ``` -然后在您的浏览器中打开 [https://localhost:80](https://localhost:80) 访问它。 +然后在您的浏览器中打开 [http://localhost:80](http://localhost:80) 访问它。 如果你想要设置你的本地开发环境,请阅读我们的 [🧑‍💻 开发者指南 ](./docs/contribute/developer-guide.md) diff --git a/docs/readme/de-DE/README.md b/docs/readme/de-DE/README.md index e696e1353d..4ebc992e5b 100644 --- a/docs/readme/de-DE/README.md +++ b/docs/readme/de-DE/README.md @@ -252,7 +252,7 @@ Um apitable mit docker compose zu installieren, öffnen Sie Ihr Terminal und fü curl https://apitable.github.io/install.sh | bash ``` -Öffne dann [https://localhost:80](https://localhost:80) in deinem Browser, um ihn zu besuchen. +Öffne dann [http://localhost:80](http://localhost:80) in deinem Browser, um ihn zu besuchen. Wir bieten auch ein All-In-One-Bild basierend auf [pm2](https://pm2.keymetrics.io/) für Demo oder Testzwecke (nicht empfohlen für Unternehmen oder Produktionsnutzung): diff --git a/docs/readme/es-ES/README.md b/docs/readme/es-ES/README.md index 339a8a283b..567a7791eb 100644 --- a/docs/readme/es-ES/README.md +++ b/docs/readme/es-ES/README.md @@ -252,7 +252,7 @@ Para instalar apitable usando docker-compose, abra su terminal y ejecute lo sigu curl https://apitable.github.io/install.sh | bash ``` -Luego abre [https://localhost:80](https://localhost:80) en tu navegador para visitarlo. +Luego abre [http://localhost:80](http://localhost:80) en tu navegador para visitarlo. También proporcionamos una imagen todo en uno basada en [pm2](https://pm2.keymetrics.io/) para propósitos de demostración o prueba (no recomendada para uso empresarial o producción): diff --git a/docs/readme/fr-FR/README.md b/docs/readme/fr-FR/README.md index 5518d2a46e..28cc0c12bb 100644 --- a/docs/readme/fr-FR/README.md +++ b/docs/readme/fr-FR/README.md @@ -252,7 +252,7 @@ Pour installer apitable en utilisant docker compose, ouvrez votre terminal et ex curl https://apitable.github.io/install.sh | bash ``` -Puis ouvrez [https://localhost:80](https://localhost:80) dans votre navigateur pour le visiter. +Puis ouvrez [http://localhost:80](http://localhost:80) dans votre navigateur pour le visiter. Nous fournissons également une image tout-en-un basée sur [pm2](https://pm2.keymetrics.io/) à des fins de démonstration ou de test (non recommandé pour les entreprises ou les utilisations de production): diff --git a/docs/readme/ja-JP/README.md b/docs/readme/ja-JP/README.md index 6024f3b65a..fffdaf021c 100644 --- a/docs/readme/ja-JP/README.md +++ b/docs/readme/ja-JP/README.md @@ -252,7 +252,7 @@ Docker Composeを使用してapitableをインストールするには、ター curl https://apitable.github.io/install.sh | bash ``` -ブラウザで [https://localhost:80](https://localhost:80) を開きます。 +ブラウザで [http://localhost:80](http://localhost:80) を開きます。 また、 [pm2](https://pm2.keymetrics.io/) をベースにしたオールインワンの画像をデモやテスト用に提供しています(企業や本番での使用には推奨されません)。 diff --git a/docs/readme/zh-CN/README.md b/docs/readme/zh-CN/README.md index 22852e94a0..73f3d89e1e 100644 --- a/docs/readme/zh-CN/README.md +++ b/docs/readme/zh-CN/README.md @@ -252,7 +252,7 @@ APITable 将提供一个数据表查询语言(DQL)来查询您的数据库电子 curl https://apitable.github.io/install.sh | bash ``` -然后在您的浏览器中打开 [https://localhost:80](https://localhost:80) 访问它。 +然后在您的浏览器中打开 [http://localhost:80](http://localhost:80) 访问它。 我们还提供了一个基于 [pm2](https://pm2.keymetrics.io/) 的完整镜像,用于演示或测试目的(不推荐用于企业或生产用途): diff --git a/docs/readme/zh-HK/README.md b/docs/readme/zh-HK/README.md index abbafe6db2..57fcf8021e 100644 --- a/docs/readme/zh-HK/README.md +++ b/docs/readme/zh-HK/README.md @@ -252,7 +252,7 @@ APITable 將提供一個數據表查詢語言(DQL)來查詢您的數據庫電子 curl https://apitable.github.io/install.sh | bash ``` -然後在您的瀏覽器中打開 [https://localhost:80](http://localhost:80) 訪問它。 +然後在您的瀏覽器中打開 [http://localhost:80](http://localhost:80) 訪問它。 我們還提供了一個基於 [pm2](https://pm2.keymetrics.io/) 的一體化鏡像,用於演示或測試目的(不推薦用於企業或生產用途): From 0110ea594cbfa3e99b7c4d8947ab39fb88fb11a3 Mon Sep 17 00:00:00 2001 From: Jeremy Yin Date: Mon, 18 Dec 2023 15:34:55 +0800 Subject: [PATCH 02/36] sync: hosted cloud (#1528) Submit a pull request for this project. # Why? # What? # How? --------- Co-authored-by: Robot Ye Chen <262000730@qq.com> Co-authored-by: Caedman Ziwen Lan Co-authored-by: Chambers Co-authored-by: Harry Yep Co-authored-by: Shawn Deng Co-authored-by: Jover Co-authored-by: Zoe Co-authored-by: Zoe <13400804+zoe-icu@users.noreply.github.com> Co-authored-by: Aria Co-authored-by: William Chan Co-authored-by: Kilian Co-authored-by: XuKecheng Co-authored-by: xukecheng Co-authored-by: Guofeng Chen <66124783+functionChenGuoFeng@users.noreply.github.com> Co-authored-by: ShawnDeng Co-authored-by: wangkailang Co-authored-by: Michael Xiaoliang Chan <111508006+yo-ooiii@users.noreply.github.com> Co-authored-by: Evie Wanmei Huang <37546178+wmEvie@users.noreply.github.com> Co-authored-by: Chalme Cheng Peng Co-authored-by: ziqiang Co-authored-by: vac (Brendan) --- .bumpversion.cfg | 2 +- .github/linters/.jscpd.json | 2 +- .github/workflows/build.yaml | 14 +- .github/workflows/codeql.yml | 146 +- .github/workflows/dependency-review.yml | 4 +- .github/workflows/lint.yml | 4 +- .gitignore | 2 +- .husky/pre-commit | 2 +- .version | 2 +- backend-server/.version | 2 +- backend-server/application/build.gradle | 11 +- .../asset/vo/AssetUrlSignatureVo.java | 5 +- .../auth/controller/AuthController.java | 2 +- .../java/com/apitable/auth/ro/RegisterRO.java | 4 + .../apitable/auth/service/IAuthService.java | 10 + .../auth/service/impl/AuthServiceImpl.java | 17 +- .../model/AutomationServiceCreateRO.java | 55 - .../model/AutomationServiceEditRO.java | 46 - .../automation/model/TriggerTypeCreateRO.java | 59 - .../automation/model/TriggerTypeEditRO.java | 49 - .../service/IAutomationService.java | 36 - .../IAutomationTriggerTypeService.java | 9 - .../impl/AutomationActionServiceImpl.java | 16 +- .../impl/AutomationRobotServiceImpl.java | 30 +- .../impl/AutomationRunHistoryServiceImpl.java | 4 +- .../service/impl/AutomationServiceImpl.java | 101 - .../impl/AutomationTriggerServiceImpl.java | 16 +- .../AutomationTriggerTypeServiceImpl.java | 56 - .../service/impl/RestTemplateServiceImpl.java | 21 +- .../com/apitable/client/task/ClientTasks.java | 13 +- .../apitable/databusclient/ApiCallback.java | 62 - .../com/apitable/databusclient/ApiClient.java | 1550 ------- .../apitable/databusclient/ApiException.java | 165 - .../apitable/databusclient/ApiResponse.java | 76 - .../apitable/databusclient/Configuration.java | 41 - .../databusclient/GzipRequestInterceptor.java | 85 - .../java/com/apitable/databusclient/JSON.java | 470 --- .../java/com/apitable/databusclient/Pair.java | 57 - .../databusclient/ProgressRequestBody.java | 73 - .../databusclient/ProgressResponseBody.java | 70 - .../apitable/databusclient/StringUtil.java | 83 - .../api/AutomationDaoApiApi.java | 1749 -------- .../apitable/databusclient/api/CrateApi.java | 182 - .../databusclient/api/DataDaoApiApi.java | 573 --- .../databusclient/api/DataServicesApiApi.java | 366 -- .../databusclient/api/DocumentDaoApiApi.java | 558 --- .../api/EnterpriseFusionApiApi.java | 3670 ----------------- .../databusclient/api/FusionApiApi.java | 2201 ---------- .../databusclient/auth/ApiKeyAuth.java | 80 - .../databusclient/auth/Authentication.java | 36 - .../databusclient/auth/HttpBasicAuth.java | 57 - .../databusclient/auth/HttpBearerAuth.java | 63 - .../model/AbstractOpenApiSchema.java | 148 - .../apitable/databusclient/model/AiNode.java | 336 -- .../apitable/databusclient/model/AiPO.java | 448 -- .../databusclient/model/AlarmUser.java | 247 -- .../databusclient/model/AlarmUsersType.java | 72 - .../databusclient/model/AnyBaseField.java | 329 -- .../databusclient/model/ApiRecordDto.java | 314 -- .../databusclient/model/ApiResponseAiPO.java | 321 -- .../model/ApiResponseAutomationActionPO.java | 341 -- ...ResponseAutomationRobotIntroductionSO.java | 321 -- .../ApiResponseAutomationRobotRunNumsSO.java | 320 -- .../ApiResponseAutomationRunHistoryPO.java | 341 -- .../model/ApiResponseAutomationSO.java | 321 -- .../model/ApiResponseAutomationTriggerPO.java | 341 -- .../model/ApiResponseDatasheetPackSO.java | 321 -- .../model/ApiResponseEmptySO.java | 316 -- .../model/ApiResponseRecordVos.java | 341 -- .../model/AutomationActionIntroductionPO.java | 324 -- .../model/AutomationActionPO.java | 355 -- .../model/AutomationHistoryRO.java | 319 -- .../model/AutomationHistoryStatusRO.java | 215 - .../model/AutomationRobotActionRO.java | 407 -- .../model/AutomationRobotCopyRO.java | 322 -- .../model/AutomationRobotIntroductionPO.java | 385 -- .../model/AutomationRobotIntroductionSO.java | 331 -- .../model/AutomationRobotRunNumsSO.java | 213 - .../model/AutomationRobotSO.java | 471 --- .../model/AutomationRobotTriggerRO.java | 438 -- .../model/AutomationRobotUpdateRO.java | 376 -- .../model/AutomationRunHistoryPO.java | 416 -- .../databusclient/model/AutomationSO.java | 378 -- .../AutomationTriggerIntroductionPO.java | 324 -- .../model/AutomationTriggerPO.java | 386 -- .../model/BaseDatasheetPackSO.java | 286 -- .../databusclient/model/ColorOption.java | 249 -- .../databusclient/model/CommentMsg.java | 363 -- .../databusclient/model/Comments.java | 382 -- .../databusclient/model/DatasheetMetaSO.java | 378 -- .../databusclient/model/DatasheetPackSO.java | 381 -- .../model/DatasheetSnapshotSO.java | 289 -- .../model/DocumentOperationRO.java | 288 -- .../databusclient/model/DocumentRO.java | 412 -- .../model/FieldExtraMapValue.java | 223 - .../apitable/databusclient/model/FieldSO.java | 383 -- .../databusclient/model/FieldUpdateRO.java | 256 -- .../model/FieldUpdatedValue.java | 279 -- .../databusclient/model/GanttColorOption.java | 286 -- .../databusclient/model/IFilterCondition.java | 349 -- .../databusclient/model/IFilterInfo.java | 280 -- .../databusclient/model/ISortInfo.java | 275 -- .../databusclient/model/ISortedField.java | 257 -- .../databusclient/model/IViewLockInfo.java | 260 -- .../databusclient/model/LinkedFields.java | 279 -- .../apitable/databusclient/model/ListVO.java | 235 -- .../databusclient/model/LookUpFilterPO.java | 262 -- .../model/NodePermissionStateSO.java | 218 - .../apitable/databusclient/model/NodeSO.java | 657 --- .../databusclient/model/NodeSimplePO.java | 292 -- .../databusclient/model/RecordAlarm.java | 437 -- .../databusclient/model/RecordMeta.java | 386 -- .../databusclient/model/RecordSO.java | 470 --- .../databusclient/model/RecordUpdateRO.java | 265 -- .../databusclient/model/RecordVo.java | 316 -- .../model/SingleSelectProperty.java | 278 -- .../model/SingleTextFieldPropertySO.java | 221 - .../apitable/databusclient/model/SortRO.java | 247 -- .../databusclient/model/TimeFormat.java | 67 - .../apitable/databusclient/model/UnitSO.java | 578 --- .../databusclient/model/ViewColumnSO.java | 397 -- .../databusclient/model/ViewRowSO.java | 257 -- .../apitable/databusclient/model/ViewSO.java | 771 ---- .../databusclient/model/WidgetInPanelSO.java | 275 -- .../databusclient/model/WidgetPanelSO.java | 299 -- .../model/DefaultSubscriptionFeature.java | 2 +- .../billing/model/NumberPlanFeature.java | 9 +- .../billing/model/SubscriptionFeature.java | 6 + .../billing/model/SubscriptionFeatures.java | 21 + .../service/impl/RoleServiceImpl.java | 3 +- .../sentry/SentryBeforeSendCallback.java | 49 - .../apitable/shared/config/JacksonConfig.java | 5 +- .../shared/config/RestClientConfig.java | 35 + .../shared/config/RestTemplateConfig.java | 63 - .../apitable/shared/config/SentryConfig.java | 5 +- .../config/SessionSerializerConfig.java | 19 +- .../shared/config/WebSecurityConfig.java | 5 +- .../shared/interceptor/I18nInterceptor.java | 3 +- .../space/assembler/SubscribeAssembler.java | 1 + .../space/controller/SpaceController.java | 13 + .../service/impl/SpaceApplyServiceImpl.java | 2 +- .../space/service/impl/SpaceServiceImpl.java | 46 +- .../java/com/apitable/space/vo/SeatUsage.java | 1 + .../com/apitable/space/vo/SpaceInfoVO.java | 5 + .../apitable/space/vo/SpaceSubscribeVo.java | 5 + .../apitable/user/service/IUserService.java | 10 + .../user/service/impl/UserServiceImpl.java | 8 +- .../widget/vo/WidgetReleaseListVo.java | 4 +- .../service/impl/DatasheetServiceImpl.java | 11 +- .../service/impl/NodeServiceImpl.java | 2 +- .../src/main/resources/application.yml | 3 +- .../src/main/resources/default.properties | 8 +- .../automation/AutomationServiceMapper.xml | 35 - .../src/main/resources/sysconfig/strings.json | 247 +- .../com/apitable/AbstractIntegrationTest.java | 4 + .../service/impl/AuthServiceImplTest.java | 8 +- .../service/impl/SpaceServiceImplTest.java | 6 +- .../impl/WidgetUploadServiceImplTest.java | 2 +- .../config/checkstyle/suppressions.xml | 2 +- backend-server/gradle/libs.versions.toml | 26 +- .../databus}/.openapi-generator-ignore | 3 +- .../shared/starters/databus/build.gradle | 15 + .../DatabusClientAutoConfiguration.java} | 37 +- .../DatabusClientProperties.java | 16 +- .../starter/databus/client/ApiClient.java | 717 ++++ .../databus/client/JavaTimeFormatter.java | 64 + .../databus/client/RFC3339DateFormat.java | 57 + .../databus/client}/ServerConfiguration.java | 2 +- .../databus/client}/ServerVariable.java | 2 +- .../client/api/AutomationDaoApiApi.java | 755 ++++ .../starter/databus/client/api/CrateApi.java | 83 + .../databus/client/api/DataDaoApiApi.java | 246 ++ .../client/api/DataServicesApiApi.java | 160 + .../databus/client/api/DocumentDaoApiApi.java | 287 ++ .../client/api/EnterpriseFusionApiApi.java | 1655 ++++++++ .../databus/client/api/FusionApiApi.java | 982 +++++ .../databus/client/auth/ApiKeyAuth.java | 62 + .../databus/client/auth/Authentication.java | 14 + .../databus/client/auth/HttpBasicAuth.java | 38 + .../databus/client/auth/HttpBearerAuth.java | 41 + .../starter/databus/client/model/AiNode.java | 302 ++ .../starter/databus/client/model/AiPO.java | 327 ++ .../databus/client/model/AlarmUser.java | 136 + .../databus/client/model/AlarmUsersType.java | 59 + .../databus/client/model/AnyBaseField.java | 66 + .../databus/client/model/ApiRecordDto.java | 206 + .../databus/client/model/ApiResponseAiPO.java | 201 + .../model/ApiResponseAutomationActionPO.java | 212 + ...ResponseAutomationRobotIntroductionSO.java | 201 + .../ApiResponseAutomationRobotRunNumsSO.java | 201 + .../ApiResponseAutomationRunHistoryPO.java | 212 + .../client/model/ApiResponseAutomationSO.java | 201 + .../model/ApiResponseAutomationTriggerPO.java | 212 + .../model/ApiResponseDatasheetPackSO.java | 201 + .../client/model/ApiResponseEmptySO.java | 200 + .../client/model/ApiResponseRecordDTOs.java | 212 + .../model/AutomationActionIntroductionPO.java | 199 + .../client/model/AutomationActionPO.java | 231 ++ .../client/model/AutomationHistoryRO.java | 200 + .../model/AutomationHistoryStatusRO.java | 104 + .../client/model/AutomationRobotActionRO.java | 296 ++ .../client/model/AutomationRobotCopyRO.java | 200 + .../model/AutomationRobotIntroductionPO.java | 264 ++ .../model/AutomationRobotIntroductionSO.java | 197 + .../model/AutomationRobotRunNumsSO.java | 103 + .../client/model/AutomationRobotSO.java | 361 ++ .../model/AutomationRobotTriggerRO.java | 328 ++ .../client/model/AutomationRobotUpdateRO.java | 264 ++ .../client/model/AutomationRunHistoryPO.java | 296 ++ .../databus/client/model/AutomationSO.java | 230 ++ .../AutomationTriggerIntroductionPO.java | 199 + .../client/model/AutomationTriggerPO.java | 263 ++ .../client/model/BaseDatasheetPackSO.java | 168 + .../databus/client}/model/CellFormatEnum.java | 31 +- .../databus/client}/model/CollectType.java | 31 +- .../databus/client/model/ColorOption.java | 135 + .../databus/client/model/CommentMsg.java | 242 ++ .../databus/client/model/Comments.java | 267 ++ .../databus/client/model/DatasheetMetaSO.java | 196 + .../databus/client/model/DatasheetPackSO.java | 256 ++ .../client/model/DatasheetSnapshotSO.java | 176 + .../databus/client}/model/DateFormat.java | 31 +- .../client/model/DocumentOperationRO.java | 169 + .../databus/client/model/DocumentPropsRO.java | 178 + .../databus/client/model/DocumentRO.java | 298 ++ .../databus/client}/model/FOperator.java | 31 +- .../client/model/FieldExtraMapValue.java | 104 + .../databus/client}/model/FieldKeyEnum.java | 31 +- .../databus/client}/model/FieldKindSO.java | 33 +- .../client}/model/FieldPropertySO.java | 724 ++-- .../starter/databus/client/model/FieldSO.java | 265 ++ .../databus/client/model/FieldUpdateRO.java | 142 + .../client/model/FieldUpdatedValue.java | 169 + .../client}/model/FilterConjunction.java | 31 +- .../client/model/GanttColorOption.java | 168 + .../databus/client}/model/GanttColorType.java | 31 +- .../client/model/IFilterCondition.java | 233 ++ .../databus/client/model/IFilterInfo.java | 148 + .../databus/client/model/ISortInfo.java | 147 + .../databus/client/model/ISortedField.java | 135 + .../databus/client/model/IViewLockInfo.java | 135 + .../databus/client/model/LinkedFields.java | 168 + .../starter/databus/client/model/ListVO.java | 115 + .../databus/client/model/LookUpLimitType.java | 59 + .../databus/client/model/LookUpSortField.java | 135 + .../databus/client/model/LookUpSortInfo.java | 115 + .../client/model/NodePermissionStateSO.java | 103 + .../starter/databus/client/model/NodeSO.java | 553 +++ .../databus/client/model/NodeSimplePO.java | 167 + .../databus/client}/model/OrderEnum.java | 31 +- .../databus/client/model/RecordAlarm.java | 308 ++ .../databus/client/model/RecordDTO.java | 208 + .../databus/client/model/RecordMeta.java | 285 ++ .../databus/client/model/RecordSO.java | 349 ++ .../databus/client/model/RecordUpdateRO.java | 148 + .../databus/client}/model/RollUpFuncType.java | 31 +- .../client/model/SingleSelectProperty.java | 167 + .../model/SingleTextFieldPropertySO.java | 103 + .../starter/databus/client/model/SortRO.java | 136 + .../databus/client}/model/SymbolAlign.java | 31 +- .../databus/client/model/TimeFormat.java | 59 + .../starter/databus/client/model/UnitSO.java | 490 +++ .../databus/client/model/ViewColumnSO.java | 295 ++ .../databus/client/model/ViewRowSO.java | 135 + .../starter/databus/client/model/ViewSO.java | 650 +++ .../databus/client}/model/ViewStyleSo.java | 333 +- .../databus/client/model/WidgetInPanelSO.java | 167 + .../databus/client/model/WidgetPanelSO.java | 179 + ...ot.autoconfigure.AutoConfiguration.imports | 1 + init-db/.version | 2 +- package.json | 2 +- packages/ai-components/package.json | 8 +- packages/components/package.json | 9 +- .../src/components/avatar/avatar.tsx | 5 +- .../avatar/avatar_group/avatar_group.tsx | 4 +- .../avatar/avatar_group/intarface.ts | 1 + .../src/components/avatar/interface.ts | 1 + .../components/dropdown/float_ui/index.tsx | 2 +- .../dropdown/float_ui/useFloatUiDropdown.tsx | 2 +- .../select/dropdown/list_dropdown.tsx | 6 +- .../components/select/dropdown/multiple.tsx | 335 ++ .../src/components/select/select.stories.tsx | 114 + .../components/src/components/time/day.tsx | 10 + .../src/components/time/preview.tsx | 44 + .../src/components/time/time.stories.tsx | 74 + .../src/components/time/time_input/index.tsx | 77 + .../components/src/components/time/timing.tsx | 123 + .../src/components/tooltip/float_ui/index.tsx | 2 +- .../components/src/hooks/use_css_colors.ts | 28 +- packages/core/package.json | 8 +- .../sys_functions/context_base.ts | 6 +- .../core/src/config/stringkeys.interface.ts | 12 + .../core/src/config/system_config.source.json | 10 +- packages/core/src/exports/i18n/index.ts | 116 +- packages/core/src/model/field/index.ts | 19 + .../src/modules/database/api/wasm/index.ts | 4 +- .../selectors/resource/datasheet/calc.ts | 15 + .../selectors/resource/datasheet/cell_calc.ts | 4 + .../src/modules/space/store/actions/space.ts | 3 +- .../modules/space/store/interfaces/space.ts | 1 + .../core/src/modules/user/api/api.auth.ts | 5 +- packages/core/src/utils/types.ts | 2 +- packages/cypress/package.json | 2 +- packages/databus-client/package.json | 2 +- packages/databus-wasm-nodejs/package.json | 2 +- packages/databus-wasm-web/package.json | 2 +- packages/datasheet/package.json | 16 +- packages/datasheet/pages/_app.tsx | 2 +- .../public/file/langs/strings.ar-SA.json | 4 +- .../public/file/langs/strings.de-DE.json | 24 +- .../public/file/langs/strings.en-US.json | 20 +- .../public/file/langs/strings.es-ES.json | 24 +- .../public/file/langs/strings.fr-FR.json | 24 +- .../public/file/langs/strings.it-IT.json | 24 +- .../public/file/langs/strings.ja-JP.json | 24 +- .../datasheet/public/file/langs/strings.json | 247 +- .../public/file/langs/strings.ko-KR.json | 24 +- .../public/file/langs/strings.ru-RU.json | 24 +- .../public/file/langs/strings.zh-CN.json | 33 +- .../public/file/langs/strings.zh-HK.json | 26 +- .../src/modules/api/utils/init_axios.tsx | 6 +- .../shortcut_actions/append_row.ts | 2 +- .../controller/hooks/use_robot_fields.ts | 50 +- .../catalog/node_context_menu/utils.ts | 9 +- .../common/record_card/style.module.less | 13 + .../common_side/address_side/address_side.tsx | 13 +- .../address_side/style.module.less | 7 +- .../workbench_side/space-info/space-info.tsx | 6 +- .../space-info/style.module.less | 5 +- .../workbench_side/style.module.less | 8 + .../workbench_side/workbench_side.tsx | 4 +- .../button_editor/buton_item/index.tsx | 540 ++- .../editors/button_editor/index.tsx | 12 +- .../editors/button_editor/job_task.ts | 24 +- .../expand_record/expand_record.tsx | 47 +- .../form_container/form_container.tsx | 2 +- .../kanban_view/kanban_group/kanban_group.tsx | 3 +- .../cell/cell_member/cell_member.tsx | 1 - .../multi_grid/cell/cell_text/url_discern.tsx | 11 +- .../components/preview_file/preview_file.tsx | 11 +- .../preview_main/preview_main.tsx | 7 +- .../components/quick_search/search_base.tsx | 2 +- .../pc/components/record_card/card_body.tsx | 2 +- .../record_card/card_text/style.module.less | 6 +- .../src/pc/components/robot/helper.ts | 11 +- .../robot_detail/action/robot_action.tsx | 17 +- .../robot_detail/action/robot_actions.tsx | 9 +- .../magic_variable_container/helper.ts | 22 - .../magic_text_field.tsx | 29 +- .../magic_variable_container.tsx | 2 +- .../magic_variable_element.tsx | 22 +- .../route_manager/private_route.tsx | 18 +- .../components/route_manager/side_wrapper.tsx | 3 - .../components/level_card/level_card.tsx | 3 +- .../space_manage/space_info/interface.ts | 4 + .../space_manage/space_info/utils.tsx | 13 + .../upgrade_space/expand_upgrade_space.tsx | 42 +- .../upgrade_space/style.module.less | 2 +- .../upgrade_space/upgrade_space.tsx | 141 +- .../src/pc/hooks/use_user_request.ts | 23 +- packages/datasheet/webpack.config.js | 7 +- packages/i18n-lang/package.json | 2 +- .../i18n-lang/src/config/strings.ar-SA.json | 4 +- .../i18n-lang/src/config/strings.de-DE.json | 24 +- .../i18n-lang/src/config/strings.en-US.json | 20 +- .../i18n-lang/src/config/strings.es-ES.json | 24 +- .../i18n-lang/src/config/strings.fr-FR.json | 24 +- .../i18n-lang/src/config/strings.it-IT.json | 24 +- .../i18n-lang/src/config/strings.ja-JP.json | 24 +- packages/i18n-lang/src/config/strings.json | 247 +- .../i18n-lang/src/config/strings.ko-KR.json | 24 +- .../i18n-lang/src/config/strings.ru-RU.json | 24 +- .../i18n-lang/src/config/strings.zh-CN.json | 33 +- .../i18n-lang/src/config/strings.zh-HK.json | 26 +- packages/i18n-lang/src/mergeLanguageFile.ts | 16 +- packages/i18n-lang/tsconfig.json | 2 +- packages/icons/package.json | 4 +- packages/l10n/base/env.json | 4 +- packages/l10n/base/oss.json | 4 +- packages/l10n/base/setting.json | 2 +- packages/l10n/base/strings.de-DE.json | 26 +- packages/l10n/base/strings.en-US.json | 25 +- packages/l10n/base/strings.es-ES.json | 26 +- packages/l10n/base/strings.fr-FR.json | 26 +- packages/l10n/base/strings.it-IT.json | 26 +- packages/l10n/base/strings.ja-JP.json | 26 +- packages/l10n/base/strings.ko-KR.json | 26 +- packages/l10n/base/strings.ru-RU.json | 26 +- packages/l10n/base/strings.zh-CN.json | 32 +- packages/l10n/base/strings.zh-HK.json | 28 +- packages/l10n/base/strings_ar-SA | 4 +- packages/room-server/package.json | 6 +- .../src/fusion/dtos/field.property.dto.ts | 4 +- .../room-server/src/fusion/dtos/space.dto.ts | 2 +- .../src/shared/services/rest/rest.service.ts | 8 + packages/widget-sdk/package.json | 10 +- .../widget-sdk/src/interface/field_types.ts | 2 +- .../dataenv-liquibase-pm2/Dockerfile | 8 +- packaging/all-in-one/dataenv-pm2/Dockerfile | 4 +- pnpm-lock.yaml | 194 +- 400 files changed, 24721 insertions(+), 39005 deletions(-) delete mode 100644 backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceCreateRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceEditRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeCreateRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeEditRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/automation/service/IAutomationService.java delete mode 100644 backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationServiceImpl.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/ApiCallback.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/ApiClient.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/ApiException.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/ApiResponse.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/Configuration.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/GzipRequestInterceptor.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/JSON.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/Pair.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/ProgressRequestBody.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/ProgressResponseBody.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/StringUtil.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/AutomationDaoApiApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/CrateApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/DataDaoApiApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/DataServicesApiApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/DocumentDaoApiApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/EnterpriseFusionApiApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/api/FusionApiApi.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/auth/ApiKeyAuth.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/auth/Authentication.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBasicAuth.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBearerAuth.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AbstractOpenApiSchema.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AiNode.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AiPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUser.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUsersType.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AnyBaseField.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiRecordDto.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAiPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationActionPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotIntroductionSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotRunNumsSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRunHistoryPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationTriggerPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseDatasheetPackSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseEmptySO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseRecordVos.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionIntroductionPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryStatusRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotActionRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotCopyRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotRunNumsSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotTriggerRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotUpdateRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRunHistoryPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerIntroductionPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/BaseDatasheetPackSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ColorOption.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/CommentMsg.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/Comments.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetMetaSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetPackSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetSnapshotSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentOperationRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/FieldExtraMapValue.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/FieldSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdateRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdatedValue.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorOption.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterCondition.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterInfo.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ISortInfo.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ISortedField.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/IViewLockInfo.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/LinkedFields.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ListVO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/LookUpFilterPO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/NodePermissionStateSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSimplePO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/RecordAlarm.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/RecordMeta.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/RecordSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/RecordUpdateRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/RecordVo.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/SingleSelectProperty.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/SingleTextFieldPropertySO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/SortRO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/TimeFormat.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/UnitSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ViewColumnSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ViewRowSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/ViewSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetInPanelSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetPanelSO.java delete mode 100644 backend-server/application/src/main/java/com/apitable/shared/component/sentry/SentryBeforeSendCallback.java create mode 100644 backend-server/application/src/main/java/com/apitable/shared/config/RestClientConfig.java delete mode 100644 backend-server/application/src/main/java/com/apitable/shared/config/RestTemplateConfig.java delete mode 100644 backend-server/application/src/main/resources/mapper/automation/AutomationServiceMapper.xml rename backend-server/{application => shared/starters/databus}/.openapi-generator-ignore (94%) create mode 100644 backend-server/shared/starters/databus/build.gradle rename backend-server/{application/src/main/java/com/apitable/shared/config/DatabusClientConfig.java => shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientAutoConfiguration.java} (52%) rename backend-server/{application/src/main/java/com/apitable/shared/config/properties => shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure}/DatabusClientProperties.java (77%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ApiClient.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/JavaTimeFormatter.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/RFC3339DateFormat.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/ServerConfiguration.java (97%) rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/ServerVariable.java (94%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/AutomationDaoApiApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/CrateApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataDaoApiApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataServicesApiApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DocumentDaoApiApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/EnterpriseFusionApiApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/FusionApiApi.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/ApiKeyAuth.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/Authentication.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBasicAuth.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBearerAuth.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiNode.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUser.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUsersType.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AnyBaseField.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiRecordDto.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAiPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationActionPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotIntroductionSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotRunNumsSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRunHistoryPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationTriggerPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseDatasheetPackSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseEmptySO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseRecordDTOs.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionIntroductionPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryStatusRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotActionRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotCopyRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotRunNumsSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotTriggerRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotUpdateRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRunHistoryPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerIntroductionPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerPO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/BaseDatasheetPackSO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/CellFormatEnum.java (50%) rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/CollectType.java (51%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ColorOption.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CommentMsg.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/Comments.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetMetaSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetPackSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetSnapshotSO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/DateFormat.java (54%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentOperationRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentPropsRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentRO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/FOperator.java (57%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldExtraMapValue.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/FieldKeyEnum.java (50%) rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/FieldKindSO.java (65%) rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/FieldPropertySO.java (55%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdateRO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdatedValue.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/FilterConjunction.java (50%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorOption.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/GanttColorType.java (51%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterCondition.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterInfo.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortInfo.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortedField.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IViewLockInfo.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LinkedFields.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ListVO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpLimitType.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortField.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortInfo.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodePermissionStateSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSimplePO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/OrderEnum.java (50%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordAlarm.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordDTO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordMeta.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordUpdateRO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/RollUpFuncType.java (58%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleSelectProperty.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleTextFieldPropertySO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SortRO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/SymbolAlign.java (51%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/TimeFormat.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/UnitSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewColumnSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewRowSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewSO.java rename backend-server/{application/src/main/java/com/apitable/databusclient => shared/starters/databus/src/main/java/com/apitable/starter/databus/client}/model/ViewStyleSo.java (52%) create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetInPanelSO.java create mode 100644 backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetPanelSO.java create mode 100644 backend-server/shared/starters/databus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports create mode 100644 packages/components/src/components/select/dropdown/multiple.tsx create mode 100644 packages/components/src/components/time/day.tsx create mode 100644 packages/components/src/components/time/preview.tsx create mode 100644 packages/components/src/components/time/time.stories.tsx create mode 100644 packages/components/src/components/time/time_input/index.tsx create mode 100644 packages/components/src/components/time/timing.tsx rename backend-server/application/src/main/java/com/apitable/automation/mapper/AutomationServiceMapper.java => packages/components/src/hooks/use_css_colors.ts (63%) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 0134c5a21d..460d575d95 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.6.0 +current_version = 1.7.0 commit = False tag = False diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json index 17bb7941ec..cd59df1f47 100644 --- a/.github/linters/.jscpd.json +++ b/.github/linters/.jscpd.json @@ -1,5 +1,5 @@ { - "threshold": 25, + "threshold": 40, "reporters": [ "consoleFull" ], diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 373cd1f830..263918e564 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Fetch Sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v3 with: @@ -31,7 +31,7 @@ jobs: with: version: 8.7.5 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'corretto' @@ -57,7 +57,7 @@ jobs: matrix: command: [ test-init-db-docker, test-ut-backend-docker, test-ut-room-docker, _test-ut-core ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v3 with: @@ -66,7 +66,7 @@ jobs: with: version: 8.7.5 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'corretto' @@ -88,7 +88,7 @@ jobs: APITABLE_DOCKER_HUB_TOKEN: ${{ secrets.APITABLE_DOCKER_HUB_TOKEN }} steps: - name: Fetch Sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx @@ -107,7 +107,7 @@ jobs: APITABLE_DOCKER_HUB_TOKEN: ${{ secrets.APITABLE_DOCKER_HUB_TOKEN }} steps: - name: Fetch Sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build APITable and Push run: | cp -pr gateway/ packaging/all-in-one/all-in-one/ @@ -127,7 +127,7 @@ jobs: APITABLE_DOCKER_HUB_TOKEN: ${{ secrets.APITABLE_DOCKER_HUB_TOKEN }} steps: - name: Fetch Sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2f0470abbb..794be62cff 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,77 +27,77 @@ jobs: contents: read security-events: write steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Set up JDK - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'corretto' - cache: 'gradle' - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: java - - run: | - make _build-java - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:java" - -# analyze-js-core: -# name: Analyze (javascript-core) -# runs-on: ubuntu-latest -# permissions: -# actions: read -# contents: read -# security-events: write -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 -# # Initializes the CodeQL tools for scanning. -# - name: Initialize CodeQL -# uses: github/codeql-action/init@v2 -# with: -# languages: javascript -# - run: | -# make _build-core -# - name: Perform CodeQL Analysis -# uses: github/codeql-action/analyze@v2 -# with: -# category: "/language:javascript" - -# analyze-js-room: -# name: Analyze (javascript-room) -# runs-on: ubuntu-latest -# permissions: -# actions: read -# contents: read -# security-events: write -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 -# - name: Install build-essential -# run: sudo apt-get update -y && sudo apt-get install -y build-essential -# - name: Set up Rust -# uses: actions-rs/toolchain@v1 -# with: -# toolchain: nightly -# profile: minimal -# override: true -# # Initializes the CodeQL tools for scanning. -# - name: Initialize CodeQL -# uses: github/codeql-action/init@v2 -# with: -# languages: javascript -# - run: | -# make _build-room -# - name: Perform CodeQL Analysis -# uses: github/codeql-action/analyze@v2 -# with: -# category: "/language:javascript" + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'corretto' + cache: 'gradle' + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: java + - run: | + make _build-java + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:java" + + # analyze-js-core: + # name: Analyze (javascript-core) + # runs-on: ubuntu-latest + # permissions: + # actions: read + # contents: read + # security-events: write + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + # # Initializes the CodeQL tools for scanning. + # - name: Initialize CodeQL + # uses: github/codeql-action/init@v2 + # with: + # languages: javascript + # - run: | + # make _build-core + # - name: Perform CodeQL Analysis + # uses: github/codeql-action/analyze@v2 + # with: + # category: "/language:javascript" + + # analyze-js-room: + # name: Analyze (javascript-room) + # runs-on: ubuntu-latest + # permissions: + # actions: read + # contents: read + # security-events: write + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + # - name: Install build-essential + # run: sudo apt-get update -y && sudo apt-get install -y build-essential + # - name: Set up Rust + # uses: actions-rs/toolchain@v1 + # with: + # toolchain: nightly + # profile: minimal + # override: true + # # Initializes the CodeQL tools for scanning. + # - name: Initialize CodeQL + # uses: github/codeql-action/init@v2 + # with: + # languages: javascript + # - run: | + # make _build-room + # - name: Perform CodeQL Analysis + # uses: github/codeql-action/analyze@v2 + # with: + # category: "/language:javascript" # analyze-js-web: # name: Analyze (javascript-web) @@ -108,7 +108,7 @@ jobs: # security-events: write # steps: # - name: Checkout repository - # uses: actions/checkout@v3 + # uses: actions/checkout@v4 # # Initializes the CodeQL tools for scanning. # - name: Initialize CodeQL # uses: github/codeql-action/init@v2 @@ -140,7 +140,7 @@ jobs: # steps: # - name: Checkout repository - # uses: actions/checkout@v3 + # uses: actions/checkout@v4 # # Initializes the CodeQL tools for scanning. # - name: Initialize CodeQL diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 69aa8068e6..b0f0f4eb71 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -5,7 +5,7 @@ # Source repository: https://github.com/actions/dependency-review-action # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement name: 'Dependency Review' -on: [pull_request] +on: [ pull_request ] permissions: contents: read @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 'Dependency Review' uses: actions/dependency-review-action@v2 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9c9dc124cd..2e773803f3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,7 +30,7 @@ jobs: actions: read steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v3 with: @@ -74,7 +74,7 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Full git history is needed to get a proper # list of changed files within `super-linter` diff --git a/.gitignore b/.gitignore index 83a6a32176..876091cae0 100644 --- a/.gitignore +++ b/.gitignore @@ -95,6 +95,6 @@ eslint-results.sarif /packages/room-native-api/Cargo.lock # openapi generated -/backend-server/application/.openapi-generator/ +/backend-server/shared/starters/databus/.openapi-generator/ .nx diff --git a/.husky/pre-commit b/.husky/pre-commit index 3d9decf774..5e49c8e208 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -10,5 +10,5 @@ function check_forbidden_folder() { fi } -npx git-format-staged -f 'prettier --ignore-unknown --stdin-filepath "{}"' "*.ts,*.tsx" +npx git-format-staged -f 'prettier --ignore-unknown --stdin-filepath "{}"' "**" diff --git a/.version b/.version index dc1e644a10..bd8bf882d0 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.6.0 +1.7.0 diff --git a/backend-server/.version b/backend-server/.version index dc1e644a10..bd8bf882d0 100644 --- a/backend-server/.version +++ b/backend-server/.version @@ -1 +1 @@ -1.6.0 +1.7.0 diff --git a/backend-server/application/build.gradle b/backend-server/application/build.gradle index 4b53c690cb..9acd67fba8 100644 --- a/backend-server/application/build.gradle +++ b/backend-server/application/build.gradle @@ -17,6 +17,7 @@ dependencies { implementation project(':shared:starters:oss') implementation project(':shared:starters:socketio') implementation project(':shared:starters:beetl') + implementation project(':shared:starters:databus') // spring boot starters dependencies implementation platform(libs.spring.boot.dependencies) @@ -40,14 +41,17 @@ dependencies { implementation libs.commons.pool2 implementation libs.jedis implementation libs.prometheus.pushgateway - implementation libs.bundles.okhttp3 - implementation 'javax.annotation:javax.annotation-api:1.3.2' + implementation libs.httpclient5 + implementation libs.annotation.api // other spring boot starter dependencies implementation(libs.mybatis.plus) { exclude(group: 'org.mybatis', module: 'mybatis-spring') } implementation libs.mybatis.spring + + // sentry dependencies + implementation(platform(libs.sentry.dependencies)) implementation libs.bundles.sentry implementation libs.bundles.apidoc @@ -66,8 +70,6 @@ dependencies { implementation libs.p6spy implementation libs.semver implementation libs.javax.ws - implementation libs.gson.fire - implementation libs.jackson.databind.nullable implementation libs.jsoup implementation libs.bundles.easyexcel implementation libs.bundles.hutool @@ -100,7 +102,6 @@ dependencies { testImplementation libs.spring.security.test testImplementation libs.mybatis.plus.test testImplementation libs.visible.assertions - testImplementation libs.okhttp3.mockwebserver testImplementation libs.reactor testImplementation libs.assertj testImplementation libs.awaitility diff --git a/backend-server/application/src/main/java/com/apitable/asset/vo/AssetUrlSignatureVo.java b/backend-server/application/src/main/java/com/apitable/asset/vo/AssetUrlSignatureVo.java index 676a5ae385..9fdf6a140f 100644 --- a/backend-server/application/src/main/java/com/apitable/asset/vo/AssetUrlSignatureVo.java +++ b/backend-server/application/src/main/java/com/apitable/asset/vo/AssetUrlSignatureVo.java @@ -14,9 +14,10 @@ @Schema(description = "Attachment resource url add signature") public class AssetUrlSignatureVo { @Schema(description = "File Access Path(possibly non-final value)", - example = "/space/2023/03/07/8195212453744848953f87c54dc0369b") + example = "space/2023/03/07/8195212453744848953f87c54dc0369b") private String resourceKey; @Schema(description = "Path after signature", - example = "https://s1-test.vika.ltd//space/2023/03/07/8195212453744848953f87c54dc0369b?sign=6bede194fb458c876676139f469b5576&t=64d4bb25") + example = "https://aitable.ai/space/2023/03/07/8195212453744848953f87c54dc0369b" + + "?sign=6bede194fb458c876676139f469b5576&t=64d4bb25") private String url; } diff --git a/backend-server/application/src/main/java/com/apitable/auth/controller/AuthController.java b/backend-server/application/src/main/java/com/apitable/auth/controller/AuthController.java index 54ab1355ca..b12efa0231 100644 --- a/backend-server/application/src/main/java/com/apitable/auth/controller/AuthController.java +++ b/backend-server/application/src/main/java/com/apitable/auth/controller/AuthController.java @@ -101,7 +101,7 @@ public ResponseData register(@RequestBody @Valid final RegisterRO data) { if (BooleanUtil.isFalse(skipRegisterValidate)) { return ResponseData.error("Validate failure"); } - Long userId = iAuthService.register(data.getUsername(), data.getCredential()); + Long userId = iAuthService.register(data.getUsername(), data.getCredential(), data.getLang()); SessionContext.setUserId(userId); return ResponseData.success(); } diff --git a/backend-server/application/src/main/java/com/apitable/auth/ro/RegisterRO.java b/backend-server/application/src/main/java/com/apitable/auth/ro/RegisterRO.java index 8df417ebf9..58b2141fd3 100644 --- a/backend-server/application/src/main/java/com/apitable/auth/ro/RegisterRO.java +++ b/backend-server/application/src/main/java/com/apitable/auth/ro/RegisterRO.java @@ -38,4 +38,8 @@ public class RegisterRO { @Schema(description = "Credential(password/verify code...)", example = "qwer1234 || 261527", requiredMode = RequiredMode.REQUIRED) private String credential; + + @Schema(description = "Language", + example = "en-US", requiredMode = RequiredMode.NOT_REQUIRED) + private String lang; } diff --git a/backend-server/application/src/main/java/com/apitable/auth/service/IAuthService.java b/backend-server/application/src/main/java/com/apitable/auth/service/IAuthService.java index 0a7930e8f4..375c49e538 100644 --- a/backend-server/application/src/main/java/com/apitable/auth/service/IAuthService.java +++ b/backend-server/application/src/main/java/com/apitable/auth/service/IAuthService.java @@ -35,6 +35,16 @@ public interface IAuthService { */ Long register(String username, String password); + /** + * Register. + * + * @param username username + * @param password password + * @param lang language code + * @return user id + */ + Long register(String username, String password, String lang); + /** * Password login, only log in existing users, no need to automatically register an account. * diff --git a/backend-server/application/src/main/java/com/apitable/auth/service/impl/AuthServiceImpl.java b/backend-server/application/src/main/java/com/apitable/auth/service/impl/AuthServiceImpl.java index aa3649bddd..1f9cc4760b 100644 --- a/backend-server/application/src/main/java/com/apitable/auth/service/impl/AuthServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/auth/service/impl/AuthServiceImpl.java @@ -49,6 +49,7 @@ import com.apitable.shared.captcha.ValidateCodeProcessorManage; import com.apitable.shared.captcha.ValidateCodeType; import com.apitable.shared.captcha.ValidateTarget; +import com.apitable.shared.component.LanguageManager; import com.apitable.shared.security.PasswordService; import com.apitable.user.entity.UserEntity; import com.apitable.user.service.IUserService; @@ -91,14 +92,22 @@ public class AuthServiceImpl implements IAuthService { @Resource private EntitlementServiceFacade entitlementServiceFacade; + @Resource + private LanguageManager languageManager; + @Override public Long register(final String username, final String password) { + return register(username, password, languageManager.getDefaultLanguageTag()); + } + + @Override + public Long register(final String username, final String password, String lang) { // Check email format and if exists ExceptionUtil.isTrue(Validator.isEmail(username), REGISTER_EMAIL_ERROR); boolean exist = iUserService.checkByEmail(username); ExceptionUtil.isFalse(exist, REGISTER_EMAIL_HAS_EXIST); // Register User - return this.registerUserUsingEmail(username, password, null); + return this.registerUserUsingEmail(username, password, null, lang); } @Override @@ -218,7 +227,7 @@ public UserLoginDTO loginUsingEmailCode(LoginRo loginRo) { inactiveMembers.stream().map(MemberDTO::getId).collect(Collectors.toList())); } else { // Email automatic registration users do not provide third-party scan code login binding - userId = registerUserUsingEmail(email, null, loginRo.getSpaceId()); + userId = registerUserUsingEmail(email, null, loginRo.getSpaceId(), languageManager.getDefaultLanguageTag()); result.setIsSignUp(true); } // delete verification code @@ -244,9 +253,9 @@ private Long registerUserUsingMobilePhone(String areaCode, String mobile, return user.getId(); } - private Long registerUserUsingEmail(final String email, final String password, String spaceId) { + private Long registerUserUsingEmail(final String email, final String password, String spaceId, String lang) { // Create a new user based on the mailbox and activate the corresponding member - UserEntity user = iUserService.createUserByEmail(email, password); + UserEntity user = iUserService.createUserByEmail(email, password, lang); // Query whether there is a space member corresponding to the mailbox, only new // registration will have this operation List inactiveMembers = iMemberService.getInactiveMemberDtoByEmail(email); diff --git a/backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceCreateRO.java b/backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceCreateRO.java deleted file mode 100644 index f6e0acdee1..0000000000 --- a/backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceCreateRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.automation.model; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import lombok.Data; - -/** - * AutomationServiceCreateRO. - */ -@Data -@Schema(description = "Automation Service Create RO") -public class AutomationServiceCreateRO { - - @Schema(description = "service id") - private String serviceId; - - @Schema(description = "service slug") - @NotBlank - private String slug; - - @Schema(description = "name") - @NotBlank - private String name; - - @Schema(description = "description") - private String description; - - @Schema(description = "input JSON format") - private String logo; - - @Schema(description = "output JSON format") - private String baseUrl; - - @Schema(description = "i18n package") - private String i18n; - -} diff --git a/backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceEditRO.java b/backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceEditRO.java deleted file mode 100644 index 1373a3057f..0000000000 --- a/backend-server/application/src/main/java/com/apitable/automation/model/AutomationServiceEditRO.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.automation.model; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * Automation Service Edit RO. - */ -@Data -@Schema(description = "Automation Service Edit RO") -public class AutomationServiceEditRO { - - @Schema(description = "name") - private String name; - - @Schema(description = "description") - private String description; - - @Schema(description = "input JSON format") - private String logo; - - @Schema(description = "output JSON format") - private String baseUrl; - - @Schema(description = "i18n package") - private String i18n; - -} diff --git a/backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeCreateRO.java b/backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeCreateRO.java deleted file mode 100644 index 721cf24d91..0000000000 --- a/backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeCreateRO.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.automation.model; - -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import lombok.Data; - -/** - * TriggerTypeCreateRO. - */ -@Data -@Schema(description = "TriggerTypeCreateRO") -public class TriggerTypeCreateRO { - - @Schema(description = "service id") - @NotBlank - private String serviceId; - - @Schema(description = "trigger type id") - private String triggerTypeId; - - @Schema(description = "name") - @NotBlank - private String name; - - @Schema(description = "description") - private String description; - - @Schema(description = "input JSON format") - private String inputJsonSchema; - - @Schema(description = "output JSON format") - private String outputJsonSchema; - - @Schema(description = "trigger prototype endpoint") - @NotBlank - private String endpoint; - - @Schema(description = "i18n package") - private String i18n; - -} diff --git a/backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeEditRO.java b/backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeEditRO.java deleted file mode 100644 index 299f7c53ae..0000000000 --- a/backend-server/application/src/main/java/com/apitable/automation/model/TriggerTypeEditRO.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.automation.model; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; - -/** - * TriggerTypeEditRO. - */ -@Data -@Schema(description = "TriggerTypeEditRO") -public class TriggerTypeEditRO { - - @Schema(description = "name") - private String name; - - @Schema(description = "description") - private String description; - - @Schema(description = "input JSON format") - private String inputJsonSchema; - - @Schema(description = "output JSON format") - private String outputJsonSchema; - - @Schema(description = "trigger prototype endpoint") - private String endpoint; - - @Schema(description = "i18n package") - private String i18n; - -} diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationService.java b/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationService.java deleted file mode 100644 index d138c7980e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationService.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.automation.service; - -import com.apitable.automation.model.AutomationServiceCreateRO; -import com.apitable.automation.model.AutomationServiceEditRO; - -/** - * IAutomationService. - */ -public interface IAutomationService { - - void checkServiceIfExist(String serviceId); - - String createService(Long userId, AutomationServiceCreateRO ro); - - void editService(Long userId, String serviceId, AutomationServiceEditRO ro); - - void deleteService(Long userId, String serviceId); -} diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationTriggerTypeService.java b/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationTriggerTypeService.java index 8b316789aa..8a7021f994 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationTriggerTypeService.java +++ b/backend-server/application/src/main/java/com/apitable/automation/service/IAutomationTriggerTypeService.java @@ -18,19 +18,10 @@ package com.apitable.automation.service; -import com.apitable.automation.model.TriggerTypeCreateRO; -import com.apitable.automation.model.TriggerTypeEditRO; - /** * IAutomationTriggerTypeService. */ public interface IAutomationTriggerTypeService { String getTriggerTypeByEndpoint(String endpoint); - - String create(Long userId, TriggerTypeCreateRO ro); - - void edit(Long userId, String triggerTypeId, TriggerTypeEditRO ro); - - void delete(Long userId, String triggerTypeId); } diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationActionServiceImpl.java b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationActionServiceImpl.java index 8dd236d47a..13624a9bcc 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationActionServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationActionServiceImpl.java @@ -33,13 +33,12 @@ import com.apitable.automation.model.UpdateActionRO; import com.apitable.automation.service.IAutomationActionService; import com.apitable.core.util.ExceptionUtil; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.api.AutomationDaoApiApi; -import com.apitable.databusclient.model.ApiResponseAutomationActionPO; -import com.apitable.databusclient.model.AutomationActionPO; -import com.apitable.databusclient.model.AutomationRobotActionRO; import com.apitable.shared.config.properties.LimitProperties; import com.apitable.shared.util.IdUtil; +import com.apitable.starter.databus.client.api.AutomationDaoApiApi; +import com.apitable.starter.databus.client.model.ApiResponseAutomationActionPO; +import com.apitable.starter.databus.client.model.AutomationActionPO; +import com.apitable.starter.databus.client.model.AutomationRobotActionRO; import com.baomidou.mybatisplus.core.toolkit.IdWorker; import jakarta.annotation.Resource; import java.math.BigInteger; @@ -49,6 +48,7 @@ import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import org.springframework.web.client.RestClientException; /** * automation action service impl. @@ -134,7 +134,7 @@ public List createByDatabus(Long userId, CreateActionRO data) { AUTOMATION_TRIGGER_LIMIT.getCode().equals(response.getCode()), AUTOMATION_TRIGGER_LIMIT); return formatVoFromDatabusResponse(response.getData()); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Robot create action: {}", data.getRobotId(), e); } return new ArrayList<>(); @@ -155,7 +155,7 @@ public List updateByDatabus(String actionId, Long userId, UpdateAction AUTOMATION_ROBOT_NOT_EXIST.getCode().equals(response.getCode()), AUTOMATION_ROBOT_NOT_EXIST); return formatVoFromDatabusResponse(response.getData()); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Robot update action: {}", data.getRobotId(), e); } return new ArrayList<>(); @@ -173,7 +173,7 @@ public void deleteByDatabus(String robotId, String actionId, Long userId) { ExceptionUtil.isFalse( AUTOMATION_ROBOT_NOT_EXIST.getCode().equals(response.getCode()), AUTOMATION_ROBOT_NOT_EXIST); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Delete action: {}", actionId, e); } } diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRobotServiceImpl.java b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRobotServiceImpl.java index 1994ea1fa8..16be08fe71 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRobotServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRobotServiceImpl.java @@ -46,19 +46,18 @@ import com.apitable.automation.service.IAutomationTriggerService; import com.apitable.automation.service.IAutomationTriggerTypeService; import com.apitable.core.exception.BusinessException; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.api.AutomationDaoApiApi; -import com.apitable.databusclient.model.AutomationActionIntroductionPO; -import com.apitable.databusclient.model.AutomationRobotCopyRO; -import com.apitable.databusclient.model.AutomationRobotIntroductionPO; -import com.apitable.databusclient.model.AutomationRobotIntroductionSO; -import com.apitable.databusclient.model.AutomationRobotSO; -import com.apitable.databusclient.model.AutomationRobotUpdateRO; -import com.apitable.databusclient.model.AutomationSO; -import com.apitable.databusclient.model.AutomationTriggerIntroductionPO; import com.apitable.internal.service.impl.InternalSpaceServiceImpl; import com.apitable.internal.vo.InternalSpaceAutomationRunMessageV0; import com.apitable.shared.util.IdUtil; +import com.apitable.starter.databus.client.api.AutomationDaoApiApi; +import com.apitable.starter.databus.client.model.AutomationActionIntroductionPO; +import com.apitable.starter.databus.client.model.AutomationRobotCopyRO; +import com.apitable.starter.databus.client.model.AutomationRobotIntroductionPO; +import com.apitable.starter.databus.client.model.AutomationRobotIntroductionSO; +import com.apitable.starter.databus.client.model.AutomationRobotSO; +import com.apitable.starter.databus.client.model.AutomationRobotUpdateRO; +import com.apitable.starter.databus.client.model.AutomationSO; +import com.apitable.starter.databus.client.model.AutomationTriggerIntroductionPO; import com.apitable.template.enums.TemplateException; import com.apitable.user.service.IUserService; import com.apitable.user.vo.UserSimpleVO; @@ -80,6 +79,7 @@ import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import org.springframework.web.client.RestClientException; /** * automation robot service impl. @@ -177,7 +177,7 @@ public void copyByDatabus(Long userId, List resourceIds, AutomationCopyO } try { automationDaoApiApi.daoCopyAutomationRobot(robots); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Copy automation error:{}", resourceIds, e); throw new BusinessException(NodeException.NODE_COPY_FOLDER_ERROR); } @@ -411,7 +411,7 @@ public boolean update(String robotId, Long updater, UpdateRobotRO data) { try { automationDaoApiApi.daoUpdateAutomationRobot(robotId, ro); return true; - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Update automation error", e); return false; } @@ -424,7 +424,7 @@ public void deleteRobot(String robotId, Long updater) { ro.setIsDeleted(true); try { automationDaoApiApi.daoUpdateAutomationRobot(robotId, ro); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Delete automation error", e); } } @@ -453,7 +453,7 @@ private AutomationRobotIntroductionSO getRobotsByResourceIdFromDatabus(String re return null; } return result; - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Get automation error", e); return null; } @@ -462,7 +462,7 @@ private AutomationRobotIntroductionSO getRobotsByResourceIdFromDatabus(String re private AutomationSO getRobotByRobotIdFromDatabus(String robotId) { try { return automationDaoApiApi.daoGetRobotByRobotId(robotId).getData(); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Get automation detail error", e); return null; } diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRunHistoryServiceImpl.java b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRunHistoryServiceImpl.java index 2f627d5d16..cbfaa38bac 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRunHistoryServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationRunHistoryServiceImpl.java @@ -25,9 +25,9 @@ import cn.hutool.json.JSONUtil; import com.apitable.automation.model.AutomationTaskSimpleVO; import com.apitable.automation.service.IAutomationRunHistoryService; -import com.apitable.databusclient.api.AutomationDaoApiApi; -import com.apitable.databusclient.model.AutomationRunHistoryPO; import com.apitable.shared.clock.spring.ClockManager; +import com.apitable.starter.databus.client.api.AutomationDaoApiApi; +import com.apitable.starter.databus.client.model.AutomationRunHistoryPO; import com.apitable.workspace.enums.IdRulePrefixEnum; import jakarta.annotation.Resource; import java.util.ArrayList; diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationServiceImpl.java b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationServiceImpl.java deleted file mode 100644 index 5ecc903c37..0000000000 --- a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationServiceImpl.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.automation.service.impl; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.apitable.automation.entity.AutomationServiceEntity; -import com.apitable.automation.mapper.AutomationServiceMapper; -import com.apitable.automation.model.AutomationServiceCreateRO; -import com.apitable.automation.model.AutomationServiceEditRO; -import com.apitable.automation.service.IAutomationService; -import com.apitable.base.enums.DatabaseException; -import com.apitable.core.exception.BusinessException; -import com.apitable.core.util.ExceptionUtil; -import com.apitable.shared.util.IdUtil; -import com.baomidou.mybatisplus.core.toolkit.IdWorker; -import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; -import jakarta.annotation.Resource; -import java.util.Optional; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -/** - * AutomationServiceImpl. - */ -@Slf4j -@Service -public class AutomationServiceImpl implements IAutomationService { - - @Resource - private AutomationServiceMapper serviceMapper; - - @Override - public void checkServiceIfExist(String serviceId) { - this.getIdByServiceId(serviceId); - } - - @Override - public String createService(Long userId, AutomationServiceCreateRO ro) { - this.checkServicePlugIfExist(ro.getSlug()); - String serviceId = StrUtil.isNotBlank(ro.getServiceId()) - ? ro.getServiceId() : IdUtil.createAutomationServiceId(); - AutomationServiceEntity entity = - BeanUtil.copyProperties(ro, AutomationServiceEntity.class); - entity.setId(IdWorker.getId()); - entity.setServiceId(serviceId); - entity.setCreatedBy(userId); - entity.setUpdatedBy(userId); - boolean flag = SqlHelper.retBool(serviceMapper.insert(entity)); - ExceptionUtil.isTrue(flag, DatabaseException.INSERT_ERROR); - return serviceId; - } - - @Override - public void editService(Long userId, String serviceId, AutomationServiceEditRO ro) { - Long id = this.getIdByServiceId(serviceId); - AutomationServiceEntity entity = - BeanUtil.copyProperties(ro, AutomationServiceEntity.class); - entity.setId(id); - entity.setUpdatedBy(userId); - boolean flag = SqlHelper.retBool(serviceMapper.updateById(entity)); - ExceptionUtil.isTrue(flag, DatabaseException.EDIT_ERROR); - } - - @Override - public void deleteService(Long userId, String serviceId) { - Long id = this.getIdByServiceId(serviceId); - boolean flag = SqlHelper.retBool(serviceMapper.deleteById(id)); - ExceptionUtil.isTrue(flag, DatabaseException.DELETE_ERROR); - } - - private Long getIdByServiceId(String serviceId) { - Long id = serviceMapper.selectIdByServiceId(serviceId); - return Optional.ofNullable(id) - .orElseThrow(() -> new BusinessException("Automation Service not exist.")); - } - - private void checkServicePlugIfExist(String slug) { - Long id = serviceMapper.selectIdBySlugIncludeDeleted(slug); - if (id != null) { - throw new BusinessException("Slug have been existed."); - } - } - -} diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerServiceImpl.java b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerServiceImpl.java index 6831c87e1c..8a2e138bc1 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerServiceImpl.java @@ -38,13 +38,12 @@ import com.apitable.automation.service.IAutomationTriggerService; import com.apitable.automation.service.IAutomationTriggerTypeService; import com.apitable.core.util.ExceptionUtil; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.api.AutomationDaoApiApi; -import com.apitable.databusclient.model.ApiResponseAutomationTriggerPO; -import com.apitable.databusclient.model.AutomationRobotTriggerRO; -import com.apitable.databusclient.model.AutomationTriggerPO; import com.apitable.shared.config.properties.LimitProperties; import com.apitable.shared.util.IdUtil; +import com.apitable.starter.databus.client.api.AutomationDaoApiApi; +import com.apitable.starter.databus.client.model.ApiResponseAutomationTriggerPO; +import com.apitable.starter.databus.client.model.AutomationRobotTriggerRO; +import com.apitable.starter.databus.client.model.AutomationTriggerPO; import com.baomidou.mybatisplus.core.toolkit.IdWorker; import jakarta.annotation.Resource; import java.math.BigInteger; @@ -55,6 +54,7 @@ import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import org.springframework.web.client.RestClientException; /** * automation trigger service impl. @@ -106,7 +106,7 @@ public List createByDatabus(Long userId, CreateTriggerRO data) { log.error("CreateTriggerEmpty:{}", data.getRobotId()); } return formatVoFromDatabusResponse(response.getData()); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Robot create trigger: {}", data.getRobotId(), e); } return new ArrayList<>(); @@ -128,7 +128,7 @@ public List updateByDatabus(String triggerId, Long userId, UpdateTrig AUTOMATION_ROBOT_NOT_EXIST.getCode().equals(response.getCode()), AUTOMATION_ROBOT_NOT_EXIST); return formatVoFromDatabusResponse(response.getData()); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Robot update trigger: {}", data.getRobotId(), e); } return new ArrayList<>(); @@ -146,7 +146,7 @@ public void deleteByDatabus(String robotId, String triggerId, Long userId) { ExceptionUtil.isFalse( AUTOMATION_ROBOT_NOT_EXIST.getCode().equals(response.getCode()), AUTOMATION_ROBOT_NOT_EXIST); - } catch (ApiException e) { + } catch (RestClientException e) { log.error("Delete trigger: {}", triggerId, e); } } diff --git a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerTypeServiceImpl.java b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerTypeServiceImpl.java index 576c4451dd..03e8c87163 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerTypeServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/automation/service/impl/AutomationTriggerTypeServiceImpl.java @@ -18,22 +18,9 @@ package com.apitable.automation.service.impl; -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.util.StrUtil; -import com.apitable.automation.entity.AutomationTriggerTypeEntity; import com.apitable.automation.mapper.AutomationTriggerTypeMapper; -import com.apitable.automation.model.TriggerTypeCreateRO; -import com.apitable.automation.model.TriggerTypeEditRO; -import com.apitable.automation.service.IAutomationService; import com.apitable.automation.service.IAutomationTriggerTypeService; -import com.apitable.base.enums.DatabaseException; -import com.apitable.core.exception.BusinessException; -import com.apitable.core.util.ExceptionUtil; -import com.apitable.shared.util.IdUtil; -import com.baomidou.mybatisplus.core.toolkit.IdWorker; -import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; import jakarta.annotation.Resource; -import java.util.Optional; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -44,9 +31,6 @@ @Service public class AutomationTriggerTypeServiceImpl implements IAutomationTriggerTypeService { - @Resource - private IAutomationService iAutomationService; - @Resource private AutomationTriggerTypeMapper triggerTypeMapper; @@ -54,44 +38,4 @@ public class AutomationTriggerTypeServiceImpl implements IAutomationTriggerTypeS public String getTriggerTypeByEndpoint(String endpoint) { return triggerTypeMapper.getTriggerTypeByEndpoint(endpoint); } - - @Override - public String create(Long userId, TriggerTypeCreateRO ro) { - iAutomationService.checkServiceIfExist(ro.getServiceId()); - String triggerTypeId = StrUtil.isNotBlank(ro.getTriggerTypeId()) - ? ro.getTriggerTypeId() : IdUtil.createAutomationTriggerTypeId(); - AutomationTriggerTypeEntity entity = - BeanUtil.copyProperties(ro, AutomationTriggerTypeEntity.class); - entity.setId(IdWorker.getId()); - entity.setTriggerTypeId(triggerTypeId); - entity.setCreatedBy(userId); - entity.setUpdatedBy(userId); - boolean flag = SqlHelper.retBool(triggerTypeMapper.insert(entity)); - ExceptionUtil.isTrue(flag, DatabaseException.INSERT_ERROR); - return triggerTypeId; - } - - @Override - public void edit(Long userId, String triggerTypeId, TriggerTypeEditRO ro) { - Long id = this.getIdByTriggerTypeId(triggerTypeId); - AutomationTriggerTypeEntity entity = - BeanUtil.copyProperties(ro, AutomationTriggerTypeEntity.class); - entity.setId(id); - entity.setUpdatedBy(userId); - boolean flag = SqlHelper.retBool(triggerTypeMapper.updateById(entity)); - ExceptionUtil.isTrue(flag, DatabaseException.EDIT_ERROR); - } - - @Override - public void delete(Long userId, String triggerTypeId) { - Long id = this.getIdByTriggerTypeId(triggerTypeId); - boolean flag = SqlHelper.retBool(triggerTypeMapper.deleteById(id)); - ExceptionUtil.isTrue(flag, DatabaseException.DELETE_ERROR); - } - - private Long getIdByTriggerTypeId(String triggerTypeId) { - Long id = triggerTypeMapper.selectIdByTriggerTypeId(triggerTypeId); - return Optional.ofNullable(id) - .orElseThrow(() -> new BusinessException("Trigger Type not exist.")); - } } diff --git a/backend-server/application/src/main/java/com/apitable/base/service/impl/RestTemplateServiceImpl.java b/backend-server/application/src/main/java/com/apitable/base/service/impl/RestTemplateServiceImpl.java index 78fad6455d..e5a187188b 100644 --- a/backend-server/application/src/main/java/com/apitable/base/service/impl/RestTemplateServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/base/service/impl/RestTemplateServiceImpl.java @@ -30,10 +30,9 @@ import java.util.Collections; import java.util.List; import lombok.extern.slf4j.Slf4j; -import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.stereotype.Service; -import org.springframework.web.client.RestTemplate; +import org.springframework.web.client.RestClient; /** * RestTemplate service implementation class. @@ -43,7 +42,7 @@ public class RestTemplateServiceImpl implements RestTemplateService { @Resource - private RestTemplate restTemplate; + private RestClient restClient; @Resource private SocketProperties socketProperties; @@ -54,8 +53,12 @@ public void disableNodeShareNotify(List message) { HttpHeaders headers = new HttpHeaders(); headers.put("token", Collections.singletonList(socketProperties.getToken())); String url = socketProperties.getDomain() + socketProperties.getDisableNodeShareNotify(); - HttpEntity request = new HttpEntity<>(message, headers); - String result = restTemplate.postForObject(url, request, String.class); + String result = restClient.post() + .uri(url) + .headers(header -> header.addAll(headers)) + .body(message) + .retrieve() + .body(String.class); Integer code = JSONUtil.parseObj(result).getInt("code"); if (!code.equals(DEFAULT_SUCCESS_CODE)) { throw new BusinessException("Failed to close the node share notification call!Msg: " @@ -70,8 +73,12 @@ public void fieldPermissionChangeNotify(FieldPermissionChangeNotifyRo message) { headers.put("token", Collections.singletonList(socketProperties.getToken())); String url = socketProperties.getDomain() + socketProperties.getFieldPermissionChangeNotify(); - HttpEntity request = new HttpEntity<>(message, headers); - String result = restTemplate.postForObject(url, request, String.class); + String result = restClient.post() + .uri(url) + .headers(header -> header.addAll(headers)) + .body(message) + .retrieve() + .body(String.class); Integer code = JSONUtil.parseObj(result).getInt("code"); if (!code.equals(DEFAULT_SUCCESS_CODE)) { throw new BusinessException("Field permission change notification call failed!Msg: " diff --git a/backend-server/application/src/main/java/com/apitable/client/task/ClientTasks.java b/backend-server/application/src/main/java/com/apitable/client/task/ClientTasks.java index 0e51c2a128..ba4624edaf 100644 --- a/backend-server/application/src/main/java/com/apitable/client/task/ClientTasks.java +++ b/backend-server/application/src/main/java/com/apitable/client/task/ClientTasks.java @@ -30,10 +30,9 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Configuration; -import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.web.client.RestTemplate; +import org.springframework.web.client.RestClient; /** * Client task class. @@ -44,7 +43,7 @@ public class ClientTasks { @Resource - private RestTemplate restTemplate; + private RestClient restClient; @Resource private ConstProperties constProperties; @@ -68,8 +67,12 @@ public void heartbeat() { message.put("serverDomain", constProperties.getServerDomain()); } message.put("locale", constProperties.getLanguageTag()); - HttpEntity request = new HttpEntity<>(message, headers); - restTemplate.postForObject(heartbeatUrl, request, String.class); + restClient.post() + .uri(heartbeatUrl) + .headers(header -> header.addAll(headers)) + .body(message) + .retrieve() + .body(String.class); } } diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ApiCallback.java b/backend-server/application/src/main/java/com/apitable/databusclient/ApiCallback.java deleted file mode 100644 index ee74acac58..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ApiCallback.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import java.io.IOException; - -import java.util.Map; -import java.util.List; - -/** - * Callback for asynchronous API call. - * - * @param The return type - */ -public interface ApiCallback { - /** - * This is called when the API call fails. - * - * @param e The exception causing the failure - * @param statusCode Status code of the response if available, otherwise it would be 0 - * @param responseHeaders Headers of the response if available, otherwise it would be null - */ - void onFailure(ApiException e, int statusCode, Map> responseHeaders); - - /** - * This is called when the API call succeeded. - * - * @param result The result deserialized from response - * @param statusCode Status code of the response - * @param responseHeaders Headers of the response - */ - void onSuccess(T result, int statusCode, Map> responseHeaders); - - /** - * This is called when the API upload processing. - * - * @param bytesWritten bytes Written - * @param contentLength content length of request body - * @param done write end - */ - void onUploadProgress(long bytesWritten, long contentLength, boolean done); - - /** - * This is called when the API download processing. - * - * @param bytesRead bytes Read - * @param contentLength content length of the response - * @param done Read end - */ - void onDownloadProgress(long bytesRead, long contentLength, boolean done); -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ApiClient.java b/backend-server/application/src/main/java/com/apitable/databusclient/ApiClient.java deleted file mode 100644 index 11c093b4b0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ApiClient.java +++ /dev/null @@ -1,1550 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import okhttp3.*; -import okhttp3.internal.http.HttpMethod; -import okhttp3.internal.tls.OkHostnameVerifier; -import okhttp3.logging.HttpLoggingInterceptor; -import okhttp3.logging.HttpLoggingInterceptor.Level; -import okio.Buffer; -import okio.BufferedSink; -import okio.Okio; - -import javax.net.ssl.*; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.UnsupportedEncodingException; -import java.lang.reflect.Type; -import java.net.URI; -import java.net.URLConnection; -import java.net.URLEncoder; -import java.nio.file.Files; -import java.nio.file.Paths; -import java.security.GeneralSecurityException; -import java.security.KeyStore; -import java.security.SecureRandom; -import java.security.cert.Certificate; -import java.security.cert.CertificateException; -import java.security.cert.CertificateFactory; -import java.security.cert.X509Certificate; -import java.text.DateFormat; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.*; -import java.util.Map.Entry; -import java.util.concurrent.TimeUnit; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import com.apitable.databusclient.auth.Authentication; -import com.apitable.databusclient.auth.HttpBasicAuth; -import com.apitable.databusclient.auth.HttpBearerAuth; -import com.apitable.databusclient.auth.ApiKeyAuth; - -/** - *

ApiClient class.

- */ -public class ApiClient { - - private String basePath = "http://localhost"; - protected List servers = new ArrayList(Arrays.asList( - new ServerConfiguration( - "", - "No description provided", - new HashMap() - ) - )); - protected Integer serverIndex = 0; - protected Map serverVariables = null; - private boolean debugging = false; - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String tempFolderPath = null; - - private Map authentications; - - private DateFormat dateFormat; - private DateFormat datetimeFormat; - private boolean lenientDatetimeFormat; - private int dateLength; - - private InputStream sslCaCert; - private boolean verifyingSsl; - private KeyManager[] keyManagers; - - private OkHttpClient httpClient; - private JSON json; - - private HttpLoggingInterceptor loggingInterceptor; - - /** - * Basic constructor for ApiClient - */ - public ApiClient() { - init(); - initHttpClient(); - - // Setup authentications (key: authentication name, value: authentication). - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Basic constructor with custom OkHttpClient - * - * @param client a {@link okhttp3.OkHttpClient} object - */ - public ApiClient(OkHttpClient client) { - init(); - - httpClient = client; - - // Setup authentications (key: authentication name, value: authentication). - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - private void initHttpClient() { - initHttpClient(Collections.emptyList()); - } - - private void initHttpClient(List interceptors) { - OkHttpClient.Builder builder = new OkHttpClient.Builder(); - builder.addNetworkInterceptor(getProgressInterceptor()); - for (Interceptor interceptor: interceptors) { - builder.addInterceptor(interceptor); - } - - httpClient = builder.build(); - } - - private void init() { - verifyingSsl = true; - - json = new JSON(); - - // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.2.0/java"); - - authentications = new HashMap(); - } - - /** - * Get base path - * - * @return Base path - */ - public String getBasePath() { - return basePath; - } - - /** - * Set base path - * - * @param basePath Base path of the URL (e.g http://localhost - * @return An instance of OkHttpClient - */ - public ApiClient setBasePath(String basePath) { - this.basePath = basePath; - this.serverIndex = null; - return this; - } - - public List getServers() { - return servers; - } - - public ApiClient setServers(List servers) { - this.servers = servers; - return this; - } - - public Integer getServerIndex() { - return serverIndex; - } - - public ApiClient setServerIndex(Integer serverIndex) { - this.serverIndex = serverIndex; - return this; - } - - public Map getServerVariables() { - return serverVariables; - } - - public ApiClient setServerVariables(Map serverVariables) { - this.serverVariables = serverVariables; - return this; - } - - /** - * Get HTTP client - * - * @return An instance of OkHttpClient - */ - public OkHttpClient getHttpClient() { - return httpClient; - } - - /** - * Set HTTP client, which must never be null. - * - * @param newHttpClient An instance of OkHttpClient - * @return Api Client - * @throws java.lang.NullPointerException when newHttpClient is null - */ - public ApiClient setHttpClient(OkHttpClient newHttpClient) { - this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); - return this; - } - - /** - * Get JSON - * - * @return JSON object - */ - public JSON getJSON() { - return json; - } - - /** - * Set JSON - * - * @param json JSON object - * @return Api client - */ - public ApiClient setJSON(JSON json) { - this.json = json; - return this; - } - - /** - * True if isVerifyingSsl flag is on - * - * @return True if isVerifySsl flag is on - */ - public boolean isVerifyingSsl() { - return verifyingSsl; - } - - /** - * Configure whether to verify certificate and hostname when making https requests. - * Default to true. - * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. - * - * @param verifyingSsl True to verify TLS/SSL connection - * @return ApiClient - */ - public ApiClient setVerifyingSsl(boolean verifyingSsl) { - this.verifyingSsl = verifyingSsl; - applySslSettings(); - return this; - } - - /** - * Get SSL CA cert. - * - * @return Input stream to the SSL CA cert - */ - public InputStream getSslCaCert() { - return sslCaCert; - } - - /** - * Configure the CA certificate to be trusted when making https requests. - * Use null to reset to default. - * - * @param sslCaCert input stream for SSL CA cert - * @return ApiClient - */ - public ApiClient setSslCaCert(InputStream sslCaCert) { - this.sslCaCert = sslCaCert; - applySslSettings(); - return this; - } - - /** - *

Getter for the field keyManagers.

- * - * @return an array of {@link javax.net.ssl.KeyManager} objects - */ - public KeyManager[] getKeyManagers() { - return keyManagers; - } - - /** - * Configure client keys to use for authorization in an SSL session. - * Use null to reset to default. - * - * @param managers The KeyManagers to use - * @return ApiClient - */ - public ApiClient setKeyManagers(KeyManager[] managers) { - this.keyManagers = managers; - applySslSettings(); - return this; - } - - /** - *

Getter for the field dateFormat.

- * - * @return a {@link java.text.DateFormat} object - */ - public DateFormat getDateFormat() { - return dateFormat; - } - - /** - *

Setter for the field dateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.apitable.databusclient.ApiClient} object - */ - public ApiClient setDateFormat(DateFormat dateFormat) { - JSON.setDateFormat(dateFormat); - return this; - } - - /** - *

Set SqlDateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.apitable.databusclient.ApiClient} object - */ - public ApiClient setSqlDateFormat(DateFormat dateFormat) { - JSON.setSqlDateFormat(dateFormat); - return this; - } - - /** - *

Set OffsetDateTimeFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.apitable.databusclient.ApiClient} object - */ - public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - JSON.setOffsetDateTimeFormat(dateFormat); - return this; - } - - /** - *

Set LocalDateFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.apitable.databusclient.ApiClient} object - */ - public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { - JSON.setLocalDateFormat(dateFormat); - return this; - } - - /** - *

Set LenientOnJson.

- * - * @param lenientOnJson a boolean - * @return a {@link com.apitable.databusclient.ApiClient} object - */ - public ApiClient setLenientOnJson(boolean lenientOnJson) { - JSON.setLenientOnJson(lenientOnJson); - return this; - } - - /** - * Get authentications (key: authentication name, value: authentication). - * - * @return Map of authentication objects - */ - public Map getAuthentications() { - return authentications; - } - - /** - * Get authentication for the given name. - * - * @param authName The authentication name - * @return The authentication, null if not found - */ - public Authentication getAuthentication(String authName) { - return authentications.get(authName); - } - - - /** - * Helper method to set username for the first HTTP basic authentication. - * - * @param username Username - */ - public void setUsername(String username) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setUsername(username); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set password for the first HTTP basic authentication. - * - * @param password Password - */ - public void setPassword(String password) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setPassword(password); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set API key value for the first API key authentication. - * - * @param apiKey API key - */ - public void setApiKey(String apiKey) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKey(apiKey); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set API key prefix for the first API key authentication. - * - * @param apiKeyPrefix API key prefix - */ - public void setApiKeyPrefix(String apiKeyPrefix) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set access token for the first OAuth2 authentication. - * - * @param accessToken Access token - */ - public void setAccessToken(String accessToken) { - throw new RuntimeException("No OAuth2 authentication configured!"); - } - - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { - throw new RuntimeException("No AWS4 authentication configured!"); - } - - /** - * Set the User-Agent header's value (by adding to the default header map). - * - * @param userAgent HTTP request's user agent - * @return ApiClient - */ - public ApiClient setUserAgent(String userAgent) { - addDefaultHeader("User-Agent", userAgent); - return this; - } - - /** - * Add a default header. - * - * @param key The header's key - * @param value The header's value - * @return ApiClient - */ - public ApiClient addDefaultHeader(String key, String value) { - defaultHeaderMap.put(key, value); - return this; - } - - /** - * Add a default cookie. - * - * @param key The cookie's key - * @param value The cookie's value - * @return ApiClient - */ - public ApiClient addDefaultCookie(String key, String value) { - defaultCookieMap.put(key, value); - return this; - } - - /** - * Check that whether debugging is enabled for this API client. - * - * @return True if debugging is enabled, false otherwise. - */ - public boolean isDebugging() { - return debugging; - } - - /** - * Enable/disable debugging for this API client. - * - * @param debugging To enable (true) or disable (false) debugging - * @return ApiClient - */ - public ApiClient setDebugging(boolean debugging) { - if (debugging != this.debugging) { - if (debugging) { - loggingInterceptor = new HttpLoggingInterceptor(); - loggingInterceptor.setLevel(Level.BODY); - httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); - } else { - final OkHttpClient.Builder builder = httpClient.newBuilder(); - builder.interceptors().remove(loggingInterceptor); - httpClient = builder.build(); - loggingInterceptor = null; - } - } - this.debugging = debugging; - return this; - } - - /** - * The path of temporary folder used to store downloaded files from endpoints - * with file response. The default value is null, i.e. using - * the system's default temporary folder. - * - * @see createTempFile - * @return Temporary folder path - */ - public String getTempFolderPath() { - return tempFolderPath; - } - - /** - * Set the temporary folder path (for downloading files) - * - * @param tempFolderPath Temporary folder path - * @return ApiClient - */ - public ApiClient setTempFolderPath(String tempFolderPath) { - this.tempFolderPath = tempFolderPath; - return this; - } - - /** - * Get connection timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getConnectTimeout() { - return httpClient.connectTimeoutMillis(); - } - - /** - * Sets the connect timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param connectionTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get read timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getReadTimeout() { - return httpClient.readTimeoutMillis(); - } - - /** - * Sets the read timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param readTimeout read timeout in milliseconds - * @return Api client - */ - public ApiClient setReadTimeout(int readTimeout) { - httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get write timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getWriteTimeout() { - return httpClient.writeTimeoutMillis(); - } - - /** - * Sets the write timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param writeTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setWriteTimeout(int writeTimeout) { - httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - - /** - * Format the given parameter object into string. - * - * @param param Parameter - * @return String representation of the parameter - */ - public String parameterToString(Object param) { - if (param == null) { - return ""; - } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { - //Serialize to json string and remove the " enclosing characters - String jsonStr = JSON.serialize(param); - return jsonStr.substring(1, jsonStr.length() - 1); - } else if (param instanceof Collection) { - StringBuilder b = new StringBuilder(); - for (Object o : (Collection) param) { - if (b.length() > 0) { - b.append(","); - } - b.append(o); - } - return b.toString(); - } else { - return String.valueOf(param); - } - } - - /** - * Formats the specified query parameter to a list containing a single {@code Pair} object. - * - * Note that {@code value} must not be a collection. - * - * @param name The name of the parameter. - * @param value The value of the parameter. - * @return A list containing a single {@code Pair} object. - */ - public List parameterToPair(String name, Object value) { - List params = new ArrayList(); - - // preconditions - if (name == null || name.isEmpty() || value == null || value instanceof Collection) { - return params; - } - - params.add(new Pair(name, parameterToString(value))); - return params; - } - - /** - * Formats the specified collection query parameters to a list of {@code Pair} objects. - * - * Note that the values of each of the returned Pair objects are percent-encoded. - * - * @param collectionFormat The collection format of the parameter. - * @param name The name of the parameter. - * @param value The value of the parameter. - * @return A list of {@code Pair} objects. - */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { - List params = new ArrayList(); - - // preconditions - if (name == null || name.isEmpty() || value == null || value.isEmpty()) { - return params; - } - - // create the params based on the collection format - if ("multi".equals(collectionFormat)) { - for (Object item : value) { - params.add(new Pair(name, escapeString(parameterToString(item)))); - } - return params; - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - // escape all delimiters except commas, which are URI reserved - // characters - if ("ssv".equals(collectionFormat)) { - delimiter = escapeString(" "); - } else if ("tsv".equals(collectionFormat)) { - delimiter = escapeString("\t"); - } else if ("pipes".equals(collectionFormat)) { - delimiter = escapeString("|"); - } - - StringBuilder sb = new StringBuilder(); - for (Object item : value) { - sb.append(delimiter); - sb.append(escapeString(parameterToString(item))); - } - - params.add(new Pair(name, sb.substring(delimiter.length()))); - - return params; - } - - /** - * Formats the specified collection path parameter to a string value. - * - * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. - * @return String representation of the parameter - */ - public String collectionPathParameterToString(String collectionFormat, Collection value) { - // create the value based on the collection format - if ("multi".equals(collectionFormat)) { - // not valid for path params - return parameterToString(value); - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - if ("ssv".equals(collectionFormat)) { - delimiter = " "; - } else if ("tsv".equals(collectionFormat)) { - delimiter = "\t"; - } else if ("pipes".equals(collectionFormat)) { - delimiter = "|"; - } - - StringBuilder sb = new StringBuilder() ; - for (Object item : value) { - sb.append(delimiter); - sb.append(parameterToString(item)); - } - - return sb.substring(delimiter.length()); - } - - /** - * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif - * - * @param filename The filename to be sanitized - * @return The sanitized filename - */ - public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * "* / *" is also default to JSON - * @param mime MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public boolean isJsonMime(String mime) { - String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); - } - - /** - * Select the Accept header's value from the given accepts array: - * if JSON exists in the given array, use it; - * otherwise use all of them (joining into a string) - * - * @param accepts The accepts array to select from - * @return The Accept header to use. If the given array is empty, - * null will be returned (not to set the Accept header explicitly). - */ - public String selectHeaderAccept(String[] accepts) { - if (accepts.length == 0) { - return null; - } - for (String accept : accepts) { - if (isJsonMime(accept)) { - return accept; - } - } - return StringUtil.join(accepts, ","); - } - - /** - * Select the Content-Type header's value from the given array: - * if JSON exists in the given array, use it; - * otherwise use the first one of the array. - * - * @param contentTypes The Content-Type array to select from - * @return The Content-Type header to use. If the given array is empty, - * returns null. If it matches "any", JSON will be used. - */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return null; - } - - if (contentTypes[0].equals("*/*")) { - return "application/json"; - } - - for (String contentType : contentTypes) { - if (isJsonMime(contentType)) { - return contentType; - } - } - - return contentTypes[0]; - } - - /** - * Escape the given string to be used as URL query value. - * - * @param str String to be escaped - * @return Escaped string - */ - public String escapeString(String str) { - try { - return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); - } catch (UnsupportedEncodingException e) { - return str; - } - } - - /** - * Deserialize response body to Java object, according to the return type and - * the Content-Type response header. - * - * @param Type - * @param response HTTP response - * @param returnType The type of the Java object - * @return The deserialized Java object - * @throws com.apitable.databusclient.ApiException If fail to deserialize response body, i.e. cannot read response body - * or the Content-Type of the response is not supported. - */ - @SuppressWarnings("unchecked") - public T deserialize(Response response, Type returnType) throws ApiException { - if (response == null || returnType == null) { - return null; - } - - if ("byte[]".equals(returnType.toString())) { - // Handle binary response (byte array). - try { - return (T) response.body().bytes(); - } catch (IOException e) { - throw new ApiException(e); - } - } else if (returnType.equals(File.class)) { - // Handle file downloading. - return (T) downloadFileFromResponse(response); - } - - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { - return null; - } - - String contentType = response.headers().get("Content-Type"); - if (contentType == null) { - // ensuring a default content type - contentType = "application/json"; - } - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody, returnType); - } else if (returnType.equals(String.class)) { - // Expecting string, return the raw response body. - return (T) respBody; - } else { - throw new ApiException( - "Content type \"" + contentType + "\" is not supported for type: " + returnType, - response.code(), - response.headers().toMultimap(), - respBody); - } - } - - /** - * Serialize the given Java object into request body according to the object's - * class and the request Content-Type. - * - * @param obj The Java object - * @param contentType The request Content-Type - * @return The serialized request body - * @throws com.apitable.databusclient.ApiException If fail to serialize the given object - */ - public RequestBody serialize(Object obj, String contentType) throws ApiException { - if (obj instanceof byte[]) { - // Binary (byte array) body parameter support. - return RequestBody.create((byte[]) obj, MediaType.parse(contentType)); - } else if (obj instanceof File) { - // File body parameter support. - return RequestBody.create((File) obj, MediaType.parse(contentType)); - } else if ("text/plain".equals(contentType) && obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else if (isJsonMime(contentType)) { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - return RequestBody.create(content, MediaType.parse(contentType)); - } else if (obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else { - throw new ApiException("Content type \"" + contentType + "\" is not supported"); - } - } - - /** - * Download file from the given response. - * - * @param response An instance of the Response object - * @throws com.apitable.databusclient.ApiException If fail to read file content from response and write to disk - * @return Downloaded file - */ - public File downloadFileFromResponse(Response response) throws ApiException { - try { - File file = prepareDownloadFile(response); - BufferedSink sink = Okio.buffer(Okio.sink(file)); - sink.writeAll(response.body().source()); - sink.close(); - return file; - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * Prepare file for download - * - * @param response An instance of the Response object - * @return Prepared file for the download - * @throws java.io.IOException If fail to prepare file for download - */ - public File prepareDownloadFile(Response response) throws IOException { - String filename = null; - String contentDisposition = response.header("Content-Disposition"); - if (contentDisposition != null && !"".equals(contentDisposition)) { - // Get filename from the Content-Disposition header. - Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); - Matcher matcher = pattern.matcher(contentDisposition); - if (matcher.find()) { - filename = sanitizeFilename(matcher.group(1)); - } - } - - String prefix = null; - String suffix = null; - if (filename == null) { - prefix = "download-"; - suffix = ""; - } else { - int pos = filename.lastIndexOf("."); - if (pos == -1) { - prefix = filename + "-"; - } else { - prefix = filename.substring(0, pos) + "-"; - suffix = filename.substring(pos); - } - // Files.createTempFile requires the prefix to be at least three characters long - if (prefix.length() < 3) - prefix = "download-"; - } - - if (tempFolderPath == null) - return Files.createTempFile(prefix, suffix).toFile(); - else - return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); - } - - /** - * {@link #execute(Call, Type)} - * - * @param Type - * @param call An instance of the Call object - * @return ApiResponse<T> - * @throws com.apitable.databusclient.ApiException If fail to execute the call - */ - public ApiResponse execute(Call call) throws ApiException { - return execute(call, null); - } - - /** - * Execute HTTP call and deserialize the HTTP response body into the given return type. - * - * @param returnType The return type used to deserialize HTTP response body - * @param The return type corresponding to (same with) returnType - * @param call Call - * @return ApiResponse object containing response status, headers and - * data, which is a Java object deserialized from response body and would be null - * when returnType is null. - * @throws com.apitable.databusclient.ApiException If fail to execute the call - */ - public ApiResponse execute(Call call, Type returnType) throws ApiException { - try { - Response response = call.execute(); - T data = handleResponse(response, returnType); - return new ApiResponse(response.code(), response.headers().toMultimap(), data); - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * {@link #executeAsync(Call, Type, ApiCallback)} - * - * @param Type - * @param call An instance of the Call object - * @param callback ApiCallback<T> - */ - public void executeAsync(Call call, ApiCallback callback) { - executeAsync(call, null, callback); - } - - /** - * Execute HTTP call asynchronously. - * - * @param Type - * @param call The callback to be executed when the API call finishes - * @param returnType Return type - * @param callback ApiCallback - * @see #execute(Call, Type) - */ - @SuppressWarnings("unchecked") - public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { - call.enqueue(new Callback() { - @Override - public void onFailure(Call call, IOException e) { - callback.onFailure(new ApiException(e), 0, null); - } - - @Override - public void onResponse(Call call, Response response) throws IOException { - T result; - try { - result = (T) handleResponse(response, returnType); - } catch (ApiException e) { - callback.onFailure(e, response.code(), response.headers().toMultimap()); - return; - } catch (Exception e) { - callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); - return; - } - callback.onSuccess(result, response.code(), response.headers().toMultimap()); - } - }); - } - - /** - * Handle the given response, return the deserialized object when the response is successful. - * - * @param Type - * @param response Response - * @param returnType Return type - * @return Type - * @throws com.apitable.databusclient.ApiException If the response has an unsuccessful status code or - * fail to deserialize the response body - */ - public T handleResponse(Response response, Type returnType) throws ApiException { - if (response.isSuccessful()) { - if (returnType == null || response.code() == 204) { - // returning null if the returnType is not defined, - // or the status code is 204 (No Content) - if (response.body() != null) { - try { - response.body().close(); - } catch (Exception e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - return null; - } else { - return deserialize(response, returnType); - } - } else { - String respBody = null; - if (response.body() != null) { - try { - respBody = response.body().string(); - } catch (IOException e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); - } - } - - /** - * Build HTTP call with the given options. - * - * @param baseUrl The base URL - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP call - * @throws com.apitable.databusclient.ApiException If fail to serialize the request body object - */ - public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); - - return httpClient.newCall(request); - } - - /** - * Build an HTTP request with the given options. - * - * @param baseUrl The base URL - * @param path The sub-path of the HTTP URL - * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @param body The request body object - * @param headerParams The header parameters - * @param cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP request - * @throws com.apitable.databusclient.ApiException If fail to serialize the request body object - */ - public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); - - // prepare HTTP request body - RequestBody reqBody; - String contentType = headerParams.get("Content-Type"); - String contentTypePure = contentType; - if (contentTypePure != null && contentTypePure.contains(";")) { - contentTypePure = contentType.substring(0, contentType.indexOf(";")); - } - if (!HttpMethod.permitsRequestBody(method)) { - reqBody = null; - } else if ("application/x-www-form-urlencoded".equals(contentTypePure)) { - reqBody = buildRequestBodyFormEncoding(formParams); - } else if ("multipart/form-data".equals(contentTypePure)) { - reqBody = buildRequestBodyMultipart(formParams); - } else if (body == null) { - if ("DELETE".equals(method)) { - // allow calling DELETE without sending a request body - reqBody = null; - } else { - // use an empty request body (for POST, PUT and PATCH) - reqBody = RequestBody.create("", contentType == null ? null : MediaType.parse(contentType)); - } - } else { - reqBody = serialize(body, contentType); - } - - // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - - final Request.Builder reqBuilder = new Request.Builder().url(url); - processHeaderParams(headerParams, reqBuilder); - processCookieParams(cookieParams, reqBuilder); - - // Associate callback with request (if not null) so interceptor can - // access it when creating ProgressResponseBody - reqBuilder.tag(callback); - - Request request = null; - - if (callback != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); - request = reqBuilder.method(method, progressRequestBody).build(); - } else { - request = reqBuilder.method(method, reqBody).build(); - } - - return request; - } - - /** - * Build full URL by concatenating base path, the given sub path and query parameters. - * - * @param baseUrl The base URL - * @param path The sub path - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @return The full URL - */ - public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { - final StringBuilder url = new StringBuilder(); - if (baseUrl != null) { - url.append(baseUrl).append(path); - } else { - String baseURL; - if (serverIndex != null) { - if (serverIndex < 0 || serverIndex >= servers.size()) { - throw new ArrayIndexOutOfBoundsException(String.format( - "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() - )); - } - baseURL = servers.get(serverIndex).URL(serverVariables); - } else { - baseURL = basePath; - } - url.append(baseURL).append(path); - } - - if (queryParams != null && !queryParams.isEmpty()) { - // support (constant) query string in `path`, e.g. "/posts?draft=1" - String prefix = path.contains("?") ? "&" : "?"; - for (Pair param : queryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - url.append(escapeString(param.getName())).append("=").append(escapeString(value)); - } - } - } - - if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { - String prefix = url.toString().contains("?") ? "&" : "?"; - for (Pair param : collectionQueryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - // collection query parameter value already escaped as part of parameterToPairs - url.append(escapeString(param.getName())).append("=").append(value); - } - } - } - - return url.toString(); - } - - /** - * Set header parameters to the request builder, including default headers. - * - * @param headerParams Header parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { - for (Entry param : headerParams.entrySet()) { - reqBuilder.header(param.getKey(), parameterToString(param.getValue())); - } - for (Entry header : defaultHeaderMap.entrySet()) { - if (!headerParams.containsKey(header.getKey())) { - reqBuilder.header(header.getKey(), parameterToString(header.getValue())); - } - } - } - - /** - * Set cookie parameters to the request builder, including default cookies. - * - * @param cookieParams Cookie parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { - for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); - } - for (Entry param : defaultCookieMap.entrySet()) { - if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); - } - } - } - - /** - * Update query and header parameters based on authentication settings. - * - * @param authNames The authentications to apply - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws com.apitable.databusclient.ApiException If fails to update the parameters - */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) throws ApiException { - for (String authName : authNames) { - Authentication auth = authentications.get(authName); - if (auth == null) { - throw new RuntimeException("Authentication undefined: " + authName); - } - auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); - } - } - - /** - * Build a form-encoding request body with the given form parameters. - * - * @param formParams Form parameters in the form of Map - * @return RequestBody - */ - public RequestBody buildRequestBodyFormEncoding(Map formParams) { - okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); - for (Entry param : formParams.entrySet()) { - formBuilder.add(param.getKey(), parameterToString(param.getValue())); - } - return formBuilder.build(); - } - - /** - * Build a multipart (file uploading) request body with the given form parameters, - * which could contain text fields and file fields. - * - * @param formParams Form parameters in the form of Map - * @return RequestBody - */ - public RequestBody buildRequestBodyMultipart(Map formParams) { - MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - for (Entry param : formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); - } else if (param.getValue() instanceof List) { - List list = (List) param.getValue(); - for (Object item: list) { - if (item instanceof File) { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); - } - } - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); - } - } - return mpBuilder.build(); - } - - /** - * Guess Content-Type header from the given file (defaults to "application/octet-stream"). - * - * @param file The given file - * @return The guessed Content-Type - */ - public String guessContentTypeFromFile(File file) { - String contentType = URLConnection.guessContentTypeFromName(file.getName()); - if (contentType == null) { - return "application/octet-stream"; - } else { - return contentType; - } - } - - /** - * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param file The file to add to the Header - */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); - } - - /** - * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param obj The complex object to add to the Header - */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { - RequestBody requestBody; - if (obj instanceof String) { - requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); - } else { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - requestBody = RequestBody.create(content, MediaType.parse("application/json")); - } - - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); - mpBuilder.addPart(partHeaders, requestBody); - } - - /** - * Get network interceptor to add it to the httpClient to track download progress for - * async requests. - */ - private Interceptor getProgressInterceptor() { - return new Interceptor() { - @Override - public Response intercept(Interceptor.Chain chain) throws IOException { - final Request request = chain.request(); - final Response originalResponse = chain.proceed(request); - if (request.tag() instanceof ApiCallback) { - final ApiCallback callback = (ApiCallback) request.tag(); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)) - .build(); - } - return originalResponse; - } - }; - } - - /** - * Apply SSL related settings to httpClient according to the current values of - * verifyingSsl and sslCaCert. - */ - private void applySslSettings() { - try { - TrustManager[] trustManagers; - HostnameVerifier hostnameVerifier; - if (!verifyingSsl) { - trustManagers = new TrustManager[]{ - new X509TrustManager() { - @Override - public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public java.security.cert.X509Certificate[] getAcceptedIssuers() { - return new java.security.cert.X509Certificate[]{}; - } - } - }; - hostnameVerifier = new HostnameVerifier() { - @Override - public boolean verify(String hostname, SSLSession session) { - return true; - } - }; - } else { - TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - - if (sslCaCert == null) { - trustManagerFactory.init((KeyStore) null); - } else { - char[] password = null; // Any password will work. - CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); - Collection certificates = certificateFactory.generateCertificates(sslCaCert); - if (certificates.isEmpty()) { - throw new IllegalArgumentException("expected non-empty set of trusted certificates"); - } - KeyStore caKeyStore = newEmptyKeyStore(password); - int index = 0; - for (Certificate certificate : certificates) { - String certificateAlias = "ca" + (index++); - caKeyStore.setCertificateEntry(certificateAlias, certificate); - } - trustManagerFactory.init(caKeyStore); - } - trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; - } - - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier) - .build(); - } catch (GeneralSecurityException e) { - throw new RuntimeException(e); - } - } - - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { - try { - KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); - keyStore.load(null, password); - return keyStore; - } catch (IOException e) { - throw new AssertionError(e); - } - } - - /** - * Convert the HTTP request body to a string. - * - * @param requestBody The HTTP request object - * @return The string representation of the HTTP request body - * @throws com.apitable.databusclient.ApiException If fail to serialize the request body object into a string - */ - private String requestBodyToString(RequestBody requestBody) throws ApiException { - if (requestBody != null) { - try { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return buffer.readUtf8(); - } catch (final IOException e) { - throw new ApiException(e); - } - } - - // empty http request body - return ""; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ApiException.java b/backend-server/application/src/main/java/com/apitable/databusclient/ApiException.java deleted file mode 100644 index bbdf984a58..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ApiException.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import java.util.Map; -import java.util.List; - - -/** - *

ApiException class.

- */ -@SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiException extends Exception { - private int code = 0; - private Map> responseHeaders = null; - private String responseBody = null; - - /** - *

Constructor for ApiException.

- */ - public ApiException() {} - - /** - *

Constructor for ApiException.

- * - * @param throwable a {@link java.lang.Throwable} object - */ - public ApiException(Throwable throwable) { - super(throwable); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - */ - public ApiException(String message) { - super(message); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { - super(message, throwable); - this.code = code; - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, int code, Map> responseHeaders, String responseBody) { - this(message, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { - this(message, throwable, code, responseHeaders, null); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, Map> responseHeaders, String responseBody) { - this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message a {@link java.lang.String} object - */ - public ApiException(int code, String message) { - super(message); - this.code = code; - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message the error message - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, String message, Map> responseHeaders, String responseBody) { - this(code, message); - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - * Get the HTTP status code. - * - * @return HTTP status code - */ - public int getCode() { - return code; - } - - /** - * Get the HTTP response headers. - * - * @return A map of list of string - */ - public Map> getResponseHeaders() { - return responseHeaders; - } - - /** - * Get the HTTP response body. - * - * @return Response body in the form of string - */ - public String getResponseBody() { - return responseBody; - } - - /** - * Get the exception message including HTTP response data. - * - * @return The exception message - */ - public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", - super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ApiResponse.java b/backend-server/application/src/main/java/com/apitable/databusclient/ApiResponse.java deleted file mode 100644 index 0cd1a34f5a..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ApiResponse.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import java.util.List; -import java.util.Map; - -/** - * API response returned by API call. - */ -public class ApiResponse { - final private int statusCode; - final private Map> headers; - final private T data; - - /** - *

Constructor for ApiResponse.

- * - * @param statusCode The status code of HTTP response - * @param headers The headers of HTTP response - */ - public ApiResponse(int statusCode, Map> headers) { - this(statusCode, headers, null); - } - - /** - *

Constructor for ApiResponse.

- * - * @param statusCode The status code of HTTP response - * @param headers The headers of HTTP response - * @param data The object deserialized from response bod - */ - public ApiResponse(int statusCode, Map> headers, T data) { - this.statusCode = statusCode; - this.headers = headers; - this.data = data; - } - - /** - *

Get the status code.

- * - * @return the status code - */ - public int getStatusCode() { - return statusCode; - } - - /** - *

Get the headers.

- * - * @return a {@link java.util.Map} of headers - */ - public Map> getHeaders() { - return headers; - } - - /** - *

Get the data.

- * - * @return the data - */ - public T getData() { - return data; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/Configuration.java b/backend-server/application/src/main/java/com/apitable/databusclient/Configuration.java deleted file mode 100644 index d38b9ea2c2..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/Configuration.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Configuration { - public static final String VERSION = "1.2.0"; - - private static ApiClient defaultApiClient = new ApiClient(); - - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; - } - - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/GzipRequestInterceptor.java b/backend-server/application/src/main/java/com/apitable/databusclient/GzipRequestInterceptor.java deleted file mode 100644 index 5a83aa5992..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/GzipRequestInterceptor.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import okhttp3.*; -import okio.Buffer; -import okio.BufferedSink; -import okio.GzipSink; -import okio.Okio; - -import java.io.IOException; - -/** - * Encodes request bodies using gzip. - * - * Taken from https://github.com/square/okhttp/issues/350 - */ -class GzipRequestInterceptor implements Interceptor { - @Override - public Response intercept(Chain chain) throws IOException { - Request originalRequest = chain.request(); - if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { - return chain.proceed(originalRequest); - } - - Request compressedRequest = originalRequest.newBuilder() - .header("Content-Encoding", "gzip") - .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) - .build(); - return chain.proceed(compressedRequest); - } - - private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return new RequestBody() { - @Override - public MediaType contentType() { - return requestBody.contentType(); - } - - @Override - public long contentLength() { - return buffer.size(); - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - sink.write(buffer.snapshot()); - } - }; - } - - private RequestBody gzip(final RequestBody body) { - return new RequestBody() { - @Override - public MediaType contentType() { - return body.contentType(); - } - - @Override - public long contentLength() { - return -1; // We don't know the compressed length in advance! - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); - body.writeTo(gzipSink); - gzipSink.close(); - } - }; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/JSON.java b/backend-server/application/src/main/java/com/apitable/databusclient/JSON.java deleted file mode 100644 index 1d6824eaef..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/JSON.java +++ /dev/null @@ -1,470 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.internal.bind.util.ISO8601Utils; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonElement; -import io.gsonfire.GsonFireBuilder; -import io.gsonfire.TypeSelector; - -import okio.ByteString; - -import java.io.IOException; -import java.io.StringReader; -import java.lang.reflect.Type; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.ParsePosition; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Date; -import java.util.Locale; -import java.util.Map; -import java.util.HashMap; - -/* - * A JSON utility class - * - * NOTE: in the future, this class may be converted to static, which may break - * backward-compatibility - */ -public class JSON { - private static Gson gson; - private static boolean isLenientOnJson = false; - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); - private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - - @SuppressWarnings("unchecked") - public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder() - ; - GsonBuilder builder = fireBuilder.createGsonBuilder(); - return builder; - } - - private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { - JsonElement element = readElement.getAsJsonObject().get(discriminatorField); - if (null == element) { - throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); - } - return element.getAsString(); - } - - /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. - * - * @param classByDiscriminatorValue The map of discriminator values to Java classes. - * @param discriminatorValue The value of the OpenAPI discriminator in the input data. - * @return The Java class that implements the OpenAPI schema - */ - private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { - Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); - if (null == clazz) { - throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); - } - return clazz; - } - - { - GsonBuilder gsonBuilder = createGson(); - gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); - gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); - gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); - gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); - gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AiNode.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AiPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AlarmUser.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AnyBaseField.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiRecordDto.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseAiPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseAutomationActionPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseAutomationRobotIntroductionSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseAutomationRunHistoryPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseAutomationSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseAutomationTriggerPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseDatasheetPackSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseEmptySO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ApiResponseRecordVos.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationActionIntroductionPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationActionPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationHistoryRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationHistoryStatusRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotActionRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotCopyRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotIntroductionPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotIntroductionSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotTriggerRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRobotUpdateRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationRunHistoryPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationTriggerIntroductionPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.AutomationTriggerPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.BaseDatasheetPackSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ColorOption.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.CommentMsg.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.Comments.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.DatasheetMetaSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.DatasheetPackSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.DatasheetSnapshotSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.DocumentOperationRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.DocumentRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.FieldExtraMapValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.FieldPropertySO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.FieldSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.FieldUpdateRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.FieldUpdatedValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.GanttColorOption.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.IFilterCondition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.IFilterInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ISortInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ISortedField.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.IViewLockInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.LinkedFields.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ListVO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.LookUpFilterPO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.NodePermissionStateSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.NodeSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.NodeSimplePO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.RecordAlarm.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.RecordMeta.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.RecordSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.RecordUpdateRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.RecordVo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.SingleSelectProperty.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.SingleTextFieldPropertySO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.SortRO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.UnitSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ViewColumnSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ViewRowSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ViewSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.ViewStyleSo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.WidgetInPanelSO.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.apitable.databusclient.model.WidgetPanelSO.CustomTypeAdapterFactory()); - gson = gsonBuilder.create(); - } - - /** - * Get Gson. - * - * @return Gson - */ - public static Gson getGson() { - return gson; - } - - /** - * Set Gson. - * - * @param gson Gson - */ - public static void setGson(Gson gson) { - JSON.gson = gson; - } - - public static void setLenientOnJson(boolean lenientOnJson) { - isLenientOnJson = lenientOnJson; - } - - /** - * Serialize the given Java object into JSON string. - * - * @param obj Object - * @return String representation of the JSON - */ - public static String serialize(Object obj) { - return gson.toJson(obj); - } - - /** - * Deserialize the given JSON string to Java object. - * - * @param Type - * @param body The JSON string - * @param returnType The type to deserialize into - * @return The deserialized Java object - */ - @SuppressWarnings("unchecked") - public static T deserialize(String body, Type returnType) { - try { - if (isLenientOnJson) { - JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) - jsonReader.setLenient(true); - return gson.fromJson(jsonReader, returnType); - } else { - return gson.fromJson(body, returnType); - } - } catch (JsonParseException e) { - // Fallback processing when failed to parse JSON form response body: - // return the response body string directly for the String return type; - if (returnType.equals(String.class)) { - return (T) body; - } else { - throw (e); - } - } - } - - /** - * Gson TypeAdapter for Byte Array type - */ - public static class ByteArrayAdapter extends TypeAdapter { - - @Override - public void write(JsonWriter out, byte[] value) throws IOException { - if (value == null) { - out.nullValue(); - } else { - out.value(ByteString.of(value).base64()); - } - } - - @Override - public byte[] read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); - } - } - } - - /** - * Gson TypeAdapter for JSR310 OffsetDateTime type - */ - public static class OffsetDateTimeTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; - - public OffsetDateTimeTypeAdapter() { - this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } - - public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } - - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } - - @Override - public void write(JsonWriter out, OffsetDateTime date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } - - @Override - public OffsetDateTime read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - if (date.endsWith("+0000")) { - date = date.substring(0, date.length()-5) + "Z"; - } - return OffsetDateTime.parse(date, formatter); - } - } - } - - /** - * Gson TypeAdapter for JSR310 LocalDate type - */ - public static class LocalDateTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; - - public LocalDateTypeAdapter() { - this(DateTimeFormatter.ISO_LOCAL_DATE); - } - - public LocalDateTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } - - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } - - @Override - public void write(JsonWriter out, LocalDate date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } - - @Override - public LocalDate read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - return LocalDate.parse(date, formatter); - } - } - } - - public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - offsetDateTimeTypeAdapter.setFormat(dateFormat); - } - - public static void setLocalDateFormat(DateTimeFormatter dateFormat) { - localDateTypeAdapter.setFormat(dateFormat); - } - - /** - * Gson TypeAdapter for java.sql.Date type - * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used - * (more efficient than SimpleDateFormat). - */ - public static class SqlDateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public SqlDateTypeAdapter() {} - - public SqlDateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, java.sql.Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = date.toString(); - } - out.value(value); - } - } - - @Override - public java.sql.Date read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return new java.sql.Date(dateFormat.parse(date).getTime()); - } - return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } - } - - /** - * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, ISO8601Utils will be used. - */ - public static class DateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public DateTypeAdapter() {} - - public DateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = ISO8601Utils.format(date, true); - } - out.value(value); - } - } - - @Override - public Date read(JsonReader in) throws IOException { - try { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return dateFormat.parse(date); - } - return ISO8601Utils.parse(date, new ParsePosition(0)); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } catch (IllegalArgumentException e) { - throw new JsonParseException(e); - } - } - } - - public static void setDateFormat(DateFormat dateFormat) { - dateTypeAdapter.setFormat(dateFormat); - } - - public static void setSqlDateFormat(DateFormat dateFormat) { - sqlDateTypeAdapter.setFormat(dateFormat); - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/Pair.java b/backend-server/application/src/main/java/com/apitable/databusclient/Pair.java deleted file mode 100644 index 8947d88328..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/Pair.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Pair { - private String name = ""; - private String value = ""; - - public Pair (String name, String value) { - setName(name); - setValue(value); - } - - private void setName(String name) { - if (!isValidString(name)) { - return; - } - - this.name = name; - } - - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - public String getValue() { - return this.value; - } - - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ProgressRequestBody.java b/backend-server/application/src/main/java/com/apitable/databusclient/ProgressRequestBody.java deleted file mode 100644 index 323b0b0f90..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ProgressRequestBody.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import okhttp3.MediaType; -import okhttp3.RequestBody; - -import java.io.IOException; - -import okio.Buffer; -import okio.BufferedSink; -import okio.ForwardingSink; -import okio.Okio; -import okio.Sink; - -public class ProgressRequestBody extends RequestBody { - - private final RequestBody requestBody; - - private final ApiCallback callback; - - public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { - this.requestBody = requestBody; - this.callback = callback; - } - - @Override - public MediaType contentType() { - return requestBody.contentType(); - } - - @Override - public long contentLength() throws IOException { - return requestBody.contentLength(); - } - - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink bufferedSink = Okio.buffer(sink(sink)); - requestBody.writeTo(bufferedSink); - bufferedSink.flush(); - } - - private Sink sink(Sink sink) { - return new ForwardingSink(sink) { - - long bytesWritten = 0L; - long contentLength = 0L; - - @Override - public void write(Buffer source, long byteCount) throws IOException { - super.write(source, byteCount); - if (contentLength == 0) { - contentLength = contentLength(); - } - - bytesWritten += byteCount; - callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); - } - }; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ProgressResponseBody.java b/backend-server/application/src/main/java/com/apitable/databusclient/ProgressResponseBody.java deleted file mode 100644 index b22650b246..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ProgressResponseBody.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import okhttp3.MediaType; -import okhttp3.ResponseBody; - -import java.io.IOException; - -import okio.Buffer; -import okio.BufferedSource; -import okio.ForwardingSource; -import okio.Okio; -import okio.Source; - -public class ProgressResponseBody extends ResponseBody { - - private final ResponseBody responseBody; - private final ApiCallback callback; - private BufferedSource bufferedSource; - - public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { - this.responseBody = responseBody; - this.callback = callback; - } - - @Override - public MediaType contentType() { - return responseBody.contentType(); - } - - @Override - public long contentLength() { - return responseBody.contentLength(); - } - - @Override - public BufferedSource source() { - if (bufferedSource == null) { - bufferedSource = Okio.buffer(source(responseBody.source())); - } - return bufferedSource; - } - - private Source source(Source source) { - return new ForwardingSource(source) { - long totalBytesRead = 0L; - - @Override - public long read(Buffer sink, long byteCount) throws IOException { - long bytesRead = super.read(sink, byteCount); - // read() returns the number of bytes read, or -1 if this source is exhausted. - totalBytesRead += bytesRead != -1 ? bytesRead : 0; - callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); - return bytesRead; - } - }; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/StringUtil.java b/backend-server/application/src/main/java/com/apitable/databusclient/StringUtil.java deleted file mode 100644 index 5f2f8aab7a..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/StringUtil.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient; - -import java.util.Collection; -import java.util.Iterator; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class StringUtil { - /** - * Check if the given array contains the given value (with case-insensitive comparison). - * - * @param array The array - * @param value The value to search - * @return true if the array contains the value - */ - public static boolean containsIgnoreCase(String[] array, String value) { - for (String str : array) { - if (value == null && str == null) { - return true; - } - if (value != null && value.equalsIgnoreCase(str)) { - return true; - } - } - return false; - } - - /** - * Join an array of strings with the given separator. - *

- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *

- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) { - return ""; - } - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } - - /** - * Join a list of strings with the given separator. - * - * @param list The list of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(Collection list, String separator) { - Iterator iterator = list.iterator(); - StringBuilder out = new StringBuilder(); - if (iterator.hasNext()) { - out.append(iterator.next()); - } - while (iterator.hasNext()) { - out.append(separator).append(iterator.next()); - } - return out.toString(); - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/AutomationDaoApiApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/AutomationDaoApiApi.java deleted file mode 100644 index dfb05ddb2e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/AutomationDaoApiApi.java +++ /dev/null @@ -1,1749 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.apitable.databusclient.model.*; -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class AutomationDaoApiApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AutomationDaoApiApi() { - this(Configuration.getDefaultApiClient()); - } - - public AutomationDaoApiApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for daoCopyAutomationRobot - * @param automationRobotCopyRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Create automation robot successfully -
- */ - public okhttp3.Call daoCopyAutomationRobotCall(List automationRobotCopyRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = automationRobotCopyRO; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots/copy"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoCopyAutomationRobotValidateBeforeCall(List automationRobotCopyRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'automationRobotCopyRO' is set - if (automationRobotCopyRO == null) { - throw new ApiException("Missing the required parameter 'automationRobotCopyRO' when calling daoCopyAutomationRobot(Async)"); - } - - return daoCopyAutomationRobotCall(automationRobotCopyRO, _callback); - - } - - /** - * Create automation robot - * Create automation robot - * @param automationRobotCopyRO (required) - * @return ApiResponseEmptySO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Create automation robot successfully -
- */ - public ApiResponseEmptySO daoCopyAutomationRobot(List automationRobotCopyRO) throws ApiException { - ApiResponse localVarResp = daoCopyAutomationRobotWithHttpInfo(automationRobotCopyRO); - return localVarResp.getData(); - } - - /** - * Create automation robot - * Create automation robot - * @param automationRobotCopyRO (required) - * @return ApiResponse<ApiResponseEmptySO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Create automation robot successfully -
- */ - public ApiResponse daoCopyAutomationRobotWithHttpInfo(List automationRobotCopyRO) throws ApiException { - okhttp3.Call localVarCall = daoCopyAutomationRobotValidateBeforeCall(automationRobotCopyRO, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create automation robot (asynchronously) - * Create automation robot - * @param automationRobotCopyRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Create automation robot successfully -
- */ - public okhttp3.Call daoCopyAutomationRobotAsync(List automationRobotCopyRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoCopyAutomationRobotValidateBeforeCall(automationRobotCopyRO, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoCreateAutomationRunHistory - * @param robotId robot id (required) - * @param body (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create automation run history task success -
- */ - public okhttp3.Call daoCreateAutomationRunHistoryCall(String robotId, Object body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/databus/dao/automations/{robot_id}/histories" - .replace("{" + "robot_id" + "}", localVarApiClient.escapeString(robotId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoCreateAutomationRunHistoryValidateBeforeCall(String robotId, Object body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'robotId' is set - if (robotId == null) { - throw new ApiException("Missing the required parameter 'robotId' when calling daoCreateAutomationRunHistory(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling daoCreateAutomationRunHistory(Async)"); - } - - return daoCreateAutomationRunHistoryCall(robotId, body, _callback); - - } - - /** - * create automation run history task success todo - * create automation run history task success todo - * @param robotId robot id (required) - * @param body (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create automation run history task success -
- */ - public void daoCreateAutomationRunHistory(String robotId, Object body) throws ApiException { - daoCreateAutomationRunHistoryWithHttpInfo(robotId, body); - } - - /** - * create automation run history task success todo - * create automation run history task success todo - * @param robotId robot id (required) - * @param body (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create automation run history task success -
- */ - public ApiResponse daoCreateAutomationRunHistoryWithHttpInfo(String robotId, Object body) throws ApiException { - okhttp3.Call localVarCall = daoCreateAutomationRunHistoryValidateBeforeCall(robotId, body, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create automation run history task success todo (asynchronously) - * create automation run history task success todo - * @param robotId robot id (required) - * @param body (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create automation run history task success -
- */ - public okhttp3.Call daoCreateAutomationRunHistoryAsync(String robotId, Object body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoCreateAutomationRunHistoryValidateBeforeCall(robotId, body, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoCreateOrUpdateAutomationRobotAction - * @param robotId robot id (required) - * @param automationRobotActionRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot action successfully -
201 Create automation robot action successfully -
- */ - public okhttp3.Call daoCreateOrUpdateAutomationRobotActionCall(String robotId, AutomationRobotActionRO automationRobotActionRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = automationRobotActionRO; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots/{robot_id}/actions" - .replace("{" + "robot_id" + "}", localVarApiClient.escapeString(robotId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoCreateOrUpdateAutomationRobotActionValidateBeforeCall(String robotId, AutomationRobotActionRO automationRobotActionRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'robotId' is set - if (robotId == null) { - throw new ApiException("Missing the required parameter 'robotId' when calling daoCreateOrUpdateAutomationRobotAction(Async)"); - } - - // verify the required parameter 'automationRobotActionRO' is set - if (automationRobotActionRO == null) { - throw new ApiException("Missing the required parameter 'automationRobotActionRO' when calling daoCreateOrUpdateAutomationRobotAction(Async)"); - } - - return daoCreateOrUpdateAutomationRobotActionCall(robotId, automationRobotActionRO, _callback); - - } - - /** - * Add or create automation robot action - * Add or create automation robot action - * @param robotId robot id (required) - * @param automationRobotActionRO (required) - * @return ApiResponseAutomationActionPO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot action successfully -
201 Create automation robot action successfully -
- */ - public ApiResponseAutomationActionPO daoCreateOrUpdateAutomationRobotAction(String robotId, AutomationRobotActionRO automationRobotActionRO) throws ApiException { - ApiResponse localVarResp = daoCreateOrUpdateAutomationRobotActionWithHttpInfo(robotId, automationRobotActionRO); - return localVarResp.getData(); - } - - /** - * Add or create automation robot action - * Add or create automation robot action - * @param robotId robot id (required) - * @param automationRobotActionRO (required) - * @return ApiResponse<ApiResponseAutomationActionPO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot action successfully -
201 Create automation robot action successfully -
- */ - public ApiResponse daoCreateOrUpdateAutomationRobotActionWithHttpInfo(String robotId, AutomationRobotActionRO automationRobotActionRO) throws ApiException { - okhttp3.Call localVarCall = daoCreateOrUpdateAutomationRobotActionValidateBeforeCall(robotId, automationRobotActionRO, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add or create automation robot action (asynchronously) - * Add or create automation robot action - * @param robotId robot id (required) - * @param automationRobotActionRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot action successfully -
201 Create automation robot action successfully -
- */ - public okhttp3.Call daoCreateOrUpdateAutomationRobotActionAsync(String robotId, AutomationRobotActionRO automationRobotActionRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoCreateOrUpdateAutomationRobotActionValidateBeforeCall(robotId, automationRobotActionRO, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoCreateOrUpdateAutomationRobotTrigger - * @param robotId robot id (required) - * @param automationRobotTriggerRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot trigger successfully -
201 Create automation robot trigger successfully -
- */ - public okhttp3.Call daoCreateOrUpdateAutomationRobotTriggerCall(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = automationRobotTriggerRO; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots/{robot_id}/triggers" - .replace("{" + "robot_id" + "}", localVarApiClient.escapeString(robotId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoCreateOrUpdateAutomationRobotTriggerValidateBeforeCall(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'robotId' is set - if (robotId == null) { - throw new ApiException("Missing the required parameter 'robotId' when calling daoCreateOrUpdateAutomationRobotTrigger(Async)"); - } - - // verify the required parameter 'automationRobotTriggerRO' is set - if (automationRobotTriggerRO == null) { - throw new ApiException("Missing the required parameter 'automationRobotTriggerRO' when calling daoCreateOrUpdateAutomationRobotTrigger(Async)"); - } - - return daoCreateOrUpdateAutomationRobotTriggerCall(robotId, automationRobotTriggerRO, _callback); - - } - - /** - * Add or create automation robot trigger - * Add or create automation robot trigger - * @param robotId robot id (required) - * @param automationRobotTriggerRO (required) - * @return ApiResponseAutomationTriggerPO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot trigger successfully -
201 Create automation robot trigger successfully -
- */ - public ApiResponseAutomationTriggerPO daoCreateOrUpdateAutomationRobotTrigger(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO) throws ApiException { - ApiResponse localVarResp = daoCreateOrUpdateAutomationRobotTriggerWithHttpInfo(robotId, automationRobotTriggerRO); - return localVarResp.getData(); - } - - /** - * Add or create automation robot trigger - * Add or create automation robot trigger - * @param robotId robot id (required) - * @param automationRobotTriggerRO (required) - * @return ApiResponse<ApiResponseAutomationTriggerPO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot trigger successfully -
201 Create automation robot trigger successfully -
- */ - public ApiResponse daoCreateOrUpdateAutomationRobotTriggerWithHttpInfo(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO) throws ApiException { - okhttp3.Call localVarCall = daoCreateOrUpdateAutomationRobotTriggerValidateBeforeCall(robotId, automationRobotTriggerRO, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add or create automation robot trigger (asynchronously) - * Add or create automation robot trigger - * @param robotId robot id (required) - * @param automationRobotTriggerRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Update automation robot trigger successfully -
201 Create automation robot trigger successfully -
- */ - public okhttp3.Call daoCreateOrUpdateAutomationRobotTriggerAsync(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoCreateOrUpdateAutomationRobotTriggerValidateBeforeCall(robotId, automationRobotTriggerRO, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoGetAutomationRunContext - * @param taskId task id (required) - * @param actionId action id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public okhttp3.Call daoGetAutomationRunContextCall(String taskId, String actionId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/histories/{task_id}/contexts/{action_id}" - .replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString())) - .replace("{" + "action_id" + "}", localVarApiClient.escapeString(actionId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetAutomationRunContextValidateBeforeCall(String taskId, String actionId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling daoGetAutomationRunContext(Async)"); - } - - // verify the required parameter 'actionId' is set - if (actionId == null) { - throw new ApiException("Missing the required parameter 'actionId' when calling daoGetAutomationRunContext(Async)"); - } - - return daoGetAutomationRunContextCall(taskId, actionId, _callback); - - } - - /** - * Get automation task input and output todo - * Get automation task input and output todo - * @param taskId task id (required) - * @param actionId action id (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public void daoGetAutomationRunContext(String taskId, String actionId) throws ApiException { - daoGetAutomationRunContextWithHttpInfo(taskId, actionId); - } - - /** - * Get automation task input and output todo - * Get automation task input and output todo - * @param taskId task id (required) - * @param actionId action id (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public ApiResponse daoGetAutomationRunContextWithHttpInfo(String taskId, String actionId) throws ApiException { - okhttp3.Call localVarCall = daoGetAutomationRunContextValidateBeforeCall(taskId, actionId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get automation task input and output todo (asynchronously) - * Get automation task input and output todo - * @param taskId task id (required) - * @param actionId action id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public okhttp3.Call daoGetAutomationRunContextAsync(String taskId, String actionId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetAutomationRunContextValidateBeforeCall(taskId, actionId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoGetAutomationRunHistory - * @param pageSize (required) - * @param pageNum (required) - * @param robotId robot id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history list -
- */ - public okhttp3.Call daoGetAutomationRunHistoryCall(Integer pageSize, Integer pageNum, String robotId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/{robot_id}/histories" - .replace("{" + "robot_id" + "}", localVarApiClient.escapeString(robotId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize)); - } - - if (pageNum != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_num", pageNum)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetAutomationRunHistoryValidateBeforeCall(Integer pageSize, Integer pageNum, String robotId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'pageSize' is set - if (pageSize == null) { - throw new ApiException("Missing the required parameter 'pageSize' when calling daoGetAutomationRunHistory(Async)"); - } - - // verify the required parameter 'pageNum' is set - if (pageNum == null) { - throw new ApiException("Missing the required parameter 'pageNum' when calling daoGetAutomationRunHistory(Async)"); - } - - // verify the required parameter 'robotId' is set - if (robotId == null) { - throw new ApiException("Missing the required parameter 'robotId' when calling daoGetAutomationRunHistory(Async)"); - } - - return daoGetAutomationRunHistoryCall(pageSize, pageNum, robotId, _callback); - - } - - /** - * Get automation run history list - * Get automation run history list - * @param pageSize (required) - * @param pageNum (required) - * @param robotId robot id (required) - * @return ApiResponseAutomationRunHistoryPO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history list -
- */ - public ApiResponseAutomationRunHistoryPO daoGetAutomationRunHistory(Integer pageSize, Integer pageNum, String robotId) throws ApiException { - ApiResponse localVarResp = daoGetAutomationRunHistoryWithHttpInfo(pageSize, pageNum, robotId); - return localVarResp.getData(); - } - - /** - * Get automation run history list - * Get automation run history list - * @param pageSize (required) - * @param pageNum (required) - * @param robotId robot id (required) - * @return ApiResponse<ApiResponseAutomationRunHistoryPO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history list -
- */ - public ApiResponse daoGetAutomationRunHistoryWithHttpInfo(Integer pageSize, Integer pageNum, String robotId) throws ApiException { - okhttp3.Call localVarCall = daoGetAutomationRunHistoryValidateBeforeCall(pageSize, pageNum, robotId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get automation run history list (asynchronously) - * Get automation run history list - * @param pageSize (required) - * @param pageNum (required) - * @param robotId robot id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history list -
- */ - public okhttp3.Call daoGetAutomationRunHistoryAsync(Integer pageSize, Integer pageNum, String robotId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetAutomationRunHistoryValidateBeforeCall(pageSize, pageNum, robotId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoGetAutomationRunHistoryDetail - * @param taskId task id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history detail -
- */ - public okhttp3.Call daoGetAutomationRunHistoryDetailCall(String taskId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/histories/{task_id}" - .replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetAutomationRunHistoryDetailValidateBeforeCall(String taskId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling daoGetAutomationRunHistoryDetail(Async)"); - } - - return daoGetAutomationRunHistoryDetailCall(taskId, _callback); - - } - - /** - * Get automation run task details todo - * Get automation run task details todo - * @param taskId task id (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history detail -
- */ - public void daoGetAutomationRunHistoryDetail(String taskId) throws ApiException { - daoGetAutomationRunHistoryDetailWithHttpInfo(taskId); - } - - /** - * Get automation run task details todo - * Get automation run task details todo - * @param taskId task id (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history detail -
- */ - public ApiResponse daoGetAutomationRunHistoryDetailWithHttpInfo(String taskId) throws ApiException { - okhttp3.Call localVarCall = daoGetAutomationRunHistoryDetailValidateBeforeCall(taskId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get automation run task details todo (asynchronously) - * Get automation run task details todo - * @param taskId task id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history detail -
- */ - public okhttp3.Call daoGetAutomationRunHistoryDetailAsync(String taskId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetAutomationRunHistoryDetailValidateBeforeCall(taskId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoGetRobotByRobotId - * @param robotId Automation robot id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation detail -
- */ - public okhttp3.Call daoGetRobotByRobotIdCall(String robotId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots/{robot_id}" - .replace("{" + "robot_id" + "}", localVarApiClient.escapeString(robotId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetRobotByRobotIdValidateBeforeCall(String robotId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'robotId' is set - if (robotId == null) { - throw new ApiException("Missing the required parameter 'robotId' when calling daoGetRobotByRobotId(Async)"); - } - - return daoGetRobotByRobotIdCall(robotId, _callback); - - } - - /** - * Get automation robot detail. - * Get automation robot detail. - * @param robotId Automation robot id (required) - * @return ApiResponseAutomationSO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation detail -
- */ - public ApiResponseAutomationSO daoGetRobotByRobotId(String robotId) throws ApiException { - ApiResponse localVarResp = daoGetRobotByRobotIdWithHttpInfo(robotId); - return localVarResp.getData(); - } - - /** - * Get automation robot detail. - * Get automation robot detail. - * @param robotId Automation robot id (required) - * @return ApiResponse<ApiResponseAutomationSO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation detail -
- */ - public ApiResponse daoGetRobotByRobotIdWithHttpInfo(String robotId) throws ApiException { - okhttp3.Call localVarCall = daoGetRobotByRobotIdValidateBeforeCall(robotId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get automation robot detail. (asynchronously) - * Get automation robot detail. - * @param robotId Automation robot id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation detail -
- */ - public okhttp3.Call daoGetRobotByRobotIdAsync(String robotId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetRobotByRobotIdValidateBeforeCall(robotId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoGetRobotsByResourceId - * @param resourceId (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public okhttp3.Call daoGetRobotsByResourceIdCall(String resourceId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (resourceId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resource_id", resourceId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetRobotsByResourceIdValidateBeforeCall(String resourceId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'resourceId' is set - if (resourceId == null) { - throw new ApiException("Missing the required parameter 'resourceId' when calling daoGetRobotsByResourceId(Async)"); - } - - return daoGetRobotsByResourceIdCall(resourceId, _callback); - - } - - /** - * get automations triggers todo - * get automations triggers todo - * @param resourceId (required) - * @return ApiResponseAutomationRobotIntroductionSO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public ApiResponseAutomationRobotIntroductionSO daoGetRobotsByResourceId(String resourceId) throws ApiException { - ApiResponse localVarResp = daoGetRobotsByResourceIdWithHttpInfo(resourceId); - return localVarResp.getData(); - } - - /** - * get automations triggers todo - * get automations triggers todo - * @param resourceId (required) - * @return ApiResponse<ApiResponseAutomationRobotIntroductionSO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public ApiResponse daoGetRobotsByResourceIdWithHttpInfo(String resourceId) throws ApiException { - okhttp3.Call localVarCall = daoGetRobotsByResourceIdValidateBeforeCall(resourceId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * get automations triggers todo (asynchronously) - * get automations triggers todo - * @param resourceId (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public okhttp3.Call daoGetRobotsByResourceIdAsync(String resourceId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetRobotsByResourceIdValidateBeforeCall(resourceId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoGetRobotsTriggers - * @param robotIds (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public okhttp3.Call daoGetRobotsTriggersCall(List robotIds, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/triggers"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (robotIds != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "robot_ids", robotIds)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetRobotsTriggersValidateBeforeCall(List robotIds, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'robotIds' is set - if (robotIds == null) { - throw new ApiException("Missing the required parameter 'robotIds' when calling daoGetRobotsTriggers(Async)"); - } - - return daoGetRobotsTriggersCall(robotIds, _callback); - - } - - /** - * get automations triggers todo - * get automations triggers todo - * @param robotIds (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public void daoGetRobotsTriggers(List robotIds) throws ApiException { - daoGetRobotsTriggersWithHttpInfo(robotIds); - } - - /** - * get automations triggers todo - * get automations triggers todo - * @param robotIds (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public ApiResponse daoGetRobotsTriggersWithHttpInfo(List robotIds) throws ApiException { - okhttp3.Call localVarCall = daoGetRobotsTriggersValidateBeforeCall(robotIds, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * get automations triggers todo (asynchronously) - * get automations triggers todo - * @param robotIds (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automations triggers -
- */ - public okhttp3.Call daoGetRobotsTriggersAsync(List robotIds, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetRobotsTriggersValidateBeforeCall(robotIds, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoUpdateAutomationRobot - * @param robotId robot id (required) - * @param automationRobotUpdateRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Update automation robot successfully -
- */ - public okhttp3.Call daoUpdateAutomationRobotCall(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = automationRobotUpdateRO; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots/{robot_id}" - .replace("{" + "robot_id" + "}", localVarApiClient.escapeString(robotId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoUpdateAutomationRobotValidateBeforeCall(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'robotId' is set - if (robotId == null) { - throw new ApiException("Missing the required parameter 'robotId' when calling daoUpdateAutomationRobot(Async)"); - } - - // verify the required parameter 'automationRobotUpdateRO' is set - if (automationRobotUpdateRO == null) { - throw new ApiException("Missing the required parameter 'automationRobotUpdateRO' when calling daoUpdateAutomationRobot(Async)"); - } - - return daoUpdateAutomationRobotCall(robotId, automationRobotUpdateRO, _callback); - - } - - /** - * Update automation robot - * Update automation robot - * @param robotId robot id (required) - * @param automationRobotUpdateRO (required) - * @return ApiResponseEmptySO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Update automation robot successfully -
- */ - public ApiResponseEmptySO daoUpdateAutomationRobot(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO) throws ApiException { - ApiResponse localVarResp = daoUpdateAutomationRobotWithHttpInfo(robotId, automationRobotUpdateRO); - return localVarResp.getData(); - } - - /** - * Update automation robot - * Update automation robot - * @param robotId robot id (required) - * @param automationRobotUpdateRO (required) - * @return ApiResponse<ApiResponseEmptySO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Update automation robot successfully -
- */ - public ApiResponse daoUpdateAutomationRobotWithHttpInfo(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO) throws ApiException { - okhttp3.Call localVarCall = daoUpdateAutomationRobotValidateBeforeCall(robotId, automationRobotUpdateRO, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update automation robot (asynchronously) - * Update automation robot - * @param robotId robot id (required) - * @param automationRobotUpdateRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Update automation robot successfully -
- */ - public okhttp3.Call daoUpdateAutomationRobotAsync(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoUpdateAutomationRobotValidateBeforeCall(robotId, automationRobotUpdateRO, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoUpdateAutomationRunHistoryStatus - * @param taskId task id (required) - * @param automationHistoryStatusRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public okhttp3.Call daoUpdateAutomationRunHistoryStatusCall(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = automationHistoryStatusRO; - - // create path and map variables - String localVarPath = "/databus/dao/automations/histories/{task_id}/status" - .replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoUpdateAutomationRunHistoryStatusValidateBeforeCall(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling daoUpdateAutomationRunHistoryStatus(Async)"); - } - - // verify the required parameter 'automationHistoryStatusRO' is set - if (automationHistoryStatusRO == null) { - throw new ApiException("Missing the required parameter 'automationHistoryStatusRO' when calling daoUpdateAutomationRunHistoryStatus(Async)"); - } - - return daoUpdateAutomationRunHistoryStatusCall(taskId, automationHistoryStatusRO, _callback); - - } - - /** - * Get automation task input and output todo - * Get automation task input and output todo - * @param taskId task id (required) - * @param automationHistoryStatusRO (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public void daoUpdateAutomationRunHistoryStatus(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO) throws ApiException { - daoUpdateAutomationRunHistoryStatusWithHttpInfo(taskId, automationHistoryStatusRO); - } - - /** - * Get automation task input and output todo - * Get automation task input and output todo - * @param taskId task id (required) - * @param automationHistoryStatusRO (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public ApiResponse daoUpdateAutomationRunHistoryStatusWithHttpInfo(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO) throws ApiException { - okhttp3.Call localVarCall = daoUpdateAutomationRunHistoryStatusValidateBeforeCall(taskId, automationHistoryStatusRO, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get automation task input and output todo (asynchronously) - * Get automation task input and output todo - * @param taskId task id (required) - * @param automationHistoryStatusRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get automation run history task context -
- */ - public okhttp3.Call daoUpdateAutomationRunHistoryStatusAsync(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoUpdateAutomationRunHistoryStatusValidateBeforeCall(taskId, automationHistoryStatusRO, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for daoGetRobotRunsBySpaceId - * @param spaceId space id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation robot running times -
- */ - public okhttp3.Call daoGetRobotRunsBySpaceIdCall(String spaceId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/automations/robots/runs/{space_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetRobotRunsBySpaceIdValidateBeforeCall(String spaceId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling daoGetRobotRunsBySpaceId(Async)"); - } - - return daoGetRobotRunsBySpaceIdCall(spaceId, _callback); - - } - - /** - * Get automation robot running times. - * Get automation robot running times. - * @param spaceId space id (required) - * @return ApiResponseAutomationRobotRunNumsSO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation robot running times -
- */ - public ApiResponseAutomationRobotRunNumsSO daoGetRobotRunsBySpaceId(String spaceId) throws ApiException { - ApiResponse localVarResp = daoGetRobotRunsBySpaceIdWithHttpInfo(spaceId); - return localVarResp.getData(); - } - - /** - * Get automation robot running times. - * Get automation robot running times. - * @param spaceId space id (required) - * @return ApiResponse<ApiResponseAutomationRobotRunNumsSO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation robot running times -
- */ - public ApiResponse daoGetRobotRunsBySpaceIdWithHttpInfo(String spaceId) throws ApiException { - okhttp3.Call localVarCall = daoGetRobotRunsBySpaceIdValidateBeforeCall(spaceId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get automation robot running times. (asynchronously) - * Get automation robot running times. - * @param spaceId space id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get automation robot running times -
- */ - public okhttp3.Call daoGetRobotRunsBySpaceIdAsync(String spaceId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetRobotRunsBySpaceIdValidateBeforeCall(spaceId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/CrateApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/CrateApi.java deleted file mode 100644 index 82c43bc238..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/CrateApi.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class CrateApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public CrateApi() { - this(Configuration.getDefaultApiClient()); - } - - public CrateApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for databusHome - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Databus Home -
- */ - public okhttp3.Call databusHomeCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call databusHomeValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return databusHomeCall(_callback); - - } - - /** - * Homepage, for liveness check - * Homepage, for liveness check - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Databus Home -
- */ - public void databusHome() throws ApiException { - databusHomeWithHttpInfo(); - } - - /** - * Homepage, for liveness check - * Homepage, for liveness check - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Databus Home -
- */ - public ApiResponse databusHomeWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = databusHomeValidateBeforeCall(null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Homepage, for liveness check (asynchronously) - * Homepage, for liveness check - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Databus Home -
- */ - public okhttp3.Call databusHomeAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = databusHomeValidateBeforeCall(_callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/DataDaoApiApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/DataDaoApiApi.java deleted file mode 100644 index d768c49218..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/DataDaoApiApi.java +++ /dev/null @@ -1,573 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.apitable.databusclient.model.ApiResponseAiPO; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class DataDaoApiApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DataDaoApiApi() { - this(Configuration.getDefaultApiClient()); - } - - public DataDaoApiApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for daoGetAiDatasheetIds - * @param aiId ai id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI's datasheets success -
- */ - public okhttp3.Call daoGetAiDatasheetIdsCall(String aiId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/get_ai_datasheet_ids/{ai_id}" - .replace("{" + "ai_id" + "}", localVarApiClient.escapeString(aiId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetAiDatasheetIdsValidateBeforeCall(String aiId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'aiId' is set - if (aiId == null) { - throw new ApiException("Missing the required parameter 'aiId' when calling daoGetAiDatasheetIds(Async)"); - } - - return daoGetAiDatasheetIdsCall(aiId, _callback); - - } - - /** - * Get AI's binding datasheet ids by AI ID - * Get AI's binding datasheet ids by AI ID - * @param aiId ai id (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI's datasheets success -
- */ - public void daoGetAiDatasheetIds(String aiId) throws ApiException { - daoGetAiDatasheetIdsWithHttpInfo(aiId); - } - - /** - * Get AI's binding datasheet ids by AI ID - * Get AI's binding datasheet ids by AI ID - * @param aiId ai id (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI's datasheets success -
- */ - public ApiResponse daoGetAiDatasheetIdsWithHttpInfo(String aiId) throws ApiException { - okhttp3.Call localVarCall = daoGetAiDatasheetIdsValidateBeforeCall(aiId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get AI's binding datasheet ids by AI ID (asynchronously) - * Get AI's binding datasheet ids by AI ID - * @param aiId ai id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI's datasheets success -
- */ - public okhttp3.Call daoGetAiDatasheetIdsAsync(String aiId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetAiDatasheetIdsValidateBeforeCall(aiId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoGetAiNode - * @param aiId ai id (required) - * @param nodeId node id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI Node success -
- */ - public okhttp3.Call daoGetAiNodeCall(String aiId, String nodeId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/get_ai_node"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (aiId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ai_id", aiId)); - } - - if (nodeId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("node_id", nodeId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetAiNodeValidateBeforeCall(String aiId, String nodeId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'aiId' is set - if (aiId == null) { - throw new ApiException("Missing the required parameter 'aiId' when calling daoGetAiNode(Async)"); - } - - // verify the required parameter 'nodeId' is set - if (nodeId == null) { - throw new ApiException("Missing the required parameter 'nodeId' when calling daoGetAiNode(Async)"); - } - - return daoGetAiNodeCall(aiId, nodeId, _callback); - - } - - /** - * Get AI Node by AI ID - * Get AI Node by AI ID - * @param aiId ai id (required) - * @param nodeId node id (required) - * @return ApiResponseAiPO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI Node success -
- */ - public ApiResponseAiPO daoGetAiNode(String aiId, String nodeId) throws ApiException { - ApiResponse localVarResp = daoGetAiNodeWithHttpInfo(aiId, nodeId); - return localVarResp.getData(); - } - - /** - * Get AI Node by AI ID - * Get AI Node by AI ID - * @param aiId ai id (required) - * @param nodeId node id (required) - * @return ApiResponse<ApiResponseAiPO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI Node success -
- */ - public ApiResponse daoGetAiNodeWithHttpInfo(String aiId, String nodeId) throws ApiException { - okhttp3.Call localVarCall = daoGetAiNodeValidateBeforeCall(aiId, nodeId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get AI Node by AI ID (asynchronously) - * Get AI Node by AI ID - * @param aiId ai id (required) - * @param nodeId node id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI Node success -
- */ - public okhttp3.Call daoGetAiNodeAsync(String aiId, String nodeId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetAiNodeValidateBeforeCall(aiId, nodeId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoGetAiPo - * @param aiId ai id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI success -
- */ - public okhttp3.Call daoGetAiPoCall(String aiId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/get_ai/{ai_id}" - .replace("{" + "ai_id" + "}", localVarApiClient.escapeString(aiId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetAiPoValidateBeforeCall(String aiId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'aiId' is set - if (aiId == null) { - throw new ApiException("Missing the required parameter 'aiId' when calling daoGetAiPo(Async)"); - } - - return daoGetAiPoCall(aiId, _callback); - - } - - /** - * Get AI Entity by AI ID - * Get AI Entity by AI ID - * @param aiId ai id (required) - * @return ApiResponseAiPO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI success -
- */ - public ApiResponseAiPO daoGetAiPo(String aiId) throws ApiException { - ApiResponse localVarResp = daoGetAiPoWithHttpInfo(aiId); - return localVarResp.getData(); - } - - /** - * Get AI Entity by AI ID - * Get AI Entity by AI ID - * @param aiId ai id (required) - * @return ApiResponse<ApiResponseAiPO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI success -
- */ - public ApiResponse daoGetAiPoWithHttpInfo(String aiId) throws ApiException { - okhttp3.Call localVarCall = daoGetAiPoValidateBeforeCall(aiId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get AI Entity by AI ID (asynchronously) - * Get AI Entity by AI ID - * @param aiId ai id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get AI success -
- */ - public okhttp3.Call daoGetAiPoAsync(String aiId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetAiPoValidateBeforeCall(aiId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for daoGetRevision - * @param datasheetId datasheet_id (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Revision number success -
- */ - public okhttp3.Call daoGetRevisionCall(String datasheetId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/get_revision/{datasheet_id}" - .replace("{" + "datasheet_id" + "}", localVarApiClient.escapeString(datasheetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetRevisionValidateBeforeCall(String datasheetId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'datasheetId' is set - if (datasheetId == null) { - throw new ApiException("Missing the required parameter 'datasheetId' when calling daoGetRevision(Async)"); - } - - return daoGetRevisionCall(datasheetId, _callback); - - } - - /** - * Get Datasheet's Revision number - * Get Datasheet's Revision number - * @param datasheetId datasheet_id (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Revision number success -
- */ - public void daoGetRevision(String datasheetId) throws ApiException { - daoGetRevisionWithHttpInfo(datasheetId); - } - - /** - * Get Datasheet's Revision number - * Get Datasheet's Revision number - * @param datasheetId datasheet_id (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Revision number success -
- */ - public ApiResponse daoGetRevisionWithHttpInfo(String datasheetId) throws ApiException { - okhttp3.Call localVarCall = daoGetRevisionValidateBeforeCall(datasheetId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get Datasheet's Revision number (asynchronously) - * Get Datasheet's Revision number - * @param datasheetId datasheet_id (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Revision number success -
- */ - public okhttp3.Call daoGetRevisionAsync(String datasheetId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetRevisionValidateBeforeCall(datasheetId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/DataServicesApiApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/DataServicesApiApi.java deleted file mode 100644 index 1ddd131bd2..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/DataServicesApiApi.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.apitable.databusclient.model.ApiResponseDatasheetPackSO; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class DataServicesApiApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DataServicesApiApi() { - this(Configuration.getDefaultApiClient()); - } - - public DataServicesApiApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getDatasheetPack - * @param id datasheet id (required) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get data pack data -
- */ - public okhttp3.Call getDatasheetPackCall(String id, String userId, String spaceId, String viewId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/get_datasheet_pack/{id}" - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - - if (spaceId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("spaceId", spaceId)); - } - - if (viewId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("viewId", viewId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDatasheetPackValidateBeforeCall(String id, String userId, String spaceId, String viewId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getDatasheetPack(Async)"); - } - - return getDatasheetPackCall(id, userId, spaceId, viewId, _callback); - - } - - /** - * - * - * @param id datasheet id (required) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @return ApiResponseDatasheetPackSO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get data pack data -
- */ - public ApiResponseDatasheetPackSO getDatasheetPack(String id, String userId, String spaceId, String viewId) throws ApiException { - ApiResponse localVarResp = getDatasheetPackWithHttpInfo(id, userId, spaceId, viewId); - return localVarResp.getData(); - } - - /** - * - * - * @param id datasheet id (required) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @return ApiResponse<ApiResponseDatasheetPackSO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get data pack data -
- */ - public ApiResponse getDatasheetPackWithHttpInfo(String id, String userId, String spaceId, String viewId) throws ApiException { - okhttp3.Call localVarCall = getDatasheetPackValidateBeforeCall(id, userId, spaceId, viewId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * - * @param id datasheet id (required) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get data pack data -
- */ - public okhttp3.Call getDatasheetPackAsync(String id, String userId, String spaceId, String viewId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDatasheetPackValidateBeforeCall(id, userId, spaceId, viewId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getRecords - * @param dstId (optional) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Patch completed -
406 Not accepted -
- */ - public okhttp3.Call getRecordsCall(String dstId, String userId, String spaceId, String viewId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/get_records"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (dstId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dstId", dstId)); - } - - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - - if (spaceId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("spaceId", spaceId)); - } - - if (viewId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("viewId", viewId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRecordsValidateBeforeCall(String dstId, String userId, String spaceId, String viewId, final ApiCallback _callback) throws ApiException { - return getRecordsCall(dstId, userId, spaceId, viewId, _callback); - - } - - /** - * - * - * @param dstId (optional) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Patch completed -
406 Not accepted -
- */ - public void getRecords(String dstId, String userId, String spaceId, String viewId) throws ApiException { - getRecordsWithHttpInfo(dstId, userId, spaceId, viewId); - } - - /** - * - * - * @param dstId (optional) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 Patch completed -
406 Not accepted -
- */ - public ApiResponse getRecordsWithHttpInfo(String dstId, String userId, String spaceId, String viewId) throws ApiException { - okhttp3.Call localVarCall = getRecordsValidateBeforeCall(dstId, userId, spaceId, viewId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) - * - * @param dstId (optional) - * @param userId (optional) - * @param spaceId (optional) - * @param viewId (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 Patch completed -
406 Not accepted -
- */ - public okhttp3.Call getRecordsAsync(String dstId, String userId, String spaceId, String viewId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRecordsValidateBeforeCall(dstId, userId, spaceId, viewId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/DocumentDaoApiApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/DocumentDaoApiApi.java deleted file mode 100644 index d8234f1ca6..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/DocumentDaoApiApi.java +++ /dev/null @@ -1,558 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.apitable.databusclient.model.DocumentOperationRO; -import com.apitable.databusclient.model.DocumentRO; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class DocumentDaoApiApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentDaoApiApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentDaoApiApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for daoCreateDocumentOperation - * @param documentName document name (required) - * @param documentOperationRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create document operation successfully -
- */ - public okhttp3.Call daoCreateDocumentOperationCall(String documentName, DocumentOperationRO documentOperationRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = documentOperationRO; - - // create path and map variables - String localVarPath = "/databus/dao/documents/{document_name}/operations" - .replace("{" + "document_name" + "}", localVarApiClient.escapeString(documentName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoCreateDocumentOperationValidateBeforeCall(String documentName, DocumentOperationRO documentOperationRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentName' is set - if (documentName == null) { - throw new ApiException("Missing the required parameter 'documentName' when calling daoCreateDocumentOperation(Async)"); - } - - // verify the required parameter 'documentOperationRO' is set - if (documentOperationRO == null) { - throw new ApiException("Missing the required parameter 'documentOperationRO' when calling daoCreateDocumentOperation(Async)"); - } - - return daoCreateDocumentOperationCall(documentName, documentOperationRO, _callback); - - } - - /** - * create document operation success - * create document operation success - * @param documentName document name (required) - * @param documentOperationRO (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create document operation successfully -
- */ - public void daoCreateDocumentOperation(String documentName, DocumentOperationRO documentOperationRO) throws ApiException { - daoCreateDocumentOperationWithHttpInfo(documentName, documentOperationRO); - } - - /** - * create document operation success - * create document operation success - * @param documentName document name (required) - * @param documentOperationRO (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create document operation successfully -
- */ - public ApiResponse daoCreateDocumentOperationWithHttpInfo(String documentName, DocumentOperationRO documentOperationRO) throws ApiException { - okhttp3.Call localVarCall = daoCreateDocumentOperationValidateBeforeCall(documentName, documentOperationRO, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create document operation success (asynchronously) - * create document operation success - * @param documentName document name (required) - * @param documentOperationRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create document operation successfully -
- */ - public okhttp3.Call daoCreateDocumentOperationAsync(String documentName, DocumentOperationRO documentOperationRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoCreateDocumentOperationValidateBeforeCall(documentName, documentOperationRO, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoCreateOrUpdateDocument - * @param documentName document name (required) - * @param documentRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Create or update document successfully -
- */ - public okhttp3.Call daoCreateOrUpdateDocumentCall(String documentName, DocumentRO documentRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = documentRO; - - // create path and map variables - String localVarPath = "/databus/dao/documents/{document_name}" - .replace("{" + "document_name" + "}", localVarApiClient.escapeString(documentName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoCreateOrUpdateDocumentValidateBeforeCall(String documentName, DocumentRO documentRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentName' is set - if (documentName == null) { - throw new ApiException("Missing the required parameter 'documentName' when calling daoCreateOrUpdateDocument(Async)"); - } - - // verify the required parameter 'documentRO' is set - if (documentRO == null) { - throw new ApiException("Missing the required parameter 'documentRO' when calling daoCreateOrUpdateDocument(Async)"); - } - - return daoCreateOrUpdateDocumentCall(documentName, documentRO, _callback); - - } - - /** - * Create or update document - * Create or update document - * @param documentName document name (required) - * @param documentRO (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Create or update document successfully -
- */ - public void daoCreateOrUpdateDocument(String documentName, DocumentRO documentRO) throws ApiException { - daoCreateOrUpdateDocumentWithHttpInfo(documentName, documentRO); - } - - /** - * Create or update document - * Create or update document - * @param documentName document name (required) - * @param documentRO (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Create or update document successfully -
- */ - public ApiResponse daoCreateOrUpdateDocumentWithHttpInfo(String documentName, DocumentRO documentRO) throws ApiException { - okhttp3.Call localVarCall = daoCreateOrUpdateDocumentValidateBeforeCall(documentName, documentRO, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Create or update document (asynchronously) - * Create or update document - * @param documentName document name (required) - * @param documentRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Create or update document successfully -
- */ - public okhttp3.Call daoCreateOrUpdateDocumentAsync(String documentName, DocumentRO documentRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoCreateOrUpdateDocumentValidateBeforeCall(documentName, documentRO, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoGetDocumentData - * @param documentName document name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get document data successfully -
- */ - public okhttp3.Call daoGetDocumentDataCall(String documentName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/documents/{document_name}/data" - .replace("{" + "document_name" + "}", localVarApiClient.escapeString(documentName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetDocumentDataValidateBeforeCall(String documentName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentName' is set - if (documentName == null) { - throw new ApiException("Missing the required parameter 'documentName' when calling daoGetDocumentData(Async)"); - } - - return daoGetDocumentDataCall(documentName, _callback); - - } - - /** - * Get document data - * Get document data - * @param documentName document name (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get document data successfully -
- */ - public void daoGetDocumentData(String documentName) throws ApiException { - daoGetDocumentDataWithHttpInfo(documentName); - } - - /** - * Get document data - * Get document data - * @param documentName document name (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get document data successfully -
- */ - public ApiResponse daoGetDocumentDataWithHttpInfo(String documentName) throws ApiException { - okhttp3.Call localVarCall = daoGetDocumentDataValidateBeforeCall(documentName, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get document data (asynchronously) - * Get document data - * @param documentName document name (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get document data successfully -
- */ - public okhttp3.Call daoGetDocumentDataAsync(String documentName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetDocumentDataValidateBeforeCall(documentName, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for daoGetNewDocumentName - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get new document name successfully -
- */ - public okhttp3.Call daoGetNewDocumentNameCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/databus/dao/documents/name"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call daoGetNewDocumentNameValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return daoGetNewDocumentNameCall(_callback); - - } - - /** - * Get new document name - * Get new document name - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get new document name successfully -
- */ - public void daoGetNewDocumentName() throws ApiException { - daoGetNewDocumentNameWithHttpInfo(); - } - - /** - * Get new document name - * Get new document name - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get new document name successfully -
- */ - public ApiResponse daoGetNewDocumentNameWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = daoGetNewDocumentNameValidateBeforeCall(null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get new document name (asynchronously) - * Get new document name - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get new document name successfully -
- */ - public okhttp3.Call daoGetNewDocumentNameAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = daoGetNewDocumentNameValidateBeforeCall(_callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/EnterpriseFusionApiApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/EnterpriseFusionApiApi.java deleted file mode 100644 index 2455227493..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/EnterpriseFusionApiApi.java +++ /dev/null @@ -1,3670 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class EnterpriseFusionApiApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public EnterpriseFusionApiApi() { - this(Configuration.getDefaultApiClient()); - } - - public EnterpriseFusionApiApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for batchDeleteView - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 batch_delete_view successfully -
- */ - public okhttp3.Call batchDeleteViewCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/views" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call batchDeleteViewValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling batchDeleteView(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling batchDeleteView(Async)"); - } - - return batchDeleteViewCall(dstId, authorization, _callback); - - } - - /** - * batch_delete_view - * batch_delete_view Batch delete views in a specified datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 batch_delete_view successfully -
- */ - public void batchDeleteView(String dstId, String authorization) throws ApiException { - batchDeleteViewWithHttpInfo(dstId, authorization); - } - - /** - * batch_delete_view - * batch_delete_view Batch delete views in a specified datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 batch_delete_view successfully -
- */ - public ApiResponse batchDeleteViewWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = batchDeleteViewValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * batch_delete_view (asynchronously) - * batch_delete_view Batch delete views in a specified datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 batch_delete_view successfully -
- */ - public okhttp3.Call batchDeleteViewAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = batchDeleteViewValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for copyView - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 copy_view successfully -
- */ - public okhttp3.Call copyViewCall(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/views/{view_id}/duplicate" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())) - .replace("{" + "view_id" + "}", localVarApiClient.escapeString(viewId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call copyViewValidateBeforeCall(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling copyView(Async)"); - } - - // verify the required parameter 'viewId' is set - if (viewId == null) { - throw new ApiException("Missing the required parameter 'viewId' when calling copyView(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling copyView(Async)"); - } - - return copyViewCall(dstId, viewId, authorization, _callback); - - } - - /** - * copy_view - * copy_view copy a view at a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 copy_view successfully -
- */ - public void copyView(String dstId, String viewId, String authorization) throws ApiException { - copyViewWithHttpInfo(dstId, viewId, authorization); - } - - /** - * copy_view - * copy_view copy a view at a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 copy_view successfully -
- */ - public ApiResponse copyViewWithHttpInfo(String dstId, String viewId, String authorization) throws ApiException { - okhttp3.Call localVarCall = copyViewValidateBeforeCall(dstId, viewId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * copy_view (asynchronously) - * copy_view copy a view at a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 copy_view successfully -
- */ - public okhttp3.Call copyViewAsync(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = copyViewValidateBeforeCall(dstId, viewId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createChatCompletion - * @param aiId ai_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_chat_completion successfully -
- */ - public okhttp3.Call createChatCompletionCall(String aiId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/ai/{ai_id}/chat/completions" - .replace("{" + "ai_id" + "}", localVarApiClient.escapeString(aiId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createChatCompletionValidateBeforeCall(String aiId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'aiId' is set - if (aiId == null) { - throw new ApiException("Missing the required parameter 'aiId' when calling createChatCompletion(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createChatCompletion(Async)"); - } - - return createChatCompletionCall(aiId, authorization, _callback); - - } - - /** - * create_chat_completion - * create_chat_completion Creates a model response for the given chat conversation - * @param aiId ai_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_chat_completion successfully -
- */ - public void createChatCompletion(String aiId, String authorization) throws ApiException { - createChatCompletionWithHttpInfo(aiId, authorization); - } - - /** - * create_chat_completion - * create_chat_completion Creates a model response for the given chat conversation - * @param aiId ai_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_chat_completion successfully -
- */ - public ApiResponse createChatCompletionWithHttpInfo(String aiId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createChatCompletionValidateBeforeCall(aiId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_chat_completion (asynchronously) - * create_chat_completion Creates a model response for the given chat conversation - * @param aiId ai_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_chat_completion successfully -
- */ - public okhttp3.Call createChatCompletionAsync(String aiId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createChatCompletionValidateBeforeCall(aiId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createEmbedLink - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_embed_link successfully -
- */ - public okhttp3.Call createEmbedLinkCall(String spaceId, String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/nodes/{node_id}/embedlinks" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "node_id" + "}", localVarApiClient.escapeString(nodeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createEmbedLinkValidateBeforeCall(String spaceId, String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling createEmbedLink(Async)"); - } - - // verify the required parameter 'nodeId' is set - if (nodeId == null) { - throw new ApiException("Missing the required parameter 'nodeId' when calling createEmbedLink(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createEmbedLink(Async)"); - } - - return createEmbedLinkCall(spaceId, nodeId, authorization, _callback); - - } - - /** - * create_embed_link - * create_embed_link Creates an \"embed link\" for the specified node - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_embed_link successfully -
- */ - public void createEmbedLink(String spaceId, String nodeId, String authorization) throws ApiException { - createEmbedLinkWithHttpInfo(spaceId, nodeId, authorization); - } - - /** - * create_embed_link - * create_embed_link Creates an \"embed link\" for the specified node - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_embed_link successfully -
- */ - public ApiResponse createEmbedLinkWithHttpInfo(String spaceId, String nodeId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createEmbedLinkValidateBeforeCall(spaceId, nodeId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_embed_link (asynchronously) - * create_embed_link Creates an \"embed link\" for the specified node - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_embed_link successfully -
- */ - public okhttp3.Call createEmbedLinkAsync(String spaceId, String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createEmbedLinkValidateBeforeCall(spaceId, nodeId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createMember - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_member successfully -
- */ - public okhttp3.Call createMemberCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/members" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createMemberValidateBeforeCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling createMember(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createMember(Async)"); - } - - return createMemberCall(spaceId, authorization, _callback); - - } - - /** - * create_member - * create_member Create a member for a specified space - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_member successfully -
- */ - public void createMember(String spaceId, String authorization) throws ApiException { - createMemberWithHttpInfo(spaceId, authorization); - } - - /** - * create_member - * create_member Create a member for a specified space - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_member successfully -
- */ - public ApiResponse createMemberWithHttpInfo(String spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createMemberValidateBeforeCall(spaceId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_member (asynchronously) - * create_member Create a member for a specified space - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_member successfully -
- */ - public okhttp3.Call createMemberAsync(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createMemberValidateBeforeCall(spaceId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createRole - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_role successfully -
- */ - public okhttp3.Call createRoleCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/roles" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createRoleValidateBeforeCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling createRole(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createRole(Async)"); - } - - return createRoleCall(spaceId, authorization, _callback); - - } - - /** - * create_role - * create_role Create a role for a specified space. - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_role successfully -
- */ - public void createRole(String spaceId, String authorization) throws ApiException { - createRoleWithHttpInfo(spaceId, authorization); - } - - /** - * create_role - * create_role Create a role for a specified space. - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_role successfully -
- */ - public ApiResponse createRoleWithHttpInfo(String spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createRoleValidateBeforeCall(spaceId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_role (asynchronously) - * create_role Create a role for a specified space. - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_role successfully -
- */ - public okhttp3.Call createRoleAsync(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createRoleValidateBeforeCall(spaceId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createTeam - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_team successfully -
- */ - public okhttp3.Call createTeamCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/teams" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createTeamValidateBeforeCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling createTeam(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createTeam(Async)"); - } - - return createTeamCall(spaceId, authorization, _callback); - - } - - /** - * create_team - * create_team Create a team for a specified space. - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_team successfully -
- */ - public void createTeam(String spaceId, String authorization) throws ApiException { - createTeamWithHttpInfo(spaceId, authorization); - } - - /** - * create_team - * create_team Create a team for a specified space. - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_team successfully -
- */ - public ApiResponse createTeamWithHttpInfo(String spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createTeamValidateBeforeCall(spaceId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_team (asynchronously) - * create_team Create a team for a specified space. - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_team successfully -
- */ - public okhttp3.Call createTeamAsync(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createTeamValidateBeforeCall(spaceId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createView - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_view successfully -
- */ - public okhttp3.Call createViewCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/views" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createViewValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling createView(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createView(Async)"); - } - - return createViewCall(dstId, authorization, _callback); - - } - - /** - * create_view - * create_view Add a view to a specified datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_view successfully -
- */ - public void createView(String dstId, String authorization) throws ApiException { - createViewWithHttpInfo(dstId, authorization); - } - - /** - * create_view - * create_view Add a view to a specified datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_view successfully -
- */ - public ApiResponse createViewWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createViewValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_view (asynchronously) - * create_view Add a view to a specified datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_view successfully -
- */ - public okhttp3.Call createViewAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createViewValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createWidget - * @param dashboardId dashboard_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_widget successfully -
- */ - public okhttp3.Call createWidgetCall(String dashboardId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/dashboards/{dashboard_id}/widgets" - .replace("{" + "dashboard_id" + "}", localVarApiClient.escapeString(dashboardId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createWidgetValidateBeforeCall(String dashboardId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dashboardId' is set - if (dashboardId == null) { - throw new ApiException("Missing the required parameter 'dashboardId' when calling createWidget(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createWidget(Async)"); - } - - return createWidgetCall(dashboardId, authorization, _callback); - - } - - /** - * create_widget - * create_widget Add a widget to a specified dashboard - * @param dashboardId dashboard_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_widget successfully -
- */ - public void createWidget(String dashboardId, String authorization) throws ApiException { - createWidgetWithHttpInfo(dashboardId, authorization); - } - - /** - * create_widget - * create_widget Add a widget to a specified dashboard - * @param dashboardId dashboard_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 create_widget successfully -
- */ - public ApiResponse createWidgetWithHttpInfo(String dashboardId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createWidgetValidateBeforeCall(dashboardId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_widget (asynchronously) - * create_widget Add a widget to a specified dashboard - * @param dashboardId dashboard_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 create_widget successfully -
- */ - public okhttp3.Call createWidgetAsync(String dashboardId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createWidgetValidateBeforeCall(dashboardId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteEmbedLink - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param linkId link_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_embed_link successfully -
- */ - public okhttp3.Call deleteEmbedLinkCall(String spaceId, String nodeId, String linkId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/nodes/{node_id}/embedlinks/{link_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "node_id" + "}", localVarApiClient.escapeString(nodeId.toString())) - .replace("{" + "link_id" + "}", localVarApiClient.escapeString(linkId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteEmbedLinkValidateBeforeCall(String spaceId, String nodeId, String linkId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling deleteEmbedLink(Async)"); - } - - // verify the required parameter 'nodeId' is set - if (nodeId == null) { - throw new ApiException("Missing the required parameter 'nodeId' when calling deleteEmbedLink(Async)"); - } - - // verify the required parameter 'linkId' is set - if (linkId == null) { - throw new ApiException("Missing the required parameter 'linkId' when calling deleteEmbedLink(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteEmbedLink(Async)"); - } - - return deleteEmbedLinkCall(spaceId, nodeId, linkId, authorization, _callback); - - } - - /** - * delete_embed_link - * delete_embed_link Removes the specified Advanced Embed link. After deleted, the link cannot be accessed. - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param linkId link_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_embed_link successfully -
- */ - public void deleteEmbedLink(String spaceId, String nodeId, String linkId, String authorization) throws ApiException { - deleteEmbedLinkWithHttpInfo(spaceId, nodeId, linkId, authorization); - } - - /** - * delete_embed_link - * delete_embed_link Removes the specified Advanced Embed link. After deleted, the link cannot be accessed. - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param linkId link_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_embed_link successfully -
- */ - public ApiResponse deleteEmbedLinkWithHttpInfo(String spaceId, String nodeId, String linkId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteEmbedLinkValidateBeforeCall(spaceId, nodeId, linkId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * delete_embed_link (asynchronously) - * delete_embed_link Removes the specified Advanced Embed link. After deleted, the link cannot be accessed. - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param linkId link_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_embed_link successfully -
- */ - public okhttp3.Call deleteEmbedLinkAsync(String spaceId, String nodeId, String linkId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteEmbedLinkValidateBeforeCall(spaceId, nodeId, linkId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteMember - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_member successfully -
- */ - public okhttp3.Call deleteMemberCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/members/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMemberValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling deleteMember(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling deleteMember(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteMember(Async)"); - } - - return deleteMemberCall(spaceId, unitId, authorization, _callback); - - } - - /** - * delete_member - * delete_member Delete a member for a specified space. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_member successfully -
- */ - public void deleteMember(String spaceId, String unitId, String authorization) throws ApiException { - deleteMemberWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * delete_member - * delete_member Delete a member for a specified space. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_member successfully -
- */ - public ApiResponse deleteMemberWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteMemberValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * delete_member (asynchronously) - * delete_member Delete a member for a specified space. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_member successfully -
- */ - public okhttp3.Call deleteMemberAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteMemberValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteRole - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_role successfully -
- */ - public okhttp3.Call deleteRoleCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/roles/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRoleValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling deleteRole(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling deleteRole(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteRole(Async)"); - } - - return deleteRoleCall(spaceId, unitId, authorization, _callback); - - } - - /** - * delete_role - * delete_role Delete a role for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_role successfully -
- */ - public void deleteRole(String spaceId, String unitId, String authorization) throws ApiException { - deleteRoleWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * delete_role - * delete_role Delete a role for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_role successfully -
- */ - public ApiResponse deleteRoleWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteRoleValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * delete_role (asynchronously) - * delete_role Delete a role for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_role successfully -
- */ - public okhttp3.Call deleteRoleAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteRoleValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteTeam - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_team successfully -
- */ - public okhttp3.Call deleteTeamCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/teams/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTeamValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling deleteTeam(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling deleteTeam(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteTeam(Async)"); - } - - return deleteTeamCall(spaceId, unitId, authorization, _callback); - - } - - /** - * delete_team - * delete_team Delete a team for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_team successfully -
- */ - public void deleteTeam(String spaceId, String unitId, String authorization) throws ApiException { - deleteTeamWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * delete_team - * delete_team Delete a team for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_team successfully -
- */ - public ApiResponse deleteTeamWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteTeamValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * delete_team (asynchronously) - * delete_team Delete a team for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_team successfully -
- */ - public okhttp3.Call deleteTeamAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteTeamValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteView - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_view successfully -
- */ - public okhttp3.Call deleteViewCall(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/views/{view_id}" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())) - .replace("{" + "view_id" + "}", localVarApiClient.escapeString(viewId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteViewValidateBeforeCall(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling deleteView(Async)"); - } - - // verify the required parameter 'viewId' is set - if (viewId == null) { - throw new ApiException("Missing the required parameter 'viewId' when calling deleteView(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteView(Async)"); - } - - return deleteViewCall(dstId, viewId, authorization, _callback); - - } - - /** - * delete_view - * delete_view Delete a view in a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_view successfully -
- */ - public void deleteView(String dstId, String viewId, String authorization) throws ApiException { - deleteViewWithHttpInfo(dstId, viewId, authorization); - } - - /** - * delete_view - * delete_view Delete a view in a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_view successfully -
- */ - public ApiResponse deleteViewWithHttpInfo(String dstId, String viewId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteViewValidateBeforeCall(dstId, viewId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * delete_view (asynchronously) - * delete_view Delete a view in a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_view successfully -
- */ - public okhttp3.Call deleteViewAsync(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteViewValidateBeforeCall(dstId, viewId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteWidget - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_widget successfully -
- */ - public okhttp3.Call deleteWidgetCall(String dashboardId, String widgetId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/dashboards/{dashboard_id}/widgets/{widget_id}" - .replace("{" + "dashboard_id" + "}", localVarApiClient.escapeString(dashboardId.toString())) - .replace("{" + "widget_id" + "}", localVarApiClient.escapeString(widgetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteWidgetValidateBeforeCall(String dashboardId, String widgetId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dashboardId' is set - if (dashboardId == null) { - throw new ApiException("Missing the required parameter 'dashboardId' when calling deleteWidget(Async)"); - } - - // verify the required parameter 'widgetId' is set - if (widgetId == null) { - throw new ApiException("Missing the required parameter 'widgetId' when calling deleteWidget(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteWidget(Async)"); - } - - return deleteWidgetCall(dashboardId, widgetId, authorization, _callback); - - } - - /** - * delete_widget - * delete_widget delete widget in a specified dashboard - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_widget successfully -
- */ - public void deleteWidget(String dashboardId, String widgetId, String authorization) throws ApiException { - deleteWidgetWithHttpInfo(dashboardId, widgetId, authorization); - } - - /** - * delete_widget - * delete_widget delete widget in a specified dashboard - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_widget successfully -
- */ - public ApiResponse deleteWidgetWithHttpInfo(String dashboardId, String widgetId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteWidgetValidateBeforeCall(dashboardId, widgetId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * delete_widget (asynchronously) - * delete_widget delete widget in a specified dashboard - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 delete_widget successfully -
- */ - public okhttp3.Call deleteWidgetAsync(String dashboardId, String widgetId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteWidgetValidateBeforeCall(dashboardId, widgetId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getEmbedLinkList - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_embed_link_list successfully -
- */ - public okhttp3.Call getEmbedLinkListCall(String spaceId, String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/nodes/{node_id}/embedlinks" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "node_id" + "}", localVarApiClient.escapeString(nodeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getEmbedLinkListValidateBeforeCall(String spaceId, String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling getEmbedLinkList(Async)"); - } - - // verify the required parameter 'nodeId' is set - if (nodeId == null) { - throw new ApiException("Missing the required parameter 'nodeId' when calling getEmbedLinkList(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getEmbedLinkList(Async)"); - } - - return getEmbedLinkListCall(spaceId, nodeId, authorization, _callback); - - } - - /** - * get_embed_link_list - * get_embed_link_list Get all embedded links for a specified node - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_embed_link_list successfully -
- */ - public void getEmbedLinkList(String spaceId, String nodeId, String authorization) throws ApiException { - getEmbedLinkListWithHttpInfo(spaceId, nodeId, authorization); - } - - /** - * get_embed_link_list - * get_embed_link_list Get all embedded links for a specified node - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_embed_link_list successfully -
- */ - public ApiResponse getEmbedLinkListWithHttpInfo(String spaceId, String nodeId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getEmbedLinkListValidateBeforeCall(spaceId, nodeId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * get_embed_link_list (asynchronously) - * get_embed_link_list Get all embedded links for a specified node - * @param spaceId space_id (required) - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_embed_link_list successfully -
- */ - public okhttp3.Call getEmbedLinkListAsync(String spaceId, String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getEmbedLinkListValidateBeforeCall(spaceId, nodeId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for memberDetail - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 member_detail successfully -
- */ - public okhttp3.Call memberDetailCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/members/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call memberDetailValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling memberDetail(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling memberDetail(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling memberDetail(Async)"); - } - - return memberDetailCall(spaceId, unitId, authorization, _callback); - - } - - /** - * member_detail - * member_detail Get member details information - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 member_detail successfully -
- */ - public void memberDetail(String spaceId, String unitId, String authorization) throws ApiException { - memberDetailWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * member_detail - * member_detail Get member details information - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 member_detail successfully -
- */ - public ApiResponse memberDetailWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = memberDetailValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * member_detail (asynchronously) - * member_detail Get member details information - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 member_detail successfully -
- */ - public okhttp3.Call memberDetailAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = memberDetailValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for roleList - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 role_list successfully -
- */ - public okhttp3.Call roleListCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/roles" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call roleListValidateBeforeCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling roleList(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling roleList(Async)"); - } - - return roleListCall(spaceId, authorization, _callback); - - } - - /** - * role_list - * role_list Get roles for a specified space - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 role_list successfully -
- */ - public void roleList(String spaceId, String authorization) throws ApiException { - roleListWithHttpInfo(spaceId, authorization); - } - - /** - * role_list - * role_list Get roles for a specified space - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 role_list successfully -
- */ - public ApiResponse roleListWithHttpInfo(String spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = roleListValidateBeforeCall(spaceId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * role_list (asynchronously) - * role_list Get roles for a specified space - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 role_list successfully -
- */ - public okhttp3.Call roleListAsync(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = roleListValidateBeforeCall(spaceId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for roleUnitList - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 role_unit_list successfully -
- */ - public okhttp3.Call roleUnitListCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/roles/{unit_id}/units" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call roleUnitListValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling roleUnitList(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling roleUnitList(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling roleUnitList(Async)"); - } - - return roleUnitListCall(spaceId, unitId, authorization, _callback); - - } - - /** - * role_unit_list - * role_unit_list Get the organizational units under the specified role unitId, the returned data includes teams and members. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 role_unit_list successfully -
- */ - public void roleUnitList(String spaceId, String unitId, String authorization) throws ApiException { - roleUnitListWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * role_unit_list - * role_unit_list Get the organizational units under the specified role unitId, the returned data includes teams and members. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 role_unit_list successfully -
- */ - public ApiResponse roleUnitListWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = roleUnitListValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * role_unit_list (asynchronously) - * role_unit_list Get the organizational units under the specified role unitId, the returned data includes teams and members. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 role_unit_list successfully -
- */ - public okhttp3.Call roleUnitListAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = roleUnitListValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for subTeamList - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 sub_team_list successfully -
- */ - public okhttp3.Call subTeamListCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/teams/{unit_id}/children" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call subTeamListValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling subTeamList(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling subTeamList(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling subTeamList(Async)"); - } - - return subTeamListCall(spaceId, unitId, authorization, _callback); - - } - - /** - * sub_team_list - * sub_team_list Get the list of sub teams of a team by UnitId. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 sub_team_list successfully -
- */ - public void subTeamList(String spaceId, String unitId, String authorization) throws ApiException { - subTeamListWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * sub_team_list - * sub_team_list Get the list of sub teams of a team by UnitId. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 sub_team_list successfully -
- */ - public ApiResponse subTeamListWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = subTeamListValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * sub_team_list (asynchronously) - * sub_team_list Get the list of sub teams of a team by UnitId. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 sub_team_list successfully -
- */ - public okhttp3.Call subTeamListAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = subTeamListValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for teamMemberList - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 team_member_list successfully -
- */ - public okhttp3.Call teamMemberListCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/teams/{unit_id}/members" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call teamMemberListValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling teamMemberList(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling teamMemberList(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling teamMemberList(Async)"); - } - - return teamMemberListCall(spaceId, unitId, authorization, _callback); - - } - - /** - * team_member_list - * team_member_list List members under team. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 team_member_list successfully -
- */ - public void teamMemberList(String spaceId, String unitId, String authorization) throws ApiException { - teamMemberListWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * team_member_list - * team_member_list List members under team. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 team_member_list successfully -
- */ - public ApiResponse teamMemberListWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = teamMemberListValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * team_member_list (asynchronously) - * team_member_list List members under team. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 team_member_list successfully -
- */ - public okhttp3.Call teamMemberListAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = teamMemberListValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateMember - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_member successfully -
- */ - public okhttp3.Call updateMemberCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/members/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateMemberValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling updateMember(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling updateMember(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling updateMember(Async)"); - } - - return updateMemberCall(spaceId, unitId, authorization, _callback); - - } - - /** - * update_member - * update_member Update a member for a specified space. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_member successfully -
- */ - public void updateMember(String spaceId, String unitId, String authorization) throws ApiException { - updateMemberWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * update_member - * update_member Update a member for a specified space. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_member successfully -
- */ - public ApiResponse updateMemberWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateMemberValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * update_member (asynchronously) - * update_member Update a member for a specified space. - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_member successfully -
- */ - public okhttp3.Call updateMemberAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateMemberValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateRole - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_role successfully -
- */ - public okhttp3.Call updateRoleCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/roles/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRoleValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling updateRole(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling updateRole(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling updateRole(Async)"); - } - - return updateRoleCall(spaceId, unitId, authorization, _callback); - - } - - /** - * update_role - * update_role Update roles for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_role successfully -
- */ - public void updateRole(String spaceId, String unitId, String authorization) throws ApiException { - updateRoleWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * update_role - * update_role Update roles for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_role successfully -
- */ - public ApiResponse updateRoleWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateRoleValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * update_role (asynchronously) - * update_role Update roles for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_role successfully -
- */ - public okhttp3.Call updateRoleAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateRoleValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateTeam - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_team successfully -
- */ - public okhttp3.Call updateTeamCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/teams/{unit_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "unit_id" + "}", localVarApiClient.escapeString(unitId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateTeamValidateBeforeCall(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling updateTeam(Async)"); - } - - // verify the required parameter 'unitId' is set - if (unitId == null) { - throw new ApiException("Missing the required parameter 'unitId' when calling updateTeam(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling updateTeam(Async)"); - } - - return updateTeamCall(spaceId, unitId, authorization, _callback); - - } - - /** - * update_team - * update_team Update a for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_team successfully -
- */ - public void updateTeam(String spaceId, String unitId, String authorization) throws ApiException { - updateTeamWithHttpInfo(spaceId, unitId, authorization); - } - - /** - * update_team - * update_team Update a for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_team successfully -
- */ - public ApiResponse updateTeamWithHttpInfo(String spaceId, String unitId, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateTeamValidateBeforeCall(spaceId, unitId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * update_team (asynchronously) - * update_team Update a for a specified space - * @param spaceId space_id (required) - * @param unitId unit_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_team successfully -
- */ - public okhttp3.Call updateTeamAsync(String spaceId, String unitId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateTeamValidateBeforeCall(spaceId, unitId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateView - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_view successfully -
- */ - public okhttp3.Call updateViewCall(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/views/{view_id}" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())) - .replace("{" + "view_id" + "}", localVarApiClient.escapeString(viewId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateViewValidateBeforeCall(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling updateView(Async)"); - } - - // verify the required parameter 'viewId' is set - if (viewId == null) { - throw new ApiException("Missing the required parameter 'viewId' when calling updateView(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling updateView(Async)"); - } - - return updateViewCall(dstId, viewId, authorization, _callback); - - } - - /** - * update_view - * update_view update a view in a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_view successfully -
- */ - public void updateView(String dstId, String viewId, String authorization) throws ApiException { - updateViewWithHttpInfo(dstId, viewId, authorization); - } - - /** - * update_view - * update_view update a view in a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_view successfully -
- */ - public ApiResponse updateViewWithHttpInfo(String dstId, String viewId, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateViewValidateBeforeCall(dstId, viewId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * update_view (asynchronously) - * update_view update a view in a specified datasheet - * @param dstId dst_id (required) - * @param viewId view_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_view successfully -
- */ - public okhttp3.Call updateViewAsync(String dstId, String viewId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateViewValidateBeforeCall(dstId, viewId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateWidget - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_widget successfully -
- */ - public okhttp3.Call updateWidgetCall(String dashboardId, String widgetId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/dashboards/{dashboard_id}/widgets/{widget_id}" - .replace("{" + "dashboard_id" + "}", localVarApiClient.escapeString(dashboardId.toString())) - .replace("{" + "widget_id" + "}", localVarApiClient.escapeString(widgetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateWidgetValidateBeforeCall(String dashboardId, String widgetId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dashboardId' is set - if (dashboardId == null) { - throw new ApiException("Missing the required parameter 'dashboardId' when calling updateWidget(Async)"); - } - - // verify the required parameter 'widgetId' is set - if (widgetId == null) { - throw new ApiException("Missing the required parameter 'widgetId' when calling updateWidget(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling updateWidget(Async)"); - } - - return updateWidgetCall(dashboardId, widgetId, authorization, _callback); - - } - - /** - * update_widget - * update_widget modify widget in a specified dashboard - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_widget successfully -
- */ - public void updateWidget(String dashboardId, String widgetId, String authorization) throws ApiException { - updateWidgetWithHttpInfo(dashboardId, widgetId, authorization); - } - - /** - * update_widget - * update_widget modify widget in a specified dashboard - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 update_widget successfully -
- */ - public ApiResponse updateWidgetWithHttpInfo(String dashboardId, String widgetId, String authorization) throws ApiException { - okhttp3.Call localVarCall = updateWidgetValidateBeforeCall(dashboardId, widgetId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * update_widget (asynchronously) - * update_widget modify widget in a specified dashboard - * @param dashboardId dashboard_id (required) - * @param widgetId widget_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 update_widget successfully -
- */ - public okhttp3.Call updateWidgetAsync(String dashboardId, String widgetId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateWidgetValidateBeforeCall(dashboardId, widgetId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/api/FusionApiApi.java b/backend-server/application/src/main/java/com/apitable/databusclient/api/FusionApiApi.java deleted file mode 100644 index e54750dd23..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/api/FusionApiApi.java +++ /dev/null @@ -1,2201 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.api; - -import com.apitable.databusclient.ApiCallback; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.ApiResponse; -import com.apitable.databusclient.Configuration; -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ProgressRequestBody; -import com.apitable.databusclient.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import com.apitable.databusclient.model.ApiResponseRecordVos; -import com.apitable.databusclient.model.CellFormatEnum; -import com.apitable.databusclient.model.FieldKeyEnum; -import com.apitable.databusclient.model.ListVO; -import com.apitable.databusclient.model.RecordUpdateRO; -import com.apitable.databusclient.model.SortRO; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class FusionApiApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public FusionApiApi() { - this(Configuration.getDefaultApiClient()); - } - - public FusionApiApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addRecords - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public okhttp3.Call addRecordsCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/records" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addRecordsValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling addRecords(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling addRecords(Async)"); - } - - return addRecordsCall(dstId, authorization, _callback); - - } - - /** - * Add multiple rows to a specified datasheet - * Add multiple rows to a specified datasheet Up to 10 records can be created in a single request. You need to bring `Content-Type: application/json` in the Request Header to submit data in raw json format. The POST data is a JSON object, which should contain an array: `records`, the records array contains multiple records to be created. The object `fields` contains the values of the fields to be created in a record, and can contain any number of field values, not necessarily all of them. If there are field defaults set, field values that are not passed in will be saved according to the default values at the time the fields were set. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public void addRecords(String dstId, String authorization) throws ApiException { - addRecordsWithHttpInfo(dstId, authorization); - } - - /** - * Add multiple rows to a specified datasheet - * Add multiple rows to a specified datasheet Up to 10 records can be created in a single request. You need to bring `Content-Type: application/json` in the Request Header to submit data in raw json format. The POST data is a JSON object, which should contain an array: `records`, the records array contains multiple records to be created. The object `fields` contains the values of the fields to be created in a record, and can contain any number of field values, not necessarily all of them. If there are field defaults set, field values that are not passed in will be saved according to the default values at the time the fields were set. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public ApiResponse addRecordsWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = addRecordsValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Add multiple rows to a specified datasheet (asynchronously) - * Add multiple rows to a specified datasheet Up to 10 records can be created in a single request. You need to bring `Content-Type: application/json` in the Request Header to submit data in raw json format. The POST data is a JSON object, which should contain an array: `records`, the records array contains multiple records to be created. The object `fields` contains the values of the fields to be created in a record, and can contain any number of field values, not necessarily all of them. If there are field defaults set, field values that are not passed in will be saved according to the default values at the time the fields were set. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public okhttp3.Call addRecordsAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addRecordsValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createDatasheet - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call createDatasheetCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/datasheets" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createDatasheetValidateBeforeCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling createDatasheet(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createDatasheet(Async)"); - } - - return createDatasheetCall(spaceId, authorization, _callback); - - } - - /** - * Create Datasheet - * Create Datasheet Create Datasheet and their fields - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public void createDatasheet(String spaceId, String authorization) throws ApiException { - createDatasheetWithHttpInfo(spaceId, authorization); - } - - /** - * Create Datasheet - * Create Datasheet Create Datasheet and their fields - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public ApiResponse createDatasheetWithHttpInfo(String spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createDatasheetValidateBeforeCall(spaceId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Create Datasheet (asynchronously) - * Create Datasheet Create Datasheet and their fields - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call createDatasheetAsync(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createDatasheetValidateBeforeCall(spaceId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for createFields - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call createFieldsCall(String spaceId, String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/datasheets/{dst_id}/fields" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createFieldsValidateBeforeCall(String spaceId, String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling createFields(Async)"); - } - - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling createFields(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling createFields(Async)"); - } - - return createFieldsCall(spaceId, dstId, authorization, _callback); - - } - - /** - * create_fields - * create_fields create_fields - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public void createFields(String spaceId, String dstId, String authorization) throws ApiException { - createFieldsWithHttpInfo(spaceId, dstId, authorization); - } - - /** - * create_fields - * create_fields create_fields - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public ApiResponse createFieldsWithHttpInfo(String spaceId, String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = createFieldsValidateBeforeCall(spaceId, dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * create_fields (asynchronously) - * create_fields create_fields - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call createFieldsAsync(String spaceId, String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createFieldsValidateBeforeCall(spaceId, dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteFields - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param fieldId field_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call deleteFieldsCall(String spaceId, String dstId, String fieldId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/datasheets/{dst_id}/fields/{field_id}" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())) - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())) - .replace("{" + "field_id" + "}", localVarApiClient.escapeString(fieldId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFieldsValidateBeforeCall(String spaceId, String dstId, String fieldId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling deleteFields(Async)"); - } - - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling deleteFields(Async)"); - } - - // verify the required parameter 'fieldId' is set - if (fieldId == null) { - throw new ApiException("Missing the required parameter 'fieldId' when calling deleteFields(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteFields(Async)"); - } - - return deleteFieldsCall(spaceId, dstId, fieldId, authorization, _callback); - - } - - /** - * Delete field - * Delete field Delete field - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param fieldId field_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public void deleteFields(String spaceId, String dstId, String fieldId, String authorization) throws ApiException { - deleteFieldsWithHttpInfo(spaceId, dstId, fieldId, authorization); - } - - /** - * Delete field - * Delete field Delete field - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param fieldId field_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public ApiResponse deleteFieldsWithHttpInfo(String spaceId, String dstId, String fieldId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteFieldsValidateBeforeCall(spaceId, dstId, fieldId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Delete field (asynchronously) - * Delete field Delete field - * @param spaceId space_id (required) - * @param dstId dst_id (required) - * @param fieldId field_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call deleteFieldsAsync(String spaceId, String dstId, String fieldId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteFieldsValidateBeforeCall(spaceId, dstId, fieldId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for deleteRecords - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet successfully -
- */ - public okhttp3.Call deleteRecordsCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/records" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRecordsValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling deleteRecords(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling deleteRecords(Async)"); - } - - return deleteRecordsCall(dstId, authorization, _callback); - - } - - /** - * Delete records - * Delete records Delete a number of records from a datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet successfully -
- */ - public void deleteRecords(String dstId, String authorization) throws ApiException { - deleteRecordsWithHttpInfo(dstId, authorization); - } - - /** - * Delete records - * Delete records Delete a number of records from a datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet successfully -
- */ - public ApiResponse deleteRecordsWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = deleteRecordsValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Delete records (asynchronously) - * Delete records Delete a number of records from a datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet successfully -
- */ - public okhttp3.Call deleteRecordsAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteRecordsValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for executeCommand - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 execute_command successfully -
- */ - public okhttp3.Call executeCommandCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/executeCommand" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call executeCommandValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling executeCommand(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling executeCommand(Async)"); - } - - return executeCommandCall(dstId, authorization, _callback); - - } - - /** - * Create the op of the resource - * Create the op of the resource For flexibility reasons and for internal automation testing, provide an interface to freely create commands - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 execute_command successfully -
- */ - public void executeCommand(String dstId, String authorization) throws ApiException { - executeCommandWithHttpInfo(dstId, authorization); - } - - /** - * Create the op of the resource - * Create the op of the resource For flexibility reasons and for internal automation testing, provide an interface to freely create commands - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 execute_command successfully -
- */ - public ApiResponse executeCommandWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = executeCommandValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Create the op of the resource (asynchronously) - * Create the op of the resource For flexibility reasons and for internal automation testing, provide an interface to freely create commands - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 execute_command successfully -
- */ - public okhttp3.Call executeCommandAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = executeCommandValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getFields - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call getFieldsCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/fields" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getFieldsValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling getFields(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getFields(Async)"); - } - - return getFieldsCall(dstId, authorization, _callback); - - } - - /** - * Query all fields of a datasheet - * Query all fields of a datasheet All lines of the doc comment will be included to operation description. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public void getFields(String dstId, String authorization) throws ApiException { - getFieldsWithHttpInfo(dstId, authorization); - } - - /** - * Query all fields of a datasheet - * Query all fields of a datasheet All lines of the doc comment will be included to operation description. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public ApiResponse getFieldsWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getFieldsValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Query all fields of a datasheet (asynchronously) - * Query all fields of a datasheet All lines of the doc comment will be included to operation description. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call getFieldsAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getFieldsValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getNodes - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_nodes successfully -
- */ - public okhttp3.Call getNodesCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces/{space_id}/nodes" - .replace("{" + "space_id" + "}", localVarApiClient.escapeString(spaceId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getNodesValidateBeforeCall(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'spaceId' is set - if (spaceId == null) { - throw new ApiException("Missing the required parameter 'spaceId' when calling getNodes(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getNodes(Async)"); - } - - return getNodesCall(spaceId, authorization, _callback); - - } - - /** - * get_nodes - * get_nodes Query the list of space station level 1 document nodes - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_nodes successfully -
- */ - public void getNodes(String spaceId, String authorization) throws ApiException { - getNodesWithHttpInfo(spaceId, authorization); - } - - /** - * get_nodes - * get_nodes Query the list of space station level 1 document nodes - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_nodes successfully -
- */ - public ApiResponse getNodesWithHttpInfo(String spaceId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getNodesValidateBeforeCall(spaceId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * get_nodes (asynchronously) - * get_nodes Query the list of space station level 1 document nodes - * @param spaceId space_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_nodes successfully -
- */ - public okhttp3.Call getNodesAsync(String spaceId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getNodesValidateBeforeCall(spaceId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getPresignedUrl - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_presigned_url successfully -
- */ - public okhttp3.Call getPresignedUrlCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/attachments/presignedUrl" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getPresignedUrlValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling getPresignedUrl(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getPresignedUrl(Async)"); - } - - return getPresignedUrlCall(dstId, authorization, _callback); - - } - - /** - * get_presigned_url - * get_presigned_url Get the pre-signed URL of the datasheet attachment - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_presigned_url successfully -
- */ - public void getPresignedUrl(String dstId, String authorization) throws ApiException { - getPresignedUrlWithHttpInfo(dstId, authorization); - } - - /** - * get_presigned_url - * get_presigned_url Get the pre-signed URL of the datasheet attachment - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_presigned_url successfully -
- */ - public ApiResponse getPresignedUrlWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getPresignedUrlValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * get_presigned_url (asynchronously) - * get_presigned_url Get the pre-signed URL of the datasheet attachment - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_presigned_url successfully -
- */ - public okhttp3.Call getPresignedUrlAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getPresignedUrlValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getRecordByDatasheetId - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param pageSize (optional) - * @param maxRecords (optional) - * @param pageNum (optional) - * @param sort (optional) - * @param recordIds (optional) - * @param viewId (optional) - * @param fields (optional) - * @param filterByFormula (optional) - * @param cellFormat (optional) - * @param fieldKey (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public okhttp3.Call getRecordByDatasheetIdCall(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/records" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (maxRecords != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxRecords", maxRecords)); - } - - if (pageNum != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageNum", pageNum)); - } - - if (sort != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "sort", sort)); - } - - if (recordIds != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "recordIds", recordIds)); - } - - if (viewId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("viewId", viewId)); - } - - if (fields != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "fields", fields)); - } - - if (filterByFormula != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("filterByFormula", filterByFormula)); - } - - if (cellFormat != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("cellFormat", cellFormat)); - } - - if (fieldKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldKey", fieldKey)); - } - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRecordByDatasheetIdValidateBeforeCall(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling getRecordByDatasheetId(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getRecordByDatasheetId(Async)"); - } - - return getRecordByDatasheetIdCall(dstId, authorization, pageSize, maxRecords, pageNum, sort, recordIds, viewId, fields, filterByFormula, cellFormat, fieldKey, _callback); - - } - - /** - * Get multiple records of a datasheet - * Get multiple records of a datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param pageSize (optional) - * @param maxRecords (optional) - * @param pageNum (optional) - * @param sort (optional) - * @param recordIds (optional) - * @param viewId (optional) - * @param fields (optional) - * @param filterByFormula (optional) - * @param cellFormat (optional) - * @param fieldKey (optional) - * @return ApiResponseRecordVos - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public ApiResponseRecordVos getRecordByDatasheetId(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey) throws ApiException { - ApiResponse localVarResp = getRecordByDatasheetIdWithHttpInfo(dstId, authorization, pageSize, maxRecords, pageNum, sort, recordIds, viewId, fields, filterByFormula, cellFormat, fieldKey); - return localVarResp.getData(); - } - - /** - * Get multiple records of a datasheet - * Get multiple records of a datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param pageSize (optional) - * @param maxRecords (optional) - * @param pageNum (optional) - * @param sort (optional) - * @param recordIds (optional) - * @param viewId (optional) - * @param fields (optional) - * @param filterByFormula (optional) - * @param cellFormat (optional) - * @param fieldKey (optional) - * @return ApiResponse<ApiResponseRecordVos> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public ApiResponse getRecordByDatasheetIdWithHttpInfo(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey) throws ApiException { - okhttp3.Call localVarCall = getRecordByDatasheetIdValidateBeforeCall(dstId, authorization, pageSize, maxRecords, pageNum, sort, recordIds, viewId, fields, filterByFormula, cellFormat, fieldKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get multiple records of a datasheet (asynchronously) - * Get multiple records of a datasheet - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param pageSize (optional) - * @param maxRecords (optional) - * @param pageNum (optional) - * @param sort (optional) - * @param recordIds (optional) - * @param viewId (optional) - * @param fields (optional) - * @param filterByFormula (optional) - * @param cellFormat (optional) - * @param fieldKey (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public okhttp3.Call getRecordByDatasheetIdAsync(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRecordByDatasheetIdValidateBeforeCall(dstId, authorization, pageSize, maxRecords, pageNum, sort, recordIds, viewId, fields, filterByFormula, cellFormat, fieldKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSpaces - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_spaces successfully -
- */ - public okhttp3.Call getSpacesCall(String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/spaces"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSpacesValidateBeforeCall(String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getSpaces(Async)"); - } - - return getSpacesCall(authorization, _callback); - - } - - /** - * get_spaces - * get_spaces Query space list - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_spaces successfully -
- */ - public void getSpaces(String authorization) throws ApiException { - getSpacesWithHttpInfo(authorization); - } - - /** - * get_spaces - * get_spaces Query space list - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 get_spaces successfully -
- */ - public ApiResponse getSpacesWithHttpInfo(String authorization) throws ApiException { - okhttp3.Call localVarCall = getSpacesValidateBeforeCall(authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * get_spaces (asynchronously) - * get_spaces Query space list - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 get_spaces successfully -
- */ - public okhttp3.Call getSpacesAsync(String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSpacesValidateBeforeCall(authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for getViews - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call getViewsCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/views" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getViewsValidateBeforeCall(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling getViews(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling getViews(Async)"); - } - - return getViewsCall(dstId, authorization, _callback); - - } - - /** - * Query all views of a datasheet - * Query all views of a datasheet A datasheet can create up to 30 views and return them all at once when requesting a view, without paging. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public void getViews(String dstId, String authorization) throws ApiException { - getViewsWithHttpInfo(dstId, authorization); - } - - /** - * Query all views of a datasheet - * Query all views of a datasheet A datasheet can create up to 30 views and return them all at once when requesting a view, without paging. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public ApiResponse getViewsWithHttpInfo(String dstId, String authorization) throws ApiException { - okhttp3.Call localVarCall = getViewsValidateBeforeCall(dstId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Query all views of a datasheet (asynchronously) - * Query all views of a datasheet A datasheet can create up to 30 views and return them all at once when requesting a view, without paging. - * @param dstId dst_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet Fields -
- */ - public okhttp3.Call getViewsAsync(String dstId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getViewsValidateBeforeCall(dstId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for nodeDetail - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 node_detail successfully -
- */ - public okhttp3.Call nodeDetailCall(String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/fusion/v3/nodes/{node_id}" - .replace("{" + "node_id" + "}", localVarApiClient.escapeString(nodeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (authorization != null) { - localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call nodeDetailValidateBeforeCall(String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'nodeId' is set - if (nodeId == null) { - throw new ApiException("Missing the required parameter 'nodeId' when calling nodeDetail(Async)"); - } - - // verify the required parameter 'authorization' is set - if (authorization == null) { - throw new ApiException("Missing the required parameter 'authorization' when calling nodeDetail(Async)"); - } - - return nodeDetailCall(nodeId, authorization, _callback); - - } - - /** - * Query Node Details - * Query Node Details Query the details of the specified file node - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 node_detail successfully -
- */ - public void nodeDetail(String nodeId, String authorization) throws ApiException { - nodeDetailWithHttpInfo(nodeId, authorization); - } - - /** - * Query Node Details - * Query Node Details Query the details of the specified file node - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 node_detail successfully -
- */ - public ApiResponse nodeDetailWithHttpInfo(String nodeId, String authorization) throws ApiException { - okhttp3.Call localVarCall = nodeDetailValidateBeforeCall(nodeId, authorization, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Query Node Details (asynchronously) - * Query Node Details Query the details of the specified file node - * @param nodeId node_id (required) - * @param authorization Current csrf token of user (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 node_detail successfully -
- */ - public okhttp3.Call nodeDetailAsync(String nodeId, String authorization, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = nodeDetailValidateBeforeCall(nodeId, authorization, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateRecordsPatch - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public okhttp3.Call updateRecordsPatchCall(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = recordUpdateRO; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/records" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - - if (viewId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("viewId", viewId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRecordsPatchValidateBeforeCall(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling updateRecordsPatch(Async)"); - } - - // verify the required parameter 'userId' is set - if (userId == null) { - throw new ApiException("Missing the required parameter 'userId' when calling updateRecordsPatch(Async)"); - } - - // verify the required parameter 'viewId' is set - if (viewId == null) { - throw new ApiException("Missing the required parameter 'viewId' when calling updateRecordsPatch(Async)"); - } - - // verify the required parameter 'recordUpdateRO' is set - if (recordUpdateRO == null) { - throw new ApiException("Missing the required parameter 'recordUpdateRO' when calling updateRecordsPatch(Async)"); - } - - return updateRecordsPatchCall(dstId, userId, viewId, recordUpdateRO, _callback); - - } - - /** - * Update Records - * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public void updateRecordsPatch(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO) throws ApiException { - updateRecordsPatchWithHttpInfo(dstId, userId, viewId, recordUpdateRO); - } - - /** - * Update Records - * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public ApiResponse updateRecordsPatchWithHttpInfo(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO) throws ApiException { - okhttp3.Call localVarCall = updateRecordsPatchValidateBeforeCall(dstId, userId, viewId, recordUpdateRO, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Update Records (asynchronously) - * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Get Datasheet -
- */ - public okhttp3.Call updateRecordsPatchAsync(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateRecordsPatchValidateBeforeCall(dstId, userId, viewId, recordUpdateRO, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for updateRecordsPut - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Update records successfully -
- */ - public okhttp3.Call updateRecordsPutCall(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = recordUpdateRO; - - // create path and map variables - String localVarPath = "/fusion/v3/datasheets/{dst_id}/records" - .replace("{" + "dst_id" + "}", localVarApiClient.escapeString(dstId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - - if (viewId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("viewId", viewId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRecordsPutValidateBeforeCall(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'dstId' is set - if (dstId == null) { - throw new ApiException("Missing the required parameter 'dstId' when calling updateRecordsPut(Async)"); - } - - // verify the required parameter 'userId' is set - if (userId == null) { - throw new ApiException("Missing the required parameter 'userId' when calling updateRecordsPut(Async)"); - } - - // verify the required parameter 'viewId' is set - if (viewId == null) { - throw new ApiException("Missing the required parameter 'viewId' when calling updateRecordsPut(Async)"); - } - - // verify the required parameter 'recordUpdateRO' is set - if (recordUpdateRO == null) { - throw new ApiException("Missing the required parameter 'recordUpdateRO' when calling updateRecordsPut(Async)"); - } - - return updateRecordsPutCall(dstId, userId, viewId, recordUpdateRO, _callback); - - } - - /** - * Update Records - * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @return ListVO - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Update records successfully -
- */ - public ListVO updateRecordsPut(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO) throws ApiException { - ApiResponse localVarResp = updateRecordsPutWithHttpInfo(dstId, userId, viewId, recordUpdateRO); - return localVarResp.getData(); - } - - /** - * Update Records - * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @return ApiResponse<ListVO> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - -
Status Code Description Response Headers
200 Update records successfully -
- */ - public ApiResponse updateRecordsPutWithHttpInfo(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO) throws ApiException { - okhttp3.Call localVarCall = updateRecordsPutValidateBeforeCall(dstId, userId, viewId, recordUpdateRO, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Records (asynchronously) - * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. - * @param dstId dst_id (required) - * @param userId (required) - * @param viewId (required) - * @param recordUpdateRO (required) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - -
Status Code Description Response Headers
200 Update records successfully -
- */ - public okhttp3.Call updateRecordsPutAsync(String dstId, String userId, String viewId, RecordUpdateRO recordUpdateRO, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateRecordsPutValidateBeforeCall(dstId, userId, viewId, recordUpdateRO, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/auth/ApiKeyAuth.java b/backend-server/application/src/main/java/com/apitable/databusclient/auth/ApiKeyAuth.java deleted file mode 100644 index cef3e39843..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/auth/ApiKeyAuth.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.auth; - -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiKeyAuth implements Authentication { - private final String location; - private final String paramName; - - private String apiKey; - private String apiKeyPrefix; - - public ApiKeyAuth(String location, String paramName) { - this.location = location; - this.paramName = paramName; - } - - public String getLocation() { - return location; - } - - public String getParamName() { - return paramName; - } - - public String getApiKey() { - return apiKey; - } - - public void setApiKey(String apiKey) { - this.apiKey = apiKey; - } - - public String getApiKeyPrefix() { - return apiKeyPrefix; - } - - public void setApiKeyPrefix(String apiKeyPrefix) { - this.apiKeyPrefix = apiKeyPrefix; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (apiKey == null) { - return; - } - String value; - if (apiKeyPrefix != null) { - value = apiKeyPrefix + " " + apiKey; - } else { - value = apiKey; - } - if ("query".equals(location)) { - queryParams.add(new Pair(paramName, value)); - } else if ("header".equals(location)) { - headerParams.put(paramName, value); - } else if ("cookie".equals(location)) { - cookieParams.put(paramName, value); - } - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/auth/Authentication.java b/backend-server/application/src/main/java/com/apitable/databusclient/auth/Authentication.java deleted file mode 100644 index 939106556f..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/auth/Authentication.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.auth; - -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ApiException; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -public interface Authentication { - /** - * Apply authentication settings to header and query params. - * - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws ApiException if failed to update the parameters - */ - void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBasicAuth.java b/backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBasicAuth.java deleted file mode 100644 index 4ad3d540aa..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBasicAuth.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.auth; - -import com.apitable.databusclient.Pair; -import com.apitable.databusclient.ApiException; - -import okhttp3.Credentials; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -import java.io.UnsupportedEncodingException; - -public class HttpBasicAuth implements Authentication { - private String username; - private String password; - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (username == null && password == null) { - return; - } - headerParams.put("Authorization", Credentials.basic( - username == null ? "" : username, - password == null ? "" : password)); - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBearerAuth.java b/backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBearerAuth.java deleted file mode 100644 index 0a3239b9a0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/auth/HttpBearerAuth.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.auth; - -import com.apitable.databusclient.ApiException; -import com.apitable.databusclient.Pair; - -import java.net.URI; -import java.util.Map; -import java.util.List; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class HttpBearerAuth implements Authentication { - private final String scheme; - private String bearerToken; - - public HttpBearerAuth(String scheme) { - this.scheme = scheme; - } - - /** - * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. - * - * @return The bearer token - */ - public String getBearerToken() { - return bearerToken; - } - - /** - * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. - * - * @param bearerToken The bearer token to send in the Authorization header - */ - public void setBearerToken(String bearerToken) { - this.bearerToken = bearerToken; - } - - @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (bearerToken == null) { - return; - } - - headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); - } - - private static String upperCaseBearer(String scheme) { - return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AbstractOpenApiSchema.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AbstractOpenApiSchema.java deleted file mode 100644 index c78546659b..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AbstractOpenApiSchema.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import com.apitable.databusclient.ApiException; -import java.util.Objects; -import java.lang.reflect.Type; -import java.util.Map; - -//import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public abstract class AbstractOpenApiSchema { - - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - //@JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - if (Boolean.TRUE.equals(isNullable)) { - return Boolean.TRUE; - } else { - return Boolean.FALSE; - } - } - - - -} diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AiNode.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AiNode.java deleted file mode 100644 index 85e3d2cb8c..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AiNode.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AiNode - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AiNode { - public static final String SERIALIZED_NAME_AI_ID = "aiId"; - @SerializedName(SERIALIZED_NAME_AI_ID) - private String aiId; - - public static final String SERIALIZED_NAME_NODE_ID = "nodeId"; - @SerializedName(SERIALIZED_NAME_NODE_ID) - private String nodeId; - - public static final String SERIALIZED_NAME_NODE_TYPE = "nodeType"; - @SerializedName(SERIALIZED_NAME_NODE_TYPE) - private Integer nodeType; - - public static final String SERIALIZED_NAME_SETTING = "setting"; - @SerializedName(SERIALIZED_NAME_SETTING) - private Object setting = null; - - public static final String SERIALIZED_NAME_VERSION = "version"; - @SerializedName(SERIALIZED_NAME_VERSION) - private Integer version; - - public AiNode() { - } - - public AiNode aiId(String aiId) { - - this.aiId = aiId; - return this; - } - - /** - * Get aiId - * @return aiId - **/ - @javax.annotation.Nonnull - public String getAiId() { - return aiId; - } - - - public void setAiId(String aiId) { - this.aiId = aiId; - } - - - public AiNode nodeId(String nodeId) { - - this.nodeId = nodeId; - return this; - } - - /** - * Get nodeId - * @return nodeId - **/ - @javax.annotation.Nonnull - public String getNodeId() { - return nodeId; - } - - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - - public AiNode nodeType(Integer nodeType) { - - this.nodeType = nodeType; - return this; - } - - /** - * Get nodeType - * @return nodeType - **/ - @javax.annotation.Nonnull - public Integer getNodeType() { - return nodeType; - } - - - public void setNodeType(Integer nodeType) { - this.nodeType = nodeType; - } - - - public AiNode setting(Object setting) { - - this.setting = setting; - return this; - } - - /** - * Get setting - * @return setting - **/ - @javax.annotation.Nullable - public Object getSetting() { - return setting; - } - - - public void setSetting(Object setting) { - this.setting = setting; - } - - - public AiNode version(Integer version) { - - this.version = version; - return this; - } - - /** - * Get version - * @return version - **/ - @javax.annotation.Nonnull - public Integer getVersion() { - return version; - } - - - public void setVersion(Integer version) { - this.version = version; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AiNode aiNode = (AiNode) o; - return Objects.equals(this.aiId, aiNode.aiId) && - Objects.equals(this.nodeId, aiNode.nodeId) && - Objects.equals(this.nodeType, aiNode.nodeType) && - Objects.equals(this.setting, aiNode.setting) && - Objects.equals(this.version, aiNode.version); - } - - @Override - public int hashCode() { - return Objects.hash(aiId, nodeId, nodeType, setting, version); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AiNode {\n"); - sb.append(" aiId: ").append(toIndentedString(aiId)).append("\n"); - sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); - sb.append(" nodeType: ").append(toIndentedString(nodeType)).append("\n"); - sb.append(" setting: ").append(toIndentedString(setting)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("aiId"); - openapiFields.add("nodeId"); - openapiFields.add("nodeType"); - openapiFields.add("setting"); - openapiFields.add("version"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("aiId"); - openapiRequiredFields.add("nodeId"); - openapiRequiredFields.add("nodeType"); - openapiRequiredFields.add("setting"); - openapiRequiredFields.add("version"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AiNode - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AiNode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AiNode is not found in the empty JSON string", AiNode.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AiNode.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AiNode` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AiNode.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("aiId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `aiId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aiId").toString())); - } - if (!jsonObj.get("nodeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nodeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AiNode.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AiNode' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AiNode.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AiNode value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AiNode read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AiNode given an JSON string - * - * @param jsonString JSON string - * @return An instance of AiNode - * @throws IOException if the JSON string is invalid with respect to AiNode - */ - public static AiNode fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AiNode.class); - } - - /** - * Convert an instance of AiNode to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AiPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AiPO.java deleted file mode 100644 index 3010eb7449..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AiPO.java +++ /dev/null @@ -1,448 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AiPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AiPO { - public static final String SERIALIZED_NAME_AI_ID = "aiId"; - @SerializedName(SERIALIZED_NAME_AI_ID) - private String aiId; - - public static final String SERIALIZED_NAME_EMBEDDING_MODEL = "embeddingModel"; - @SerializedName(SERIALIZED_NAME_EMBEDDING_MODEL) - private String embeddingModel; - - public static final String SERIALIZED_NAME_MODEL = "model"; - @SerializedName(SERIALIZED_NAME_MODEL) - private String model; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PROLOGUE = "prologue"; - @SerializedName(SERIALIZED_NAME_PROLOGUE) - private String prologue; - - public static final String SERIALIZED_NAME_PROMPT = "prompt"; - @SerializedName(SERIALIZED_NAME_PROMPT) - private String prompt; - - public static final String SERIALIZED_NAME_SETTING = "setting"; - @SerializedName(SERIALIZED_NAME_SETTING) - private String setting; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public AiPO() { - } - - public AiPO aiId(String aiId) { - - this.aiId = aiId; - return this; - } - - /** - * Get aiId - * @return aiId - **/ - @javax.annotation.Nonnull - public String getAiId() { - return aiId; - } - - - public void setAiId(String aiId) { - this.aiId = aiId; - } - - - public AiPO embeddingModel(String embeddingModel) { - - this.embeddingModel = embeddingModel; - return this; - } - - /** - * Get embeddingModel - * @return embeddingModel - **/ - @javax.annotation.Nullable - public String getEmbeddingModel() { - return embeddingModel; - } - - - public void setEmbeddingModel(String embeddingModel) { - this.embeddingModel = embeddingModel; - } - - - public AiPO model(String model) { - - this.model = model; - return this; - } - - /** - * Get model - * @return model - **/ - @javax.annotation.Nullable - public String getModel() { - return model; - } - - - public void setModel(String model) { - this.model = model; - } - - - public AiPO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public AiPO prologue(String prologue) { - - this.prologue = prologue; - return this; - } - - /** - * Get prologue - * @return prologue - **/ - @javax.annotation.Nullable - public String getPrologue() { - return prologue; - } - - - public void setPrologue(String prologue) { - this.prologue = prologue; - } - - - public AiPO prompt(String prompt) { - - this.prompt = prompt; - return this; - } - - /** - * Get prompt - * @return prompt - **/ - @javax.annotation.Nullable - public String getPrompt() { - return prompt; - } - - - public void setPrompt(String prompt) { - this.prompt = prompt; - } - - - public AiPO setting(String setting) { - - this.setting = setting; - return this; - } - - /** - * Get setting - * @return setting - **/ - @javax.annotation.Nullable - public String getSetting() { - return setting; - } - - - public void setSetting(String setting) { - this.setting = setting; - } - - - public AiPO type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AiPO aiPO = (AiPO) o; - return Objects.equals(this.aiId, aiPO.aiId) && - Objects.equals(this.embeddingModel, aiPO.embeddingModel) && - Objects.equals(this.model, aiPO.model) && - Objects.equals(this.name, aiPO.name) && - Objects.equals(this.prologue, aiPO.prologue) && - Objects.equals(this.prompt, aiPO.prompt) && - Objects.equals(this.setting, aiPO.setting) && - Objects.equals(this.type, aiPO.type); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(aiId, embeddingModel, model, name, prologue, prompt, setting, type); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AiPO {\n"); - sb.append(" aiId: ").append(toIndentedString(aiId)).append("\n"); - sb.append(" embeddingModel: ").append(toIndentedString(embeddingModel)).append("\n"); - sb.append(" model: ").append(toIndentedString(model)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" prologue: ").append(toIndentedString(prologue)).append("\n"); - sb.append(" prompt: ").append(toIndentedString(prompt)).append("\n"); - sb.append(" setting: ").append(toIndentedString(setting)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("aiId"); - openapiFields.add("embeddingModel"); - openapiFields.add("model"); - openapiFields.add("name"); - openapiFields.add("prologue"); - openapiFields.add("prompt"); - openapiFields.add("setting"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("aiId"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AiPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AiPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AiPO is not found in the empty JSON string", AiPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AiPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AiPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AiPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("aiId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `aiId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aiId").toString())); - } - if ((jsonObj.get("embeddingModel") != null && !jsonObj.get("embeddingModel").isJsonNull()) && !jsonObj.get("embeddingModel").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `embeddingModel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("embeddingModel").toString())); - } - if ((jsonObj.get("model") != null && !jsonObj.get("model").isJsonNull()) && !jsonObj.get("model").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `model` to be a primitive type in the JSON string but got `%s`", jsonObj.get("model").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("prologue") != null && !jsonObj.get("prologue").isJsonNull()) && !jsonObj.get("prologue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prologue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prologue").toString())); - } - if ((jsonObj.get("prompt") != null && !jsonObj.get("prompt").isJsonNull()) && !jsonObj.get("prompt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prompt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prompt").toString())); - } - if ((jsonObj.get("setting") != null && !jsonObj.get("setting").isJsonNull()) && !jsonObj.get("setting").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `setting` to be a primitive type in the JSON string but got `%s`", jsonObj.get("setting").toString())); - } - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AiPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AiPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AiPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AiPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AiPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AiPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AiPO - * @throws IOException if the JSON string is invalid with respect to AiPO - */ - public static AiPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AiPO.class); - } - - /** - * Convert an instance of AiPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUser.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUser.java deleted file mode 100644 index fa3b090869..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUser.java +++ /dev/null @@ -1,247 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AlarmUsersType; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AlarmUser - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AlarmUser { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private String data; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private AlarmUsersType type; - - public AlarmUser() { - } - - public AlarmUser data(String data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nonnull - public String getData() { - return data; - } - - - public void setData(String data) { - this.data = data; - } - - - public AlarmUser type(AlarmUsersType type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - public AlarmUsersType getType() { - return type; - } - - - public void setType(AlarmUsersType type) { - this.type = type; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AlarmUser alarmUser = (AlarmUser) o; - return Objects.equals(this.data, alarmUser.data) && - Objects.equals(this.type, alarmUser.type); - } - - @Override - public int hashCode() { - return Objects.hash(data, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AlarmUser {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("type"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AlarmUser - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AlarmUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AlarmUser is not found in the empty JSON string", AlarmUser.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AlarmUser.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AlarmUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AlarmUser.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("data").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AlarmUser.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AlarmUser' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AlarmUser.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AlarmUser value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AlarmUser read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AlarmUser given an JSON string - * - * @param jsonString JSON string - * @return An instance of AlarmUser - * @throws IOException if the JSON string is invalid with respect to AlarmUser - */ - public static AlarmUser fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AlarmUser.class); - } - - /** - * Convert an instance of AlarmUser to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUsersType.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUsersType.java deleted file mode 100644 index bdfb13185a..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AlarmUsersType.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * Gets or Sets AlarmUsersType - */ -@JsonAdapter(AlarmUsersType.Adapter.class) -public enum AlarmUsersType { - - FIELD("Field"), - - MEMBER("Member"); - - private String value; - - AlarmUsersType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static AlarmUsersType fromValue(String value) { - for (AlarmUsersType b : AlarmUsersType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final AlarmUsersType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public AlarmUsersType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return AlarmUsersType.fromValue(value); - } - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AnyBaseField.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AnyBaseField.java deleted file mode 100644 index 996a99bb74..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AnyBaseField.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; - - - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.JsonPrimitive; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonArray; -import com.google.gson.JsonParseException; - -import com.apitable.databusclient.JSON; - -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AnyBaseField extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AnyBaseField.class.getName()); - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AnyBaseField.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AnyBaseField' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterInteger = gson.getDelegateAdapter(this, TypeToken.get(Integer.class)); - final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); - final TypeAdapter adapterDouble = gson.getDelegateAdapter(this, TypeToken.get(Double.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AnyBaseField value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `Integer` - if (value.getActualInstance() instanceof Integer) { - JsonPrimitive primitive = adapterInteger.toJsonTree((Integer)value.getActualInstance()).getAsJsonPrimitive(); - elementAdapter.write(out, primitive); - return; - } - // check if the actual instance is of the type `String` - if (value.getActualInstance() instanceof String) { - JsonPrimitive primitive = adapterString.toJsonTree((String)value.getActualInstance()).getAsJsonPrimitive(); - elementAdapter.write(out, primitive); - return; - } - // check if the actual instance is of the type `Double` - if (value.getActualInstance() instanceof Double) { - JsonPrimitive primitive = adapterDouble.toJsonTree((Double)value.getActualInstance()).getAsJsonPrimitive(); - elementAdapter.write(out, primitive); - return; - } - throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: Double, Integer, String"); - } - - @Override - public AnyBaseField read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - int match = 0; - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize Integer - try { - // validate the JSON object to see if any exception is thrown - if(!jsonElement.getAsJsonPrimitive().isNumber()) { - throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); - } - actualAdapter = adapterInteger; - match++; - log.log(Level.FINER, "Input data matches schema 'Integer'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format("Deserialization for Integer failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'Integer'", e); - } - // deserialize String - try { - // validate the JSON object to see if any exception is thrown - if(!jsonElement.getAsJsonPrimitive().isString()) { - throw new IllegalArgumentException(String.format("Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); - } - actualAdapter = adapterString; - match++; - log.log(Level.FINER, "Input data matches schema 'String'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format("Deserialization for String failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'String'", e); - } - // deserialize Double - try { - // validate the JSON object to see if any exception is thrown - if(!jsonElement.getAsJsonPrimitive().isNumber()) { - throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); - } - actualAdapter = adapterDouble; - match++; - log.log(Level.FINER, "Input data matches schema 'Double'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format("Deserialization for Double failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'Double'", e); - } - - if (match == 1) { - AnyBaseField ret = new AnyBaseField(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } - - throw new IOException(String.format("Failed deserialization for AnyBaseField: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap>(); - - public AnyBaseField() { - super("oneOf", Boolean.FALSE); - } - - public AnyBaseField(Double o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AnyBaseField(Integer o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AnyBaseField(String o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("Integer", Integer.class); - schemas.put("String", String.class); - schemas.put("Double", Double.class); - } - - @Override - public Map> getSchemas() { - return AnyBaseField.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * Double, Integer, String - * - * It could be an instance of the 'oneOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof Integer) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof String) { - super.setActualInstance(instance); - return; - } - - if (instance instanceof Double) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be Double, Integer, String"); - } - - /** - * Get the actual instance, which can be the following: - * Double, Integer, String - * - * @return The actual instance (Double, Integer, String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `Integer`. If the actual instance is not `Integer`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `Integer` - * @throws ClassCastException if the instance is not `Integer` - */ - public Integer getInteger() throws ClassCastException { - return (Integer)super.getActualInstance(); - } - /** - * Get the actual instance of `String`. If the actual instance is not `String`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String)super.getActualInstance(); - } - /** - * Get the actual instance of `Double`. If the actual instance is not `Double`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `Double` - * @throws ClassCastException if the instance is not `Double` - */ - public Double getDouble() throws ClassCastException { - return (Double)super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AnyBaseField - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate oneOf schemas one by one - int validCount = 0; - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with Integer - try { - if(!jsonElement.getAsJsonPrimitive().isNumber()) { - throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); - } - validCount++; - } catch (Exception e) { - errorMessages.add(String.format("Deserialization for Integer failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with String - try { - if(!jsonElement.getAsJsonPrimitive().isString()) { - throw new IllegalArgumentException(String.format("Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); - } - validCount++; - } catch (Exception e) { - errorMessages.add(String.format("Deserialization for String failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with Double - try { - if(!jsonElement.getAsJsonPrimitive().isNumber()) { - throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); - } - validCount++; - } catch (Exception e) { - errorMessages.add(String.format("Deserialization for Double failed with `%s`.", e.getMessage())); - // continue to the next one - } - if (validCount != 1) { - throw new IOException(String.format("The JSON string is invalid for AnyBaseField with oneOf schemas: Double, Integer, String. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); - } - } - - /** - * Create an instance of AnyBaseField given an JSON string - * - * @param jsonString JSON string - * @return An instance of AnyBaseField - * @throws IOException if the JSON string is invalid with respect to AnyBaseField - */ - public static AnyBaseField fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AnyBaseField.class); - } - - /** - * Convert an instance of AnyBaseField to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiRecordDto.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiRecordDto.java deleted file mode 100644 index e811d64b42..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiRecordDto.java +++ /dev/null @@ -1,314 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiRecordDto - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiRecordDto { - public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private Long createdAt; - - public static final String SERIALIZED_NAME_FIELDS = "fields"; - @SerializedName(SERIALIZED_NAME_FIELDS) - private Map fields = new HashMap<>(); - - public static final String SERIALIZED_NAME_RECORD_ID = "recordId"; - @SerializedName(SERIALIZED_NAME_RECORD_ID) - private String recordId; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private Long updatedAt; - - public ApiRecordDto() { - } - - public ApiRecordDto createdAt(Long createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * @return createdAt - **/ - @javax.annotation.Nonnull - public Long getCreatedAt() { - return createdAt; - } - - - public void setCreatedAt(Long createdAt) { - this.createdAt = createdAt; - } - - - public ApiRecordDto fields(Map fields) { - - this.fields = fields; - return this; - } - - public ApiRecordDto putFieldsItem(String key, String fieldsItem) { - if (this.fields == null) { - this.fields = new HashMap<>(); - } - this.fields.put(key, fieldsItem); - return this; - } - - /** - * Get fields - * @return fields - **/ - @javax.annotation.Nonnull - public Map getFields() { - return fields; - } - - - public void setFields(Map fields) { - this.fields = fields; - } - - - public ApiRecordDto recordId(String recordId) { - - this.recordId = recordId; - return this; - } - - /** - * Get recordId - * @return recordId - **/ - @javax.annotation.Nonnull - public String getRecordId() { - return recordId; - } - - - public void setRecordId(String recordId) { - this.recordId = recordId; - } - - - public ApiRecordDto updatedAt(Long updatedAt) { - - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * @return updatedAt - **/ - @javax.annotation.Nonnull - public Long getUpdatedAt() { - return updatedAt; - } - - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiRecordDto apiRecordDto = (ApiRecordDto) o; - return Objects.equals(this.createdAt, apiRecordDto.createdAt) && - Objects.equals(this.fields, apiRecordDto.fields) && - Objects.equals(this.recordId, apiRecordDto.recordId) && - Objects.equals(this.updatedAt, apiRecordDto.updatedAt); - } - - @Override - public int hashCode() { - return Objects.hash(createdAt, fields, recordId, updatedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiRecordDto {\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("createdAt"); - openapiFields.add("fields"); - openapiFields.add("recordId"); - openapiFields.add("updatedAt"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("createdAt"); - openapiRequiredFields.add("fields"); - openapiRequiredFields.add("recordId"); - openapiRequiredFields.add("updatedAt"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiRecordDto - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiRecordDto.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiRecordDto is not found in the empty JSON string", ApiRecordDto.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiRecordDto.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiRecordDto` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiRecordDto.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("recordId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recordId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recordId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiRecordDto.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiRecordDto' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiRecordDto.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiRecordDto value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiRecordDto read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiRecordDto given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiRecordDto - * @throws IOException if the JSON string is invalid with respect to ApiRecordDto - */ - public static ApiRecordDto fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiRecordDto.class); - } - - /** - * Convert an instance of ApiRecordDto to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAiPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAiPO.java deleted file mode 100644 index ca124a2c14..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAiPO.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AiPO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAiPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAiPO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private AiPO data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAiPO() { - } - - public ApiResponseAiPO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAiPO data(AiPO data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public AiPO getData() { - return data; - } - - - public void setData(AiPO data) { - this.data = data; - } - - - public ApiResponseAiPO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAiPO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAiPO apiResponseAiPO = (ApiResponseAiPO) o; - return Objects.equals(this.code, apiResponseAiPO.code) && - Objects.equals(this.data, apiResponseAiPO.data) && - Objects.equals(this.message, apiResponseAiPO.message) && - Objects.equals(this.success, apiResponseAiPO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAiPO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAiPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAiPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAiPO is not found in the empty JSON string", ApiResponseAiPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseAiPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAiPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAiPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - AiPO.validateJsonElement(jsonObj.get("data")); - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAiPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAiPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAiPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAiPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAiPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAiPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAiPO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAiPO - */ - public static ApiResponseAiPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAiPO.class); - } - - /** - * Convert an instance of ApiResponseAiPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationActionPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationActionPO.java deleted file mode 100644 index c1a2da8fe1..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationActionPO.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationActionPO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAutomationActionPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAutomationActionPO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAutomationActionPO() { - } - - public ApiResponseAutomationActionPO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAutomationActionPO data(List data) { - - this.data = data; - return this; - } - - public ApiResponseAutomationActionPO addDataItem(AutomationActionPO dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseAutomationActionPO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAutomationActionPO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAutomationActionPO apiResponseAutomationActionPO = (ApiResponseAutomationActionPO) o; - return Objects.equals(this.code, apiResponseAutomationActionPO.code) && - Objects.equals(this.data, apiResponseAutomationActionPO.data) && - Objects.equals(this.message, apiResponseAutomationActionPO.message) && - Objects.equals(this.success, apiResponseAutomationActionPO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAutomationActionPO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAutomationActionPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAutomationActionPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAutomationActionPO is not found in the empty JSON string", ApiResponseAutomationActionPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseAutomationActionPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAutomationActionPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAutomationActionPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - AutomationActionPO.validateJsonElement(jsonArraydata.get(i)); - }; - } - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAutomationActionPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAutomationActionPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAutomationActionPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAutomationActionPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAutomationActionPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAutomationActionPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAutomationActionPO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAutomationActionPO - */ - public static ApiResponseAutomationActionPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAutomationActionPO.class); - } - - /** - * Convert an instance of ApiResponseAutomationActionPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotIntroductionSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotIntroductionSO.java deleted file mode 100644 index 9eed67014d..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotIntroductionSO.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationRobotIntroductionSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAutomationRobotIntroductionSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAutomationRobotIntroductionSO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private AutomationRobotIntroductionSO data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAutomationRobotIntroductionSO() { - } - - public ApiResponseAutomationRobotIntroductionSO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAutomationRobotIntroductionSO data(AutomationRobotIntroductionSO data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public AutomationRobotIntroductionSO getData() { - return data; - } - - - public void setData(AutomationRobotIntroductionSO data) { - this.data = data; - } - - - public ApiResponseAutomationRobotIntroductionSO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAutomationRobotIntroductionSO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAutomationRobotIntroductionSO apiResponseAutomationRobotIntroductionSO = (ApiResponseAutomationRobotIntroductionSO) o; - return Objects.equals(this.code, apiResponseAutomationRobotIntroductionSO.code) && - Objects.equals(this.data, apiResponseAutomationRobotIntroductionSO.data) && - Objects.equals(this.message, apiResponseAutomationRobotIntroductionSO.message) && - Objects.equals(this.success, apiResponseAutomationRobotIntroductionSO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAutomationRobotIntroductionSO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAutomationRobotIntroductionSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAutomationRobotIntroductionSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAutomationRobotIntroductionSO is not found in the empty JSON string", ApiResponseAutomationRobotIntroductionSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseAutomationRobotIntroductionSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAutomationRobotIntroductionSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAutomationRobotIntroductionSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - AutomationRobotIntroductionSO.validateJsonElement(jsonObj.get("data")); - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAutomationRobotIntroductionSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAutomationRobotIntroductionSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAutomationRobotIntroductionSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAutomationRobotIntroductionSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAutomationRobotIntroductionSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAutomationRobotIntroductionSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAutomationRobotIntroductionSO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAutomationRobotIntroductionSO - */ - public static ApiResponseAutomationRobotIntroductionSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAutomationRobotIntroductionSO.class); - } - - /** - * Convert an instance of ApiResponseAutomationRobotIntroductionSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotRunNumsSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotRunNumsSO.java deleted file mode 100644 index 6f69a87051..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRobotRunNumsSO.java +++ /dev/null @@ -1,320 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationRobotRunNumsSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAutomationRobotRunNumsSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAutomationRobotRunNumsSO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private AutomationRobotRunNumsSO data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAutomationRobotRunNumsSO() { - } - - public ApiResponseAutomationRobotRunNumsSO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAutomationRobotRunNumsSO data(AutomationRobotRunNumsSO data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public AutomationRobotRunNumsSO getData() { - return data; - } - - - public void setData(AutomationRobotRunNumsSO data) { - this.data = data; - } - - - public ApiResponseAutomationRobotRunNumsSO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAutomationRobotRunNumsSO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAutomationRobotRunNumsSO apiResponseAutomationRobotRunNumsSO = (ApiResponseAutomationRobotRunNumsSO) o; - return Objects.equals(this.code, apiResponseAutomationRobotRunNumsSO.code) && - Objects.equals(this.data, apiResponseAutomationRobotRunNumsSO.data) && - Objects.equals(this.message, apiResponseAutomationRobotRunNumsSO.message) && - Objects.equals(this.success, apiResponseAutomationRobotRunNumsSO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAutomationRobotRunNumsSO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAutomationRobotRunNumsSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAutomationRobotRunNumsSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAutomationRobotRunNumsSO is not found in the empty JSON string", ApiResponseAutomationRobotRunNumsSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ApiResponseAutomationRobotRunNumsSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAutomationRobotRunNumsSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAutomationRobotRunNumsSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - AutomationRobotRunNumsSO.validateJsonElement(jsonObj.get("data")); - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAutomationRobotRunNumsSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAutomationRobotRunNumsSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAutomationRobotRunNumsSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAutomationRobotRunNumsSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAutomationRobotRunNumsSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAutomationRobotRunNumsSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAutomationRobotRunNumsSO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAutomationRobotRunNumsSO - */ - public static ApiResponseAutomationRobotRunNumsSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAutomationRobotRunNumsSO.class); - } - - /** - * Convert an instance of ApiResponseAutomationRobotRunNumsSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRunHistoryPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRunHistoryPO.java deleted file mode 100644 index 7fbfeee111..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationRunHistoryPO.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationRunHistoryPO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAutomationRunHistoryPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAutomationRunHistoryPO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAutomationRunHistoryPO() { - } - - public ApiResponseAutomationRunHistoryPO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAutomationRunHistoryPO data(List data) { - - this.data = data; - return this; - } - - public ApiResponseAutomationRunHistoryPO addDataItem(AutomationRunHistoryPO dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseAutomationRunHistoryPO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAutomationRunHistoryPO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAutomationRunHistoryPO apiResponseAutomationRunHistoryPO = (ApiResponseAutomationRunHistoryPO) o; - return Objects.equals(this.code, apiResponseAutomationRunHistoryPO.code) && - Objects.equals(this.data, apiResponseAutomationRunHistoryPO.data) && - Objects.equals(this.message, apiResponseAutomationRunHistoryPO.message) && - Objects.equals(this.success, apiResponseAutomationRunHistoryPO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAutomationRunHistoryPO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAutomationRunHistoryPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAutomationRunHistoryPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAutomationRunHistoryPO is not found in the empty JSON string", ApiResponseAutomationRunHistoryPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseAutomationRunHistoryPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAutomationRunHistoryPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAutomationRunHistoryPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - AutomationRunHistoryPO.validateJsonElement(jsonArraydata.get(i)); - }; - } - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAutomationRunHistoryPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAutomationRunHistoryPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAutomationRunHistoryPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAutomationRunHistoryPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAutomationRunHistoryPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAutomationRunHistoryPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAutomationRunHistoryPO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAutomationRunHistoryPO - */ - public static ApiResponseAutomationRunHistoryPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAutomationRunHistoryPO.class); - } - - /** - * Convert an instance of ApiResponseAutomationRunHistoryPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationSO.java deleted file mode 100644 index ef8b07bb4e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationSO.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAutomationSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAutomationSO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private AutomationSO data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAutomationSO() { - } - - public ApiResponseAutomationSO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAutomationSO data(AutomationSO data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public AutomationSO getData() { - return data; - } - - - public void setData(AutomationSO data) { - this.data = data; - } - - - public ApiResponseAutomationSO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAutomationSO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAutomationSO apiResponseAutomationSO = (ApiResponseAutomationSO) o; - return Objects.equals(this.code, apiResponseAutomationSO.code) && - Objects.equals(this.data, apiResponseAutomationSO.data) && - Objects.equals(this.message, apiResponseAutomationSO.message) && - Objects.equals(this.success, apiResponseAutomationSO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAutomationSO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAutomationSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAutomationSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAutomationSO is not found in the empty JSON string", ApiResponseAutomationSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseAutomationSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAutomationSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAutomationSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - AutomationSO.validateJsonElement(jsonObj.get("data")); - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAutomationSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAutomationSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAutomationSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAutomationSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAutomationSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAutomationSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAutomationSO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAutomationSO - */ - public static ApiResponseAutomationSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAutomationSO.class); - } - - /** - * Convert an instance of ApiResponseAutomationSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationTriggerPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationTriggerPO.java deleted file mode 100644 index f6564a9b55..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseAutomationTriggerPO.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationTriggerPO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseAutomationTriggerPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseAutomationTriggerPO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseAutomationTriggerPO() { - } - - public ApiResponseAutomationTriggerPO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseAutomationTriggerPO data(List data) { - - this.data = data; - return this; - } - - public ApiResponseAutomationTriggerPO addDataItem(AutomationTriggerPO dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseAutomationTriggerPO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseAutomationTriggerPO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseAutomationTriggerPO apiResponseAutomationTriggerPO = (ApiResponseAutomationTriggerPO) o; - return Objects.equals(this.code, apiResponseAutomationTriggerPO.code) && - Objects.equals(this.data, apiResponseAutomationTriggerPO.data) && - Objects.equals(this.message, apiResponseAutomationTriggerPO.message) && - Objects.equals(this.success, apiResponseAutomationTriggerPO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseAutomationTriggerPO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseAutomationTriggerPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseAutomationTriggerPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseAutomationTriggerPO is not found in the empty JSON string", ApiResponseAutomationTriggerPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseAutomationTriggerPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseAutomationTriggerPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseAutomationTriggerPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - AutomationTriggerPO.validateJsonElement(jsonArraydata.get(i)); - }; - } - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseAutomationTriggerPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseAutomationTriggerPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseAutomationTriggerPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseAutomationTriggerPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseAutomationTriggerPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseAutomationTriggerPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseAutomationTriggerPO - * @throws IOException if the JSON string is invalid with respect to ApiResponseAutomationTriggerPO - */ - public static ApiResponseAutomationTriggerPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseAutomationTriggerPO.class); - } - - /** - * Convert an instance of ApiResponseAutomationTriggerPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseDatasheetPackSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseDatasheetPackSO.java deleted file mode 100644 index 6fe010646c..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseDatasheetPackSO.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.DatasheetPackSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseDatasheetPackSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseDatasheetPackSO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private DatasheetPackSO data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseDatasheetPackSO() { - } - - public ApiResponseDatasheetPackSO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseDatasheetPackSO data(DatasheetPackSO data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public DatasheetPackSO getData() { - return data; - } - - - public void setData(DatasheetPackSO data) { - this.data = data; - } - - - public ApiResponseDatasheetPackSO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseDatasheetPackSO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseDatasheetPackSO apiResponseDatasheetPackSO = (ApiResponseDatasheetPackSO) o; - return Objects.equals(this.code, apiResponseDatasheetPackSO.code) && - Objects.equals(this.data, apiResponseDatasheetPackSO.data) && - Objects.equals(this.message, apiResponseDatasheetPackSO.message) && - Objects.equals(this.success, apiResponseDatasheetPackSO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseDatasheetPackSO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseDatasheetPackSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseDatasheetPackSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseDatasheetPackSO is not found in the empty JSON string", ApiResponseDatasheetPackSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseDatasheetPackSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseDatasheetPackSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseDatasheetPackSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - DatasheetPackSO.validateJsonElement(jsonObj.get("data")); - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseDatasheetPackSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseDatasheetPackSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseDatasheetPackSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseDatasheetPackSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseDatasheetPackSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseDatasheetPackSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseDatasheetPackSO - * @throws IOException if the JSON string is invalid with respect to ApiResponseDatasheetPackSO - */ - public static ApiResponseDatasheetPackSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseDatasheetPackSO.class); - } - - /** - * Convert an instance of ApiResponseDatasheetPackSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseEmptySO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseEmptySO.java deleted file mode 100644 index 9e22d4883f..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseEmptySO.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseEmptySO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseEmptySO { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private Boolean data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseEmptySO() { - } - - public ApiResponseEmptySO code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseEmptySO data(Boolean data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public Boolean getData() { - return data; - } - - - public void setData(Boolean data) { - this.data = data; - } - - - public ApiResponseEmptySO message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseEmptySO success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseEmptySO apiResponseEmptySO = (ApiResponseEmptySO) o; - return Objects.equals(this.code, apiResponseEmptySO.code) && - Objects.equals(this.data, apiResponseEmptySO.data) && - Objects.equals(this.message, apiResponseEmptySO.message) && - Objects.equals(this.success, apiResponseEmptySO.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseEmptySO {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseEmptySO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseEmptySO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseEmptySO is not found in the empty JSON string", ApiResponseEmptySO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseEmptySO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseEmptySO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseEmptySO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseEmptySO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseEmptySO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseEmptySO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseEmptySO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseEmptySO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseEmptySO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseEmptySO - * @throws IOException if the JSON string is invalid with respect to ApiResponseEmptySO - */ - public static ApiResponseEmptySO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseEmptySO.class); - } - - /** - * Convert an instance of ApiResponseEmptySO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseRecordVos.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseRecordVos.java deleted file mode 100644 index 4eafad2223..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ApiResponseRecordVos.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.RecordVo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ApiResponseRecordVos - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ApiResponseRecordVos { - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private Integer code; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private List data; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_SUCCESS = "success"; - @SerializedName(SERIALIZED_NAME_SUCCESS) - private Boolean success; - - public ApiResponseRecordVos() { - } - - public ApiResponseRecordVos code(Integer code) { - - this.code = code; - return this; - } - - /** - * Get code - * minimum: 0 - * @return code - **/ - @javax.annotation.Nonnull - public Integer getCode() { - return code; - } - - - public void setCode(Integer code) { - this.code = code; - } - - - public ApiResponseRecordVos data(List data) { - - this.data = data; - return this; - } - - public ApiResponseRecordVos addDataItem(RecordVo dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public List getData() { - return data; - } - - - public void setData(List data) { - this.data = data; - } - - - public ApiResponseRecordVos message(String message) { - - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @javax.annotation.Nonnull - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public ApiResponseRecordVos success(Boolean success) { - - this.success = success; - return this; - } - - /** - * Get success - * @return success - **/ - @javax.annotation.Nonnull - public Boolean getSuccess() { - return success; - } - - - public void setSuccess(Boolean success) { - this.success = success; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiResponseRecordVos apiResponseRecordVos = (ApiResponseRecordVos) o; - return Objects.equals(this.code, apiResponseRecordVos.code) && - Objects.equals(this.data, apiResponseRecordVos.data) && - Objects.equals(this.message, apiResponseRecordVos.message) && - Objects.equals(this.success, apiResponseRecordVos.success); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(code, data, message, success); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponseRecordVos {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("code"); - openapiFields.add("data"); - openapiFields.add("message"); - openapiFields.add("success"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("code"); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("success"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ApiResponseRecordVos - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiResponseRecordVos.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ApiResponseRecordVos is not found in the empty JSON string", ApiResponseRecordVos.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ApiResponseRecordVos.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ApiResponseRecordVos` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ApiResponseRecordVos.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); - if (jsonArraydata != null) { - // ensure the json data is an array - if (!jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - - // validate the optional field `data` (array) - for (int i = 0; i < jsonArraydata.size(); i++) { - RecordVo.validateJsonElement(jsonArraydata.get(i)); - }; - } - } - if (!jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiResponseRecordVos.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiResponseRecordVos' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiResponseRecordVos.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiResponseRecordVos value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiResponseRecordVos read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ApiResponseRecordVos given an JSON string - * - * @param jsonString JSON string - * @return An instance of ApiResponseRecordVos - * @throws IOException if the JSON string is invalid with respect to ApiResponseRecordVos - */ - public static ApiResponseRecordVos fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ApiResponseRecordVos.class); - } - - /** - * Convert an instance of ApiResponseRecordVos to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionIntroductionPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionIntroductionPO.java deleted file mode 100644 index 51ad136fed..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionIntroductionPO.java +++ /dev/null @@ -1,324 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationActionIntroductionPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationActionIntroductionPO { - public static final String SERIALIZED_NAME_ACTION_ID = "actionId"; - @SerializedName(SERIALIZED_NAME_ACTION_ID) - private String actionId; - - public static final String SERIALIZED_NAME_ACTION_TYPE_ID = "actionTypeId"; - @SerializedName(SERIALIZED_NAME_ACTION_TYPE_ID) - private String actionTypeId; - - public static final String SERIALIZED_NAME_PREV_ACTION_ID = "prevActionId"; - @SerializedName(SERIALIZED_NAME_PREV_ACTION_ID) - private String prevActionId; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public AutomationActionIntroductionPO() { - } - - public AutomationActionIntroductionPO actionId(String actionId) { - - this.actionId = actionId; - return this; - } - - /** - * Get actionId - * @return actionId - **/ - @javax.annotation.Nonnull - public String getActionId() { - return actionId; - } - - - public void setActionId(String actionId) { - this.actionId = actionId; - } - - - public AutomationActionIntroductionPO actionTypeId(String actionTypeId) { - - this.actionTypeId = actionTypeId; - return this; - } - - /** - * Get actionTypeId - * @return actionTypeId - **/ - @javax.annotation.Nonnull - public String getActionTypeId() { - return actionTypeId; - } - - - public void setActionTypeId(String actionTypeId) { - this.actionTypeId = actionTypeId; - } - - - public AutomationActionIntroductionPO prevActionId(String prevActionId) { - - this.prevActionId = prevActionId; - return this; - } - - /** - * Get prevActionId - * @return prevActionId - **/ - @javax.annotation.Nullable - public String getPrevActionId() { - return prevActionId; - } - - - public void setPrevActionId(String prevActionId) { - this.prevActionId = prevActionId; - } - - - public AutomationActionIntroductionPO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationActionIntroductionPO automationActionIntroductionPO = (AutomationActionIntroductionPO) o; - return Objects.equals(this.actionId, automationActionIntroductionPO.actionId) && - Objects.equals(this.actionTypeId, automationActionIntroductionPO.actionTypeId) && - Objects.equals(this.prevActionId, automationActionIntroductionPO.prevActionId) && - Objects.equals(this.robotId, automationActionIntroductionPO.robotId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(actionId, actionTypeId, prevActionId, robotId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationActionIntroductionPO {\n"); - sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); - sb.append(" actionTypeId: ").append(toIndentedString(actionTypeId)).append("\n"); - sb.append(" prevActionId: ").append(toIndentedString(prevActionId)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("actionId"); - openapiFields.add("actionTypeId"); - openapiFields.add("prevActionId"); - openapiFields.add("robotId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("actionId"); - openapiRequiredFields.add("actionTypeId"); - openapiRequiredFields.add("robotId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationActionIntroductionPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationActionIntroductionPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationActionIntroductionPO is not found in the empty JSON string", AutomationActionIntroductionPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationActionIntroductionPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationActionIntroductionPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationActionIntroductionPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("actionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `actionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionId").toString())); - } - if (!jsonObj.get("actionTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `actionTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionTypeId").toString())); - } - if ((jsonObj.get("prevActionId") != null && !jsonObj.get("prevActionId").isJsonNull()) && !jsonObj.get("prevActionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prevActionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prevActionId").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationActionIntroductionPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationActionIntroductionPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationActionIntroductionPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationActionIntroductionPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationActionIntroductionPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationActionIntroductionPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationActionIntroductionPO - * @throws IOException if the JSON string is invalid with respect to AutomationActionIntroductionPO - */ - public static AutomationActionIntroductionPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationActionIntroductionPO.class); - } - - /** - * Convert an instance of AutomationActionIntroductionPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionPO.java deleted file mode 100644 index 400cfdd9df..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationActionPO.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationActionPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationActionPO { - public static final String SERIALIZED_NAME_ACTION_ID = "actionId"; - @SerializedName(SERIALIZED_NAME_ACTION_ID) - private String actionId; - - public static final String SERIALIZED_NAME_ACTION_TYPE_ID = "actionTypeId"; - @SerializedName(SERIALIZED_NAME_ACTION_TYPE_ID) - private String actionTypeId; - - public static final String SERIALIZED_NAME_INPUT = "input"; - @SerializedName(SERIALIZED_NAME_INPUT) - private String input; - - public static final String SERIALIZED_NAME_PREV_ACTION_ID = "prevActionId"; - @SerializedName(SERIALIZED_NAME_PREV_ACTION_ID) - private String prevActionId; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public AutomationActionPO() { - } - - public AutomationActionPO actionId(String actionId) { - - this.actionId = actionId; - return this; - } - - /** - * Get actionId - * @return actionId - **/ - @javax.annotation.Nonnull - public String getActionId() { - return actionId; - } - - - public void setActionId(String actionId) { - this.actionId = actionId; - } - - - public AutomationActionPO actionTypeId(String actionTypeId) { - - this.actionTypeId = actionTypeId; - return this; - } - - /** - * Get actionTypeId - * @return actionTypeId - **/ - @javax.annotation.Nonnull - public String getActionTypeId() { - return actionTypeId; - } - - - public void setActionTypeId(String actionTypeId) { - this.actionTypeId = actionTypeId; - } - - - public AutomationActionPO input(String input) { - - this.input = input; - return this; - } - - /** - * Get input - * @return input - **/ - @javax.annotation.Nullable - public String getInput() { - return input; - } - - - public void setInput(String input) { - this.input = input; - } - - - public AutomationActionPO prevActionId(String prevActionId) { - - this.prevActionId = prevActionId; - return this; - } - - /** - * Get prevActionId - * @return prevActionId - **/ - @javax.annotation.Nullable - public String getPrevActionId() { - return prevActionId; - } - - - public void setPrevActionId(String prevActionId) { - this.prevActionId = prevActionId; - } - - - public AutomationActionPO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationActionPO automationActionPO = (AutomationActionPO) o; - return Objects.equals(this.actionId, automationActionPO.actionId) && - Objects.equals(this.actionTypeId, automationActionPO.actionTypeId) && - Objects.equals(this.input, automationActionPO.input) && - Objects.equals(this.prevActionId, automationActionPO.prevActionId) && - Objects.equals(this.robotId, automationActionPO.robotId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(actionId, actionTypeId, input, prevActionId, robotId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationActionPO {\n"); - sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); - sb.append(" actionTypeId: ").append(toIndentedString(actionTypeId)).append("\n"); - sb.append(" input: ").append(toIndentedString(input)).append("\n"); - sb.append(" prevActionId: ").append(toIndentedString(prevActionId)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("actionId"); - openapiFields.add("actionTypeId"); - openapiFields.add("input"); - openapiFields.add("prevActionId"); - openapiFields.add("robotId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("actionId"); - openapiRequiredFields.add("actionTypeId"); - openapiRequiredFields.add("robotId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationActionPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationActionPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationActionPO is not found in the empty JSON string", AutomationActionPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationActionPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationActionPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationActionPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("actionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `actionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionId").toString())); - } - if (!jsonObj.get("actionTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `actionTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionTypeId").toString())); - } - if ((jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) && !jsonObj.get("input").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `input` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input").toString())); - } - if ((jsonObj.get("prevActionId") != null && !jsonObj.get("prevActionId").isJsonNull()) && !jsonObj.get("prevActionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prevActionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prevActionId").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationActionPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationActionPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationActionPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationActionPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationActionPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationActionPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationActionPO - * @throws IOException if the JSON string is invalid with respect to AutomationActionPO - */ - public static AutomationActionPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationActionPO.class); - } - - /** - * Convert an instance of AutomationActionPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryRO.java deleted file mode 100644 index 278deac1ab..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryRO.java +++ /dev/null @@ -1,319 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationHistoryRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationHistoryRO { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private Object data = null; - - public static final String SERIALIZED_NAME_SPACE_ID = "space_id"; - @SerializedName(SERIALIZED_NAME_SPACE_ID) - private String spaceId; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private Integer status; - - public static final String SERIALIZED_NAME_TASK_ID = "task_id"; - @SerializedName(SERIALIZED_NAME_TASK_ID) - private String taskId; - - public AutomationHistoryRO() { - } - - public AutomationHistoryRO data(Object data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public Object getData() { - return data; - } - - - public void setData(Object data) { - this.data = data; - } - - - public AutomationHistoryRO spaceId(String spaceId) { - - this.spaceId = spaceId; - return this; - } - - /** - * Get spaceId - * @return spaceId - **/ - @javax.annotation.Nonnull - public String getSpaceId() { - return spaceId; - } - - - public void setSpaceId(String spaceId) { - this.spaceId = spaceId; - } - - - public AutomationHistoryRO status(Integer status) { - - this.status = status; - return this; - } - - /** - * Get status - * minimum: 0 - * @return status - **/ - @javax.annotation.Nonnull - public Integer getStatus() { - return status; - } - - - public void setStatus(Integer status) { - this.status = status; - } - - - public AutomationHistoryRO taskId(String taskId) { - - this.taskId = taskId; - return this; - } - - /** - * Get taskId - * @return taskId - **/ - @javax.annotation.Nonnull - public String getTaskId() { - return taskId; - } - - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationHistoryRO automationHistoryRO = (AutomationHistoryRO) o; - return Objects.equals(this.data, automationHistoryRO.data) && - Objects.equals(this.spaceId, automationHistoryRO.spaceId) && - Objects.equals(this.status, automationHistoryRO.status) && - Objects.equals(this.taskId, automationHistoryRO.taskId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(data, spaceId, status, taskId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationHistoryRO {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("space_id"); - openapiFields.add("status"); - openapiFields.add("task_id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("space_id"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("task_id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationHistoryRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationHistoryRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationHistoryRO is not found in the empty JSON string", AutomationHistoryRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationHistoryRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationHistoryRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationHistoryRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("space_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `space_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("space_id").toString())); - } - if (!jsonObj.get("task_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationHistoryRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationHistoryRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationHistoryRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationHistoryRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationHistoryRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationHistoryRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationHistoryRO - * @throws IOException if the JSON string is invalid with respect to AutomationHistoryRO - */ - public static AutomationHistoryRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationHistoryRO.class); - } - - /** - * Convert an instance of AutomationHistoryRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryStatusRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryStatusRO.java deleted file mode 100644 index 8bfd5442b8..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationHistoryStatusRO.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationHistoryStatusRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationHistoryStatusRO { - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private Integer status; - - public AutomationHistoryStatusRO() { - } - - public AutomationHistoryStatusRO status(Integer status) { - - this.status = status; - return this; - } - - /** - * Get status - * minimum: 0 - * @return status - **/ - @javax.annotation.Nonnull - public Integer getStatus() { - return status; - } - - - public void setStatus(Integer status) { - this.status = status; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationHistoryStatusRO automationHistoryStatusRO = (AutomationHistoryStatusRO) o; - return Objects.equals(this.status, automationHistoryStatusRO.status); - } - - @Override - public int hashCode() { - return Objects.hash(status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationHistoryStatusRO {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("status"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationHistoryStatusRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationHistoryStatusRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationHistoryStatusRO is not found in the empty JSON string", AutomationHistoryStatusRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationHistoryStatusRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationHistoryStatusRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationHistoryStatusRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationHistoryStatusRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationHistoryStatusRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationHistoryStatusRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationHistoryStatusRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationHistoryStatusRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationHistoryStatusRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationHistoryStatusRO - * @throws IOException if the JSON string is invalid with respect to AutomationHistoryStatusRO - */ - public static AutomationHistoryStatusRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationHistoryStatusRO.class); - } - - /** - * Convert an instance of AutomationHistoryStatusRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotActionRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotActionRO.java deleted file mode 100644 index d5fdc532a0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotActionRO.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotActionRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotActionRO { - public static final String SERIALIZED_NAME_ACTION_ID = "action_id"; - @SerializedName(SERIALIZED_NAME_ACTION_ID) - private String actionId; - - public static final String SERIALIZED_NAME_ACTION_TYPE_ID = "action_type_id"; - @SerializedName(SERIALIZED_NAME_ACTION_TYPE_ID) - private String actionTypeId; - - public static final String SERIALIZED_NAME_INPUT = "input"; - @SerializedName(SERIALIZED_NAME_INPUT) - private String input; - - public static final String SERIALIZED_NAME_IS_DELETED = "is_deleted"; - @SerializedName(SERIALIZED_NAME_IS_DELETED) - private Boolean isDeleted; - - public static final String SERIALIZED_NAME_LIMIT_COUNT = "limit_count"; - @SerializedName(SERIALIZED_NAME_LIMIT_COUNT) - private Long limitCount; - - public static final String SERIALIZED_NAME_PREV_ACTION_ID = "prev_action_id"; - @SerializedName(SERIALIZED_NAME_PREV_ACTION_ID) - private String prevActionId; - - public static final String SERIALIZED_NAME_USER_ID = "user_id"; - @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; - - public AutomationRobotActionRO() { - } - - public AutomationRobotActionRO actionId(String actionId) { - - this.actionId = actionId; - return this; - } - - /** - * Get actionId - * @return actionId - **/ - @javax.annotation.Nullable - public String getActionId() { - return actionId; - } - - - public void setActionId(String actionId) { - this.actionId = actionId; - } - - - public AutomationRobotActionRO actionTypeId(String actionTypeId) { - - this.actionTypeId = actionTypeId; - return this; - } - - /** - * Get actionTypeId - * @return actionTypeId - **/ - @javax.annotation.Nullable - public String getActionTypeId() { - return actionTypeId; - } - - - public void setActionTypeId(String actionTypeId) { - this.actionTypeId = actionTypeId; - } - - - public AutomationRobotActionRO input(String input) { - - this.input = input; - return this; - } - - /** - * Get input - * @return input - **/ - @javax.annotation.Nullable - public String getInput() { - return input; - } - - - public void setInput(String input) { - this.input = input; - } - - - public AutomationRobotActionRO isDeleted(Boolean isDeleted) { - - this.isDeleted = isDeleted; - return this; - } - - /** - * Get isDeleted - * @return isDeleted - **/ - @javax.annotation.Nullable - public Boolean getIsDeleted() { - return isDeleted; - } - - - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - - public AutomationRobotActionRO limitCount(Long limitCount) { - - this.limitCount = limitCount; - return this; - } - - /** - * Get limitCount - * @return limitCount - **/ - @javax.annotation.Nullable - public Long getLimitCount() { - return limitCount; - } - - - public void setLimitCount(Long limitCount) { - this.limitCount = limitCount; - } - - - public AutomationRobotActionRO prevActionId(String prevActionId) { - - this.prevActionId = prevActionId; - return this; - } - - /** - * Get prevActionId - * @return prevActionId - **/ - @javax.annotation.Nullable - public String getPrevActionId() { - return prevActionId; - } - - - public void setPrevActionId(String prevActionId) { - this.prevActionId = prevActionId; - } - - - public AutomationRobotActionRO userId(Long userId) { - - this.userId = userId; - return this; - } - - /** - * Get userId - * minimum: 0 - * @return userId - **/ - @javax.annotation.Nonnull - public Long getUserId() { - return userId; - } - - - public void setUserId(Long userId) { - this.userId = userId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotActionRO automationRobotActionRO = (AutomationRobotActionRO) o; - return Objects.equals(this.actionId, automationRobotActionRO.actionId) && - Objects.equals(this.actionTypeId, automationRobotActionRO.actionTypeId) && - Objects.equals(this.input, automationRobotActionRO.input) && - Objects.equals(this.isDeleted, automationRobotActionRO.isDeleted) && - Objects.equals(this.limitCount, automationRobotActionRO.limitCount) && - Objects.equals(this.prevActionId, automationRobotActionRO.prevActionId) && - Objects.equals(this.userId, automationRobotActionRO.userId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(actionId, actionTypeId, input, isDeleted, limitCount, prevActionId, userId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotActionRO {\n"); - sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); - sb.append(" actionTypeId: ").append(toIndentedString(actionTypeId)).append("\n"); - sb.append(" input: ").append(toIndentedString(input)).append("\n"); - sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); - sb.append(" limitCount: ").append(toIndentedString(limitCount)).append("\n"); - sb.append(" prevActionId: ").append(toIndentedString(prevActionId)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("action_id"); - openapiFields.add("action_type_id"); - openapiFields.add("input"); - openapiFields.add("is_deleted"); - openapiFields.add("limit_count"); - openapiFields.add("prev_action_id"); - openapiFields.add("user_id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("user_id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotActionRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotActionRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotActionRO is not found in the empty JSON string", AutomationRobotActionRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotActionRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotActionRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotActionRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("action_id") != null && !jsonObj.get("action_id").isJsonNull()) && !jsonObj.get("action_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `action_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action_id").toString())); - } - if ((jsonObj.get("action_type_id") != null && !jsonObj.get("action_type_id").isJsonNull()) && !jsonObj.get("action_type_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `action_type_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action_type_id").toString())); - } - if ((jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) && !jsonObj.get("input").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `input` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input").toString())); - } - if ((jsonObj.get("prev_action_id") != null && !jsonObj.get("prev_action_id").isJsonNull()) && !jsonObj.get("prev_action_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prev_action_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prev_action_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotActionRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotActionRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotActionRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotActionRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotActionRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotActionRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotActionRO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotActionRO - */ - public static AutomationRobotActionRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotActionRO.class); - } - - /** - * Convert an instance of AutomationRobotActionRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotCopyRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotCopyRO.java deleted file mode 100644 index 5464d414a1..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotCopyRO.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotCopyRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotCopyRO { - public static final String SERIALIZED_NAME_AUTOMATION_NAME = "automation_name"; - @SerializedName(SERIALIZED_NAME_AUTOMATION_NAME) - private String automationName; - - public static final String SERIALIZED_NAME_ORIGINAL_RESOURCE_ID = "original_resource_id"; - @SerializedName(SERIALIZED_NAME_ORIGINAL_RESOURCE_ID) - private String originalResourceId; - - public static final String SERIALIZED_NAME_RESOURCE_ID = "resource_id"; - @SerializedName(SERIALIZED_NAME_RESOURCE_ID) - private String resourceId; - - public static final String SERIALIZED_NAME_USER_ID = "user_id"; - @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; - - public AutomationRobotCopyRO() { - } - - public AutomationRobotCopyRO automationName(String automationName) { - - this.automationName = automationName; - return this; - } - - /** - * Get automationName - * @return automationName - **/ - @javax.annotation.Nullable - public String getAutomationName() { - return automationName; - } - - - public void setAutomationName(String automationName) { - this.automationName = automationName; - } - - - public AutomationRobotCopyRO originalResourceId(String originalResourceId) { - - this.originalResourceId = originalResourceId; - return this; - } - - /** - * Get originalResourceId - * @return originalResourceId - **/ - @javax.annotation.Nonnull - public String getOriginalResourceId() { - return originalResourceId; - } - - - public void setOriginalResourceId(String originalResourceId) { - this.originalResourceId = originalResourceId; - } - - - public AutomationRobotCopyRO resourceId(String resourceId) { - - this.resourceId = resourceId; - return this; - } - - /** - * Get resourceId - * @return resourceId - **/ - @javax.annotation.Nonnull - public String getResourceId() { - return resourceId; - } - - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - - public AutomationRobotCopyRO userId(Long userId) { - - this.userId = userId; - return this; - } - - /** - * Get userId - * minimum: 0 - * @return userId - **/ - @javax.annotation.Nonnull - public Long getUserId() { - return userId; - } - - - public void setUserId(Long userId) { - this.userId = userId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotCopyRO automationRobotCopyRO = (AutomationRobotCopyRO) o; - return Objects.equals(this.automationName, automationRobotCopyRO.automationName) && - Objects.equals(this.originalResourceId, automationRobotCopyRO.originalResourceId) && - Objects.equals(this.resourceId, automationRobotCopyRO.resourceId) && - Objects.equals(this.userId, automationRobotCopyRO.userId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(automationName, originalResourceId, resourceId, userId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotCopyRO {\n"); - sb.append(" automationName: ").append(toIndentedString(automationName)).append("\n"); - sb.append(" originalResourceId: ").append(toIndentedString(originalResourceId)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("automation_name"); - openapiFields.add("original_resource_id"); - openapiFields.add("resource_id"); - openapiFields.add("user_id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("original_resource_id"); - openapiRequiredFields.add("resource_id"); - openapiRequiredFields.add("user_id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotCopyRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotCopyRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotCopyRO is not found in the empty JSON string", AutomationRobotCopyRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotCopyRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotCopyRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotCopyRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("automation_name") != null && !jsonObj.get("automation_name").isJsonNull()) && !jsonObj.get("automation_name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `automation_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("automation_name").toString())); - } - if (!jsonObj.get("original_resource_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `original_resource_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("original_resource_id").toString())); - } - if (!jsonObj.get("resource_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resource_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotCopyRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotCopyRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotCopyRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotCopyRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotCopyRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotCopyRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotCopyRO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotCopyRO - */ - public static AutomationRobotCopyRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotCopyRO.class); - } - - /** - * Convert an instance of AutomationRobotCopyRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionPO.java deleted file mode 100644 index 8c483ff02d..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionPO.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotIntroductionPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotIntroductionPO { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_IS_ACTIVE = "isActive"; - @SerializedName(SERIALIZED_NAME_IS_ACTIVE) - private Integer isActive; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PROPS = "props"; - @SerializedName(SERIALIZED_NAME_PROPS) - private String props; - - public static final String SERIALIZED_NAME_RESOURCE_ID = "resourceId"; - @SerializedName(SERIALIZED_NAME_RESOURCE_ID) - private String resourceId; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public AutomationRobotIntroductionPO() { - } - - public AutomationRobotIntroductionPO description(String description) { - - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @javax.annotation.Nullable - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public AutomationRobotIntroductionPO isActive(Integer isActive) { - - this.isActive = isActive; - return this; - } - - /** - * Get isActive - * minimum: 0 - * @return isActive - **/ - @javax.annotation.Nonnull - public Integer getIsActive() { - return isActive; - } - - - public void setIsActive(Integer isActive) { - this.isActive = isActive; - } - - - public AutomationRobotIntroductionPO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public AutomationRobotIntroductionPO props(String props) { - - this.props = props; - return this; - } - - /** - * Get props - * @return props - **/ - @javax.annotation.Nullable - public String getProps() { - return props; - } - - - public void setProps(String props) { - this.props = props; - } - - - public AutomationRobotIntroductionPO resourceId(String resourceId) { - - this.resourceId = resourceId; - return this; - } - - /** - * Get resourceId - * @return resourceId - **/ - @javax.annotation.Nonnull - public String getResourceId() { - return resourceId; - } - - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - - public AutomationRobotIntroductionPO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotIntroductionPO automationRobotIntroductionPO = (AutomationRobotIntroductionPO) o; - return Objects.equals(this.description, automationRobotIntroductionPO.description) && - Objects.equals(this.isActive, automationRobotIntroductionPO.isActive) && - Objects.equals(this.name, automationRobotIntroductionPO.name) && - Objects.equals(this.props, automationRobotIntroductionPO.props) && - Objects.equals(this.resourceId, automationRobotIntroductionPO.resourceId) && - Objects.equals(this.robotId, automationRobotIntroductionPO.robotId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(description, isActive, name, props, resourceId, robotId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotIntroductionPO {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" props: ").append(toIndentedString(props)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("isActive"); - openapiFields.add("name"); - openapiFields.add("props"); - openapiFields.add("resourceId"); - openapiFields.add("robotId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("isActive"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resourceId"); - openapiRequiredFields.add("robotId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotIntroductionPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotIntroductionPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotIntroductionPO is not found in the empty JSON string", AutomationRobotIntroductionPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotIntroductionPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotIntroductionPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotIntroductionPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("props") != null && !jsonObj.get("props").isJsonNull()) && !jsonObj.get("props").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `props` to be a primitive type in the JSON string but got `%s`", jsonObj.get("props").toString())); - } - if (!jsonObj.get("resourceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resourceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceId").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotIntroductionPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotIntroductionPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotIntroductionPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotIntroductionPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotIntroductionPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotIntroductionPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotIntroductionPO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotIntroductionPO - */ - public static AutomationRobotIntroductionPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotIntroductionPO.class); - } - - /** - * Convert an instance of AutomationRobotIntroductionPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionSO.java deleted file mode 100644 index e0669e08f0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotIntroductionSO.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationActionIntroductionPO; -import com.apitable.databusclient.model.AutomationRobotIntroductionPO; -import com.apitable.databusclient.model.AutomationTriggerIntroductionPO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotIntroductionSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotIntroductionSO { - public static final String SERIALIZED_NAME_ACTIONS = "actions"; - @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList<>(); - - public static final String SERIALIZED_NAME_ROBOTS = "robots"; - @SerializedName(SERIALIZED_NAME_ROBOTS) - private List robots = new ArrayList<>(); - - public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; - @SerializedName(SERIALIZED_NAME_TRIGGERS) - private List triggers = new ArrayList<>(); - - public AutomationRobotIntroductionSO() { - } - - public AutomationRobotIntroductionSO actions(List actions) { - - this.actions = actions; - return this; - } - - public AutomationRobotIntroductionSO addActionsItem(AutomationActionIntroductionPO actionsItem) { - if (this.actions == null) { - this.actions = new ArrayList<>(); - } - this.actions.add(actionsItem); - return this; - } - - /** - * Get actions - * @return actions - **/ - @javax.annotation.Nonnull - public List getActions() { - return actions; - } - - - public void setActions(List actions) { - this.actions = actions; - } - - - public AutomationRobotIntroductionSO robots(List robots) { - - this.robots = robots; - return this; - } - - public AutomationRobotIntroductionSO addRobotsItem(AutomationRobotIntroductionPO robotsItem) { - if (this.robots == null) { - this.robots = new ArrayList<>(); - } - this.robots.add(robotsItem); - return this; - } - - /** - * Get robots - * @return robots - **/ - @javax.annotation.Nonnull - public List getRobots() { - return robots; - } - - - public void setRobots(List robots) { - this.robots = robots; - } - - - public AutomationRobotIntroductionSO triggers(List triggers) { - - this.triggers = triggers; - return this; - } - - public AutomationRobotIntroductionSO addTriggersItem(AutomationTriggerIntroductionPO triggersItem) { - if (this.triggers == null) { - this.triggers = new ArrayList<>(); - } - this.triggers.add(triggersItem); - return this; - } - - /** - * Get triggers - * @return triggers - **/ - @javax.annotation.Nonnull - public List getTriggers() { - return triggers; - } - - - public void setTriggers(List triggers) { - this.triggers = triggers; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotIntroductionSO automationRobotIntroductionSO = (AutomationRobotIntroductionSO) o; - return Objects.equals(this.actions, automationRobotIntroductionSO.actions) && - Objects.equals(this.robots, automationRobotIntroductionSO.robots) && - Objects.equals(this.triggers, automationRobotIntroductionSO.triggers); - } - - @Override - public int hashCode() { - return Objects.hash(actions, robots, triggers); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotIntroductionSO {\n"); - sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); - sb.append(" robots: ").append(toIndentedString(robots)).append("\n"); - sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("actions"); - openapiFields.add("robots"); - openapiFields.add("triggers"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("actions"); - openapiRequiredFields.add("robots"); - openapiRequiredFields.add("triggers"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotIntroductionSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotIntroductionSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotIntroductionSO is not found in the empty JSON string", AutomationRobotIntroductionSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotIntroductionSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotIntroductionSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotIntroductionSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - // validate the required field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AutomationActionIntroductionPO.validateJsonElement(jsonArrayactions.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("robots").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `robots` to be an array in the JSON string but got `%s`", jsonObj.get("robots").toString())); - } - - JsonArray jsonArrayrobots = jsonObj.getAsJsonArray("robots"); - // validate the required field `robots` (array) - for (int i = 0; i < jsonArrayrobots.size(); i++) { - AutomationRobotIntroductionPO.validateJsonElement(jsonArrayrobots.get(i)); - }; - // ensure the json data is an array - if (!jsonObj.get("triggers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `triggers` to be an array in the JSON string but got `%s`", jsonObj.get("triggers").toString())); - } - - JsonArray jsonArraytriggers = jsonObj.getAsJsonArray("triggers"); - // validate the required field `triggers` (array) - for (int i = 0; i < jsonArraytriggers.size(); i++) { - AutomationTriggerIntroductionPO.validateJsonElement(jsonArraytriggers.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotIntroductionSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotIntroductionSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotIntroductionSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotIntroductionSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotIntroductionSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotIntroductionSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotIntroductionSO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotIntroductionSO - */ - public static AutomationRobotIntroductionSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotIntroductionSO.class); - } - - /** - * Convert an instance of AutomationRobotIntroductionSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotRunNumsSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotRunNumsSO.java deleted file mode 100644 index a2d6095a08..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotRunNumsSO.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotRunNumsSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotRunNumsSO { - public static final String SERIALIZED_NAME_RECENTLY_RUN_COUNT = "recentlyRunCount"; - @SerializedName(SERIALIZED_NAME_RECENTLY_RUN_COUNT) - private Long recentlyRunCount; - - public AutomationRobotRunNumsSO() { - } - - public AutomationRobotRunNumsSO recentlyRunCount(Long recentlyRunCount) { - - this.recentlyRunCount = recentlyRunCount; - return this; - } - - /** - * Get recentlyRunCount - * @return recentlyRunCount - **/ - @javax.annotation.Nonnull - public Long getRecentlyRunCount() { - return recentlyRunCount; - } - - - public void setRecentlyRunCount(Long recentlyRunCount) { - this.recentlyRunCount = recentlyRunCount; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotRunNumsSO automationRobotRunNumsSO = (AutomationRobotRunNumsSO) o; - return Objects.equals(this.recentlyRunCount, automationRobotRunNumsSO.recentlyRunCount); - } - - @Override - public int hashCode() { - return Objects.hash(recentlyRunCount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotRunNumsSO {\n"); - sb.append(" recentlyRunCount: ").append(toIndentedString(recentlyRunCount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("recentlyRunCount"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("recentlyRunCount"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotRunNumsSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotRunNumsSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotRunNumsSO is not found in the empty JSON string", AutomationRobotRunNumsSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AutomationRobotRunNumsSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotRunNumsSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotRunNumsSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotRunNumsSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotRunNumsSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotRunNumsSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotRunNumsSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotRunNumsSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotRunNumsSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotRunNumsSO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotRunNumsSO - */ - public static AutomationRobotRunNumsSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotRunNumsSO.class); - } - - /** - * Convert an instance of AutomationRobotRunNumsSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotSO.java deleted file mode 100644 index 2e78f590b5..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotSO.java +++ /dev/null @@ -1,471 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotSO { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_IS_ACTIVE = "isActive"; - @SerializedName(SERIALIZED_NAME_IS_ACTIVE) - private Integer isActive; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PROPS = "props"; - @SerializedName(SERIALIZED_NAME_PROPS) - private String props; - - public static final String SERIALIZED_NAME_RECENTLY_RUN_COUNT = "recentlyRunCount"; - @SerializedName(SERIALIZED_NAME_RECENTLY_RUN_COUNT) - private Long recentlyRunCount; - - public static final String SERIALIZED_NAME_RESOURCE_ID = "resourceId"; - @SerializedName(SERIALIZED_NAME_RESOURCE_ID) - private String resourceId; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private Long updatedAt; - - public static final String SERIALIZED_NAME_UPDATED_BY = "updatedBy"; - @SerializedName(SERIALIZED_NAME_UPDATED_BY) - private Long updatedBy; - - public AutomationRobotSO() { - } - - public AutomationRobotSO description(String description) { - - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @javax.annotation.Nullable - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public AutomationRobotSO isActive(Integer isActive) { - - this.isActive = isActive; - return this; - } - - /** - * Get isActive - * minimum: 0 - * @return isActive - **/ - @javax.annotation.Nonnull - public Integer getIsActive() { - return isActive; - } - - - public void setIsActive(Integer isActive) { - this.isActive = isActive; - } - - - public AutomationRobotSO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public AutomationRobotSO props(String props) { - - this.props = props; - return this; - } - - /** - * Get props - * @return props - **/ - @javax.annotation.Nullable - public String getProps() { - return props; - } - - - public void setProps(String props) { - this.props = props; - } - - - public AutomationRobotSO recentlyRunCount(Long recentlyRunCount) { - - this.recentlyRunCount = recentlyRunCount; - return this; - } - - /** - * Get recentlyRunCount - * @return recentlyRunCount - **/ - @javax.annotation.Nonnull - public Long getRecentlyRunCount() { - return recentlyRunCount; - } - - - public void setRecentlyRunCount(Long recentlyRunCount) { - this.recentlyRunCount = recentlyRunCount; - } - - - public AutomationRobotSO resourceId(String resourceId) { - - this.resourceId = resourceId; - return this; - } - - /** - * Get resourceId - * @return resourceId - **/ - @javax.annotation.Nonnull - public String getResourceId() { - return resourceId; - } - - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - - public AutomationRobotSO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - public AutomationRobotSO updatedAt(Long updatedAt) { - - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * @return updatedAt - **/ - @javax.annotation.Nullable - public Long getUpdatedAt() { - return updatedAt; - } - - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - - public AutomationRobotSO updatedBy(Long updatedBy) { - - this.updatedBy = updatedBy; - return this; - } - - /** - * Get updatedBy - * minimum: 0 - * @return updatedBy - **/ - @javax.annotation.Nullable - public Long getUpdatedBy() { - return updatedBy; - } - - - public void setUpdatedBy(Long updatedBy) { - this.updatedBy = updatedBy; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotSO automationRobotSO = (AutomationRobotSO) o; - return Objects.equals(this.description, automationRobotSO.description) && - Objects.equals(this.isActive, automationRobotSO.isActive) && - Objects.equals(this.name, automationRobotSO.name) && - Objects.equals(this.props, automationRobotSO.props) && - Objects.equals(this.recentlyRunCount, automationRobotSO.recentlyRunCount) && - Objects.equals(this.resourceId, automationRobotSO.resourceId) && - Objects.equals(this.robotId, automationRobotSO.robotId) && - Objects.equals(this.updatedAt, automationRobotSO.updatedAt) && - Objects.equals(this.updatedBy, automationRobotSO.updatedBy); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(description, isActive, name, props, recentlyRunCount, resourceId, robotId, updatedAt, updatedBy); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotSO {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" props: ").append(toIndentedString(props)).append("\n"); - sb.append(" recentlyRunCount: ").append(toIndentedString(recentlyRunCount)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("isActive"); - openapiFields.add("name"); - openapiFields.add("props"); - openapiFields.add("recentlyRunCount"); - openapiFields.add("resourceId"); - openapiFields.add("robotId"); - openapiFields.add("updatedAt"); - openapiFields.add("updatedBy"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("isActive"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("recentlyRunCount"); - openapiRequiredFields.add("resourceId"); - openapiRequiredFields.add("robotId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotSO is not found in the empty JSON string", AutomationRobotSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("props") != null && !jsonObj.get("props").isJsonNull()) && !jsonObj.get("props").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `props` to be a primitive type in the JSON string but got `%s`", jsonObj.get("props").toString())); - } - if (!jsonObj.get("resourceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resourceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceId").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotSO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotSO - */ - public static AutomationRobotSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotSO.class); - } - - /** - * Convert an instance of AutomationRobotSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotTriggerRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotTriggerRO.java deleted file mode 100644 index a3ca19cac0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotTriggerRO.java +++ /dev/null @@ -1,438 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotTriggerRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotTriggerRO { - public static final String SERIALIZED_NAME_INPUT = "input"; - @SerializedName(SERIALIZED_NAME_INPUT) - private String input; - - public static final String SERIALIZED_NAME_IS_DELETED = "is_deleted"; - @SerializedName(SERIALIZED_NAME_IS_DELETED) - private Boolean isDeleted; - - public static final String SERIALIZED_NAME_LIMIT_COUNT = "limit_count"; - @SerializedName(SERIALIZED_NAME_LIMIT_COUNT) - private Long limitCount; - - public static final String SERIALIZED_NAME_PREV_TRIGGER_ID = "prev_trigger_id"; - @SerializedName(SERIALIZED_NAME_PREV_TRIGGER_ID) - private String prevTriggerId; - - public static final String SERIALIZED_NAME_RESOURCE_ID = "resource_id"; - @SerializedName(SERIALIZED_NAME_RESOURCE_ID) - private String resourceId; - - public static final String SERIALIZED_NAME_TRIGGER_ID = "trigger_id"; - @SerializedName(SERIALIZED_NAME_TRIGGER_ID) - private String triggerId; - - public static final String SERIALIZED_NAME_TRIGGER_TYPE_ID = "trigger_type_id"; - @SerializedName(SERIALIZED_NAME_TRIGGER_TYPE_ID) - private String triggerTypeId; - - public static final String SERIALIZED_NAME_USER_ID = "user_id"; - @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; - - public AutomationRobotTriggerRO() { - } - - public AutomationRobotTriggerRO input(String input) { - - this.input = input; - return this; - } - - /** - * Get input - * @return input - **/ - @javax.annotation.Nullable - public String getInput() { - return input; - } - - - public void setInput(String input) { - this.input = input; - } - - - public AutomationRobotTriggerRO isDeleted(Boolean isDeleted) { - - this.isDeleted = isDeleted; - return this; - } - - /** - * Get isDeleted - * @return isDeleted - **/ - @javax.annotation.Nullable - public Boolean getIsDeleted() { - return isDeleted; - } - - - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - - public AutomationRobotTriggerRO limitCount(Long limitCount) { - - this.limitCount = limitCount; - return this; - } - - /** - * Get limitCount - * @return limitCount - **/ - @javax.annotation.Nullable - public Long getLimitCount() { - return limitCount; - } - - - public void setLimitCount(Long limitCount) { - this.limitCount = limitCount; - } - - - public AutomationRobotTriggerRO prevTriggerId(String prevTriggerId) { - - this.prevTriggerId = prevTriggerId; - return this; - } - - /** - * Get prevTriggerId - * @return prevTriggerId - **/ - @javax.annotation.Nullable - public String getPrevTriggerId() { - return prevTriggerId; - } - - - public void setPrevTriggerId(String prevTriggerId) { - this.prevTriggerId = prevTriggerId; - } - - - public AutomationRobotTriggerRO resourceId(String resourceId) { - - this.resourceId = resourceId; - return this; - } - - /** - * Get resourceId - * @return resourceId - **/ - @javax.annotation.Nullable - public String getResourceId() { - return resourceId; - } - - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - - public AutomationRobotTriggerRO triggerId(String triggerId) { - - this.triggerId = triggerId; - return this; - } - - /** - * Get triggerId - * @return triggerId - **/ - @javax.annotation.Nullable - public String getTriggerId() { - return triggerId; - } - - - public void setTriggerId(String triggerId) { - this.triggerId = triggerId; - } - - - public AutomationRobotTriggerRO triggerTypeId(String triggerTypeId) { - - this.triggerTypeId = triggerTypeId; - return this; - } - - /** - * Get triggerTypeId - * @return triggerTypeId - **/ - @javax.annotation.Nullable - public String getTriggerTypeId() { - return triggerTypeId; - } - - - public void setTriggerTypeId(String triggerTypeId) { - this.triggerTypeId = triggerTypeId; - } - - - public AutomationRobotTriggerRO userId(Long userId) { - - this.userId = userId; - return this; - } - - /** - * Get userId - * minimum: 0 - * @return userId - **/ - @javax.annotation.Nonnull - public Long getUserId() { - return userId; - } - - - public void setUserId(Long userId) { - this.userId = userId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotTriggerRO automationRobotTriggerRO = (AutomationRobotTriggerRO) o; - return Objects.equals(this.input, automationRobotTriggerRO.input) && - Objects.equals(this.isDeleted, automationRobotTriggerRO.isDeleted) && - Objects.equals(this.limitCount, automationRobotTriggerRO.limitCount) && - Objects.equals(this.prevTriggerId, automationRobotTriggerRO.prevTriggerId) && - Objects.equals(this.resourceId, automationRobotTriggerRO.resourceId) && - Objects.equals(this.triggerId, automationRobotTriggerRO.triggerId) && - Objects.equals(this.triggerTypeId, automationRobotTriggerRO.triggerTypeId) && - Objects.equals(this.userId, automationRobotTriggerRO.userId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(input, isDeleted, limitCount, prevTriggerId, resourceId, triggerId, triggerTypeId, userId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotTriggerRO {\n"); - sb.append(" input: ").append(toIndentedString(input)).append("\n"); - sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); - sb.append(" limitCount: ").append(toIndentedString(limitCount)).append("\n"); - sb.append(" prevTriggerId: ").append(toIndentedString(prevTriggerId)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" triggerId: ").append(toIndentedString(triggerId)).append("\n"); - sb.append(" triggerTypeId: ").append(toIndentedString(triggerTypeId)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("input"); - openapiFields.add("is_deleted"); - openapiFields.add("limit_count"); - openapiFields.add("prev_trigger_id"); - openapiFields.add("resource_id"); - openapiFields.add("trigger_id"); - openapiFields.add("trigger_type_id"); - openapiFields.add("user_id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("user_id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotTriggerRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotTriggerRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotTriggerRO is not found in the empty JSON string", AutomationRobotTriggerRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotTriggerRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotTriggerRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotTriggerRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) && !jsonObj.get("input").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `input` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input").toString())); - } - if ((jsonObj.get("prev_trigger_id") != null && !jsonObj.get("prev_trigger_id").isJsonNull()) && !jsonObj.get("prev_trigger_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prev_trigger_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prev_trigger_id").toString())); - } - if ((jsonObj.get("resource_id") != null && !jsonObj.get("resource_id").isJsonNull()) && !jsonObj.get("resource_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resource_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_id").toString())); - } - if ((jsonObj.get("trigger_id") != null && !jsonObj.get("trigger_id").isJsonNull()) && !jsonObj.get("trigger_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `trigger_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trigger_id").toString())); - } - if ((jsonObj.get("trigger_type_id") != null && !jsonObj.get("trigger_type_id").isJsonNull()) && !jsonObj.get("trigger_type_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `trigger_type_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trigger_type_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotTriggerRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotTriggerRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotTriggerRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotTriggerRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotTriggerRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotTriggerRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotTriggerRO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotTriggerRO - */ - public static AutomationRobotTriggerRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotTriggerRO.class); - } - - /** - * Convert an instance of AutomationRobotTriggerRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotUpdateRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotUpdateRO.java deleted file mode 100644 index 2e5302a60e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRobotUpdateRO.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRobotUpdateRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRobotUpdateRO { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_IS_ACTIVE = "is_active"; - @SerializedName(SERIALIZED_NAME_IS_ACTIVE) - private Boolean isActive; - - public static final String SERIALIZED_NAME_IS_DELETED = "is_deleted"; - @SerializedName(SERIALIZED_NAME_IS_DELETED) - private Boolean isDeleted; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PROPS = "props"; - @SerializedName(SERIALIZED_NAME_PROPS) - private String props; - - public static final String SERIALIZED_NAME_UPDATED_BY = "updated_by"; - @SerializedName(SERIALIZED_NAME_UPDATED_BY) - private Long updatedBy; - - public AutomationRobotUpdateRO() { - } - - public AutomationRobotUpdateRO description(String description) { - - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @javax.annotation.Nullable - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public AutomationRobotUpdateRO isActive(Boolean isActive) { - - this.isActive = isActive; - return this; - } - - /** - * Get isActive - * @return isActive - **/ - @javax.annotation.Nullable - public Boolean getIsActive() { - return isActive; - } - - - public void setIsActive(Boolean isActive) { - this.isActive = isActive; - } - - - public AutomationRobotUpdateRO isDeleted(Boolean isDeleted) { - - this.isDeleted = isDeleted; - return this; - } - - /** - * Get isDeleted - * @return isDeleted - **/ - @javax.annotation.Nullable - public Boolean getIsDeleted() { - return isDeleted; - } - - - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - - public AutomationRobotUpdateRO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nullable - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public AutomationRobotUpdateRO props(String props) { - - this.props = props; - return this; - } - - /** - * Get props - * @return props - **/ - @javax.annotation.Nullable - public String getProps() { - return props; - } - - - public void setProps(String props) { - this.props = props; - } - - - public AutomationRobotUpdateRO updatedBy(Long updatedBy) { - - this.updatedBy = updatedBy; - return this; - } - - /** - * Get updatedBy - * minimum: 0 - * @return updatedBy - **/ - @javax.annotation.Nonnull - public Long getUpdatedBy() { - return updatedBy; - } - - - public void setUpdatedBy(Long updatedBy) { - this.updatedBy = updatedBy; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRobotUpdateRO automationRobotUpdateRO = (AutomationRobotUpdateRO) o; - return Objects.equals(this.description, automationRobotUpdateRO.description) && - Objects.equals(this.isActive, automationRobotUpdateRO.isActive) && - Objects.equals(this.isDeleted, automationRobotUpdateRO.isDeleted) && - Objects.equals(this.name, automationRobotUpdateRO.name) && - Objects.equals(this.props, automationRobotUpdateRO.props) && - Objects.equals(this.updatedBy, automationRobotUpdateRO.updatedBy); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(description, isActive, isDeleted, name, props, updatedBy); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRobotUpdateRO {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); - sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" props: ").append(toIndentedString(props)).append("\n"); - sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("is_active"); - openapiFields.add("is_deleted"); - openapiFields.add("name"); - openapiFields.add("props"); - openapiFields.add("updated_by"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("updated_by"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRobotUpdateRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRobotUpdateRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRobotUpdateRO is not found in the empty JSON string", AutomationRobotUpdateRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRobotUpdateRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRobotUpdateRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRobotUpdateRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("props") != null && !jsonObj.get("props").isJsonNull()) && !jsonObj.get("props").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `props` to be a primitive type in the JSON string but got `%s`", jsonObj.get("props").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRobotUpdateRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRobotUpdateRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRobotUpdateRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRobotUpdateRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRobotUpdateRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRobotUpdateRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRobotUpdateRO - * @throws IOException if the JSON string is invalid with respect to AutomationRobotUpdateRO - */ - public static AutomationRobotUpdateRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRobotUpdateRO.class); - } - - /** - * Convert an instance of AutomationRobotUpdateRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRunHistoryPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRunHistoryPO.java deleted file mode 100644 index ed155115ed..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationRunHistoryPO.java +++ /dev/null @@ -1,416 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationRunHistoryPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationRunHistoryPO { - public static final String SERIALIZED_NAME_ACTION_IDS = "actionIds"; - @SerializedName(SERIALIZED_NAME_ACTION_IDS) - private String actionIds; - - public static final String SERIALIZED_NAME_ACTION_TYPE_IDS = "actionTypeIds"; - @SerializedName(SERIALIZED_NAME_ACTION_TYPE_IDS) - private String actionTypeIds; - - public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private String createdAt; - - public static final String SERIALIZED_NAME_ERROR_STACKS = "errorStacks"; - @SerializedName(SERIALIZED_NAME_ERROR_STACKS) - private String errorStacks; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_STATUS) - private Integer status; - - public static final String SERIALIZED_NAME_TASK_ID = "taskId"; - @SerializedName(SERIALIZED_NAME_TASK_ID) - private String taskId; - - public AutomationRunHistoryPO() { - } - - public AutomationRunHistoryPO actionIds(String actionIds) { - - this.actionIds = actionIds; - return this; - } - - /** - * Get actionIds - * @return actionIds - **/ - @javax.annotation.Nullable - public String getActionIds() { - return actionIds; - } - - - public void setActionIds(String actionIds) { - this.actionIds = actionIds; - } - - - public AutomationRunHistoryPO actionTypeIds(String actionTypeIds) { - - this.actionTypeIds = actionTypeIds; - return this; - } - - /** - * Get actionTypeIds - * @return actionTypeIds - **/ - @javax.annotation.Nullable - public String getActionTypeIds() { - return actionTypeIds; - } - - - public void setActionTypeIds(String actionTypeIds) { - this.actionTypeIds = actionTypeIds; - } - - - public AutomationRunHistoryPO createdAt(String createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * @return createdAt - **/ - @javax.annotation.Nonnull - public String getCreatedAt() { - return createdAt; - } - - - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - - public AutomationRunHistoryPO errorStacks(String errorStacks) { - - this.errorStacks = errorStacks; - return this; - } - - /** - * Get errorStacks - * @return errorStacks - **/ - @javax.annotation.Nullable - public String getErrorStacks() { - return errorStacks; - } - - - public void setErrorStacks(String errorStacks) { - this.errorStacks = errorStacks; - } - - - public AutomationRunHistoryPO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - public AutomationRunHistoryPO status(Integer status) { - - this.status = status; - return this; - } - - /** - * Get status - * minimum: 0 - * @return status - **/ - @javax.annotation.Nonnull - public Integer getStatus() { - return status; - } - - - public void setStatus(Integer status) { - this.status = status; - } - - - public AutomationRunHistoryPO taskId(String taskId) { - - this.taskId = taskId; - return this; - } - - /** - * Get taskId - * @return taskId - **/ - @javax.annotation.Nonnull - public String getTaskId() { - return taskId; - } - - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationRunHistoryPO automationRunHistoryPO = (AutomationRunHistoryPO) o; - return Objects.equals(this.actionIds, automationRunHistoryPO.actionIds) && - Objects.equals(this.actionTypeIds, automationRunHistoryPO.actionTypeIds) && - Objects.equals(this.createdAt, automationRunHistoryPO.createdAt) && - Objects.equals(this.errorStacks, automationRunHistoryPO.errorStacks) && - Objects.equals(this.robotId, automationRunHistoryPO.robotId) && - Objects.equals(this.status, automationRunHistoryPO.status) && - Objects.equals(this.taskId, automationRunHistoryPO.taskId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(actionIds, actionTypeIds, createdAt, errorStacks, robotId, status, taskId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationRunHistoryPO {\n"); - sb.append(" actionIds: ").append(toIndentedString(actionIds)).append("\n"); - sb.append(" actionTypeIds: ").append(toIndentedString(actionTypeIds)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" errorStacks: ").append(toIndentedString(errorStacks)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("actionIds"); - openapiFields.add("actionTypeIds"); - openapiFields.add("createdAt"); - openapiFields.add("errorStacks"); - openapiFields.add("robotId"); - openapiFields.add("status"); - openapiFields.add("taskId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("createdAt"); - openapiRequiredFields.add("robotId"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("taskId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationRunHistoryPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationRunHistoryPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationRunHistoryPO is not found in the empty JSON string", AutomationRunHistoryPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationRunHistoryPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationRunHistoryPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationRunHistoryPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("actionIds") != null && !jsonObj.get("actionIds").isJsonNull()) && !jsonObj.get("actionIds").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `actionIds` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionIds").toString())); - } - if ((jsonObj.get("actionTypeIds") != null && !jsonObj.get("actionTypeIds").isJsonNull()) && !jsonObj.get("actionTypeIds").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `actionTypeIds` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actionTypeIds").toString())); - } - if (!jsonObj.get("createdAt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdAt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdAt").toString())); - } - if ((jsonObj.get("errorStacks") != null && !jsonObj.get("errorStacks").isJsonNull()) && !jsonObj.get("errorStacks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `errorStacks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorStacks").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - if (!jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationRunHistoryPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationRunHistoryPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationRunHistoryPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationRunHistoryPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationRunHistoryPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationRunHistoryPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationRunHistoryPO - * @throws IOException if the JSON string is invalid with respect to AutomationRunHistoryPO - */ - public static AutomationRunHistoryPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationRunHistoryPO.class); - } - - /** - * Convert an instance of AutomationRunHistoryPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationSO.java deleted file mode 100644 index ed4a0ec312..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationSO.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AutomationActionPO; -import com.apitable.databusclient.model.AutomationRobotSO; -import com.apitable.databusclient.model.AutomationTriggerPO; -import com.apitable.databusclient.model.NodeSimplePO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationSO { - public static final String SERIALIZED_NAME_ACTIONS = "actions"; - @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList<>(); - - public static final String SERIALIZED_NAME_RELATED_RESOURCES = "relatedResources"; - @SerializedName(SERIALIZED_NAME_RELATED_RESOURCES) - private List relatedResources; - - public static final String SERIALIZED_NAME_ROBOT = "robot"; - @SerializedName(SERIALIZED_NAME_ROBOT) - private AutomationRobotSO robot; - - public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; - @SerializedName(SERIALIZED_NAME_TRIGGERS) - private List triggers = new ArrayList<>(); - - public AutomationSO() { - } - - public AutomationSO actions(List actions) { - - this.actions = actions; - return this; - } - - public AutomationSO addActionsItem(AutomationActionPO actionsItem) { - if (this.actions == null) { - this.actions = new ArrayList<>(); - } - this.actions.add(actionsItem); - return this; - } - - /** - * Get actions - * @return actions - **/ - @javax.annotation.Nonnull - public List getActions() { - return actions; - } - - - public void setActions(List actions) { - this.actions = actions; - } - - - public AutomationSO relatedResources(List relatedResources) { - - this.relatedResources = relatedResources; - return this; - } - - public AutomationSO addRelatedResourcesItem(NodeSimplePO relatedResourcesItem) { - if (this.relatedResources == null) { - this.relatedResources = new ArrayList<>(); - } - this.relatedResources.add(relatedResourcesItem); - return this; - } - - /** - * Get relatedResources - * @return relatedResources - **/ - @javax.annotation.Nullable - public List getRelatedResources() { - return relatedResources; - } - - - public void setRelatedResources(List relatedResources) { - this.relatedResources = relatedResources; - } - - - public AutomationSO robot(AutomationRobotSO robot) { - - this.robot = robot; - return this; - } - - /** - * Get robot - * @return robot - **/ - @javax.annotation.Nonnull - public AutomationRobotSO getRobot() { - return robot; - } - - - public void setRobot(AutomationRobotSO robot) { - this.robot = robot; - } - - - public AutomationSO triggers(List triggers) { - - this.triggers = triggers; - return this; - } - - public AutomationSO addTriggersItem(AutomationTriggerPO triggersItem) { - if (this.triggers == null) { - this.triggers = new ArrayList<>(); - } - this.triggers.add(triggersItem); - return this; - } - - /** - * Get triggers - * @return triggers - **/ - @javax.annotation.Nonnull - public List getTriggers() { - return triggers; - } - - - public void setTriggers(List triggers) { - this.triggers = triggers; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationSO automationSO = (AutomationSO) o; - return Objects.equals(this.actions, automationSO.actions) && - Objects.equals(this.relatedResources, automationSO.relatedResources) && - Objects.equals(this.robot, automationSO.robot) && - Objects.equals(this.triggers, automationSO.triggers); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(actions, relatedResources, robot, triggers); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationSO {\n"); - sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); - sb.append(" relatedResources: ").append(toIndentedString(relatedResources)).append("\n"); - sb.append(" robot: ").append(toIndentedString(robot)).append("\n"); - sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("actions"); - openapiFields.add("relatedResources"); - openapiFields.add("robot"); - openapiFields.add("triggers"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("actions"); - openapiRequiredFields.add("robot"); - openapiRequiredFields.add("triggers"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationSO is not found in the empty JSON string", AutomationSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - // validate the required field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AutomationActionPO.validateJsonElement(jsonArrayactions.get(i)); - }; - if (jsonObj.get("relatedResources") != null && !jsonObj.get("relatedResources").isJsonNull()) { - JsonArray jsonArrayrelatedResources = jsonObj.getAsJsonArray("relatedResources"); - if (jsonArrayrelatedResources != null) { - // ensure the json data is an array - if (!jsonObj.get("relatedResources").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `relatedResources` to be an array in the JSON string but got `%s`", jsonObj.get("relatedResources").toString())); - } - - // validate the optional field `relatedResources` (array) - for (int i = 0; i < jsonArrayrelatedResources.size(); i++) { - NodeSimplePO.validateJsonElement(jsonArrayrelatedResources.get(i)); - }; - } - } - // validate the required field `robot` - AutomationRobotSO.validateJsonElement(jsonObj.get("robot")); - // ensure the json data is an array - if (!jsonObj.get("triggers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `triggers` to be an array in the JSON string but got `%s`", jsonObj.get("triggers").toString())); - } - - JsonArray jsonArraytriggers = jsonObj.getAsJsonArray("triggers"); - // validate the required field `triggers` (array) - for (int i = 0; i < jsonArraytriggers.size(); i++) { - AutomationTriggerPO.validateJsonElement(jsonArraytriggers.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationSO - * @throws IOException if the JSON string is invalid with respect to AutomationSO - */ - public static AutomationSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationSO.class); - } - - /** - * Convert an instance of AutomationSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerIntroductionPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerIntroductionPO.java deleted file mode 100644 index c028cb3812..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerIntroductionPO.java +++ /dev/null @@ -1,324 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationTriggerIntroductionPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationTriggerIntroductionPO { - public static final String SERIALIZED_NAME_PREV_TRIGGER_ID = "prevTriggerId"; - @SerializedName(SERIALIZED_NAME_PREV_TRIGGER_ID) - private String prevTriggerId; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public static final String SERIALIZED_NAME_TRIGGER_ID = "triggerId"; - @SerializedName(SERIALIZED_NAME_TRIGGER_ID) - private String triggerId; - - public static final String SERIALIZED_NAME_TRIGGER_TYPE_ID = "triggerTypeId"; - @SerializedName(SERIALIZED_NAME_TRIGGER_TYPE_ID) - private String triggerTypeId; - - public AutomationTriggerIntroductionPO() { - } - - public AutomationTriggerIntroductionPO prevTriggerId(String prevTriggerId) { - - this.prevTriggerId = prevTriggerId; - return this; - } - - /** - * Get prevTriggerId - * @return prevTriggerId - **/ - @javax.annotation.Nullable - public String getPrevTriggerId() { - return prevTriggerId; - } - - - public void setPrevTriggerId(String prevTriggerId) { - this.prevTriggerId = prevTriggerId; - } - - - public AutomationTriggerIntroductionPO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - public AutomationTriggerIntroductionPO triggerId(String triggerId) { - - this.triggerId = triggerId; - return this; - } - - /** - * Get triggerId - * @return triggerId - **/ - @javax.annotation.Nonnull - public String getTriggerId() { - return triggerId; - } - - - public void setTriggerId(String triggerId) { - this.triggerId = triggerId; - } - - - public AutomationTriggerIntroductionPO triggerTypeId(String triggerTypeId) { - - this.triggerTypeId = triggerTypeId; - return this; - } - - /** - * Get triggerTypeId - * @return triggerTypeId - **/ - @javax.annotation.Nonnull - public String getTriggerTypeId() { - return triggerTypeId; - } - - - public void setTriggerTypeId(String triggerTypeId) { - this.triggerTypeId = triggerTypeId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationTriggerIntroductionPO automationTriggerIntroductionPO = (AutomationTriggerIntroductionPO) o; - return Objects.equals(this.prevTriggerId, automationTriggerIntroductionPO.prevTriggerId) && - Objects.equals(this.robotId, automationTriggerIntroductionPO.robotId) && - Objects.equals(this.triggerId, automationTriggerIntroductionPO.triggerId) && - Objects.equals(this.triggerTypeId, automationTriggerIntroductionPO.triggerTypeId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(prevTriggerId, robotId, triggerId, triggerTypeId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationTriggerIntroductionPO {\n"); - sb.append(" prevTriggerId: ").append(toIndentedString(prevTriggerId)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append(" triggerId: ").append(toIndentedString(triggerId)).append("\n"); - sb.append(" triggerTypeId: ").append(toIndentedString(triggerTypeId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("prevTriggerId"); - openapiFields.add("robotId"); - openapiFields.add("triggerId"); - openapiFields.add("triggerTypeId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("robotId"); - openapiRequiredFields.add("triggerId"); - openapiRequiredFields.add("triggerTypeId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationTriggerIntroductionPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationTriggerIntroductionPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationTriggerIntroductionPO is not found in the empty JSON string", AutomationTriggerIntroductionPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationTriggerIntroductionPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationTriggerIntroductionPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationTriggerIntroductionPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("prevTriggerId") != null && !jsonObj.get("prevTriggerId").isJsonNull()) && !jsonObj.get("prevTriggerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prevTriggerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prevTriggerId").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - if (!jsonObj.get("triggerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `triggerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("triggerId").toString())); - } - if (!jsonObj.get("triggerTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `triggerTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("triggerTypeId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationTriggerIntroductionPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationTriggerIntroductionPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationTriggerIntroductionPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationTriggerIntroductionPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationTriggerIntroductionPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationTriggerIntroductionPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationTriggerIntroductionPO - * @throws IOException if the JSON string is invalid with respect to AutomationTriggerIntroductionPO - */ - public static AutomationTriggerIntroductionPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationTriggerIntroductionPO.class); - } - - /** - * Convert an instance of AutomationTriggerIntroductionPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerPO.java deleted file mode 100644 index a455e9fbe3..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/AutomationTriggerPO.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * AutomationTriggerPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AutomationTriggerPO { - public static final String SERIALIZED_NAME_INPUT = "input"; - @SerializedName(SERIALIZED_NAME_INPUT) - private String input; - - public static final String SERIALIZED_NAME_PREV_TRIGGER_ID = "prevTriggerId"; - @SerializedName(SERIALIZED_NAME_PREV_TRIGGER_ID) - private String prevTriggerId; - - public static final String SERIALIZED_NAME_RESOURCE_ID = "resourceId"; - @SerializedName(SERIALIZED_NAME_RESOURCE_ID) - private String resourceId; - - public static final String SERIALIZED_NAME_ROBOT_ID = "robotId"; - @SerializedName(SERIALIZED_NAME_ROBOT_ID) - private String robotId; - - public static final String SERIALIZED_NAME_TRIGGER_ID = "triggerId"; - @SerializedName(SERIALIZED_NAME_TRIGGER_ID) - private String triggerId; - - public static final String SERIALIZED_NAME_TRIGGER_TYPE_ID = "triggerTypeId"; - @SerializedName(SERIALIZED_NAME_TRIGGER_TYPE_ID) - private String triggerTypeId; - - public AutomationTriggerPO() { - } - - public AutomationTriggerPO input(String input) { - - this.input = input; - return this; - } - - /** - * Get input - * @return input - **/ - @javax.annotation.Nullable - public String getInput() { - return input; - } - - - public void setInput(String input) { - this.input = input; - } - - - public AutomationTriggerPO prevTriggerId(String prevTriggerId) { - - this.prevTriggerId = prevTriggerId; - return this; - } - - /** - * Get prevTriggerId - * @return prevTriggerId - **/ - @javax.annotation.Nullable - public String getPrevTriggerId() { - return prevTriggerId; - } - - - public void setPrevTriggerId(String prevTriggerId) { - this.prevTriggerId = prevTriggerId; - } - - - public AutomationTriggerPO resourceId(String resourceId) { - - this.resourceId = resourceId; - return this; - } - - /** - * Get resourceId - * @return resourceId - **/ - @javax.annotation.Nullable - public String getResourceId() { - return resourceId; - } - - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - - public AutomationTriggerPO robotId(String robotId) { - - this.robotId = robotId; - return this; - } - - /** - * Get robotId - * @return robotId - **/ - @javax.annotation.Nonnull - public String getRobotId() { - return robotId; - } - - - public void setRobotId(String robotId) { - this.robotId = robotId; - } - - - public AutomationTriggerPO triggerId(String triggerId) { - - this.triggerId = triggerId; - return this; - } - - /** - * Get triggerId - * @return triggerId - **/ - @javax.annotation.Nonnull - public String getTriggerId() { - return triggerId; - } - - - public void setTriggerId(String triggerId) { - this.triggerId = triggerId; - } - - - public AutomationTriggerPO triggerTypeId(String triggerTypeId) { - - this.triggerTypeId = triggerTypeId; - return this; - } - - /** - * Get triggerTypeId - * @return triggerTypeId - **/ - @javax.annotation.Nonnull - public String getTriggerTypeId() { - return triggerTypeId; - } - - - public void setTriggerTypeId(String triggerTypeId) { - this.triggerTypeId = triggerTypeId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AutomationTriggerPO automationTriggerPO = (AutomationTriggerPO) o; - return Objects.equals(this.input, automationTriggerPO.input) && - Objects.equals(this.prevTriggerId, automationTriggerPO.prevTriggerId) && - Objects.equals(this.resourceId, automationTriggerPO.resourceId) && - Objects.equals(this.robotId, automationTriggerPO.robotId) && - Objects.equals(this.triggerId, automationTriggerPO.triggerId) && - Objects.equals(this.triggerTypeId, automationTriggerPO.triggerTypeId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(input, prevTriggerId, resourceId, robotId, triggerId, triggerTypeId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AutomationTriggerPO {\n"); - sb.append(" input: ").append(toIndentedString(input)).append("\n"); - sb.append(" prevTriggerId: ").append(toIndentedString(prevTriggerId)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); - sb.append(" triggerId: ").append(toIndentedString(triggerId)).append("\n"); - sb.append(" triggerTypeId: ").append(toIndentedString(triggerTypeId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("input"); - openapiFields.add("prevTriggerId"); - openapiFields.add("resourceId"); - openapiFields.add("robotId"); - openapiFields.add("triggerId"); - openapiFields.add("triggerTypeId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("robotId"); - openapiRequiredFields.add("triggerId"); - openapiRequiredFields.add("triggerTypeId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AutomationTriggerPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AutomationTriggerPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in AutomationTriggerPO is not found in the empty JSON string", AutomationTriggerPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!AutomationTriggerPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AutomationTriggerPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AutomationTriggerPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) && !jsonObj.get("input").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `input` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input").toString())); - } - if ((jsonObj.get("prevTriggerId") != null && !jsonObj.get("prevTriggerId").isJsonNull()) && !jsonObj.get("prevTriggerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `prevTriggerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prevTriggerId").toString())); - } - if ((jsonObj.get("resourceId") != null && !jsonObj.get("resourceId").isJsonNull()) && !jsonObj.get("resourceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resourceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceId").toString())); - } - if (!jsonObj.get("robotId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `robotId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("robotId").toString())); - } - if (!jsonObj.get("triggerId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `triggerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("triggerId").toString())); - } - if (!jsonObj.get("triggerTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `triggerTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("triggerTypeId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AutomationTriggerPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AutomationTriggerPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AutomationTriggerPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AutomationTriggerPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AutomationTriggerPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of AutomationTriggerPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of AutomationTriggerPO - * @throws IOException if the JSON string is invalid with respect to AutomationTriggerPO - */ - public static AutomationTriggerPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AutomationTriggerPO.class); - } - - /** - * Convert an instance of AutomationTriggerPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/BaseDatasheetPackSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/BaseDatasheetPackSO.java deleted file mode 100644 index b27d6b0e35..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/BaseDatasheetPackSO.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.DatasheetSnapshotSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * BaseDatasheetPackSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class BaseDatasheetPackSO { - public static final String SERIALIZED_NAME_DATASHEET = "datasheet"; - @SerializedName(SERIALIZED_NAME_DATASHEET) - private Object datasheet = null; - - public static final String SERIALIZED_NAME_FIELD_PERMISSION_MAP = "fieldPermissionMap"; - @SerializedName(SERIALIZED_NAME_FIELD_PERMISSION_MAP) - private Object fieldPermissionMap = null; - - public static final String SERIALIZED_NAME_SNAPSHOT = "snapshot"; - @SerializedName(SERIALIZED_NAME_SNAPSHOT) - private DatasheetSnapshotSO snapshot; - - public BaseDatasheetPackSO() { - } - - public BaseDatasheetPackSO datasheet(Object datasheet) { - - this.datasheet = datasheet; - return this; - } - - /** - * Get datasheet - * @return datasheet - **/ - @javax.annotation.Nullable - public Object getDatasheet() { - return datasheet; - } - - - public void setDatasheet(Object datasheet) { - this.datasheet = datasheet; - } - - - public BaseDatasheetPackSO fieldPermissionMap(Object fieldPermissionMap) { - - this.fieldPermissionMap = fieldPermissionMap; - return this; - } - - /** - * Get fieldPermissionMap - * @return fieldPermissionMap - **/ - @javax.annotation.Nullable - public Object getFieldPermissionMap() { - return fieldPermissionMap; - } - - - public void setFieldPermissionMap(Object fieldPermissionMap) { - this.fieldPermissionMap = fieldPermissionMap; - } - - - public BaseDatasheetPackSO snapshot(DatasheetSnapshotSO snapshot) { - - this.snapshot = snapshot; - return this; - } - - /** - * Get snapshot - * @return snapshot - **/ - @javax.annotation.Nonnull - public DatasheetSnapshotSO getSnapshot() { - return snapshot; - } - - - public void setSnapshot(DatasheetSnapshotSO snapshot) { - this.snapshot = snapshot; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BaseDatasheetPackSO baseDatasheetPackSO = (BaseDatasheetPackSO) o; - return Objects.equals(this.datasheet, baseDatasheetPackSO.datasheet) && - Objects.equals(this.fieldPermissionMap, baseDatasheetPackSO.fieldPermissionMap) && - Objects.equals(this.snapshot, baseDatasheetPackSO.snapshot); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(datasheet, fieldPermissionMap, snapshot); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BaseDatasheetPackSO {\n"); - sb.append(" datasheet: ").append(toIndentedString(datasheet)).append("\n"); - sb.append(" fieldPermissionMap: ").append(toIndentedString(fieldPermissionMap)).append("\n"); - sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("datasheet"); - openapiFields.add("fieldPermissionMap"); - openapiFields.add("snapshot"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("datasheet"); - openapiRequiredFields.add("snapshot"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BaseDatasheetPackSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!BaseDatasheetPackSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in BaseDatasheetPackSO is not found in the empty JSON string", BaseDatasheetPackSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!BaseDatasheetPackSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BaseDatasheetPackSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : BaseDatasheetPackSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `snapshot` - DatasheetSnapshotSO.validateJsonElement(jsonObj.get("snapshot")); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!BaseDatasheetPackSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'BaseDatasheetPackSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(BaseDatasheetPackSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, BaseDatasheetPackSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public BaseDatasheetPackSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of BaseDatasheetPackSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of BaseDatasheetPackSO - * @throws IOException if the JSON string is invalid with respect to BaseDatasheetPackSO - */ - public static BaseDatasheetPackSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, BaseDatasheetPackSO.class); - } - - /** - * Convert an instance of BaseDatasheetPackSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ColorOption.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ColorOption.java deleted file mode 100644 index 4a7257265f..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ColorOption.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ColorOption - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ColorOption { - public static final String SERIALIZED_NAME_COLOR = "color"; - @SerializedName(SERIALIZED_NAME_COLOR) - private Integer color; - - public static final String SERIALIZED_NAME_FIELD_ID = "field_id"; - @SerializedName(SERIALIZED_NAME_FIELD_ID) - private String fieldId; - - public ColorOption() { - } - - public ColorOption color(Integer color) { - - this.color = color; - return this; - } - - /** - * Get color - * @return color - **/ - @javax.annotation.Nullable - public Integer getColor() { - return color; - } - - - public void setColor(Integer color) { - this.color = color; - } - - - public ColorOption fieldId(String fieldId) { - - this.fieldId = fieldId; - return this; - } - - /** - * Get fieldId - * @return fieldId - **/ - @javax.annotation.Nullable - public String getFieldId() { - return fieldId; - } - - - public void setFieldId(String fieldId) { - this.fieldId = fieldId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ColorOption colorOption = (ColorOption) o; - return Objects.equals(this.color, colorOption.color) && - Objects.equals(this.fieldId, colorOption.fieldId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(color, fieldId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ColorOption {\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("color"); - openapiFields.add("field_id"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ColorOption - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ColorOption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ColorOption is not found in the empty JSON string", ColorOption.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ColorOption.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ColorOption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("field_id") != null && !jsonObj.get("field_id").isJsonNull()) && !jsonObj.get("field_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `field_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ColorOption.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ColorOption' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ColorOption.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ColorOption value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ColorOption read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ColorOption given an JSON string - * - * @param jsonString JSON string - * @return An instance of ColorOption - * @throws IOException if the JSON string is invalid with respect to ColorOption - */ - public static ColorOption fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ColorOption.class); - } - - /** - * Convert an instance of ColorOption to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/CommentMsg.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/CommentMsg.java deleted file mode 100644 index 4745034448..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/CommentMsg.java +++ /dev/null @@ -1,363 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * CommentMsg - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CommentMsg { - public static final String SERIALIZED_NAME_COMMENT_TYPE = "commentType"; - @SerializedName(SERIALIZED_NAME_COMMENT_TYPE) - private String commentType; - - public static final String SERIALIZED_NAME_CONTENT = "content"; - @SerializedName(SERIALIZED_NAME_CONTENT) - private String content; - - public static final String SERIALIZED_NAME_EMOJIS = "emojis"; - @SerializedName(SERIALIZED_NAME_EMOJIS) - private Map> emojis; - - public static final String SERIALIZED_NAME_HTML = "html"; - @SerializedName(SERIALIZED_NAME_HTML) - private String html; - - public static final String SERIALIZED_NAME_REPLY = "reply"; - @SerializedName(SERIALIZED_NAME_REPLY) - private String reply; - - public CommentMsg() { - } - - public CommentMsg commentType(String commentType) { - - this.commentType = commentType; - return this; - } - - /** - * Get commentType - * @return commentType - **/ - @javax.annotation.Nonnull - public String getCommentType() { - return commentType; - } - - - public void setCommentType(String commentType) { - this.commentType = commentType; - } - - - public CommentMsg content(String content) { - - this.content = content; - return this; - } - - /** - * Get content - * @return content - **/ - @javax.annotation.Nonnull - public String getContent() { - return content; - } - - - public void setContent(String content) { - this.content = content; - } - - - public CommentMsg emojis(Map> emojis) { - - this.emojis = emojis; - return this; - } - - public CommentMsg putEmojisItem(String key, List emojisItem) { - if (this.emojis == null) { - this.emojis = new HashMap<>(); - } - this.emojis.put(key, emojisItem); - return this; - } - - /** - * Get emojis - * @return emojis - **/ - @javax.annotation.Nullable - public Map> getEmojis() { - return emojis; - } - - - public void setEmojis(Map> emojis) { - this.emojis = emojis; - } - - - public CommentMsg html(String html) { - - this.html = html; - return this; - } - - /** - * Get html - * @return html - **/ - @javax.annotation.Nonnull - public String getHtml() { - return html; - } - - - public void setHtml(String html) { - this.html = html; - } - - - public CommentMsg reply(String reply) { - - this.reply = reply; - return this; - } - - /** - * Get reply - * @return reply - **/ - @javax.annotation.Nullable - public String getReply() { - return reply; - } - - - public void setReply(String reply) { - this.reply = reply; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CommentMsg commentMsg = (CommentMsg) o; - return Objects.equals(this.commentType, commentMsg.commentType) && - Objects.equals(this.content, commentMsg.content) && - Objects.equals(this.emojis, commentMsg.emojis) && - Objects.equals(this.html, commentMsg.html) && - Objects.equals(this.reply, commentMsg.reply); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(commentType, content, emojis, html, reply); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CommentMsg {\n"); - sb.append(" commentType: ").append(toIndentedString(commentType)).append("\n"); - sb.append(" content: ").append(toIndentedString(content)).append("\n"); - sb.append(" emojis: ").append(toIndentedString(emojis)).append("\n"); - sb.append(" html: ").append(toIndentedString(html)).append("\n"); - sb.append(" reply: ").append(toIndentedString(reply)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("commentType"); - openapiFields.add("content"); - openapiFields.add("emojis"); - openapiFields.add("html"); - openapiFields.add("reply"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("commentType"); - openapiRequiredFields.add("content"); - openapiRequiredFields.add("html"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CommentMsg - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!CommentMsg.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CommentMsg is not found in the empty JSON string", CommentMsg.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!CommentMsg.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CommentMsg` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CommentMsg.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("commentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `commentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commentType").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if (!jsonObj.get("html").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `html` to be a primitive type in the JSON string but got `%s`", jsonObj.get("html").toString())); - } - if ((jsonObj.get("reply") != null && !jsonObj.get("reply").isJsonNull()) && !jsonObj.get("reply").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reply` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reply").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CommentMsg.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CommentMsg' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CommentMsg.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, CommentMsg value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public CommentMsg read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of CommentMsg given an JSON string - * - * @param jsonString JSON string - * @return An instance of CommentMsg - * @throws IOException if the JSON string is invalid with respect to CommentMsg - */ - public static CommentMsg fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CommentMsg.class); - } - - /** - * Convert an instance of CommentMsg to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/Comments.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/Comments.java deleted file mode 100644 index ab6ace5eaa..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/Comments.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.CommentMsg; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * Comments - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class Comments { - public static final String SERIALIZED_NAME_COMMENT_ID = "commentId"; - @SerializedName(SERIALIZED_NAME_COMMENT_ID) - private String commentId; - - public static final String SERIALIZED_NAME_COMMENT_MSG = "commentMsg"; - @SerializedName(SERIALIZED_NAME_COMMENT_MSG) - private CommentMsg commentMsg; - - public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private Long createdAt; - - public static final String SERIALIZED_NAME_REVISION = "revision"; - @SerializedName(SERIALIZED_NAME_REVISION) - private Integer revision; - - public static final String SERIALIZED_NAME_UNIT_ID = "unitId"; - @SerializedName(SERIALIZED_NAME_UNIT_ID) - private String unitId; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private Long updatedAt; - - public Comments() { - } - - public Comments commentId(String commentId) { - - this.commentId = commentId; - return this; - } - - /** - * Get commentId - * @return commentId - **/ - @javax.annotation.Nonnull - public String getCommentId() { - return commentId; - } - - - public void setCommentId(String commentId) { - this.commentId = commentId; - } - - - public Comments commentMsg(CommentMsg commentMsg) { - - this.commentMsg = commentMsg; - return this; - } - - /** - * Get commentMsg - * @return commentMsg - **/ - @javax.annotation.Nonnull - public CommentMsg getCommentMsg() { - return commentMsg; - } - - - public void setCommentMsg(CommentMsg commentMsg) { - this.commentMsg = commentMsg; - } - - - public Comments createdAt(Long createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * minimum: 0 - * @return createdAt - **/ - @javax.annotation.Nonnull - public Long getCreatedAt() { - return createdAt; - } - - - public void setCreatedAt(Long createdAt) { - this.createdAt = createdAt; - } - - - public Comments revision(Integer revision) { - - this.revision = revision; - return this; - } - - /** - * Get revision - * minimum: 0 - * @return revision - **/ - @javax.annotation.Nonnull - public Integer getRevision() { - return revision; - } - - - public void setRevision(Integer revision) { - this.revision = revision; - } - - - public Comments unitId(String unitId) { - - this.unitId = unitId; - return this; - } - - /** - * Get unitId - * @return unitId - **/ - @javax.annotation.Nonnull - public String getUnitId() { - return unitId; - } - - - public void setUnitId(String unitId) { - this.unitId = unitId; - } - - - public Comments updatedAt(Long updatedAt) { - - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * minimum: 0 - * @return updatedAt - **/ - @javax.annotation.Nullable - public Long getUpdatedAt() { - return updatedAt; - } - - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Comments comments = (Comments) o; - return Objects.equals(this.commentId, comments.commentId) && - Objects.equals(this.commentMsg, comments.commentMsg) && - Objects.equals(this.createdAt, comments.createdAt) && - Objects.equals(this.revision, comments.revision) && - Objects.equals(this.unitId, comments.unitId) && - Objects.equals(this.updatedAt, comments.updatedAt); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(commentId, commentMsg, createdAt, revision, unitId, updatedAt); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Comments {\n"); - sb.append(" commentId: ").append(toIndentedString(commentId)).append("\n"); - sb.append(" commentMsg: ").append(toIndentedString(commentMsg)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); - sb.append(" unitId: ").append(toIndentedString(unitId)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("commentId"); - openapiFields.add("commentMsg"); - openapiFields.add("createdAt"); - openapiFields.add("revision"); - openapiFields.add("unitId"); - openapiFields.add("updatedAt"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("commentId"); - openapiRequiredFields.add("commentMsg"); - openapiRequiredFields.add("createdAt"); - openapiRequiredFields.add("revision"); - openapiRequiredFields.add("unitId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Comments - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Comments.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Comments is not found in the empty JSON string", Comments.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!Comments.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Comments` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : Comments.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("commentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `commentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commentId").toString())); - } - // validate the required field `commentMsg` - CommentMsg.validateJsonElement(jsonObj.get("commentMsg")); - if (!jsonObj.get("unitId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `unitId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!Comments.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Comments' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Comments.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Comments value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Comments read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of Comments given an JSON string - * - * @param jsonString JSON string - * @return An instance of Comments - * @throws IOException if the JSON string is invalid with respect to Comments - */ - public static Comments fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Comments.class); - } - - /** - * Convert an instance of Comments to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetMetaSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetMetaSO.java deleted file mode 100644 index baa3dc9e29..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetMetaSO.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.FieldSO; -import com.apitable.databusclient.model.ViewSO; -import com.apitable.databusclient.model.WidgetPanelSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * DatasheetMetaSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DatasheetMetaSO { - public static final String SERIALIZED_NAME_ARCHIVED_RECORD_IDS = "archivedRecordIds"; - @SerializedName(SERIALIZED_NAME_ARCHIVED_RECORD_IDS) - private List archivedRecordIds; - - public static final String SERIALIZED_NAME_FIELD_MAP = "fieldMap"; - @SerializedName(SERIALIZED_NAME_FIELD_MAP) - private Map fieldMap = new HashMap<>(); - - public static final String SERIALIZED_NAME_VIEWS = "views"; - @SerializedName(SERIALIZED_NAME_VIEWS) - private List views = new ArrayList<>(); - - public static final String SERIALIZED_NAME_WIDGET_PANELS = "widgetPanels"; - @SerializedName(SERIALIZED_NAME_WIDGET_PANELS) - private List widgetPanels; - - public DatasheetMetaSO() { - } - - public DatasheetMetaSO archivedRecordIds(List archivedRecordIds) { - - this.archivedRecordIds = archivedRecordIds; - return this; - } - - public DatasheetMetaSO addArchivedRecordIdsItem(String archivedRecordIdsItem) { - if (this.archivedRecordIds == null) { - this.archivedRecordIds = new ArrayList<>(); - } - this.archivedRecordIds.add(archivedRecordIdsItem); - return this; - } - - /** - * Get archivedRecordIds - * @return archivedRecordIds - **/ - @javax.annotation.Nullable - public List getArchivedRecordIds() { - return archivedRecordIds; - } - - - public void setArchivedRecordIds(List archivedRecordIds) { - this.archivedRecordIds = archivedRecordIds; - } - - - public DatasheetMetaSO fieldMap(Map fieldMap) { - - this.fieldMap = fieldMap; - return this; - } - - public DatasheetMetaSO putFieldMapItem(String key, FieldSO fieldMapItem) { - if (this.fieldMap == null) { - this.fieldMap = new HashMap<>(); - } - this.fieldMap.put(key, fieldMapItem); - return this; - } - - /** - * Get fieldMap - * @return fieldMap - **/ - @javax.annotation.Nonnull - public Map getFieldMap() { - return fieldMap; - } - - - public void setFieldMap(Map fieldMap) { - this.fieldMap = fieldMap; - } - - - public DatasheetMetaSO views(List views) { - - this.views = views; - return this; - } - - public DatasheetMetaSO addViewsItem(ViewSO viewsItem) { - if (this.views == null) { - this.views = new ArrayList<>(); - } - this.views.add(viewsItem); - return this; - } - - /** - * Get views - * @return views - **/ - @javax.annotation.Nonnull - public List getViews() { - return views; - } - - - public void setViews(List views) { - this.views = views; - } - - - public DatasheetMetaSO widgetPanels(List widgetPanels) { - - this.widgetPanels = widgetPanels; - return this; - } - - public DatasheetMetaSO addWidgetPanelsItem(WidgetPanelSO widgetPanelsItem) { - if (this.widgetPanels == null) { - this.widgetPanels = new ArrayList<>(); - } - this.widgetPanels.add(widgetPanelsItem); - return this; - } - - /** - * Get widgetPanels - * @return widgetPanels - **/ - @javax.annotation.Nullable - public List getWidgetPanels() { - return widgetPanels; - } - - - public void setWidgetPanels(List widgetPanels) { - this.widgetPanels = widgetPanels; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DatasheetMetaSO datasheetMetaSO = (DatasheetMetaSO) o; - return Objects.equals(this.archivedRecordIds, datasheetMetaSO.archivedRecordIds) && - Objects.equals(this.fieldMap, datasheetMetaSO.fieldMap) && - Objects.equals(this.views, datasheetMetaSO.views) && - Objects.equals(this.widgetPanels, datasheetMetaSO.widgetPanels); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(archivedRecordIds, fieldMap, views, widgetPanels); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DatasheetMetaSO {\n"); - sb.append(" archivedRecordIds: ").append(toIndentedString(archivedRecordIds)).append("\n"); - sb.append(" fieldMap: ").append(toIndentedString(fieldMap)).append("\n"); - sb.append(" views: ").append(toIndentedString(views)).append("\n"); - sb.append(" widgetPanels: ").append(toIndentedString(widgetPanels)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("archivedRecordIds"); - openapiFields.add("fieldMap"); - openapiFields.add("views"); - openapiFields.add("widgetPanels"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fieldMap"); - openapiRequiredFields.add("views"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DatasheetMetaSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DatasheetMetaSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DatasheetMetaSO is not found in the empty JSON string", DatasheetMetaSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!DatasheetMetaSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DatasheetMetaSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DatasheetMetaSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("archivedRecordIds") != null && !jsonObj.get("archivedRecordIds").isJsonNull() && !jsonObj.get("archivedRecordIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `archivedRecordIds` to be an array in the JSON string but got `%s`", jsonObj.get("archivedRecordIds").toString())); - } - // ensure the json data is an array - if (!jsonObj.get("views").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `views` to be an array in the JSON string but got `%s`", jsonObj.get("views").toString())); - } - - JsonArray jsonArrayviews = jsonObj.getAsJsonArray("views"); - // validate the required field `views` (array) - for (int i = 0; i < jsonArrayviews.size(); i++) { - ViewSO.validateJsonElement(jsonArrayviews.get(i)); - }; - if (jsonObj.get("widgetPanels") != null && !jsonObj.get("widgetPanels").isJsonNull()) { - JsonArray jsonArraywidgetPanels = jsonObj.getAsJsonArray("widgetPanels"); - if (jsonArraywidgetPanels != null) { - // ensure the json data is an array - if (!jsonObj.get("widgetPanels").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `widgetPanels` to be an array in the JSON string but got `%s`", jsonObj.get("widgetPanels").toString())); - } - - // validate the optional field `widgetPanels` (array) - for (int i = 0; i < jsonArraywidgetPanels.size(); i++) { - WidgetPanelSO.validateJsonElement(jsonArraywidgetPanels.get(i)); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DatasheetMetaSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DatasheetMetaSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DatasheetMetaSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DatasheetMetaSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DatasheetMetaSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DatasheetMetaSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of DatasheetMetaSO - * @throws IOException if the JSON string is invalid with respect to DatasheetMetaSO - */ - public static DatasheetMetaSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DatasheetMetaSO.class); - } - - /** - * Convert an instance of DatasheetMetaSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetPackSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetPackSO.java deleted file mode 100644 index 10bf8e6da6..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetPackSO.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.BaseDatasheetPackSO; -import com.apitable.databusclient.model.DatasheetSnapshotSO; -import com.apitable.databusclient.model.NodeSO; -import com.apitable.databusclient.model.UnitSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * DatasheetPackSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DatasheetPackSO { - public static final String SERIALIZED_NAME_DATASHEET = "datasheet"; - @SerializedName(SERIALIZED_NAME_DATASHEET) - private NodeSO datasheet; - - public static final String SERIALIZED_NAME_FIELD_PERMISSION_MAP = "fieldPermissionMap"; - @SerializedName(SERIALIZED_NAME_FIELD_PERMISSION_MAP) - private Object fieldPermissionMap = null; - - public static final String SERIALIZED_NAME_FOREIGN_DATASHEET_MAP = "foreignDatasheetMap"; - @SerializedName(SERIALIZED_NAME_FOREIGN_DATASHEET_MAP) - private Map foreignDatasheetMap; - - public static final String SERIALIZED_NAME_SNAPSHOT = "snapshot"; - @SerializedName(SERIALIZED_NAME_SNAPSHOT) - private DatasheetSnapshotSO snapshot; - - public static final String SERIALIZED_NAME_UNITS = "units"; - @SerializedName(SERIALIZED_NAME_UNITS) - private List units; - - public DatasheetPackSO() { - } - - public DatasheetPackSO datasheet(NodeSO datasheet) { - - this.datasheet = datasheet; - return this; - } - - /** - * Get datasheet - * @return datasheet - **/ - @javax.annotation.Nonnull - public NodeSO getDatasheet() { - return datasheet; - } - - - public void setDatasheet(NodeSO datasheet) { - this.datasheet = datasheet; - } - - - public DatasheetPackSO fieldPermissionMap(Object fieldPermissionMap) { - - this.fieldPermissionMap = fieldPermissionMap; - return this; - } - - /** - * Get fieldPermissionMap - * @return fieldPermissionMap - **/ - @javax.annotation.Nullable - public Object getFieldPermissionMap() { - return fieldPermissionMap; - } - - - public void setFieldPermissionMap(Object fieldPermissionMap) { - this.fieldPermissionMap = fieldPermissionMap; - } - - - public DatasheetPackSO foreignDatasheetMap(Map foreignDatasheetMap) { - - this.foreignDatasheetMap = foreignDatasheetMap; - return this; - } - - public DatasheetPackSO putForeignDatasheetMapItem(String key, BaseDatasheetPackSO foreignDatasheetMapItem) { - if (this.foreignDatasheetMap == null) { - this.foreignDatasheetMap = new HashMap<>(); - } - this.foreignDatasheetMap.put(key, foreignDatasheetMapItem); - return this; - } - - /** - * Get foreignDatasheetMap - * @return foreignDatasheetMap - **/ - @javax.annotation.Nullable - public Map getForeignDatasheetMap() { - return foreignDatasheetMap; - } - - - public void setForeignDatasheetMap(Map foreignDatasheetMap) { - this.foreignDatasheetMap = foreignDatasheetMap; - } - - - public DatasheetPackSO snapshot(DatasheetSnapshotSO snapshot) { - - this.snapshot = snapshot; - return this; - } - - /** - * Get snapshot - * @return snapshot - **/ - @javax.annotation.Nonnull - public DatasheetSnapshotSO getSnapshot() { - return snapshot; - } - - - public void setSnapshot(DatasheetSnapshotSO snapshot) { - this.snapshot = snapshot; - } - - - public DatasheetPackSO units(List units) { - - this.units = units; - return this; - } - - public DatasheetPackSO addUnitsItem(UnitSO unitsItem) { - if (this.units == null) { - this.units = new ArrayList<>(); - } - this.units.add(unitsItem); - return this; - } - - /** - * Get units - * @return units - **/ - @javax.annotation.Nullable - public List getUnits() { - return units; - } - - - public void setUnits(List units) { - this.units = units; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DatasheetPackSO datasheetPackSO = (DatasheetPackSO) o; - return Objects.equals(this.datasheet, datasheetPackSO.datasheet) && - Objects.equals(this.fieldPermissionMap, datasheetPackSO.fieldPermissionMap) && - Objects.equals(this.foreignDatasheetMap, datasheetPackSO.foreignDatasheetMap) && - Objects.equals(this.snapshot, datasheetPackSO.snapshot) && - Objects.equals(this.units, datasheetPackSO.units); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(datasheet, fieldPermissionMap, foreignDatasheetMap, snapshot, units); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DatasheetPackSO {\n"); - sb.append(" datasheet: ").append(toIndentedString(datasheet)).append("\n"); - sb.append(" fieldPermissionMap: ").append(toIndentedString(fieldPermissionMap)).append("\n"); - sb.append(" foreignDatasheetMap: ").append(toIndentedString(foreignDatasheetMap)).append("\n"); - sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n"); - sb.append(" units: ").append(toIndentedString(units)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("datasheet"); - openapiFields.add("fieldPermissionMap"); - openapiFields.add("foreignDatasheetMap"); - openapiFields.add("snapshot"); - openapiFields.add("units"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("datasheet"); - openapiRequiredFields.add("snapshot"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DatasheetPackSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DatasheetPackSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DatasheetPackSO is not found in the empty JSON string", DatasheetPackSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!DatasheetPackSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DatasheetPackSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DatasheetPackSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `datasheet` - NodeSO.validateJsonElement(jsonObj.get("datasheet")); - // validate the required field `snapshot` - DatasheetSnapshotSO.validateJsonElement(jsonObj.get("snapshot")); - if (jsonObj.get("units") != null && !jsonObj.get("units").isJsonNull()) { - JsonArray jsonArrayunits = jsonObj.getAsJsonArray("units"); - if (jsonArrayunits != null) { - // ensure the json data is an array - if (!jsonObj.get("units").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `units` to be an array in the JSON string but got `%s`", jsonObj.get("units").toString())); - } - - // validate the optional field `units` (array) - for (int i = 0; i < jsonArrayunits.size(); i++) { - UnitSO.validateJsonElement(jsonArrayunits.get(i)); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DatasheetPackSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DatasheetPackSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DatasheetPackSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DatasheetPackSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DatasheetPackSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DatasheetPackSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of DatasheetPackSO - * @throws IOException if the JSON string is invalid with respect to DatasheetPackSO - */ - public static DatasheetPackSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DatasheetPackSO.class); - } - - /** - * Convert an instance of DatasheetPackSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetSnapshotSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetSnapshotSO.java deleted file mode 100644 index 5aaccee8e4..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/DatasheetSnapshotSO.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.DatasheetMetaSO; -import com.apitable.databusclient.model.RecordSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * DatasheetSnapshotSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DatasheetSnapshotSO { - public static final String SERIALIZED_NAME_DATASHEET_ID = "datasheetId"; - @SerializedName(SERIALIZED_NAME_DATASHEET_ID) - private String datasheetId; - - public static final String SERIALIZED_NAME_META = "meta"; - @SerializedName(SERIALIZED_NAME_META) - private DatasheetMetaSO meta; - - public static final String SERIALIZED_NAME_RECORD_MAP = "recordMap"; - @SerializedName(SERIALIZED_NAME_RECORD_MAP) - private Map recordMap = new HashMap<>(); - - public DatasheetSnapshotSO() { - } - - public DatasheetSnapshotSO datasheetId(String datasheetId) { - - this.datasheetId = datasheetId; - return this; - } - - /** - * Get datasheetId - * @return datasheetId - **/ - @javax.annotation.Nonnull - public String getDatasheetId() { - return datasheetId; - } - - - public void setDatasheetId(String datasheetId) { - this.datasheetId = datasheetId; - } - - - public DatasheetSnapshotSO meta(DatasheetMetaSO meta) { - - this.meta = meta; - return this; - } - - /** - * Get meta - * @return meta - **/ - @javax.annotation.Nonnull - public DatasheetMetaSO getMeta() { - return meta; - } - - - public void setMeta(DatasheetMetaSO meta) { - this.meta = meta; - } - - - public DatasheetSnapshotSO recordMap(Map recordMap) { - - this.recordMap = recordMap; - return this; - } - - public DatasheetSnapshotSO putRecordMapItem(String key, RecordSO recordMapItem) { - if (this.recordMap == null) { - this.recordMap = new HashMap<>(); - } - this.recordMap.put(key, recordMapItem); - return this; - } - - /** - * Get recordMap - * @return recordMap - **/ - @javax.annotation.Nonnull - public Map getRecordMap() { - return recordMap; - } - - - public void setRecordMap(Map recordMap) { - this.recordMap = recordMap; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DatasheetSnapshotSO datasheetSnapshotSO = (DatasheetSnapshotSO) o; - return Objects.equals(this.datasheetId, datasheetSnapshotSO.datasheetId) && - Objects.equals(this.meta, datasheetSnapshotSO.meta) && - Objects.equals(this.recordMap, datasheetSnapshotSO.recordMap); - } - - @Override - public int hashCode() { - return Objects.hash(datasheetId, meta, recordMap); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DatasheetSnapshotSO {\n"); - sb.append(" datasheetId: ").append(toIndentedString(datasheetId)).append("\n"); - sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); - sb.append(" recordMap: ").append(toIndentedString(recordMap)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("datasheetId"); - openapiFields.add("meta"); - openapiFields.add("recordMap"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("datasheetId"); - openapiRequiredFields.add("meta"); - openapiRequiredFields.add("recordMap"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DatasheetSnapshotSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DatasheetSnapshotSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DatasheetSnapshotSO is not found in the empty JSON string", DatasheetSnapshotSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!DatasheetSnapshotSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DatasheetSnapshotSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DatasheetSnapshotSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("datasheetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `datasheetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datasheetId").toString())); - } - // validate the required field `meta` - DatasheetMetaSO.validateJsonElement(jsonObj.get("meta")); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DatasheetSnapshotSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DatasheetSnapshotSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DatasheetSnapshotSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DatasheetSnapshotSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DatasheetSnapshotSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DatasheetSnapshotSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of DatasheetSnapshotSO - * @throws IOException if the JSON string is invalid with respect to DatasheetSnapshotSO - */ - public static DatasheetSnapshotSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DatasheetSnapshotSO.class); - } - - /** - * Convert an instance of DatasheetSnapshotSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentOperationRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentOperationRO.java deleted file mode 100644 index 5c6f725635..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentOperationRO.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.File; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * DocumentOperationRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DocumentOperationRO { - public static final String SERIALIZED_NAME_CREATED_BY = "created_by"; - @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; - - public static final String SERIALIZED_NAME_SPACE_ID = "space_id"; - @SerializedName(SERIALIZED_NAME_SPACE_ID) - private String spaceId; - - public static final String SERIALIZED_NAME_UPDATE_DATA = "update_data"; - @SerializedName(SERIALIZED_NAME_UPDATE_DATA) - private File updateData; - - public DocumentOperationRO() { - } - - public DocumentOperationRO createdBy(Long createdBy) { - - this.createdBy = createdBy; - return this; - } - - /** - * Get createdBy - * minimum: 0 - * @return createdBy - **/ - @javax.annotation.Nullable - public Long getCreatedBy() { - return createdBy; - } - - - public void setCreatedBy(Long createdBy) { - this.createdBy = createdBy; - } - - - public DocumentOperationRO spaceId(String spaceId) { - - this.spaceId = spaceId; - return this; - } - - /** - * Get spaceId - * @return spaceId - **/ - @javax.annotation.Nonnull - public String getSpaceId() { - return spaceId; - } - - - public void setSpaceId(String spaceId) { - this.spaceId = spaceId; - } - - - public DocumentOperationRO updateData(File updateData) { - - this.updateData = updateData; - return this; - } - - /** - * Get updateData - * @return updateData - **/ - @javax.annotation.Nonnull - public File getUpdateData() { - return updateData; - } - - - public void setUpdateData(File updateData) { - this.updateData = updateData; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DocumentOperationRO documentOperationRO = (DocumentOperationRO) o; - return Objects.equals(this.createdBy, documentOperationRO.createdBy) && - Objects.equals(this.spaceId, documentOperationRO.spaceId) && - Objects.equals(this.updateData, documentOperationRO.updateData); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(createdBy, spaceId, updateData); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DocumentOperationRO {\n"); - sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); - sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); - sb.append(" updateData: ").append(toIndentedString(updateData)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("created_by"); - openapiFields.add("space_id"); - openapiFields.add("update_data"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("space_id"); - openapiRequiredFields.add("update_data"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DocumentOperationRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentOperationRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DocumentOperationRO is not found in the empty JSON string", DocumentOperationRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!DocumentOperationRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DocumentOperationRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentOperationRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("space_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `space_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("space_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentOperationRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentOperationRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentOperationRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentOperationRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentOperationRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DocumentOperationRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of DocumentOperationRO - * @throws IOException if the JSON string is invalid with respect to DocumentOperationRO - */ - public static DocumentOperationRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DocumentOperationRO.class); - } - - /** - * Convert an instance of DocumentOperationRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentRO.java deleted file mode 100644 index 76052e79e0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/DocumentRO.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.File; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * DocumentRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class DocumentRO { - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private File data; - - public static final String SERIALIZED_NAME_DOCUMENT_TYPE = "document_type"; - @SerializedName(SERIALIZED_NAME_DOCUMENT_TYPE) - private Integer documentType; - - public static final String SERIALIZED_NAME_PROPS = "props"; - @SerializedName(SERIALIZED_NAME_PROPS) - private String props; - - public static final String SERIALIZED_NAME_RESOURCE_ID = "resource_id"; - @SerializedName(SERIALIZED_NAME_RESOURCE_ID) - private String resourceId; - - public static final String SERIALIZED_NAME_SPACE_ID = "space_id"; - @SerializedName(SERIALIZED_NAME_SPACE_ID) - private String spaceId; - - public static final String SERIALIZED_NAME_TITLE = "title"; - @SerializedName(SERIALIZED_NAME_TITLE) - private String title; - - public static final String SERIALIZED_NAME_UPDATED_BY = "updated_by"; - @SerializedName(SERIALIZED_NAME_UPDATED_BY) - private Long updatedBy; - - public DocumentRO() { - } - - public DocumentRO data(File data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nonnull - public File getData() { - return data; - } - - - public void setData(File data) { - this.data = data; - } - - - public DocumentRO documentType(Integer documentType) { - - this.documentType = documentType; - return this; - } - - /** - * Get documentType - * minimum: 0 - * @return documentType - **/ - @javax.annotation.Nonnull - public Integer getDocumentType() { - return documentType; - } - - - public void setDocumentType(Integer documentType) { - this.documentType = documentType; - } - - - public DocumentRO props(String props) { - - this.props = props; - return this; - } - - /** - * Get props - * @return props - **/ - @javax.annotation.Nullable - public String getProps() { - return props; - } - - - public void setProps(String props) { - this.props = props; - } - - - public DocumentRO resourceId(String resourceId) { - - this.resourceId = resourceId; - return this; - } - - /** - * Get resourceId - * @return resourceId - **/ - @javax.annotation.Nonnull - public String getResourceId() { - return resourceId; - } - - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - - public DocumentRO spaceId(String spaceId) { - - this.spaceId = spaceId; - return this; - } - - /** - * Get spaceId - * @return spaceId - **/ - @javax.annotation.Nonnull - public String getSpaceId() { - return spaceId; - } - - - public void setSpaceId(String spaceId) { - this.spaceId = spaceId; - } - - - public DocumentRO title(String title) { - - this.title = title; - return this; - } - - /** - * Get title - * @return title - **/ - @javax.annotation.Nullable - public String getTitle() { - return title; - } - - - public void setTitle(String title) { - this.title = title; - } - - - public DocumentRO updatedBy(Long updatedBy) { - - this.updatedBy = updatedBy; - return this; - } - - /** - * Get updatedBy - * minimum: 0 - * @return updatedBy - **/ - @javax.annotation.Nullable - public Long getUpdatedBy() { - return updatedBy; - } - - - public void setUpdatedBy(Long updatedBy) { - this.updatedBy = updatedBy; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DocumentRO documentRO = (DocumentRO) o; - return Objects.equals(this.data, documentRO.data) && - Objects.equals(this.documentType, documentRO.documentType) && - Objects.equals(this.props, documentRO.props) && - Objects.equals(this.resourceId, documentRO.resourceId) && - Objects.equals(this.spaceId, documentRO.spaceId) && - Objects.equals(this.title, documentRO.title) && - Objects.equals(this.updatedBy, documentRO.updatedBy); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(data, documentType, props, resourceId, spaceId, title, updatedBy); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DocumentRO {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" documentType: ").append(toIndentedString(documentType)).append("\n"); - sb.append(" props: ").append(toIndentedString(props)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); - sb.append(" title: ").append(toIndentedString(title)).append("\n"); - sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("data"); - openapiFields.add("document_type"); - openapiFields.add("props"); - openapiFields.add("resource_id"); - openapiFields.add("space_id"); - openapiFields.add("title"); - openapiFields.add("updated_by"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("document_type"); - openapiRequiredFields.add("resource_id"); - openapiRequiredFields.add("space_id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DocumentRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in DocumentRO is not found in the empty JSON string", DocumentRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!DocumentRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DocumentRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("props") != null && !jsonObj.get("props").isJsonNull()) && !jsonObj.get("props").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `props` to be a primitive type in the JSON string but got `%s`", jsonObj.get("props").toString())); - } - if (!jsonObj.get("resource_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resource_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_id").toString())); - } - if (!jsonObj.get("space_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `space_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("space_id").toString())); - } - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of DocumentRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of DocumentRO - * @throws IOException if the JSON string is invalid with respect to DocumentRO - */ - public static DocumentRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DocumentRO.class); - } - - /** - * Convert an instance of DocumentRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldExtraMapValue.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldExtraMapValue.java deleted file mode 100644 index 98d96ee1a6..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldExtraMapValue.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.RecordAlarm; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * FieldExtraMapValue - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FieldExtraMapValue { - public static final String SERIALIZED_NAME_ALARM = "alarm"; - @SerializedName(SERIALIZED_NAME_ALARM) - private RecordAlarm alarm; - - public FieldExtraMapValue() { - } - - public FieldExtraMapValue alarm(RecordAlarm alarm) { - - this.alarm = alarm; - return this; - } - - /** - * Get alarm - * @return alarm - **/ - @javax.annotation.Nullable - public RecordAlarm getAlarm() { - return alarm; - } - - - public void setAlarm(RecordAlarm alarm) { - this.alarm = alarm; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FieldExtraMapValue fieldExtraMapValue = (FieldExtraMapValue) o; - return Objects.equals(this.alarm, fieldExtraMapValue.alarm); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(alarm); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FieldExtraMapValue {\n"); - sb.append(" alarm: ").append(toIndentedString(alarm)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("alarm"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldExtraMapValue - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FieldExtraMapValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FieldExtraMapValue is not found in the empty JSON string", FieldExtraMapValue.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!FieldExtraMapValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FieldExtraMapValue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `alarm` - if (jsonObj.get("alarm") != null && !jsonObj.get("alarm").isJsonNull()) { - RecordAlarm.validateJsonElement(jsonObj.get("alarm")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FieldExtraMapValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FieldExtraMapValue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FieldExtraMapValue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FieldExtraMapValue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FieldExtraMapValue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FieldExtraMapValue given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldExtraMapValue - * @throws IOException if the JSON string is invalid with respect to FieldExtraMapValue - */ - public static FieldExtraMapValue fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FieldExtraMapValue.class); - } - - /** - * Convert an instance of FieldExtraMapValue to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldSO.java deleted file mode 100644 index 2c7a92a14d..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldSO.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.FieldKindSO; -import com.apitable.databusclient.model.FieldPropertySO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * FieldSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FieldSO { - public static final String SERIALIZED_NAME_DESC = "desc"; - @SerializedName(SERIALIZED_NAME_DESC) - private String desc; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PROPERTY = "property"; - @SerializedName(SERIALIZED_NAME_PROPERTY) - private FieldPropertySO property; - - public static final String SERIALIZED_NAME_REQUIRED = "required"; - @SerializedName(SERIALIZED_NAME_REQUIRED) - private Boolean required; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private FieldKindSO type; - - public FieldSO() { - } - - public FieldSO desc(String desc) { - - this.desc = desc; - return this; - } - - /** - * Get desc - * @return desc - **/ - @javax.annotation.Nullable - public String getDesc() { - return desc; - } - - - public void setDesc(String desc) { - this.desc = desc; - } - - - public FieldSO id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public FieldSO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public FieldSO property(FieldPropertySO property) { - - this.property = property; - return this; - } - - /** - * Get property - * @return property - **/ - @javax.annotation.Nullable - public FieldPropertySO getProperty() { - return property; - } - - - public void setProperty(FieldPropertySO property) { - this.property = property; - } - - - public FieldSO required(Boolean required) { - - this.required = required; - return this; - } - - /** - * Get required - * @return required - **/ - @javax.annotation.Nullable - public Boolean getRequired() { - return required; - } - - - public void setRequired(Boolean required) { - this.required = required; - } - - - public FieldSO type(FieldKindSO type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - public FieldKindSO getType() { - return type; - } - - - public void setType(FieldKindSO type) { - this.type = type; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FieldSO fieldSO = (FieldSO) o; - return Objects.equals(this.desc, fieldSO.desc) && - Objects.equals(this.id, fieldSO.id) && - Objects.equals(this.name, fieldSO.name) && - Objects.equals(this.property, fieldSO.property) && - Objects.equals(this.required, fieldSO.required) && - Objects.equals(this.type, fieldSO.type); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(desc, id, name, property, required, type); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FieldSO {\n"); - sb.append(" desc: ").append(toIndentedString(desc)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" required: ").append(toIndentedString(required)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("desc"); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("property"); - openapiFields.add("required"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FieldSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FieldSO is not found in the empty JSON string", FieldSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!FieldSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FieldSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : FieldSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("desc") != null && !jsonObj.get("desc").isJsonNull()) && !jsonObj.get("desc").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `desc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("desc").toString())); - } - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `property` - if (jsonObj.get("property") != null && !jsonObj.get("property").isJsonNull()) { - FieldPropertySO.validateJsonElement(jsonObj.get("property")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FieldSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FieldSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FieldSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FieldSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FieldSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FieldSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldSO - * @throws IOException if the JSON string is invalid with respect to FieldSO - */ - public static FieldSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FieldSO.class); - } - - /** - * Convert an instance of FieldSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdateRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdateRO.java deleted file mode 100644 index 85601781f1..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdateRO.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * FieldUpdateRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FieldUpdateRO { - public static final String SERIALIZED_NAME_FIELDS = "fields"; - @SerializedName(SERIALIZED_NAME_FIELDS) - private Map fields = new HashMap<>(); - - public static final String SERIALIZED_NAME_RECORD_ID = "recordId"; - @SerializedName(SERIALIZED_NAME_RECORD_ID) - private String recordId; - - public FieldUpdateRO() { - } - - public FieldUpdateRO fields(Map fields) { - - this.fields = fields; - return this; - } - - public FieldUpdateRO putFieldsItem(String key, Object fieldsItem) { - if (this.fields == null) { - this.fields = new HashMap<>(); - } - this.fields.put(key, fieldsItem); - return this; - } - - /** - * Get fields - * @return fields - **/ - @javax.annotation.Nonnull - public Map getFields() { - return fields; - } - - - public void setFields(Map fields) { - this.fields = fields; - } - - - public FieldUpdateRO recordId(String recordId) { - - this.recordId = recordId; - return this; - } - - /** - * Get recordId - * @return recordId - **/ - @javax.annotation.Nonnull - public String getRecordId() { - return recordId; - } - - - public void setRecordId(String recordId) { - this.recordId = recordId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FieldUpdateRO fieldUpdateRO = (FieldUpdateRO) o; - return Objects.equals(this.fields, fieldUpdateRO.fields) && - Objects.equals(this.recordId, fieldUpdateRO.recordId); - } - - @Override - public int hashCode() { - return Objects.hash(fields, recordId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FieldUpdateRO {\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fields"); - openapiFields.add("recordId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fields"); - openapiRequiredFields.add("recordId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldUpdateRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FieldUpdateRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FieldUpdateRO is not found in the empty JSON string", FieldUpdateRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!FieldUpdateRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FieldUpdateRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : FieldUpdateRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("recordId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recordId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recordId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FieldUpdateRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FieldUpdateRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FieldUpdateRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FieldUpdateRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FieldUpdateRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FieldUpdateRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldUpdateRO - * @throws IOException if the JSON string is invalid with respect to FieldUpdateRO - */ - public static FieldUpdateRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FieldUpdateRO.class); - } - - /** - * Convert an instance of FieldUpdateRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdatedValue.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdatedValue.java deleted file mode 100644 index adc7f4b2ed..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldUpdatedValue.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * FieldUpdatedValue - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class FieldUpdatedValue { - public static final String SERIALIZED_NAME_AT = "at"; - @SerializedName(SERIALIZED_NAME_AT) - private Long at; - - public static final String SERIALIZED_NAME_AUTO_NUMBER = "autoNumber"; - @SerializedName(SERIALIZED_NAME_AUTO_NUMBER) - private Long autoNumber; - - public static final String SERIALIZED_NAME_BY = "by"; - @SerializedName(SERIALIZED_NAME_BY) - private String by; - - public FieldUpdatedValue() { - } - - public FieldUpdatedValue at(Long at) { - - this.at = at; - return this; - } - - /** - * Get at - * minimum: 0 - * @return at - **/ - @javax.annotation.Nullable - public Long getAt() { - return at; - } - - - public void setAt(Long at) { - this.at = at; - } - - - public FieldUpdatedValue autoNumber(Long autoNumber) { - - this.autoNumber = autoNumber; - return this; - } - - /** - * Get autoNumber - * minimum: 0 - * @return autoNumber - **/ - @javax.annotation.Nullable - public Long getAutoNumber() { - return autoNumber; - } - - - public void setAutoNumber(Long autoNumber) { - this.autoNumber = autoNumber; - } - - - public FieldUpdatedValue by(String by) { - - this.by = by; - return this; - } - - /** - * Get by - * @return by - **/ - @javax.annotation.Nullable - public String getBy() { - return by; - } - - - public void setBy(String by) { - this.by = by; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FieldUpdatedValue fieldUpdatedValue = (FieldUpdatedValue) o; - return Objects.equals(this.at, fieldUpdatedValue.at) && - Objects.equals(this.autoNumber, fieldUpdatedValue.autoNumber) && - Objects.equals(this.by, fieldUpdatedValue.by); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(at, autoNumber, by); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FieldUpdatedValue {\n"); - sb.append(" at: ").append(toIndentedString(at)).append("\n"); - sb.append(" autoNumber: ").append(toIndentedString(autoNumber)).append("\n"); - sb.append(" by: ").append(toIndentedString(by)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("at"); - openapiFields.add("autoNumber"); - openapiFields.add("by"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldUpdatedValue - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FieldUpdatedValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FieldUpdatedValue is not found in the empty JSON string", FieldUpdatedValue.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!FieldUpdatedValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FieldUpdatedValue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("by") != null && !jsonObj.get("by").isJsonNull()) && !jsonObj.get("by").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("by").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FieldUpdatedValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FieldUpdatedValue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FieldUpdatedValue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FieldUpdatedValue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FieldUpdatedValue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FieldUpdatedValue given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldUpdatedValue - * @throws IOException if the JSON string is invalid with respect to FieldUpdatedValue - */ - public static FieldUpdatedValue fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FieldUpdatedValue.class); - } - - /** - * Convert an instance of FieldUpdatedValue to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorOption.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorOption.java deleted file mode 100644 index 3253ecc968..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorOption.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.GanttColorType; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * GanttColorOption - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class GanttColorOption { - public static final String SERIALIZED_NAME_COLOR = "color"; - @SerializedName(SERIALIZED_NAME_COLOR) - private Integer color; - - public static final String SERIALIZED_NAME_FIELD_ID = "field_id"; - @SerializedName(SERIALIZED_NAME_FIELD_ID) - private String fieldId; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private GanttColorType type; - - public GanttColorOption() { - } - - public GanttColorOption color(Integer color) { - - this.color = color; - return this; - } - - /** - * Get color - * @return color - **/ - @javax.annotation.Nullable - public Integer getColor() { - return color; - } - - - public void setColor(Integer color) { - this.color = color; - } - - - public GanttColorOption fieldId(String fieldId) { - - this.fieldId = fieldId; - return this; - } - - /** - * Get fieldId - * @return fieldId - **/ - @javax.annotation.Nullable - public String getFieldId() { - return fieldId; - } - - - public void setFieldId(String fieldId) { - this.fieldId = fieldId; - } - - - public GanttColorOption type(GanttColorType type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nonnull - public GanttColorType getType() { - return type; - } - - - public void setType(GanttColorType type) { - this.type = type; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GanttColorOption ganttColorOption = (GanttColorOption) o; - return Objects.equals(this.color, ganttColorOption.color) && - Objects.equals(this.fieldId, ganttColorOption.fieldId) && - Objects.equals(this.type, ganttColorOption.type); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(color, fieldId, type); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GanttColorOption {\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("color"); - openapiFields.add("field_id"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GanttColorOption - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GanttColorOption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in GanttColorOption is not found in the empty JSON string", GanttColorOption.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!GanttColorOption.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GanttColorOption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GanttColorOption.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("field_id") != null && !jsonObj.get("field_id").isJsonNull()) && !jsonObj.get("field_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `field_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field_id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!GanttColorOption.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GanttColorOption' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GanttColorOption.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GanttColorOption value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GanttColorOption read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of GanttColorOption given an JSON string - * - * @param jsonString JSON string - * @return An instance of GanttColorOption - * @throws IOException if the JSON string is invalid with respect to GanttColorOption - */ - public static GanttColorOption fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, GanttColorOption.class); - } - - /** - * Convert an instance of GanttColorOption to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterCondition.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterCondition.java deleted file mode 100644 index 3325d73da0..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterCondition.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.FOperator; -import com.apitable.databusclient.model.FieldKindSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * IFilterCondition - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class IFilterCondition { - public static final String SERIALIZED_NAME_CONDITION_ID = "conditionId"; - @SerializedName(SERIALIZED_NAME_CONDITION_ID) - private String conditionId; - - public static final String SERIALIZED_NAME_FIELD_ID = "fieldId"; - @SerializedName(SERIALIZED_NAME_FIELD_ID) - private String fieldId; - - public static final String SERIALIZED_NAME_FIELD_TYPE = "fieldType"; - @SerializedName(SERIALIZED_NAME_FIELD_TYPE) - private FieldKindSO fieldType; - - public static final String SERIALIZED_NAME_OPERATOR = "operator"; - @SerializedName(SERIALIZED_NAME_OPERATOR) - private FOperator operator; - - public static final String SERIALIZED_NAME_VALUE = "value"; - @SerializedName(SERIALIZED_NAME_VALUE) - private Object value = null; - - public IFilterCondition() { - } - - public IFilterCondition conditionId(String conditionId) { - - this.conditionId = conditionId; - return this; - } - - /** - * Get conditionId - * @return conditionId - **/ - @javax.annotation.Nonnull - public String getConditionId() { - return conditionId; - } - - - public void setConditionId(String conditionId) { - this.conditionId = conditionId; - } - - - public IFilterCondition fieldId(String fieldId) { - - this.fieldId = fieldId; - return this; - } - - /** - * Get fieldId - * @return fieldId - **/ - @javax.annotation.Nonnull - public String getFieldId() { - return fieldId; - } - - - public void setFieldId(String fieldId) { - this.fieldId = fieldId; - } - - - public IFilterCondition fieldType(FieldKindSO fieldType) { - - this.fieldType = fieldType; - return this; - } - - /** - * Get fieldType - * @return fieldType - **/ - @javax.annotation.Nonnull - public FieldKindSO getFieldType() { - return fieldType; - } - - - public void setFieldType(FieldKindSO fieldType) { - this.fieldType = fieldType; - } - - - public IFilterCondition operator(FOperator operator) { - - this.operator = operator; - return this; - } - - /** - * Get operator - * @return operator - **/ - @javax.annotation.Nonnull - public FOperator getOperator() { - return operator; - } - - - public void setOperator(FOperator operator) { - this.operator = operator; - } - - - public IFilterCondition value(Object value) { - - this.value = value; - return this; - } - - /** - * Get value - * @return value - **/ - @javax.annotation.Nullable - public Object getValue() { - return value; - } - - - public void setValue(Object value) { - this.value = value; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - IFilterCondition ifilterCondition = (IFilterCondition) o; - return Objects.equals(this.conditionId, ifilterCondition.conditionId) && - Objects.equals(this.fieldId, ifilterCondition.fieldId) && - Objects.equals(this.fieldType, ifilterCondition.fieldType) && - Objects.equals(this.operator, ifilterCondition.operator) && - Objects.equals(this.value, ifilterCondition.value); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(conditionId, fieldId, fieldType, operator, value); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class IFilterCondition {\n"); - sb.append(" conditionId: ").append(toIndentedString(conditionId)).append("\n"); - sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); - sb.append(" fieldType: ").append(toIndentedString(fieldType)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditionId"); - openapiFields.add("fieldId"); - openapiFields.add("fieldType"); - openapiFields.add("operator"); - openapiFields.add("value"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("conditionId"); - openapiRequiredFields.add("fieldId"); - openapiRequiredFields.add("fieldType"); - openapiRequiredFields.add("operator"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to IFilterCondition - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IFilterCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IFilterCondition is not found in the empty JSON string", IFilterCondition.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!IFilterCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `IFilterCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : IFilterCondition.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("conditionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `conditionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conditionId").toString())); - } - if (!jsonObj.get("fieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!IFilterCondition.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IFilterCondition' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IFilterCondition.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IFilterCondition value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IFilterCondition read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of IFilterCondition given an JSON string - * - * @param jsonString JSON string - * @return An instance of IFilterCondition - * @throws IOException if the JSON string is invalid with respect to IFilterCondition - */ - public static IFilterCondition fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, IFilterCondition.class); - } - - /** - * Convert an instance of IFilterCondition to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterInfo.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterInfo.java deleted file mode 100644 index d0ea0fbff5..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/IFilterInfo.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.FilterConjunction; -import com.apitable.databusclient.model.IFilterCondition; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * IFilterInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class IFilterInfo { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions; - - public static final String SERIALIZED_NAME_CONJUNCTION = "conjunction"; - @SerializedName(SERIALIZED_NAME_CONJUNCTION) - private FilterConjunction conjunction; - - public IFilterInfo() { - } - - public IFilterInfo conditions(List conditions) { - - this.conditions = conditions; - return this; - } - - public IFilterInfo addConditionsItem(IFilterCondition conditionsItem) { - if (this.conditions == null) { - this.conditions = new ArrayList<>(); - } - this.conditions.add(conditionsItem); - return this; - } - - /** - * Get conditions - * @return conditions - **/ - @javax.annotation.Nullable - public List getConditions() { - return conditions; - } - - - public void setConditions(List conditions) { - this.conditions = conditions; - } - - - public IFilterInfo conjunction(FilterConjunction conjunction) { - - this.conjunction = conjunction; - return this; - } - - /** - * Get conjunction - * @return conjunction - **/ - @javax.annotation.Nonnull - public FilterConjunction getConjunction() { - return conjunction; - } - - - public void setConjunction(FilterConjunction conjunction) { - this.conjunction = conjunction; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - IFilterInfo ifilterInfo = (IFilterInfo) o; - return Objects.equals(this.conditions, ifilterInfo.conditions) && - Objects.equals(this.conjunction, ifilterInfo.conjunction); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(conditions, conjunction); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class IFilterInfo {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" conjunction: ").append(toIndentedString(conjunction)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("conjunction"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("conjunction"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to IFilterInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IFilterInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IFilterInfo is not found in the empty JSON string", IFilterInfo.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!IFilterInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `IFilterInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : IFilterInfo.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); - if (jsonArrayconditions != null) { - // ensure the json data is an array - if (!jsonObj.get("conditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); - } - - // validate the optional field `conditions` (array) - for (int i = 0; i < jsonArrayconditions.size(); i++) { - IFilterCondition.validateJsonElement(jsonArrayconditions.get(i)); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!IFilterInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IFilterInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IFilterInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IFilterInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IFilterInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of IFilterInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of IFilterInfo - * @throws IOException if the JSON string is invalid with respect to IFilterInfo - */ - public static IFilterInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, IFilterInfo.class); - } - - /** - * Convert an instance of IFilterInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ISortInfo.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ISortInfo.java deleted file mode 100644 index 9f4a36f74c..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ISortInfo.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.ISortedField; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ISortInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ISortInfo { - public static final String SERIALIZED_NAME_KEEP_SORT = "keepSort"; - @SerializedName(SERIALIZED_NAME_KEEP_SORT) - private Boolean keepSort; - - public static final String SERIALIZED_NAME_RULES = "rules"; - @SerializedName(SERIALIZED_NAME_RULES) - private List rules = new ArrayList<>(); - - public ISortInfo() { - } - - public ISortInfo keepSort(Boolean keepSort) { - - this.keepSort = keepSort; - return this; - } - - /** - * Get keepSort - * @return keepSort - **/ - @javax.annotation.Nullable - public Boolean getKeepSort() { - return keepSort; - } - - - public void setKeepSort(Boolean keepSort) { - this.keepSort = keepSort; - } - - - public ISortInfo rules(List rules) { - - this.rules = rules; - return this; - } - - public ISortInfo addRulesItem(ISortedField rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Get rules - * @return rules - **/ - @javax.annotation.Nonnull - public List getRules() { - return rules; - } - - - public void setRules(List rules) { - this.rules = rules; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ISortInfo isortInfo = (ISortInfo) o; - return Objects.equals(this.keepSort, isortInfo.keepSort) && - Objects.equals(this.rules, isortInfo.rules); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(keepSort, rules); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ISortInfo {\n"); - sb.append(" keepSort: ").append(toIndentedString(keepSort)).append("\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("keepSort"); - openapiFields.add("rules"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("rules"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ISortInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ISortInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ISortInfo is not found in the empty JSON string", ISortInfo.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ISortInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ISortInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ISortInfo.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("rules").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); - } - - JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); - // validate the required field `rules` (array) - for (int i = 0; i < jsonArrayrules.size(); i++) { - ISortedField.validateJsonElement(jsonArrayrules.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ISortInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ISortInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ISortInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ISortInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ISortInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ISortInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of ISortInfo - * @throws IOException if the JSON string is invalid with respect to ISortInfo - */ - public static ISortInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ISortInfo.class); - } - - /** - * Convert an instance of ISortInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ISortedField.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ISortedField.java deleted file mode 100644 index 92ec630d54..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ISortedField.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ISortedField - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ISortedField { - public static final String SERIALIZED_NAME_DESC = "desc"; - @SerializedName(SERIALIZED_NAME_DESC) - private Boolean desc; - - public static final String SERIALIZED_NAME_FIELD_ID = "fieldId"; - @SerializedName(SERIALIZED_NAME_FIELD_ID) - private String fieldId; - - public ISortedField() { - } - - public ISortedField desc(Boolean desc) { - - this.desc = desc; - return this; - } - - /** - * Get desc - * @return desc - **/ - @javax.annotation.Nonnull - public Boolean getDesc() { - return desc; - } - - - public void setDesc(Boolean desc) { - this.desc = desc; - } - - - public ISortedField fieldId(String fieldId) { - - this.fieldId = fieldId; - return this; - } - - /** - * Get fieldId - * @return fieldId - **/ - @javax.annotation.Nullable - public String getFieldId() { - return fieldId; - } - - - public void setFieldId(String fieldId) { - this.fieldId = fieldId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ISortedField isortedField = (ISortedField) o; - return Objects.equals(this.desc, isortedField.desc) && - Objects.equals(this.fieldId, isortedField.fieldId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(desc, fieldId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ISortedField {\n"); - sb.append(" desc: ").append(toIndentedString(desc)).append("\n"); - sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("desc"); - openapiFields.add("fieldId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("desc"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ISortedField - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ISortedField.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ISortedField is not found in the empty JSON string", ISortedField.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ISortedField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ISortedField` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ISortedField.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("fieldId") != null && !jsonObj.get("fieldId").isJsonNull()) && !jsonObj.get("fieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ISortedField.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ISortedField' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ISortedField.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ISortedField value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ISortedField read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ISortedField given an JSON string - * - * @param jsonString JSON string - * @return An instance of ISortedField - * @throws IOException if the JSON string is invalid with respect to ISortedField - */ - public static ISortedField fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ISortedField.class); - } - - /** - * Convert an instance of ISortedField to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/IViewLockInfo.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/IViewLockInfo.java deleted file mode 100644 index e94aafd5dc..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/IViewLockInfo.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * IViewLockInfo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class IViewLockInfo { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_UNIT_ID = "unitId"; - @SerializedName(SERIALIZED_NAME_UNIT_ID) - private String unitId; - - public IViewLockInfo() { - } - - public IViewLockInfo description(String description) { - - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @javax.annotation.Nullable - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public IViewLockInfo unitId(String unitId) { - - this.unitId = unitId; - return this; - } - - /** - * Get unitId - * @return unitId - **/ - @javax.annotation.Nonnull - public String getUnitId() { - return unitId; - } - - - public void setUnitId(String unitId) { - this.unitId = unitId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - IViewLockInfo iviewLockInfo = (IViewLockInfo) o; - return Objects.equals(this.description, iviewLockInfo.description) && - Objects.equals(this.unitId, iviewLockInfo.unitId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(description, unitId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class IViewLockInfo {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" unitId: ").append(toIndentedString(unitId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("unitId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("unitId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to IViewLockInfo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IViewLockInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in IViewLockInfo is not found in the empty JSON string", IViewLockInfo.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!IViewLockInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `IViewLockInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : IViewLockInfo.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (!jsonObj.get("unitId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `unitId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!IViewLockInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IViewLockInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IViewLockInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IViewLockInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IViewLockInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of IViewLockInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of IViewLockInfo - * @throws IOException if the JSON string is invalid with respect to IViewLockInfo - */ - public static IViewLockInfo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, IViewLockInfo.class); - } - - /** - * Convert an instance of IViewLockInfo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/LinkedFields.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/LinkedFields.java deleted file mode 100644 index 236bd4f61e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/LinkedFields.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * LinkedFields - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LinkedFields { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Integer type; - - public LinkedFields() { - } - - public LinkedFields id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public LinkedFields name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public LinkedFields type(Integer type) { - - this.type = type; - return this; - } - - /** - * Get type - * minimum: 0 - * @return type - **/ - @javax.annotation.Nonnull - public Integer getType() { - return type; - } - - - public void setType(Integer type) { - this.type = type; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LinkedFields linkedFields = (LinkedFields) o; - return Objects.equals(this.id, linkedFields.id) && - Objects.equals(this.name, linkedFields.name) && - Objects.equals(this.type, linkedFields.type); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LinkedFields {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LinkedFields - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LinkedFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LinkedFields is not found in the empty JSON string", LinkedFields.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!LinkedFields.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LinkedFields` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : LinkedFields.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!LinkedFields.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LinkedFields' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LinkedFields.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, LinkedFields value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public LinkedFields read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of LinkedFields given an JSON string - * - * @param jsonString JSON string - * @return An instance of LinkedFields - * @throws IOException if the JSON string is invalid with respect to LinkedFields - */ - public static LinkedFields fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LinkedFields.class); - } - - /** - * Convert an instance of LinkedFields to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ListVO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ListVO.java deleted file mode 100644 index e929e3940e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ListVO.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.ApiRecordDto; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ListVO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ListVO { - public static final String SERIALIZED_NAME_RECORDS = "records"; - @SerializedName(SERIALIZED_NAME_RECORDS) - private List records = new ArrayList<>(); - - public ListVO() { - } - - public ListVO records(List records) { - - this.records = records; - return this; - } - - public ListVO addRecordsItem(ApiRecordDto recordsItem) { - if (this.records == null) { - this.records = new ArrayList<>(); - } - this.records.add(recordsItem); - return this; - } - - /** - * Get records - * @return records - **/ - @javax.annotation.Nonnull - public List getRecords() { - return records; - } - - - public void setRecords(List records) { - this.records = records; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListVO listVO = (ListVO) o; - return Objects.equals(this.records, listVO.records); - } - - @Override - public int hashCode() { - return Objects.hash(records); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListVO {\n"); - sb.append(" records: ").append(toIndentedString(records)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("records"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("records"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ListVO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ListVO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ListVO is not found in the empty JSON string", ListVO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ListVO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ListVO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ListVO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("records").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `records` to be an array in the JSON string but got `%s`", jsonObj.get("records").toString())); - } - - JsonArray jsonArrayrecords = jsonObj.getAsJsonArray("records"); - // validate the required field `records` (array) - for (int i = 0; i < jsonArrayrecords.size(); i++) { - ApiRecordDto.validateJsonElement(jsonArrayrecords.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ListVO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ListVO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ListVO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ListVO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ListVO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ListVO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ListVO - * @throws IOException if the JSON string is invalid with respect to ListVO - */ - public static ListVO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ListVO.class); - } - - /** - * Convert an instance of ListVO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/LookUpFilterPO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/LookUpFilterPO.java deleted file mode 100644 index 5d490813f6..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/LookUpFilterPO.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * LookUpFilterPO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LookUpFilterPO { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = new ArrayList<>(); - - public static final String SERIALIZED_NAME_CONJUNCTION = "conjunction"; - @SerializedName(SERIALIZED_NAME_CONJUNCTION) - private String conjunction; - - public LookUpFilterPO() { - } - - public LookUpFilterPO conditions(List conditions) { - - this.conditions = conditions; - return this; - } - - public LookUpFilterPO addConditionsItem(Object conditionsItem) { - if (this.conditions == null) { - this.conditions = new ArrayList<>(); - } - this.conditions.add(conditionsItem); - return this; - } - - /** - * Get conditions - * @return conditions - **/ - @javax.annotation.Nonnull - public List getConditions() { - return conditions; - } - - - public void setConditions(List conditions) { - this.conditions = conditions; - } - - - public LookUpFilterPO conjunction(String conjunction) { - - this.conjunction = conjunction; - return this; - } - - /** - * Get conjunction - * @return conjunction - **/ - @javax.annotation.Nonnull - public String getConjunction() { - return conjunction; - } - - - public void setConjunction(String conjunction) { - this.conjunction = conjunction; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LookUpFilterPO lookUpFilterPO = (LookUpFilterPO) o; - return Objects.equals(this.conditions, lookUpFilterPO.conditions) && - Objects.equals(this.conjunction, lookUpFilterPO.conjunction); - } - - @Override - public int hashCode() { - return Objects.hash(conditions, conjunction); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LookUpFilterPO {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" conjunction: ").append(toIndentedString(conjunction)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("conjunction"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("conditions"); - openapiRequiredFields.add("conjunction"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookUpFilterPO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LookUpFilterPO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LookUpFilterPO is not found in the empty JSON string", LookUpFilterPO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!LookUpFilterPO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LookUpFilterPO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : LookUpFilterPO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("conditions") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("conditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); - } - if (!jsonObj.get("conjunction").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `conjunction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conjunction").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!LookUpFilterPO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LookUpFilterPO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LookUpFilterPO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, LookUpFilterPO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public LookUpFilterPO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of LookUpFilterPO given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookUpFilterPO - * @throws IOException if the JSON string is invalid with respect to LookUpFilterPO - */ - public static LookUpFilterPO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LookUpFilterPO.class); - } - - /** - * Convert an instance of LookUpFilterPO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/NodePermissionStateSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/NodePermissionStateSO.java deleted file mode 100644 index 1669d3ae17..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/NodePermissionStateSO.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * NodePermissionStateSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NodePermissionStateSO { - public static final String SERIALIZED_NAME_IS_DELETED = "isDeleted"; - @SerializedName(SERIALIZED_NAME_IS_DELETED) - private Boolean isDeleted; - - public NodePermissionStateSO() { - } - - public NodePermissionStateSO isDeleted(Boolean isDeleted) { - - this.isDeleted = isDeleted; - return this; - } - - /** - * Get isDeleted - * @return isDeleted - **/ - @javax.annotation.Nullable - public Boolean getIsDeleted() { - return isDeleted; - } - - - public void setIsDeleted(Boolean isDeleted) { - this.isDeleted = isDeleted; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NodePermissionStateSO nodePermissionStateSO = (NodePermissionStateSO) o; - return Objects.equals(this.isDeleted, nodePermissionStateSO.isDeleted); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(isDeleted); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NodePermissionStateSO {\n"); - sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("isDeleted"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NodePermissionStateSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NodePermissionStateSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NodePermissionStateSO is not found in the empty JSON string", NodePermissionStateSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!NodePermissionStateSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NodePermissionStateSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!NodePermissionStateSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NodePermissionStateSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NodePermissionStateSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, NodePermissionStateSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public NodePermissionStateSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of NodePermissionStateSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of NodePermissionStateSO - * @throws IOException if the JSON string is invalid with respect to NodePermissionStateSO - */ - public static NodePermissionStateSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NodePermissionStateSO.class); - } - - /** - * Convert an instance of NodePermissionStateSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSO.java deleted file mode 100644 index 944af70430..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSO.java +++ /dev/null @@ -1,657 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.NodePermissionStateSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * NodeSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NodeSO { - public static final String SERIALIZED_NAME_ACTIVE_VIEW = "activeView"; - @SerializedName(SERIALIZED_NAME_ACTIVE_VIEW) - private String activeView; - - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_EXTRA = "extra"; - @SerializedName(SERIALIZED_NAME_EXTRA) - private Object extra = null; - - public static final String SERIALIZED_NAME_ICON = "icon"; - @SerializedName(SERIALIZED_NAME_ICON) - private String icon; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_IS_GHOST_NODE = "isGhostNode"; - @SerializedName(SERIALIZED_NAME_IS_GHOST_NODE) - private Boolean isGhostNode; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NODE_FAVORITE = "nodeFavorite"; - @SerializedName(SERIALIZED_NAME_NODE_FAVORITE) - private Boolean nodeFavorite; - - public static final String SERIALIZED_NAME_NODE_PERMIT_SET = "nodePermitSet"; - @SerializedName(SERIALIZED_NAME_NODE_PERMIT_SET) - private Boolean nodePermitSet; - - public static final String SERIALIZED_NAME_NODE_SHARED = "nodeShared"; - @SerializedName(SERIALIZED_NAME_NODE_SHARED) - private Boolean nodeShared; - - public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; - @SerializedName(SERIALIZED_NAME_PARENT_ID) - private String parentId; - - public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; - @SerializedName(SERIALIZED_NAME_PERMISSIONS) - private NodePermissionStateSO permissions; - - public static final String SERIALIZED_NAME_REVISION = "revision"; - @SerializedName(SERIALIZED_NAME_REVISION) - private Integer revision; - - public static final String SERIALIZED_NAME_ROLE = "role"; - @SerializedName(SERIALIZED_NAME_ROLE) - private String role; - - public static final String SERIALIZED_NAME_SPACE_ID = "spaceId"; - @SerializedName(SERIALIZED_NAME_SPACE_ID) - private String spaceId; - - public NodeSO() { - } - - public NodeSO activeView(String activeView) { - - this.activeView = activeView; - return this; - } - - /** - * Get activeView - * @return activeView - **/ - @javax.annotation.Nullable - public String getActiveView() { - return activeView; - } - - - public void setActiveView(String activeView) { - this.activeView = activeView; - } - - - public NodeSO description(String description) { - - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @javax.annotation.Nonnull - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public NodeSO extra(Object extra) { - - this.extra = extra; - return this; - } - - /** - * Get extra - * @return extra - **/ - @javax.annotation.Nullable - public Object getExtra() { - return extra; - } - - - public void setExtra(Object extra) { - this.extra = extra; - } - - - public NodeSO icon(String icon) { - - this.icon = icon; - return this; - } - - /** - * Get icon - * @return icon - **/ - @javax.annotation.Nonnull - public String getIcon() { - return icon; - } - - - public void setIcon(String icon) { - this.icon = icon; - } - - - public NodeSO id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public NodeSO isGhostNode(Boolean isGhostNode) { - - this.isGhostNode = isGhostNode; - return this; - } - - /** - * Get isGhostNode - * @return isGhostNode - **/ - @javax.annotation.Nullable - public Boolean getIsGhostNode() { - return isGhostNode; - } - - - public void setIsGhostNode(Boolean isGhostNode) { - this.isGhostNode = isGhostNode; - } - - - public NodeSO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public NodeSO nodeFavorite(Boolean nodeFavorite) { - - this.nodeFavorite = nodeFavorite; - return this; - } - - /** - * Get nodeFavorite - * @return nodeFavorite - **/ - @javax.annotation.Nonnull - public Boolean getNodeFavorite() { - return nodeFavorite; - } - - - public void setNodeFavorite(Boolean nodeFavorite) { - this.nodeFavorite = nodeFavorite; - } - - - public NodeSO nodePermitSet(Boolean nodePermitSet) { - - this.nodePermitSet = nodePermitSet; - return this; - } - - /** - * Get nodePermitSet - * @return nodePermitSet - **/ - @javax.annotation.Nonnull - public Boolean getNodePermitSet() { - return nodePermitSet; - } - - - public void setNodePermitSet(Boolean nodePermitSet) { - this.nodePermitSet = nodePermitSet; - } - - - public NodeSO nodeShared(Boolean nodeShared) { - - this.nodeShared = nodeShared; - return this; - } - - /** - * Get nodeShared - * @return nodeShared - **/ - @javax.annotation.Nonnull - public Boolean getNodeShared() { - return nodeShared; - } - - - public void setNodeShared(Boolean nodeShared) { - this.nodeShared = nodeShared; - } - - - public NodeSO parentId(String parentId) { - - this.parentId = parentId; - return this; - } - - /** - * Get parentId - * @return parentId - **/ - @javax.annotation.Nonnull - public String getParentId() { - return parentId; - } - - - public void setParentId(String parentId) { - this.parentId = parentId; - } - - - public NodeSO permissions(NodePermissionStateSO permissions) { - - this.permissions = permissions; - return this; - } - - /** - * Get permissions - * @return permissions - **/ - @javax.annotation.Nonnull - public NodePermissionStateSO getPermissions() { - return permissions; - } - - - public void setPermissions(NodePermissionStateSO permissions) { - this.permissions = permissions; - } - - - public NodeSO revision(Integer revision) { - - this.revision = revision; - return this; - } - - /** - * Get revision - * minimum: 0 - * @return revision - **/ - @javax.annotation.Nonnull - public Integer getRevision() { - return revision; - } - - - public void setRevision(Integer revision) { - this.revision = revision; - } - - - public NodeSO role(String role) { - - this.role = role; - return this; - } - - /** - * Get role - * @return role - **/ - @javax.annotation.Nonnull - public String getRole() { - return role; - } - - - public void setRole(String role) { - this.role = role; - } - - - public NodeSO spaceId(String spaceId) { - - this.spaceId = spaceId; - return this; - } - - /** - * Get spaceId - * @return spaceId - **/ - @javax.annotation.Nonnull - public String getSpaceId() { - return spaceId; - } - - - public void setSpaceId(String spaceId) { - this.spaceId = spaceId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NodeSO nodeSO = (NodeSO) o; - return Objects.equals(this.activeView, nodeSO.activeView) && - Objects.equals(this.description, nodeSO.description) && - Objects.equals(this.extra, nodeSO.extra) && - Objects.equals(this.icon, nodeSO.icon) && - Objects.equals(this.id, nodeSO.id) && - Objects.equals(this.isGhostNode, nodeSO.isGhostNode) && - Objects.equals(this.name, nodeSO.name) && - Objects.equals(this.nodeFavorite, nodeSO.nodeFavorite) && - Objects.equals(this.nodePermitSet, nodeSO.nodePermitSet) && - Objects.equals(this.nodeShared, nodeSO.nodeShared) && - Objects.equals(this.parentId, nodeSO.parentId) && - Objects.equals(this.permissions, nodeSO.permissions) && - Objects.equals(this.revision, nodeSO.revision) && - Objects.equals(this.role, nodeSO.role) && - Objects.equals(this.spaceId, nodeSO.spaceId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(activeView, description, extra, icon, id, isGhostNode, name, nodeFavorite, nodePermitSet, nodeShared, parentId, permissions, revision, role, spaceId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NodeSO {\n"); - sb.append(" activeView: ").append(toIndentedString(activeView)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); - sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" isGhostNode: ").append(toIndentedString(isGhostNode)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nodeFavorite: ").append(toIndentedString(nodeFavorite)).append("\n"); - sb.append(" nodePermitSet: ").append(toIndentedString(nodePermitSet)).append("\n"); - sb.append(" nodeShared: ").append(toIndentedString(nodeShared)).append("\n"); - sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); - sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); - sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); - sb.append(" role: ").append(toIndentedString(role)).append("\n"); - sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("activeView"); - openapiFields.add("description"); - openapiFields.add("extra"); - openapiFields.add("icon"); - openapiFields.add("id"); - openapiFields.add("isGhostNode"); - openapiFields.add("name"); - openapiFields.add("nodeFavorite"); - openapiFields.add("nodePermitSet"); - openapiFields.add("nodeShared"); - openapiFields.add("parentId"); - openapiFields.add("permissions"); - openapiFields.add("revision"); - openapiFields.add("role"); - openapiFields.add("spaceId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("description"); - openapiRequiredFields.add("icon"); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("nodeFavorite"); - openapiRequiredFields.add("nodePermitSet"); - openapiRequiredFields.add("nodeShared"); - openapiRequiredFields.add("parentId"); - openapiRequiredFields.add("permissions"); - openapiRequiredFields.add("revision"); - openapiRequiredFields.add("role"); - openapiRequiredFields.add("spaceId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NodeSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NodeSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NodeSO is not found in the empty JSON string", NodeSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!NodeSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NodeSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NodeSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("activeView") != null && !jsonObj.get("activeView").isJsonNull()) && !jsonObj.get("activeView").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `activeView` to be a primitive type in the JSON string but got `%s`", jsonObj.get("activeView").toString())); - } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (!jsonObj.get("icon").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `icon` to be a primitive type in the JSON string but got `%s`", jsonObj.get("icon").toString())); - } - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (!jsonObj.get("parentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `parentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentId").toString())); - } - // validate the required field `permissions` - NodePermissionStateSO.validateJsonElement(jsonObj.get("permissions")); - if (!jsonObj.get("role").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); - } - if (!jsonObj.get("spaceId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `spaceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("spaceId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!NodeSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NodeSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NodeSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, NodeSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public NodeSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of NodeSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of NodeSO - * @throws IOException if the JSON string is invalid with respect to NodeSO - */ - public static NodeSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NodeSO.class); - } - - /** - * Convert an instance of NodeSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSimplePO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSimplePO.java deleted file mode 100644 index b81ac63400..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/NodeSimplePO.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * NodeSimplePO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class NodeSimplePO { - public static final String SERIALIZED_NAME_ICON = "icon"; - @SerializedName(SERIALIZED_NAME_ICON) - private String icon; - - public static final String SERIALIZED_NAME_NODE_ID = "nodeId"; - @SerializedName(SERIALIZED_NAME_NODE_ID) - private String nodeId; - - public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; - @SerializedName(SERIALIZED_NAME_NODE_NAME) - private String nodeName; - - public NodeSimplePO() { - } - - public NodeSimplePO icon(String icon) { - - this.icon = icon; - return this; - } - - /** - * Get icon - * @return icon - **/ - @javax.annotation.Nullable - public String getIcon() { - return icon; - } - - - public void setIcon(String icon) { - this.icon = icon; - } - - - public NodeSimplePO nodeId(String nodeId) { - - this.nodeId = nodeId; - return this; - } - - /** - * Get nodeId - * @return nodeId - **/ - @javax.annotation.Nonnull - public String getNodeId() { - return nodeId; - } - - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - - public NodeSimplePO nodeName(String nodeName) { - - this.nodeName = nodeName; - return this; - } - - /** - * Get nodeName - * @return nodeName - **/ - @javax.annotation.Nonnull - public String getNodeName() { - return nodeName; - } - - - public void setNodeName(String nodeName) { - this.nodeName = nodeName; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NodeSimplePO nodeSimplePO = (NodeSimplePO) o; - return Objects.equals(this.icon, nodeSimplePO.icon) && - Objects.equals(this.nodeId, nodeSimplePO.nodeId) && - Objects.equals(this.nodeName, nodeSimplePO.nodeName); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(icon, nodeId, nodeName); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NodeSimplePO {\n"); - sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); - sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); - sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("icon"); - openapiFields.add("nodeId"); - openapiFields.add("nodeName"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("nodeId"); - openapiRequiredFields.add("nodeName"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to NodeSimplePO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!NodeSimplePO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in NodeSimplePO is not found in the empty JSON string", NodeSimplePO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!NodeSimplePO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NodeSimplePO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : NodeSimplePO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("icon") != null && !jsonObj.get("icon").isJsonNull()) && !jsonObj.get("icon").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `icon` to be a primitive type in the JSON string but got `%s`", jsonObj.get("icon").toString())); - } - if (!jsonObj.get("nodeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nodeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeId").toString())); - } - if (!jsonObj.get("nodeName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!NodeSimplePO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'NodeSimplePO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(NodeSimplePO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, NodeSimplePO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public NodeSimplePO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of NodeSimplePO given an JSON string - * - * @param jsonString JSON string - * @return An instance of NodeSimplePO - * @throws IOException if the JSON string is invalid with respect to NodeSimplePO - */ - public static NodeSimplePO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, NodeSimplePO.class); - } - - /** - * Convert an instance of NodeSimplePO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordAlarm.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordAlarm.java deleted file mode 100644 index 366c68414f..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordAlarm.java +++ /dev/null @@ -1,437 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.AlarmUser; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * RecordAlarm - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RecordAlarm { - public static final String SERIALIZED_NAME_ALARM_AT = "alarmAt"; - @SerializedName(SERIALIZED_NAME_ALARM_AT) - private String alarmAt; - - public static final String SERIALIZED_NAME_ALARM_USERS = "alarmUsers"; - @SerializedName(SERIALIZED_NAME_ALARM_USERS) - private List alarmUsers; - - public static final String SERIALIZED_NAME_FIELD_ID = "fieldId"; - @SerializedName(SERIALIZED_NAME_FIELD_ID) - private String fieldId; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_RECORD_ID = "recordId"; - @SerializedName(SERIALIZED_NAME_RECORD_ID) - private String recordId; - - public static final String SERIALIZED_NAME_SUBTRACT = "subtract"; - @SerializedName(SERIALIZED_NAME_SUBTRACT) - private String subtract; - - public static final String SERIALIZED_NAME_TIME = "time"; - @SerializedName(SERIALIZED_NAME_TIME) - private String time; - - public RecordAlarm() { - } - - public RecordAlarm alarmAt(String alarmAt) { - - this.alarmAt = alarmAt; - return this; - } - - /** - * Get alarmAt - * @return alarmAt - **/ - @javax.annotation.Nullable - public String getAlarmAt() { - return alarmAt; - } - - - public void setAlarmAt(String alarmAt) { - this.alarmAt = alarmAt; - } - - - public RecordAlarm alarmUsers(List alarmUsers) { - - this.alarmUsers = alarmUsers; - return this; - } - - public RecordAlarm addAlarmUsersItem(AlarmUser alarmUsersItem) { - if (this.alarmUsers == null) { - this.alarmUsers = new ArrayList<>(); - } - this.alarmUsers.add(alarmUsersItem); - return this; - } - - /** - * Get alarmUsers - * @return alarmUsers - **/ - @javax.annotation.Nullable - public List getAlarmUsers() { - return alarmUsers; - } - - - public void setAlarmUsers(List alarmUsers) { - this.alarmUsers = alarmUsers; - } - - - public RecordAlarm fieldId(String fieldId) { - - this.fieldId = fieldId; - return this; - } - - /** - * Get fieldId - * @return fieldId - **/ - @javax.annotation.Nullable - public String getFieldId() { - return fieldId; - } - - - public void setFieldId(String fieldId) { - this.fieldId = fieldId; - } - - - public RecordAlarm id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public RecordAlarm recordId(String recordId) { - - this.recordId = recordId; - return this; - } - - /** - * Get recordId - * @return recordId - **/ - @javax.annotation.Nullable - public String getRecordId() { - return recordId; - } - - - public void setRecordId(String recordId) { - this.recordId = recordId; - } - - - public RecordAlarm subtract(String subtract) { - - this.subtract = subtract; - return this; - } - - /** - * Get subtract - * @return subtract - **/ - @javax.annotation.Nullable - public String getSubtract() { - return subtract; - } - - - public void setSubtract(String subtract) { - this.subtract = subtract; - } - - - public RecordAlarm time(String time) { - - this.time = time; - return this; - } - - /** - * Get time - * @return time - **/ - @javax.annotation.Nullable - public String getTime() { - return time; - } - - - public void setTime(String time) { - this.time = time; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RecordAlarm recordAlarm = (RecordAlarm) o; - return Objects.equals(this.alarmAt, recordAlarm.alarmAt) && - Objects.equals(this.alarmUsers, recordAlarm.alarmUsers) && - Objects.equals(this.fieldId, recordAlarm.fieldId) && - Objects.equals(this.id, recordAlarm.id) && - Objects.equals(this.recordId, recordAlarm.recordId) && - Objects.equals(this.subtract, recordAlarm.subtract) && - Objects.equals(this.time, recordAlarm.time); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(alarmAt, alarmUsers, fieldId, id, recordId, subtract, time); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RecordAlarm {\n"); - sb.append(" alarmAt: ").append(toIndentedString(alarmAt)).append("\n"); - sb.append(" alarmUsers: ").append(toIndentedString(alarmUsers)).append("\n"); - sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); - sb.append(" subtract: ").append(toIndentedString(subtract)).append("\n"); - sb.append(" time: ").append(toIndentedString(time)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("alarmAt"); - openapiFields.add("alarmUsers"); - openapiFields.add("fieldId"); - openapiFields.add("id"); - openapiFields.add("recordId"); - openapiFields.add("subtract"); - openapiFields.add("time"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordAlarm - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RecordAlarm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RecordAlarm is not found in the empty JSON string", RecordAlarm.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!RecordAlarm.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RecordAlarm` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RecordAlarm.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("alarmAt") != null && !jsonObj.get("alarmAt").isJsonNull()) && !jsonObj.get("alarmAt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `alarmAt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("alarmAt").toString())); - } - if (jsonObj.get("alarmUsers") != null && !jsonObj.get("alarmUsers").isJsonNull()) { - JsonArray jsonArrayalarmUsers = jsonObj.getAsJsonArray("alarmUsers"); - if (jsonArrayalarmUsers != null) { - // ensure the json data is an array - if (!jsonObj.get("alarmUsers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `alarmUsers` to be an array in the JSON string but got `%s`", jsonObj.get("alarmUsers").toString())); - } - - // validate the optional field `alarmUsers` (array) - for (int i = 0; i < jsonArrayalarmUsers.size(); i++) { - AlarmUser.validateJsonElement(jsonArrayalarmUsers.get(i)); - }; - } - } - if ((jsonObj.get("fieldId") != null && !jsonObj.get("fieldId").isJsonNull()) && !jsonObj.get("fieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldId").toString())); - } - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("recordId") != null && !jsonObj.get("recordId").isJsonNull()) && !jsonObj.get("recordId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recordId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recordId").toString())); - } - if ((jsonObj.get("subtract") != null && !jsonObj.get("subtract").isJsonNull()) && !jsonObj.get("subtract").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `subtract` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subtract").toString())); - } - if ((jsonObj.get("time") != null && !jsonObj.get("time").isJsonNull()) && !jsonObj.get("time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("time").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RecordAlarm.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RecordAlarm' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RecordAlarm.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RecordAlarm value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RecordAlarm read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RecordAlarm given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordAlarm - * @throws IOException if the JSON string is invalid with respect to RecordAlarm - */ - public static RecordAlarm fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RecordAlarm.class); - } - - /** - * Convert an instance of RecordAlarm to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordMeta.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordMeta.java deleted file mode 100644 index d1e38afce1..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordMeta.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.FieldExtraMapValue; -import com.apitable.databusclient.model.FieldUpdatedValue; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * RecordMeta - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RecordMeta { - public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private Long createdAt; - - public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; - @SerializedName(SERIALIZED_NAME_CREATED_BY) - private String createdBy; - - public static final String SERIALIZED_NAME_FIELD_EXTRA_MAP = "fieldExtraMap"; - @SerializedName(SERIALIZED_NAME_FIELD_EXTRA_MAP) - private Map fieldExtraMap; - - public static final String SERIALIZED_NAME_FIELD_UPDATED_MAP = "fieldUpdatedMap"; - @SerializedName(SERIALIZED_NAME_FIELD_UPDATED_MAP) - private Map fieldUpdatedMap; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private Long updatedAt; - - public static final String SERIALIZED_NAME_UPDATED_BY = "updatedBy"; - @SerializedName(SERIALIZED_NAME_UPDATED_BY) - private String updatedBy; - - public RecordMeta() { - } - - public RecordMeta createdAt(Long createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * minimum: 0 - * @return createdAt - **/ - @javax.annotation.Nullable - public Long getCreatedAt() { - return createdAt; - } - - - public void setCreatedAt(Long createdAt) { - this.createdAt = createdAt; - } - - - public RecordMeta createdBy(String createdBy) { - - this.createdBy = createdBy; - return this; - } - - /** - * Get createdBy - * @return createdBy - **/ - @javax.annotation.Nullable - public String getCreatedBy() { - return createdBy; - } - - - public void setCreatedBy(String createdBy) { - this.createdBy = createdBy; - } - - - public RecordMeta fieldExtraMap(Map fieldExtraMap) { - - this.fieldExtraMap = fieldExtraMap; - return this; - } - - public RecordMeta putFieldExtraMapItem(String key, FieldExtraMapValue fieldExtraMapItem) { - if (this.fieldExtraMap == null) { - this.fieldExtraMap = new HashMap<>(); - } - this.fieldExtraMap.put(key, fieldExtraMapItem); - return this; - } - - /** - * Get fieldExtraMap - * @return fieldExtraMap - **/ - @javax.annotation.Nullable - public Map getFieldExtraMap() { - return fieldExtraMap; - } - - - public void setFieldExtraMap(Map fieldExtraMap) { - this.fieldExtraMap = fieldExtraMap; - } - - - public RecordMeta fieldUpdatedMap(Map fieldUpdatedMap) { - - this.fieldUpdatedMap = fieldUpdatedMap; - return this; - } - - public RecordMeta putFieldUpdatedMapItem(String key, FieldUpdatedValue fieldUpdatedMapItem) { - if (this.fieldUpdatedMap == null) { - this.fieldUpdatedMap = new HashMap<>(); - } - this.fieldUpdatedMap.put(key, fieldUpdatedMapItem); - return this; - } - - /** - * Get fieldUpdatedMap - * @return fieldUpdatedMap - **/ - @javax.annotation.Nullable - public Map getFieldUpdatedMap() { - return fieldUpdatedMap; - } - - - public void setFieldUpdatedMap(Map fieldUpdatedMap) { - this.fieldUpdatedMap = fieldUpdatedMap; - } - - - public RecordMeta updatedAt(Long updatedAt) { - - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * minimum: 0 - * @return updatedAt - **/ - @javax.annotation.Nullable - public Long getUpdatedAt() { - return updatedAt; - } - - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - - public RecordMeta updatedBy(String updatedBy) { - - this.updatedBy = updatedBy; - return this; - } - - /** - * Get updatedBy - * @return updatedBy - **/ - @javax.annotation.Nullable - public String getUpdatedBy() { - return updatedBy; - } - - - public void setUpdatedBy(String updatedBy) { - this.updatedBy = updatedBy; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RecordMeta recordMeta = (RecordMeta) o; - return Objects.equals(this.createdAt, recordMeta.createdAt) && - Objects.equals(this.createdBy, recordMeta.createdBy) && - Objects.equals(this.fieldExtraMap, recordMeta.fieldExtraMap) && - Objects.equals(this.fieldUpdatedMap, recordMeta.fieldUpdatedMap) && - Objects.equals(this.updatedAt, recordMeta.updatedAt) && - Objects.equals(this.updatedBy, recordMeta.updatedBy); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(createdAt, createdBy, fieldExtraMap, fieldUpdatedMap, updatedAt, updatedBy); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RecordMeta {\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); - sb.append(" fieldExtraMap: ").append(toIndentedString(fieldExtraMap)).append("\n"); - sb.append(" fieldUpdatedMap: ").append(toIndentedString(fieldUpdatedMap)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("createdAt"); - openapiFields.add("createdBy"); - openapiFields.add("fieldExtraMap"); - openapiFields.add("fieldUpdatedMap"); - openapiFields.add("updatedAt"); - openapiFields.add("updatedBy"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordMeta - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RecordMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RecordMeta is not found in the empty JSON string", RecordMeta.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!RecordMeta.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RecordMeta` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); - } - if ((jsonObj.get("updatedBy") != null && !jsonObj.get("updatedBy").isJsonNull()) && !jsonObj.get("updatedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `updatedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedBy").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RecordMeta.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RecordMeta' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RecordMeta.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RecordMeta value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RecordMeta read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RecordMeta given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordMeta - * @throws IOException if the JSON string is invalid with respect to RecordMeta - */ - public static RecordMeta fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RecordMeta.class); - } - - /** - * Convert an instance of RecordMeta to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordSO.java deleted file mode 100644 index 15d3b9fbd2..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordSO.java +++ /dev/null @@ -1,470 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.Comments; -import com.apitable.databusclient.model.RecordMeta; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * RecordSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RecordSO { - public static final String SERIALIZED_NAME_COMMENT_COUNT = "commentCount"; - @SerializedName(SERIALIZED_NAME_COMMENT_COUNT) - private Integer commentCount; - - public static final String SERIALIZED_NAME_COMMENTS = "comments"; - @SerializedName(SERIALIZED_NAME_COMMENTS) - private List comments; - - public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private Long createdAt; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private Object data = null; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_RECORD_META = "recordMeta"; - @SerializedName(SERIALIZED_NAME_RECORD_META) - private RecordMeta recordMeta; - - public static final String SERIALIZED_NAME_REVISION_HISTORY = "revisionHistory"; - @SerializedName(SERIALIZED_NAME_REVISION_HISTORY) - private List revisionHistory; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private Long updatedAt; - - public RecordSO() { - } - - public RecordSO commentCount(Integer commentCount) { - - this.commentCount = commentCount; - return this; - } - - /** - * Get commentCount - * minimum: 0 - * @return commentCount - **/ - @javax.annotation.Nonnull - public Integer getCommentCount() { - return commentCount; - } - - - public void setCommentCount(Integer commentCount) { - this.commentCount = commentCount; - } - - - public RecordSO comments(List comments) { - - this.comments = comments; - return this; - } - - public RecordSO addCommentsItem(Comments commentsItem) { - if (this.comments == null) { - this.comments = new ArrayList<>(); - } - this.comments.add(commentsItem); - return this; - } - - /** - * Get comments - * @return comments - **/ - @javax.annotation.Nullable - public List getComments() { - return comments; - } - - - public void setComments(List comments) { - this.comments = comments; - } - - - public RecordSO createdAt(Long createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * @return createdAt - **/ - @javax.annotation.Nullable - public Long getCreatedAt() { - return createdAt; - } - - - public void setCreatedAt(Long createdAt) { - this.createdAt = createdAt; - } - - - public RecordSO data(Object data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - public Object getData() { - return data; - } - - - public void setData(Object data) { - this.data = data; - } - - - public RecordSO id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public RecordSO recordMeta(RecordMeta recordMeta) { - - this.recordMeta = recordMeta; - return this; - } - - /** - * Get recordMeta - * @return recordMeta - **/ - @javax.annotation.Nullable - public RecordMeta getRecordMeta() { - return recordMeta; - } - - - public void setRecordMeta(RecordMeta recordMeta) { - this.recordMeta = recordMeta; - } - - - public RecordSO revisionHistory(List revisionHistory) { - - this.revisionHistory = revisionHistory; - return this; - } - - public RecordSO addRevisionHistoryItem(Integer revisionHistoryItem) { - if (this.revisionHistory == null) { - this.revisionHistory = new ArrayList<>(); - } - this.revisionHistory.add(revisionHistoryItem); - return this; - } - - /** - * Get revisionHistory - * @return revisionHistory - **/ - @javax.annotation.Nullable - public List getRevisionHistory() { - return revisionHistory; - } - - - public void setRevisionHistory(List revisionHistory) { - this.revisionHistory = revisionHistory; - } - - - public RecordSO updatedAt(Long updatedAt) { - - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * @return updatedAt - **/ - @javax.annotation.Nullable - public Long getUpdatedAt() { - return updatedAt; - } - - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RecordSO recordSO = (RecordSO) o; - return Objects.equals(this.commentCount, recordSO.commentCount) && - Objects.equals(this.comments, recordSO.comments) && - Objects.equals(this.createdAt, recordSO.createdAt) && - Objects.equals(this.data, recordSO.data) && - Objects.equals(this.id, recordSO.id) && - Objects.equals(this.recordMeta, recordSO.recordMeta) && - Objects.equals(this.revisionHistory, recordSO.revisionHistory) && - Objects.equals(this.updatedAt, recordSO.updatedAt); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(commentCount, comments, createdAt, data, id, recordMeta, revisionHistory, updatedAt); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RecordSO {\n"); - sb.append(" commentCount: ").append(toIndentedString(commentCount)).append("\n"); - sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" recordMeta: ").append(toIndentedString(recordMeta)).append("\n"); - sb.append(" revisionHistory: ").append(toIndentedString(revisionHistory)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("commentCount"); - openapiFields.add("comments"); - openapiFields.add("createdAt"); - openapiFields.add("data"); - openapiFields.add("id"); - openapiFields.add("recordMeta"); - openapiFields.add("revisionHistory"); - openapiFields.add("updatedAt"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("commentCount"); - openapiRequiredFields.add("data"); - openapiRequiredFields.add("id"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RecordSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RecordSO is not found in the empty JSON string", RecordSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!RecordSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RecordSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RecordSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("comments") != null && !jsonObj.get("comments").isJsonNull()) { - JsonArray jsonArraycomments = jsonObj.getAsJsonArray("comments"); - if (jsonArraycomments != null) { - // ensure the json data is an array - if (!jsonObj.get("comments").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `comments` to be an array in the JSON string but got `%s`", jsonObj.get("comments").toString())); - } - - // validate the optional field `comments` (array) - for (int i = 0; i < jsonArraycomments.size(); i++) { - Comments.validateJsonElement(jsonArraycomments.get(i)); - }; - } - } - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - // validate the optional field `recordMeta` - if (jsonObj.get("recordMeta") != null && !jsonObj.get("recordMeta").isJsonNull()) { - RecordMeta.validateJsonElement(jsonObj.get("recordMeta")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("revisionHistory") != null && !jsonObj.get("revisionHistory").isJsonNull() && !jsonObj.get("revisionHistory").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `revisionHistory` to be an array in the JSON string but got `%s`", jsonObj.get("revisionHistory").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RecordSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RecordSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RecordSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RecordSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RecordSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RecordSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordSO - * @throws IOException if the JSON string is invalid with respect to RecordSO - */ - public static RecordSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RecordSO.class); - } - - /** - * Convert an instance of RecordSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordUpdateRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordUpdateRO.java deleted file mode 100644 index fd0f27a9f1..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordUpdateRO.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.FieldKeyEnum; -import com.apitable.databusclient.model.FieldUpdateRO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * RecordUpdateRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RecordUpdateRO { - public static final String SERIALIZED_NAME_FIELD_KEY = "fieldKey"; - @SerializedName(SERIALIZED_NAME_FIELD_KEY) - private FieldKeyEnum fieldKey; - - public static final String SERIALIZED_NAME_RECORDS = "records"; - @SerializedName(SERIALIZED_NAME_RECORDS) - private List records = new ArrayList<>(); - - public RecordUpdateRO() { - } - - public RecordUpdateRO fieldKey(FieldKeyEnum fieldKey) { - - this.fieldKey = fieldKey; - return this; - } - - /** - * Get fieldKey - * @return fieldKey - **/ - @javax.annotation.Nonnull - public FieldKeyEnum getFieldKey() { - return fieldKey; - } - - - public void setFieldKey(FieldKeyEnum fieldKey) { - this.fieldKey = fieldKey; - } - - - public RecordUpdateRO records(List records) { - - this.records = records; - return this; - } - - public RecordUpdateRO addRecordsItem(FieldUpdateRO recordsItem) { - if (this.records == null) { - this.records = new ArrayList<>(); - } - this.records.add(recordsItem); - return this; - } - - /** - * Get records - * @return records - **/ - @javax.annotation.Nonnull - public List getRecords() { - return records; - } - - - public void setRecords(List records) { - this.records = records; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RecordUpdateRO recordUpdateRO = (RecordUpdateRO) o; - return Objects.equals(this.fieldKey, recordUpdateRO.fieldKey) && - Objects.equals(this.records, recordUpdateRO.records); - } - - @Override - public int hashCode() { - return Objects.hash(fieldKey, records); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RecordUpdateRO {\n"); - sb.append(" fieldKey: ").append(toIndentedString(fieldKey)).append("\n"); - sb.append(" records: ").append(toIndentedString(records)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fieldKey"); - openapiFields.add("records"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fieldKey"); - openapiRequiredFields.add("records"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordUpdateRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RecordUpdateRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RecordUpdateRO is not found in the empty JSON string", RecordUpdateRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!RecordUpdateRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RecordUpdateRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RecordUpdateRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("records").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `records` to be an array in the JSON string but got `%s`", jsonObj.get("records").toString())); - } - - JsonArray jsonArrayrecords = jsonObj.getAsJsonArray("records"); - // validate the required field `records` (array) - for (int i = 0; i < jsonArrayrecords.size(); i++) { - FieldUpdateRO.validateJsonElement(jsonArrayrecords.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RecordUpdateRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RecordUpdateRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RecordUpdateRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RecordUpdateRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RecordUpdateRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RecordUpdateRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordUpdateRO - * @throws IOException if the JSON string is invalid with respect to RecordUpdateRO - */ - public static RecordUpdateRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RecordUpdateRO.class); - } - - /** - * Convert an instance of RecordUpdateRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordVo.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordVo.java deleted file mode 100644 index effcfbc01c..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/RecordVo.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * RecordVo - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class RecordVo { - public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; - @SerializedName(SERIALIZED_NAME_CREATED_AT) - private Long createdAt; - - public static final String SERIALIZED_NAME_FIELDS = "fields"; - @SerializedName(SERIALIZED_NAME_FIELDS) - private Map fields = new HashMap<>(); - - public static final String SERIALIZED_NAME_RECORD_ID = "recordId"; - @SerializedName(SERIALIZED_NAME_RECORD_ID) - private String recordId; - - public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; - @SerializedName(SERIALIZED_NAME_UPDATED_AT) - private Long updatedAt; - - public RecordVo() { - } - - public RecordVo createdAt(Long createdAt) { - - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * minimum: 0 - * @return createdAt - **/ - @javax.annotation.Nonnull - public Long getCreatedAt() { - return createdAt; - } - - - public void setCreatedAt(Long createdAt) { - this.createdAt = createdAt; - } - - - public RecordVo fields(Map fields) { - - this.fields = fields; - return this; - } - - public RecordVo putFieldsItem(String key, Object fieldsItem) { - if (this.fields == null) { - this.fields = new HashMap<>(); - } - this.fields.put(key, fieldsItem); - return this; - } - - /** - * Get fields - * @return fields - **/ - @javax.annotation.Nonnull - public Map getFields() { - return fields; - } - - - public void setFields(Map fields) { - this.fields = fields; - } - - - public RecordVo recordId(String recordId) { - - this.recordId = recordId; - return this; - } - - /** - * Get recordId - * @return recordId - **/ - @javax.annotation.Nonnull - public String getRecordId() { - return recordId; - } - - - public void setRecordId(String recordId) { - this.recordId = recordId; - } - - - public RecordVo updatedAt(Long updatedAt) { - - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * minimum: 0 - * @return updatedAt - **/ - @javax.annotation.Nonnull - public Long getUpdatedAt() { - return updatedAt; - } - - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RecordVo recordVo = (RecordVo) o; - return Objects.equals(this.createdAt, recordVo.createdAt) && - Objects.equals(this.fields, recordVo.fields) && - Objects.equals(this.recordId, recordVo.recordId) && - Objects.equals(this.updatedAt, recordVo.updatedAt); - } - - @Override - public int hashCode() { - return Objects.hash(createdAt, fields, recordId, updatedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RecordVo {\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("createdAt"); - openapiFields.add("fields"); - openapiFields.add("recordId"); - openapiFields.add("updatedAt"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("createdAt"); - openapiRequiredFields.add("fields"); - openapiRequiredFields.add("recordId"); - openapiRequiredFields.add("updatedAt"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordVo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RecordVo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RecordVo is not found in the empty JSON string", RecordVo.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!RecordVo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RecordVo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : RecordVo.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("recordId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recordId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recordId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RecordVo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RecordVo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RecordVo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RecordVo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RecordVo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RecordVo given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordVo - * @throws IOException if the JSON string is invalid with respect to RecordVo - */ - public static RecordVo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RecordVo.class); - } - - /** - * Convert an instance of RecordVo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/SingleSelectProperty.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/SingleSelectProperty.java deleted file mode 100644 index a0f1c44bfc..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/SingleSelectProperty.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * SingleSelectProperty - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SingleSelectProperty { - public static final String SERIALIZED_NAME_COLOR = "color"; - @SerializedName(SERIALIZED_NAME_COLOR) - private Object color = null; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public SingleSelectProperty() { - } - - public SingleSelectProperty color(Object color) { - - this.color = color; - return this; - } - - /** - * Get color - * @return color - **/ - @javax.annotation.Nullable - public Object getColor() { - return color; - } - - - public void setColor(Object color) { - this.color = color; - } - - - public SingleSelectProperty id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public SingleSelectProperty name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SingleSelectProperty singleSelectProperty = (SingleSelectProperty) o; - return Objects.equals(this.color, singleSelectProperty.color) && - Objects.equals(this.id, singleSelectProperty.id) && - Objects.equals(this.name, singleSelectProperty.name); - } - - @Override - public int hashCode() { - return Objects.hash(color, id, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SingleSelectProperty {\n"); - sb.append(" color: ").append(toIndentedString(color)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("color"); - openapiFields.add("id"); - openapiFields.add("name"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("color"); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("name"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SingleSelectProperty - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SingleSelectProperty.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SingleSelectProperty is not found in the empty JSON string", SingleSelectProperty.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!SingleSelectProperty.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SingleSelectProperty` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SingleSelectProperty.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SingleSelectProperty.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SingleSelectProperty' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SingleSelectProperty.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SingleSelectProperty value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SingleSelectProperty read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SingleSelectProperty given an JSON string - * - * @param jsonString JSON string - * @return An instance of SingleSelectProperty - * @throws IOException if the JSON string is invalid with respect to SingleSelectProperty - */ - public static SingleSelectProperty fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SingleSelectProperty.class); - } - - /** - * Convert an instance of SingleSelectProperty to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/SingleTextFieldPropertySO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/SingleTextFieldPropertySO.java deleted file mode 100644 index f67e6e8cca..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/SingleTextFieldPropertySO.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * SingleTextFieldPropertySO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SingleTextFieldPropertySO { - public static final String SERIALIZED_NAME_DEFAULT_VALUE = "defaultValue"; - @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) - private String defaultValue; - - public SingleTextFieldPropertySO() { - } - - public SingleTextFieldPropertySO defaultValue(String defaultValue) { - - this.defaultValue = defaultValue; - return this; - } - - /** - * Get defaultValue - * @return defaultValue - **/ - @javax.annotation.Nullable - public String getDefaultValue() { - return defaultValue; - } - - - public void setDefaultValue(String defaultValue) { - this.defaultValue = defaultValue; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SingleTextFieldPropertySO singleTextFieldPropertySO = (SingleTextFieldPropertySO) o; - return Objects.equals(this.defaultValue, singleTextFieldPropertySO.defaultValue); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(defaultValue); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SingleTextFieldPropertySO {\n"); - sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("defaultValue"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SingleTextFieldPropertySO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SingleTextFieldPropertySO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SingleTextFieldPropertySO is not found in the empty JSON string", SingleTextFieldPropertySO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!SingleTextFieldPropertySO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SingleTextFieldPropertySO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SingleTextFieldPropertySO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SingleTextFieldPropertySO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SingleTextFieldPropertySO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SingleTextFieldPropertySO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SingleTextFieldPropertySO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SingleTextFieldPropertySO given an JSON string - * - * @param jsonString JSON string - * @return An instance of SingleTextFieldPropertySO - * @throws IOException if the JSON string is invalid with respect to SingleTextFieldPropertySO - */ - public static SingleTextFieldPropertySO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SingleTextFieldPropertySO.class); - } - - /** - * Convert an instance of SingleTextFieldPropertySO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/SortRO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/SortRO.java deleted file mode 100644 index b66a1c433b..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/SortRO.java +++ /dev/null @@ -1,247 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.OrderEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * SortRO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class SortRO { - public static final String SERIALIZED_NAME_FIELD = "field"; - @SerializedName(SERIALIZED_NAME_FIELD) - private String field; - - public static final String SERIALIZED_NAME_ORDER = "order"; - @SerializedName(SERIALIZED_NAME_ORDER) - private OrderEnum order; - - public SortRO() { - } - - public SortRO field(String field) { - - this.field = field; - return this; - } - - /** - * Get field - * @return field - **/ - @javax.annotation.Nonnull - public String getField() { - return field; - } - - - public void setField(String field) { - this.field = field; - } - - - public SortRO order(OrderEnum order) { - - this.order = order; - return this; - } - - /** - * Get order - * @return order - **/ - @javax.annotation.Nonnull - public OrderEnum getOrder() { - return order; - } - - - public void setOrder(OrderEnum order) { - this.order = order; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SortRO sortRO = (SortRO) o; - return Objects.equals(this.field, sortRO.field) && - Objects.equals(this.order, sortRO.order); - } - - @Override - public int hashCode() { - return Objects.hash(field, order); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SortRO {\n"); - sb.append(" field: ").append(toIndentedString(field)).append("\n"); - sb.append(" order: ").append(toIndentedString(order)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("field"); - openapiFields.add("order"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("field"); - openapiRequiredFields.add("order"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SortRO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SortRO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in SortRO is not found in the empty JSON string", SortRO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!SortRO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SortRO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SortRO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("field").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!SortRO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SortRO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SortRO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SortRO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SortRO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of SortRO given an JSON string - * - * @param jsonString JSON string - * @return An instance of SortRO - * @throws IOException if the JSON string is invalid with respect to SortRO - */ - public static SortRO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, SortRO.class); - } - - /** - * Convert an instance of SortRO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/TimeFormat.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/TimeFormat.java deleted file mode 100644 index 4d662ce3c2..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/TimeFormat.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -/** - * Gets or Sets TimeFormat - */ -@JsonAdapter(TimeFormat.Adapter.class) -public enum TimeFormat { - - HHMM("HHmm"); - - private String value; - - TimeFormat(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static TimeFormat fromValue(String value) { - for (TimeFormat b : TimeFormat.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final TimeFormat enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public TimeFormat read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return TimeFormat.fromValue(value); - } - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/UnitSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/UnitSO.java deleted file mode 100644 index 3cbeda080e..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/UnitSO.java +++ /dev/null @@ -1,578 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * UnitSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class UnitSO { - public static final String SERIALIZED_NAME_AVATAR = "avatar"; - @SerializedName(SERIALIZED_NAME_AVATAR) - private String avatar; - - public static final String SERIALIZED_NAME_AVATAR_COLOR = "avatarColor"; - @SerializedName(SERIALIZED_NAME_AVATAR_COLOR) - private Integer avatarColor; - - public static final String SERIALIZED_NAME_IS_ACTIVE = "isActive"; - @SerializedName(SERIALIZED_NAME_IS_ACTIVE) - private Integer isActive; - - public static final String SERIALIZED_NAME_IS_DELETED = "isDeleted"; - @SerializedName(SERIALIZED_NAME_IS_DELETED) - private Integer isDeleted; - - public static final String SERIALIZED_NAME_IS_MEMBER_NAME_MODIFIED = "isMemberNameModified"; - @SerializedName(SERIALIZED_NAME_IS_MEMBER_NAME_MODIFIED) - private Boolean isMemberNameModified; - - public static final String SERIALIZED_NAME_IS_NICK_NAME_MODIFIED = "isNickNameModified"; - @SerializedName(SERIALIZED_NAME_IS_NICK_NAME_MODIFIED) - private Boolean isNickNameModified; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_NICK_NAME = "nickName"; - @SerializedName(SERIALIZED_NAME_NICK_NAME) - private String nickName; - - public static final String SERIALIZED_NAME_ORIGINAL_UNIT_ID = "originalUnitId"; - @SerializedName(SERIALIZED_NAME_ORIGINAL_UNIT_ID) - private String originalUnitId; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Integer type; - - public static final String SERIALIZED_NAME_UNIT_ID = "unitId"; - @SerializedName(SERIALIZED_NAME_UNIT_ID) - private String unitId; - - public static final String SERIALIZED_NAME_USER_ID = "userId"; - @SerializedName(SERIALIZED_NAME_USER_ID) - private String userId; - - public static final String SERIALIZED_NAME_UUID = "uuid"; - @SerializedName(SERIALIZED_NAME_UUID) - private String uuid; - - public UnitSO() { - } - - public UnitSO avatar(String avatar) { - - this.avatar = avatar; - return this; - } - - /** - * Get avatar - * @return avatar - **/ - @javax.annotation.Nullable - public String getAvatar() { - return avatar; - } - - - public void setAvatar(String avatar) { - this.avatar = avatar; - } - - - public UnitSO avatarColor(Integer avatarColor) { - - this.avatarColor = avatarColor; - return this; - } - - /** - * Get avatarColor - * @return avatarColor - **/ - @javax.annotation.Nullable - public Integer getAvatarColor() { - return avatarColor; - } - - - public void setAvatarColor(Integer avatarColor) { - this.avatarColor = avatarColor; - } - - - public UnitSO isActive(Integer isActive) { - - this.isActive = isActive; - return this; - } - - /** - * Get isActive - * minimum: 0 - * @return isActive - **/ - @javax.annotation.Nullable - public Integer getIsActive() { - return isActive; - } - - - public void setIsActive(Integer isActive) { - this.isActive = isActive; - } - - - public UnitSO isDeleted(Integer isDeleted) { - - this.isDeleted = isDeleted; - return this; - } - - /** - * Get isDeleted - * minimum: 0 - * @return isDeleted - **/ - @javax.annotation.Nullable - public Integer getIsDeleted() { - return isDeleted; - } - - - public void setIsDeleted(Integer isDeleted) { - this.isDeleted = isDeleted; - } - - - public UnitSO isMemberNameModified(Boolean isMemberNameModified) { - - this.isMemberNameModified = isMemberNameModified; - return this; - } - - /** - * Get isMemberNameModified - * @return isMemberNameModified - **/ - @javax.annotation.Nullable - public Boolean getIsMemberNameModified() { - return isMemberNameModified; - } - - - public void setIsMemberNameModified(Boolean isMemberNameModified) { - this.isMemberNameModified = isMemberNameModified; - } - - - public UnitSO isNickNameModified(Boolean isNickNameModified) { - - this.isNickNameModified = isNickNameModified; - return this; - } - - /** - * Get isNickNameModified - * @return isNickNameModified - **/ - @javax.annotation.Nullable - public Boolean getIsNickNameModified() { - return isNickNameModified; - } - - - public void setIsNickNameModified(Boolean isNickNameModified) { - this.isNickNameModified = isNickNameModified; - } - - - public UnitSO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nullable - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public UnitSO nickName(String nickName) { - - this.nickName = nickName; - return this; - } - - /** - * Get nickName - * @return nickName - **/ - @javax.annotation.Nullable - public String getNickName() { - return nickName; - } - - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - - public UnitSO originalUnitId(String originalUnitId) { - - this.originalUnitId = originalUnitId; - return this; - } - - /** - * Get originalUnitId - * @return originalUnitId - **/ - @javax.annotation.Nullable - public String getOriginalUnitId() { - return originalUnitId; - } - - - public void setOriginalUnitId(String originalUnitId) { - this.originalUnitId = originalUnitId; - } - - - public UnitSO type(Integer type) { - - this.type = type; - return this; - } - - /** - * Get type - * minimum: 0 - * @return type - **/ - @javax.annotation.Nullable - public Integer getType() { - return type; - } - - - public void setType(Integer type) { - this.type = type; - } - - - public UnitSO unitId(String unitId) { - - this.unitId = unitId; - return this; - } - - /** - * Get unitId - * @return unitId - **/ - @javax.annotation.Nullable - public String getUnitId() { - return unitId; - } - - - public void setUnitId(String unitId) { - this.unitId = unitId; - } - - - public UnitSO userId(String userId) { - - this.userId = userId; - return this; - } - - /** - * Get userId - * @return userId - **/ - @javax.annotation.Nullable - public String getUserId() { - return userId; - } - - - public void setUserId(String userId) { - this.userId = userId; - } - - - public UnitSO uuid(String uuid) { - - this.uuid = uuid; - return this; - } - - /** - * Get uuid - * @return uuid - **/ - @javax.annotation.Nullable - public String getUuid() { - return uuid; - } - - - public void setUuid(String uuid) { - this.uuid = uuid; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UnitSO unitSO = (UnitSO) o; - return Objects.equals(this.avatar, unitSO.avatar) && - Objects.equals(this.avatarColor, unitSO.avatarColor) && - Objects.equals(this.isActive, unitSO.isActive) && - Objects.equals(this.isDeleted, unitSO.isDeleted) && - Objects.equals(this.isMemberNameModified, unitSO.isMemberNameModified) && - Objects.equals(this.isNickNameModified, unitSO.isNickNameModified) && - Objects.equals(this.name, unitSO.name) && - Objects.equals(this.nickName, unitSO.nickName) && - Objects.equals(this.originalUnitId, unitSO.originalUnitId) && - Objects.equals(this.type, unitSO.type) && - Objects.equals(this.unitId, unitSO.unitId) && - Objects.equals(this.userId, unitSO.userId) && - Objects.equals(this.uuid, unitSO.uuid); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(avatar, avatarColor, isActive, isDeleted, isMemberNameModified, isNickNameModified, name, nickName, originalUnitId, type, unitId, userId, uuid); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnitSO {\n"); - sb.append(" avatar: ").append(toIndentedString(avatar)).append("\n"); - sb.append(" avatarColor: ").append(toIndentedString(avatarColor)).append("\n"); - sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); - sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); - sb.append(" isMemberNameModified: ").append(toIndentedString(isMemberNameModified)).append("\n"); - sb.append(" isNickNameModified: ").append(toIndentedString(isNickNameModified)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nickName: ").append(toIndentedString(nickName)).append("\n"); - sb.append(" originalUnitId: ").append(toIndentedString(originalUnitId)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" unitId: ").append(toIndentedString(unitId)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("avatar"); - openapiFields.add("avatarColor"); - openapiFields.add("isActive"); - openapiFields.add("isDeleted"); - openapiFields.add("isMemberNameModified"); - openapiFields.add("isNickNameModified"); - openapiFields.add("name"); - openapiFields.add("nickName"); - openapiFields.add("originalUnitId"); - openapiFields.add("type"); - openapiFields.add("unitId"); - openapiFields.add("userId"); - openapiFields.add("uuid"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UnitSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UnitSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in UnitSO is not found in the empty JSON string", UnitSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!UnitSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UnitSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("avatar") != null && !jsonObj.get("avatar").isJsonNull()) && !jsonObj.get("avatar").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `avatar` to be a primitive type in the JSON string but got `%s`", jsonObj.get("avatar").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("nickName") != null && !jsonObj.get("nickName").isJsonNull()) && !jsonObj.get("nickName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nickName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nickName").toString())); - } - if ((jsonObj.get("originalUnitId") != null && !jsonObj.get("originalUnitId").isJsonNull()) && !jsonObj.get("originalUnitId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `originalUnitId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("originalUnitId").toString())); - } - if ((jsonObj.get("unitId") != null && !jsonObj.get("unitId").isJsonNull()) && !jsonObj.get("unitId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `unitId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitId").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UnitSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UnitSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UnitSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UnitSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UnitSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of UnitSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of UnitSO - * @throws IOException if the JSON string is invalid with respect to UnitSO - */ - public static UnitSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UnitSO.class); - } - - /** - * Convert an instance of UnitSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewColumnSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewColumnSO.java deleted file mode 100644 index 373df15001..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewColumnSO.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ViewColumnSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ViewColumnSO { - public static final String SERIALIZED_NAME_FIELD_ID = "fieldId"; - @SerializedName(SERIALIZED_NAME_FIELD_ID) - private String fieldId; - - public static final String SERIALIZED_NAME_HIDDEN = "hidden"; - @SerializedName(SERIALIZED_NAME_HIDDEN) - private Boolean hidden; - - public static final String SERIALIZED_NAME_HIDDEN_IN_CALENDAR = "hiddenInCalendar"; - @SerializedName(SERIALIZED_NAME_HIDDEN_IN_CALENDAR) - private Boolean hiddenInCalendar; - - public static final String SERIALIZED_NAME_HIDDEN_IN_GANTT = "hiddenInGantt"; - @SerializedName(SERIALIZED_NAME_HIDDEN_IN_GANTT) - private Boolean hiddenInGantt; - - public static final String SERIALIZED_NAME_HIDDEN_IN_ORG_CHART = "hiddenInOrgChart"; - @SerializedName(SERIALIZED_NAME_HIDDEN_IN_ORG_CHART) - private Boolean hiddenInOrgChart; - - public static final String SERIALIZED_NAME_STAT_TYPE = "statType"; - @SerializedName(SERIALIZED_NAME_STAT_TYPE) - private Integer statType; - - public static final String SERIALIZED_NAME_WIDTH = "width"; - @SerializedName(SERIALIZED_NAME_WIDTH) - private Double width; - - public ViewColumnSO() { - } - - public ViewColumnSO fieldId(String fieldId) { - - this.fieldId = fieldId; - return this; - } - - /** - * Get fieldId - * @return fieldId - **/ - @javax.annotation.Nonnull - public String getFieldId() { - return fieldId; - } - - - public void setFieldId(String fieldId) { - this.fieldId = fieldId; - } - - - public ViewColumnSO hidden(Boolean hidden) { - - this.hidden = hidden; - return this; - } - - /** - * Get hidden - * @return hidden - **/ - @javax.annotation.Nullable - public Boolean getHidden() { - return hidden; - } - - - public void setHidden(Boolean hidden) { - this.hidden = hidden; - } - - - public ViewColumnSO hiddenInCalendar(Boolean hiddenInCalendar) { - - this.hiddenInCalendar = hiddenInCalendar; - return this; - } - - /** - * Get hiddenInCalendar - * @return hiddenInCalendar - **/ - @javax.annotation.Nullable - public Boolean getHiddenInCalendar() { - return hiddenInCalendar; - } - - - public void setHiddenInCalendar(Boolean hiddenInCalendar) { - this.hiddenInCalendar = hiddenInCalendar; - } - - - public ViewColumnSO hiddenInGantt(Boolean hiddenInGantt) { - - this.hiddenInGantt = hiddenInGantt; - return this; - } - - /** - * Get hiddenInGantt - * @return hiddenInGantt - **/ - @javax.annotation.Nullable - public Boolean getHiddenInGantt() { - return hiddenInGantt; - } - - - public void setHiddenInGantt(Boolean hiddenInGantt) { - this.hiddenInGantt = hiddenInGantt; - } - - - public ViewColumnSO hiddenInOrgChart(Boolean hiddenInOrgChart) { - - this.hiddenInOrgChart = hiddenInOrgChart; - return this; - } - - /** - * Get hiddenInOrgChart - * @return hiddenInOrgChart - **/ - @javax.annotation.Nullable - public Boolean getHiddenInOrgChart() { - return hiddenInOrgChart; - } - - - public void setHiddenInOrgChart(Boolean hiddenInOrgChart) { - this.hiddenInOrgChart = hiddenInOrgChart; - } - - - public ViewColumnSO statType(Integer statType) { - - this.statType = statType; - return this; - } - - /** - * Get statType - * @return statType - **/ - @javax.annotation.Nullable - public Integer getStatType() { - return statType; - } - - - public void setStatType(Integer statType) { - this.statType = statType; - } - - - public ViewColumnSO width(Double width) { - - this.width = width; - return this; - } - - /** - * Get width - * @return width - **/ - @javax.annotation.Nullable - public Double getWidth() { - return width; - } - - - public void setWidth(Double width) { - this.width = width; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ViewColumnSO viewColumnSO = (ViewColumnSO) o; - return Objects.equals(this.fieldId, viewColumnSO.fieldId) && - Objects.equals(this.hidden, viewColumnSO.hidden) && - Objects.equals(this.hiddenInCalendar, viewColumnSO.hiddenInCalendar) && - Objects.equals(this.hiddenInGantt, viewColumnSO.hiddenInGantt) && - Objects.equals(this.hiddenInOrgChart, viewColumnSO.hiddenInOrgChart) && - Objects.equals(this.statType, viewColumnSO.statType) && - Objects.equals(this.width, viewColumnSO.width); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(fieldId, hidden, hiddenInCalendar, hiddenInGantt, hiddenInOrgChart, statType, width); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ViewColumnSO {\n"); - sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); - sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); - sb.append(" hiddenInCalendar: ").append(toIndentedString(hiddenInCalendar)).append("\n"); - sb.append(" hiddenInGantt: ").append(toIndentedString(hiddenInGantt)).append("\n"); - sb.append(" hiddenInOrgChart: ").append(toIndentedString(hiddenInOrgChart)).append("\n"); - sb.append(" statType: ").append(toIndentedString(statType)).append("\n"); - sb.append(" width: ").append(toIndentedString(width)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fieldId"); - openapiFields.add("hidden"); - openapiFields.add("hiddenInCalendar"); - openapiFields.add("hiddenInGantt"); - openapiFields.add("hiddenInOrgChart"); - openapiFields.add("statType"); - openapiFields.add("width"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fieldId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ViewColumnSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ViewColumnSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ViewColumnSO is not found in the empty JSON string", ViewColumnSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ViewColumnSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ViewColumnSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ViewColumnSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("fieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ViewColumnSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ViewColumnSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ViewColumnSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ViewColumnSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ViewColumnSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ViewColumnSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ViewColumnSO - * @throws IOException if the JSON string is invalid with respect to ViewColumnSO - */ - public static ViewColumnSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ViewColumnSO.class); - } - - /** - * Convert an instance of ViewColumnSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewRowSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewRowSO.java deleted file mode 100644 index ce1fd3fd47..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewRowSO.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ViewRowSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ViewRowSO { - public static final String SERIALIZED_NAME_HIDDEN = "hidden"; - @SerializedName(SERIALIZED_NAME_HIDDEN) - private Boolean hidden; - - public static final String SERIALIZED_NAME_RECORD_ID = "recordId"; - @SerializedName(SERIALIZED_NAME_RECORD_ID) - private String recordId; - - public ViewRowSO() { - } - - public ViewRowSO hidden(Boolean hidden) { - - this.hidden = hidden; - return this; - } - - /** - * Get hidden - * @return hidden - **/ - @javax.annotation.Nullable - public Boolean getHidden() { - return hidden; - } - - - public void setHidden(Boolean hidden) { - this.hidden = hidden; - } - - - public ViewRowSO recordId(String recordId) { - - this.recordId = recordId; - return this; - } - - /** - * Get recordId - * @return recordId - **/ - @javax.annotation.Nonnull - public String getRecordId() { - return recordId; - } - - - public void setRecordId(String recordId) { - this.recordId = recordId; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ViewRowSO viewRowSO = (ViewRowSO) o; - return Objects.equals(this.hidden, viewRowSO.hidden) && - Objects.equals(this.recordId, viewRowSO.recordId); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(hidden, recordId); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ViewRowSO {\n"); - sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); - sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hidden"); - openapiFields.add("recordId"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("recordId"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ViewRowSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ViewRowSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ViewRowSO is not found in the empty JSON string", ViewRowSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ViewRowSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ViewRowSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ViewRowSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("recordId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recordId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recordId").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ViewRowSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ViewRowSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ViewRowSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ViewRowSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ViewRowSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ViewRowSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ViewRowSO - * @throws IOException if the JSON string is invalid with respect to ViewRowSO - */ - public static ViewRowSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ViewRowSO.class); - } - - /** - * Convert an instance of ViewRowSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewSO.java deleted file mode 100644 index f518d837cb..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewSO.java +++ /dev/null @@ -1,771 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.IFilterInfo; -import com.apitable.databusclient.model.ISortInfo; -import com.apitable.databusclient.model.ISortedField; -import com.apitable.databusclient.model.IViewLockInfo; -import com.apitable.databusclient.model.ViewColumnSO; -import com.apitable.databusclient.model.ViewRowSO; -import com.apitable.databusclient.model.ViewStyleSo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * ViewSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ViewSO { - public static final String SERIALIZED_NAME_AUTO_HEAD_HEIGHT = "autoHeadHeight"; - @SerializedName(SERIALIZED_NAME_AUTO_HEAD_HEIGHT) - private Boolean autoHeadHeight; - - public static final String SERIALIZED_NAME_AUTO_SAVE = "autoSave"; - @SerializedName(SERIALIZED_NAME_AUTO_SAVE) - private Boolean autoSave; - - public static final String SERIALIZED_NAME_COLUMNS = "columns"; - @SerializedName(SERIALIZED_NAME_COLUMNS) - private List columns = new ArrayList<>(); - - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_DISPLAY_HIDDEN_COLUMN_WITHIN_MIRROR = "displayHiddenColumnWithinMirror"; - @SerializedName(SERIALIZED_NAME_DISPLAY_HIDDEN_COLUMN_WITHIN_MIRROR) - private Boolean displayHiddenColumnWithinMirror; - - public static final String SERIALIZED_NAME_FILTER_INFO = "filterInfo"; - @SerializedName(SERIALIZED_NAME_FILTER_INFO) - private IFilterInfo filterInfo; - - public static final String SERIALIZED_NAME_FROZEN_COLUMN_COUNT = "frozenColumnCount"; - @SerializedName(SERIALIZED_NAME_FROZEN_COLUMN_COUNT) - private Integer frozenColumnCount; - - public static final String SERIALIZED_NAME_GROUP_INFO = "groupInfo"; - @SerializedName(SERIALIZED_NAME_GROUP_INFO) - private List groupInfo; - - public static final String SERIALIZED_NAME_HIDDEN = "hidden"; - @SerializedName(SERIALIZED_NAME_HIDDEN) - private Boolean hidden; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_LOCK_INFO = "lockInfo"; - @SerializedName(SERIALIZED_NAME_LOCK_INFO) - private IViewLockInfo lockInfo; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_ROW_HEIGHT_LEVEL = "rowHeightLevel"; - @SerializedName(SERIALIZED_NAME_ROW_HEIGHT_LEVEL) - private Integer rowHeightLevel; - - public static final String SERIALIZED_NAME_ROWS = "rows"; - @SerializedName(SERIALIZED_NAME_ROWS) - private List rows; - - public static final String SERIALIZED_NAME_SORT_INFO = "sortInfo"; - @SerializedName(SERIALIZED_NAME_SORT_INFO) - private ISortInfo sortInfo; - - public static final String SERIALIZED_NAME_STYLE = "style"; - @SerializedName(SERIALIZED_NAME_STYLE) - private ViewStyleSo style; - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private Long type; - - public ViewSO() { - } - - public ViewSO autoHeadHeight(Boolean autoHeadHeight) { - - this.autoHeadHeight = autoHeadHeight; - return this; - } - - /** - * Get autoHeadHeight - * @return autoHeadHeight - **/ - @javax.annotation.Nullable - public Boolean getAutoHeadHeight() { - return autoHeadHeight; - } - - - public void setAutoHeadHeight(Boolean autoHeadHeight) { - this.autoHeadHeight = autoHeadHeight; - } - - - public ViewSO autoSave(Boolean autoSave) { - - this.autoSave = autoSave; - return this; - } - - /** - * Get autoSave - * @return autoSave - **/ - @javax.annotation.Nullable - public Boolean getAutoSave() { - return autoSave; - } - - - public void setAutoSave(Boolean autoSave) { - this.autoSave = autoSave; - } - - - public ViewSO columns(List columns) { - - this.columns = columns; - return this; - } - - public ViewSO addColumnsItem(ViewColumnSO columnsItem) { - if (this.columns == null) { - this.columns = new ArrayList<>(); - } - this.columns.add(columnsItem); - return this; - } - - /** - * Get columns - * @return columns - **/ - @javax.annotation.Nonnull - public List getColumns() { - return columns; - } - - - public void setColumns(List columns) { - this.columns = columns; - } - - - public ViewSO description(String description) { - - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @javax.annotation.Nullable - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public ViewSO displayHiddenColumnWithinMirror(Boolean displayHiddenColumnWithinMirror) { - - this.displayHiddenColumnWithinMirror = displayHiddenColumnWithinMirror; - return this; - } - - /** - * Get displayHiddenColumnWithinMirror - * @return displayHiddenColumnWithinMirror - **/ - @javax.annotation.Nullable - public Boolean getDisplayHiddenColumnWithinMirror() { - return displayHiddenColumnWithinMirror; - } - - - public void setDisplayHiddenColumnWithinMirror(Boolean displayHiddenColumnWithinMirror) { - this.displayHiddenColumnWithinMirror = displayHiddenColumnWithinMirror; - } - - - public ViewSO filterInfo(IFilterInfo filterInfo) { - - this.filterInfo = filterInfo; - return this; - } - - /** - * Get filterInfo - * @return filterInfo - **/ - @javax.annotation.Nullable - public IFilterInfo getFilterInfo() { - return filterInfo; - } - - - public void setFilterInfo(IFilterInfo filterInfo) { - this.filterInfo = filterInfo; - } - - - public ViewSO frozenColumnCount(Integer frozenColumnCount) { - - this.frozenColumnCount = frozenColumnCount; - return this; - } - - /** - * Get frozenColumnCount - * @return frozenColumnCount - **/ - @javax.annotation.Nullable - public Integer getFrozenColumnCount() { - return frozenColumnCount; - } - - - public void setFrozenColumnCount(Integer frozenColumnCount) { - this.frozenColumnCount = frozenColumnCount; - } - - - public ViewSO groupInfo(List groupInfo) { - - this.groupInfo = groupInfo; - return this; - } - - public ViewSO addGroupInfoItem(ISortedField groupInfoItem) { - if (this.groupInfo == null) { - this.groupInfo = new ArrayList<>(); - } - this.groupInfo.add(groupInfoItem); - return this; - } - - /** - * Get groupInfo - * @return groupInfo - **/ - @javax.annotation.Nullable - public List getGroupInfo() { - return groupInfo; - } - - - public void setGroupInfo(List groupInfo) { - this.groupInfo = groupInfo; - } - - - public ViewSO hidden(Boolean hidden) { - - this.hidden = hidden; - return this; - } - - /** - * Get hidden - * @return hidden - **/ - @javax.annotation.Nullable - public Boolean getHidden() { - return hidden; - } - - - public void setHidden(Boolean hidden) { - this.hidden = hidden; - } - - - public ViewSO id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nullable - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public ViewSO lockInfo(IViewLockInfo lockInfo) { - - this.lockInfo = lockInfo; - return this; - } - - /** - * Get lockInfo - * @return lockInfo - **/ - @javax.annotation.Nullable - public IViewLockInfo getLockInfo() { - return lockInfo; - } - - - public void setLockInfo(IViewLockInfo lockInfo) { - this.lockInfo = lockInfo; - } - - - public ViewSO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nullable - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public ViewSO rowHeightLevel(Integer rowHeightLevel) { - - this.rowHeightLevel = rowHeightLevel; - return this; - } - - /** - * Get rowHeightLevel - * @return rowHeightLevel - **/ - @javax.annotation.Nullable - public Integer getRowHeightLevel() { - return rowHeightLevel; - } - - - public void setRowHeightLevel(Integer rowHeightLevel) { - this.rowHeightLevel = rowHeightLevel; - } - - - public ViewSO rows(List rows) { - - this.rows = rows; - return this; - } - - public ViewSO addRowsItem(ViewRowSO rowsItem) { - if (this.rows == null) { - this.rows = new ArrayList<>(); - } - this.rows.add(rowsItem); - return this; - } - - /** - * Get rows - * @return rows - **/ - @javax.annotation.Nullable - public List getRows() { - return rows; - } - - - public void setRows(List rows) { - this.rows = rows; - } - - - public ViewSO sortInfo(ISortInfo sortInfo) { - - this.sortInfo = sortInfo; - return this; - } - - /** - * Get sortInfo - * @return sortInfo - **/ - @javax.annotation.Nullable - public ISortInfo getSortInfo() { - return sortInfo; - } - - - public void setSortInfo(ISortInfo sortInfo) { - this.sortInfo = sortInfo; - } - - - public ViewSO style(ViewStyleSo style) { - - this.style = style; - return this; - } - - /** - * Get style - * @return style - **/ - @javax.annotation.Nullable - public ViewStyleSo getStyle() { - return style; - } - - - public void setStyle(ViewStyleSo style) { - this.style = style; - } - - - public ViewSO type(Long type) { - - this.type = type; - return this; - } - - /** - * Get type - * minimum: 0 - * @return type - **/ - @javax.annotation.Nullable - public Long getType() { - return type; - } - - - public void setType(Long type) { - this.type = type; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ViewSO viewSO = (ViewSO) o; - return Objects.equals(this.autoHeadHeight, viewSO.autoHeadHeight) && - Objects.equals(this.autoSave, viewSO.autoSave) && - Objects.equals(this.columns, viewSO.columns) && - Objects.equals(this.description, viewSO.description) && - Objects.equals(this.displayHiddenColumnWithinMirror, viewSO.displayHiddenColumnWithinMirror) && - Objects.equals(this.filterInfo, viewSO.filterInfo) && - Objects.equals(this.frozenColumnCount, viewSO.frozenColumnCount) && - Objects.equals(this.groupInfo, viewSO.groupInfo) && - Objects.equals(this.hidden, viewSO.hidden) && - Objects.equals(this.id, viewSO.id) && - Objects.equals(this.lockInfo, viewSO.lockInfo) && - Objects.equals(this.name, viewSO.name) && - Objects.equals(this.rowHeightLevel, viewSO.rowHeightLevel) && - Objects.equals(this.rows, viewSO.rows) && - Objects.equals(this.sortInfo, viewSO.sortInfo) && - Objects.equals(this.style, viewSO.style) && - Objects.equals(this.type, viewSO.type); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(autoHeadHeight, autoSave, columns, description, displayHiddenColumnWithinMirror, filterInfo, frozenColumnCount, groupInfo, hidden, id, lockInfo, name, rowHeightLevel, rows, sortInfo, style, type); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ViewSO {\n"); - sb.append(" autoHeadHeight: ").append(toIndentedString(autoHeadHeight)).append("\n"); - sb.append(" autoSave: ").append(toIndentedString(autoSave)).append("\n"); - sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" displayHiddenColumnWithinMirror: ").append(toIndentedString(displayHiddenColumnWithinMirror)).append("\n"); - sb.append(" filterInfo: ").append(toIndentedString(filterInfo)).append("\n"); - sb.append(" frozenColumnCount: ").append(toIndentedString(frozenColumnCount)).append("\n"); - sb.append(" groupInfo: ").append(toIndentedString(groupInfo)).append("\n"); - sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" lockInfo: ").append(toIndentedString(lockInfo)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" rowHeightLevel: ").append(toIndentedString(rowHeightLevel)).append("\n"); - sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); - sb.append(" sortInfo: ").append(toIndentedString(sortInfo)).append("\n"); - sb.append(" style: ").append(toIndentedString(style)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("autoHeadHeight"); - openapiFields.add("autoSave"); - openapiFields.add("columns"); - openapiFields.add("description"); - openapiFields.add("displayHiddenColumnWithinMirror"); - openapiFields.add("filterInfo"); - openapiFields.add("frozenColumnCount"); - openapiFields.add("groupInfo"); - openapiFields.add("hidden"); - openapiFields.add("id"); - openapiFields.add("lockInfo"); - openapiFields.add("name"); - openapiFields.add("rowHeightLevel"); - openapiFields.add("rows"); - openapiFields.add("sortInfo"); - openapiFields.add("style"); - openapiFields.add("type"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("columns"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ViewSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ViewSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ViewSO is not found in the empty JSON string", ViewSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ViewSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ViewSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ViewSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("columns").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `columns` to be an array in the JSON string but got `%s`", jsonObj.get("columns").toString())); - } - - JsonArray jsonArraycolumns = jsonObj.getAsJsonArray("columns"); - // validate the required field `columns` (array) - for (int i = 0; i < jsonArraycolumns.size(); i++) { - ViewColumnSO.validateJsonElement(jsonArraycolumns.get(i)); - }; - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `filterInfo` - if (jsonObj.get("filterInfo") != null && !jsonObj.get("filterInfo").isJsonNull()) { - IFilterInfo.validateJsonElement(jsonObj.get("filterInfo")); - } - if (jsonObj.get("groupInfo") != null && !jsonObj.get("groupInfo").isJsonNull()) { - JsonArray jsonArraygroupInfo = jsonObj.getAsJsonArray("groupInfo"); - if (jsonArraygroupInfo != null) { - // ensure the json data is an array - if (!jsonObj.get("groupInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `groupInfo` to be an array in the JSON string but got `%s`", jsonObj.get("groupInfo").toString())); - } - - // validate the optional field `groupInfo` (array) - for (int i = 0; i < jsonArraygroupInfo.size(); i++) { - ISortedField.validateJsonElement(jsonArraygroupInfo.get(i)); - }; - } - } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - // validate the optional field `lockInfo` - if (jsonObj.get("lockInfo") != null && !jsonObj.get("lockInfo").isJsonNull()) { - IViewLockInfo.validateJsonElement(jsonObj.get("lockInfo")); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("rows") != null && !jsonObj.get("rows").isJsonNull()) { - JsonArray jsonArrayrows = jsonObj.getAsJsonArray("rows"); - if (jsonArrayrows != null) { - // ensure the json data is an array - if (!jsonObj.get("rows").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `rows` to be an array in the JSON string but got `%s`", jsonObj.get("rows").toString())); - } - - // validate the optional field `rows` (array) - for (int i = 0; i < jsonArrayrows.size(); i++) { - ViewRowSO.validateJsonElement(jsonArrayrows.get(i)); - }; - } - } - // validate the optional field `sortInfo` - if (jsonObj.get("sortInfo") != null && !jsonObj.get("sortInfo").isJsonNull()) { - ISortInfo.validateJsonElement(jsonObj.get("sortInfo")); - } - // validate the optional field `style` - if (jsonObj.get("style") != null && !jsonObj.get("style").isJsonNull()) { - ViewStyleSo.validateJsonElement(jsonObj.get("style")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ViewSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ViewSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ViewSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ViewSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ViewSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ViewSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of ViewSO - * @throws IOException if the JSON string is invalid with respect to ViewSO - */ - public static ViewSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ViewSO.class); - } - - /** - * Convert an instance of ViewSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetInPanelSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetInPanelSO.java deleted file mode 100644 index 53aa6921e2..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetInPanelSO.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * WidgetInPanelSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class WidgetInPanelSO { - public static final String SERIALIZED_NAME_HEIGHT = "height"; - @SerializedName(SERIALIZED_NAME_HEIGHT) - private Double height; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_Y = "y"; - @SerializedName(SERIALIZED_NAME_Y) - private Double y; - - public WidgetInPanelSO() { - } - - public WidgetInPanelSO height(Double height) { - - this.height = height; - return this; - } - - /** - * Get height - * @return height - **/ - @javax.annotation.Nonnull - public Double getHeight() { - return height; - } - - - public void setHeight(Double height) { - this.height = height; - } - - - public WidgetInPanelSO id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public WidgetInPanelSO y(Double y) { - - this.y = y; - return this; - } - - /** - * Get y - * @return y - **/ - @javax.annotation.Nonnull - public Double getY() { - return y; - } - - - public void setY(Double y) { - this.y = y; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WidgetInPanelSO widgetInPanelSO = (WidgetInPanelSO) o; - return Objects.equals(this.height, widgetInPanelSO.height) && - Objects.equals(this.id, widgetInPanelSO.id) && - Objects.equals(this.y, widgetInPanelSO.y); - } - - @Override - public int hashCode() { - return Objects.hash(height, id, y); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class WidgetInPanelSO {\n"); - sb.append(" height: ").append(toIndentedString(height)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" y: ").append(toIndentedString(y)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("height"); - openapiFields.add("id"); - openapiFields.add("y"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("height"); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("y"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to WidgetInPanelSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WidgetInPanelSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WidgetInPanelSO is not found in the empty JSON string", WidgetInPanelSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!WidgetInPanelSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `WidgetInPanelSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : WidgetInPanelSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!WidgetInPanelSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WidgetInPanelSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WidgetInPanelSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WidgetInPanelSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WidgetInPanelSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of WidgetInPanelSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of WidgetInPanelSO - * @throws IOException if the JSON string is invalid with respect to WidgetInPanelSO - */ - public static WidgetInPanelSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, WidgetInPanelSO.class); - } - - /** - * Convert an instance of WidgetInPanelSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetPanelSO.java b/backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetPanelSO.java deleted file mode 100644 index cca1e93f20..0000000000 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/WidgetPanelSO.java +++ /dev/null @@ -1,299 +0,0 @@ -/* - * databus-server - * databus-server APIs - * - * The version of the OpenAPI document: 1.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.apitable.databusclient.model; - -import java.util.Objects; -import com.apitable.databusclient.model.WidgetInPanelSO; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; - -/** - * WidgetPanelSO - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class WidgetPanelSO { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_WIDGETS = "widgets"; - @SerializedName(SERIALIZED_NAME_WIDGETS) - private List widgets = new ArrayList<>(); - - public WidgetPanelSO() { - } - - public WidgetPanelSO id(String id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nonnull - public String getId() { - return id; - } - - - public void setId(String id) { - this.id = id; - } - - - public WidgetPanelSO name(String name) { - - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public WidgetPanelSO widgets(List widgets) { - - this.widgets = widgets; - return this; - } - - public WidgetPanelSO addWidgetsItem(WidgetInPanelSO widgetsItem) { - if (this.widgets == null) { - this.widgets = new ArrayList<>(); - } - this.widgets.add(widgetsItem); - return this; - } - - /** - * Get widgets - * @return widgets - **/ - @javax.annotation.Nonnull - public List getWidgets() { - return widgets; - } - - - public void setWidgets(List widgets) { - this.widgets = widgets; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WidgetPanelSO widgetPanelSO = (WidgetPanelSO) o; - return Objects.equals(this.id, widgetPanelSO.id) && - Objects.equals(this.name, widgetPanelSO.name) && - Objects.equals(this.widgets, widgetPanelSO.widgets); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, widgets); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class WidgetPanelSO {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" widgets: ").append(toIndentedString(widgets)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("id"); - openapiFields.add("name"); - openapiFields.add("widgets"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("id"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("widgets"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to WidgetPanelSO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WidgetPanelSO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in WidgetPanelSO is not found in the empty JSON string", WidgetPanelSO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!WidgetPanelSO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `WidgetPanelSO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : WidgetPanelSO.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the json data is an array - if (!jsonObj.get("widgets").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `widgets` to be an array in the JSON string but got `%s`", jsonObj.get("widgets").toString())); - } - - JsonArray jsonArraywidgets = jsonObj.getAsJsonArray("widgets"); - // validate the required field `widgets` (array) - for (int i = 0; i < jsonArraywidgets.size(); i++) { - WidgetInPanelSO.validateJsonElement(jsonArraywidgets.get(i)); - }; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!WidgetPanelSO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WidgetPanelSO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WidgetPanelSO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WidgetPanelSO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WidgetPanelSO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of WidgetPanelSO given an JSON string - * - * @param jsonString JSON string - * @return An instance of WidgetPanelSO - * @throws IOException if the JSON string is invalid with respect to WidgetPanelSO - */ - public static WidgetPanelSO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, WidgetPanelSO.class); - } - - /** - * Convert an instance of WidgetPanelSO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/DefaultSubscriptionFeature.java b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/DefaultSubscriptionFeature.java index f407b4f478..535854039c 100644 --- a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/DefaultSubscriptionFeature.java +++ b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/DefaultSubscriptionFeature.java @@ -227,7 +227,7 @@ public RemainRecordActivityDays getRemainRecordActivityDays() { @Override public AuditQueryDays getAuditQueryDays() { - return new AuditQueryDays(-1L); + return new AuditQueryDays(0L); } @Override diff --git a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/NumberPlanFeature.java b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/NumberPlanFeature.java index aa3beb112f..d8a2a0e96d 100644 --- a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/NumberPlanFeature.java +++ b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/NumberPlanFeature.java @@ -25,8 +25,15 @@ public class NumberPlanFeature implements PlanFeature { private Long value; + private final boolean unlimited; + public NumberPlanFeature(Long value) { + this(value, value != null && value == -1); + } + + public NumberPlanFeature(Long value, boolean unlimited) { this.value = value; + this.unlimited = unlimited; } public void plus(long other) { @@ -39,7 +46,7 @@ public void plus(long other) { * @return true or false */ public boolean isUnlimited() { - return value != -1; + return unlimited || (value != null && value == -1); } @Override diff --git a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeature.java b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeature.java index 722a965c58..ca5e0578e0 100644 --- a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeature.java +++ b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeature.java @@ -55,6 +55,7 @@ import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.AllowInvitation; import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.AllowOrgApi; import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.AllowShare; +import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.AuditQuery; import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.ContactIsolation; import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.ForbidCreateOnCatalog; import com.apitable.interfaces.billing.model.SubscriptionFeatures.SubscribeFeatures.RainbowLabel; @@ -157,8 +158,13 @@ default WidgetNums getWidgetNums() { RemainRecordActivityDays getRemainRecordActivityDays(); + @Deprecated(since = "1.7.0", forRemoval = true) AuditQueryDays getAuditQueryDays(); + default AuditQuery getAuditQuery() { + return new AuditQuery(false); + } + AllowOrgApi getAllowOrgApi(); default AiAgentNums getAiAgentNums() { diff --git a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeatures.java b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeatures.java index 516fca8d1a..d7a77cd72d 100644 --- a/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeatures.java +++ b/backend-server/application/src/main/java/com/apitable/interfaces/billing/model/SubscriptionFeatures.java @@ -38,6 +38,14 @@ public static class Seat extends NumberPlanFeature { public Seat(Long value) { super(value); } + + public Seat(Long value, boolean unlimited) { + super(value, unlimited); + } + + public static Seat unlimited(Long value) { + return new Seat(value, true); + } } /** @@ -424,6 +432,15 @@ public AllowOrgApi(Boolean value) { super(value); } } + + /** + * Billing OrgApi feature. + */ + public static class AuditQuery extends BooleanPlanFeature { + public AuditQuery(Boolean value) { + super(value); + } + } } /** @@ -648,4 +665,8 @@ public static SubscribeFeatures.ForbidCreateOnCatalog buildForbidCreateOnCatalog public static SubscribeFeatures.AllowEmbed buildAllowEmbed(Boolean value) { return new SubscribeFeatures.AllowEmbed(value); } + + public static SubscribeFeatures.AuditQuery buildAuditQuery(Boolean value) { + return new SubscribeFeatures.AuditQuery(value); + } } diff --git a/backend-server/application/src/main/java/com/apitable/organization/service/impl/RoleServiceImpl.java b/backend-server/application/src/main/java/com/apitable/organization/service/impl/RoleServiceImpl.java index 8d559f282d..663ccf8e8a 100644 --- a/backend-server/application/src/main/java/com/apitable/organization/service/impl/RoleServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/organization/service/impl/RoleServiceImpl.java @@ -28,7 +28,6 @@ import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; -import cn.vika.core.utils.StringUtil; import com.apitable.base.enums.DatabaseException; import com.apitable.core.util.ExceptionUtil; import com.apitable.core.util.SqlTool; @@ -128,7 +127,7 @@ public void updateRole(Long userId, Long roleId, String roleName, Integer positi log.info("modify role's information"); RoleEntity role = baseMapper.selectById(roleId); role.setUpdateBy(userId); - if (!StringUtil.isEmpty(roleName)) { + if (StrUtil.isNotEmpty(roleName)) { role.setRoleName(roleName); } if (null != position) { diff --git a/backend-server/application/src/main/java/com/apitable/shared/component/sentry/SentryBeforeSendCallback.java b/backend-server/application/src/main/java/com/apitable/shared/component/sentry/SentryBeforeSendCallback.java deleted file mode 100644 index fd651c952a..0000000000 --- a/backend-server/application/src/main/java/com/apitable/shared/component/sentry/SentryBeforeSendCallback.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.shared.component.sentry; - -import cn.hutool.core.map.MapUtil; -import com.apitable.shared.cache.bean.LoginUserDto; -import com.apitable.shared.cache.bean.UserSpaceDto; -import com.apitable.shared.context.LoginContext; -import io.sentry.SentryEvent; -import io.sentry.SentryOptions; -import io.sentry.protocol.User; -import io.sentry.spring.SentryUserProvider; -import java.util.HashMap; -import java.util.Map; -import lombok.extern.slf4j.Slf4j; -import org.slf4j.MDC; -import org.springframework.context.annotation.Bean; -import org.springframework.stereotype.Component; - -/** - * sentry before send callback. - */ -@Component -@Slf4j -public class SentryBeforeSendCallback implements SentryOptions.BeforeSendCallback { - - @Override - public SentryEvent execute(SentryEvent event, Object hint) { - event.setTag("zipkin.span.id", MDC.get("spanId")); - event.setTag("zipkin.trace.id", MDC.get("traceId")); - return event; - } -} diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/JacksonConfig.java b/backend-server/application/src/main/java/com/apitable/shared/config/JacksonConfig.java index 798ab6cef2..90eaa1d321 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/config/JacksonConfig.java +++ b/backend-server/application/src/main/java/com/apitable/shared/config/JacksonConfig.java @@ -18,7 +18,8 @@ package com.apitable.shared.config; -import com.fasterxml.jackson.core.JsonParser; +import static com.fasterxml.jackson.core.json.JsonReadFeature.ALLOW_UNESCAPED_CONTROL_CHARS; + import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -43,7 +44,7 @@ public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomiz return builder -> { builder.failOnEmptyBeans(false); builder.failOnUnknownProperties(false); - builder.featuresToEnable(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS); + builder.featuresToEnable(ALLOW_UNESCAPED_CONTROL_CHARS.mappedFeature()); }; } } diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/RestClientConfig.java b/backend-server/application/src/main/java/com/apitable/shared/config/RestClientConfig.java new file mode 100644 index 0000000000..3c6523e8fe --- /dev/null +++ b/backend-server/application/src/main/java/com/apitable/shared/config/RestClientConfig.java @@ -0,0 +1,35 @@ +package com.apitable.shared.config; + +import org.springframework.boot.web.client.RestClientCustomizer; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; +import org.springframework.web.client.RestClient; + +/** + * Rest client config. + */ +@Configuration(proxyBeanMethods = false) +public class RestClientConfig { + + /** + * rest client customizer. + * + * @return RestClientCustomizer + */ + @Bean + RestClientCustomizer restClientCustomizer() { + return builder -> builder.requestFactory(new HttpComponentsClientHttpRequestFactory()); + } + + /** + * rest client. + * + * @param builder builder + * @return RestClient + */ + @Bean + RestClient restClient(RestClient.Builder builder) { + return builder.build(); + } +} diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/RestTemplateConfig.java b/backend-server/application/src/main/java/com/apitable/shared/config/RestTemplateConfig.java deleted file mode 100644 index 06c4bb2481..0000000000 --- a/backend-server/application/src/main/java/com/apitable/shared/config/RestTemplateConfig.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * APITable - * Copyright (C) 2022 APITable Ltd. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package com.apitable.shared.config; - -import java.time.Duration; -import org.springframework.boot.web.client.RestTemplateBuilder; -import org.springframework.boot.web.client.RestTemplateCustomizer; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; -import org.springframework.web.client.RestTemplate; - -/** - *

- * RestTemplate config. - *

- * - * @author Chambers - */ -@Configuration(proxyBeanMethods = false) -public class RestTemplateConfig { - - /** - * rest template customizer. - * - * @return RestTemplateCustomizer - */ - @Bean - public RestTemplateCustomizer restTemplateCustomizer() { - return restTemplate -> restTemplate.setRequestFactory( - new HttpComponentsClientHttpRequestFactory()); - } - - /** - * rest template. - * - * @param builder builder - * @return RestTemplate - */ - @Bean - public RestTemplate restTemplate(RestTemplateBuilder builder) { - return builder - .setConnectTimeout(Duration.ofMinutes(1)) - .setReadTimeout(Duration.ofMinutes(3)) - .build(); - } -} diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/SentryConfig.java b/backend-server/application/src/main/java/com/apitable/shared/config/SentryConfig.java index 328b5d1467..5d0e35b9a9 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/config/SentryConfig.java +++ b/backend-server/application/src/main/java/com/apitable/shared/config/SentryConfig.java @@ -5,7 +5,7 @@ import com.apitable.shared.cache.bean.UserSpaceDto; import com.apitable.shared.context.LoginContext; import io.sentry.protocol.User; -import io.sentry.spring.SentryUserProvider; +import io.sentry.spring.jakarta.SentryUserProvider; import java.util.HashMap; import java.util.Map; import org.springframework.context.annotation.Bean; @@ -36,9 +36,8 @@ public SentryUserProvider sentryUserProvider() { userOthers.put("memberName", userSpaceDto.getMemberName()); userOthers.put("spaceName", userSpaceDto.getSpaceName()); userOthers.put("uuid", loginUserDto.getUuid()); - MapUtil.removeNullValue(userOthers); - user.setOthers(userOthers); + user.setData(userOthers); } } catch (Exception ignored) { // don't bother if not log in diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/SessionSerializerConfig.java b/backend-server/application/src/main/java/com/apitable/shared/config/SessionSerializerConfig.java index 6486580d77..1909a4e003 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/config/SessionSerializerConfig.java +++ b/backend-server/application/src/main/java/com/apitable/shared/config/SessionSerializerConfig.java @@ -18,6 +18,7 @@ package com.apitable.shared.config; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; import org.jetbrains.annotations.NotNull; import org.springframework.beans.factory.BeanClassLoaderAware; @@ -40,6 +41,17 @@ public class SessionSerializerConfig implements BeanClassLoaderAware { private ClassLoader classLoader; + /** + * Long Mixin. + */ + public abstract static class LongMixin { + + @SuppressWarnings("unused") + @JsonProperty("long") + Long value; + } + + /** * config spring session redis serializer. * @@ -47,9 +59,10 @@ public class SessionSerializerConfig implements BeanClassLoaderAware { */ @Bean("springSessionDefaultRedisSerializer") public RedisSerializer springSessionDefaultRedisSerializer() { - return new GenericJackson2JsonRedisSerializer( - new ObjectMapper().registerModules(SecurityJackson2Modules.getModules(this.classLoader)) - ); + var mapper = new ObjectMapper(); + mapper.addMixIn(Long.class, LongMixin.class); + mapper.registerModules(SecurityJackson2Modules.getModules(this.classLoader)); + return new GenericJackson2JsonRedisSerializer(mapper); } @Bean diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/WebSecurityConfig.java b/backend-server/application/src/main/java/com/apitable/shared/config/WebSecurityConfig.java index 79dc759f1d..ab027bbada 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/config/WebSecurityConfig.java +++ b/backend-server/application/src/main/java/com/apitable/shared/config/WebSecurityConfig.java @@ -76,6 +76,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { CookieCsrfTokenRepository cookieCsrfTokenRepository = new CookieCsrfTokenRepository(); cookieCsrfTokenRepository.setCookieCustomizer((cookie) -> cookie.httpOnly(false)); cookieCsrfTokenRepository.setCookiePath("/"); + // opt-out of deferred csrf tokens + CsrfTokenRequestAttributeHandler requestHandler = new CsrfTokenRequestAttributeHandler(); + requestHandler.setCsrfRequestAttributeName(null); http .cors(withDefaults()) .sessionManagement((sessionManagement) -> sessionManagement @@ -91,7 +94,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { (headers) -> headers.frameOptions(HeadersConfigurer.FrameOptionsConfig::disable)) .csrf((csrf) -> csrf.csrfTokenRepository(cookieCsrfTokenRepository) - .csrfTokenRequestHandler(new CsrfTokenRequestAttributeHandler()) + .csrfTokenRequestHandler(requestHandler) .ignoringRequestMatchers( ArrayUtil.toArray(IgnorePathHelper.getInstant().iterator(), String.class) ) diff --git a/backend-server/application/src/main/java/com/apitable/shared/interceptor/I18nInterceptor.java b/backend-server/application/src/main/java/com/apitable/shared/interceptor/I18nInterceptor.java index 70f888d76c..d1f9924ac3 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/interceptor/I18nInterceptor.java +++ b/backend-server/application/src/main/java/com/apitable/shared/interceptor/I18nInterceptor.java @@ -20,7 +20,6 @@ import com.apitable.shared.context.LoginContext; import com.google.common.collect.Sets; -import jakarta.servlet.ServletException; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import java.util.Locale; @@ -45,7 +44,7 @@ public class I18nInterceptor extends AbstractServletSupport implements HandlerIn @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, - Object handler) throws ServletException { + Object handler) { try { String requestPath = resolveServletPath(request); if (INCLUDE_SERVLET_PATH.contains(requestPath)) { diff --git a/backend-server/application/src/main/java/com/apitable/space/assembler/SubscribeAssembler.java b/backend-server/application/src/main/java/com/apitable/space/assembler/SubscribeAssembler.java index c8e3056f4d..a4cab5ae66 100644 --- a/backend-server/application/src/main/java/com/apitable/space/assembler/SubscribeAssembler.java +++ b/backend-server/application/src/main/java/com/apitable/space/assembler/SubscribeAssembler.java @@ -90,6 +90,7 @@ public SpaceSubscribeVo toVo(SubscriptionInfo subscriptionInfo) { result.setMaxRemainTrashDays(feature.getRemainTrashDays().getValue()); result.setMaxRemainRecordActivityDays(feature.getRemainRecordActivityDays().getValue()); result.setMaxAuditQueryDays(feature.getAuditQueryDays().getValue()); + result.setAuditQuery(feature.getAuditQuery().getValue()); result.setUnExpireGiftCapacity(subscriptionInfo.getGiftCapacity().getValue().toBytes()); result.setSubscriptionCapacity(subscriptionInfo.getTotalCapacity().getValue().toBytes() diff --git a/backend-server/application/src/main/java/com/apitable/space/controller/SpaceController.java b/backend-server/application/src/main/java/com/apitable/space/controller/SpaceController.java index 365bdb0b81..74f712942e 100644 --- a/backend-server/application/src/main/java/com/apitable/space/controller/SpaceController.java +++ b/backend-server/application/src/main/java/com/apitable/space/controller/SpaceController.java @@ -66,8 +66,10 @@ import com.apitable.space.ro.SpaceOpRo; import com.apitable.space.ro.SpaceSecuritySettingRo; import com.apitable.space.ro.SpaceUpdateOpRo; +import com.apitable.space.service.ILabsApplicantService; import com.apitable.space.service.ISpaceService; import com.apitable.space.vo.CreateSpaceResultVo; +import com.apitable.space.vo.LabsFeatureVo; import com.apitable.space.vo.SpaceCapacityVO; import com.apitable.space.vo.SpaceGlobalFeature; import com.apitable.space.vo.SpaceInfoVO; @@ -83,6 +85,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.annotation.Resource; import jakarta.validation.Valid; +import java.util.ArrayList; import java.util.Collections; import java.util.List; import lombok.extern.slf4j.Slf4j; @@ -119,6 +122,9 @@ public class SpaceController { @Resource private SocialServiceFacade socialServiceFacade; + @Resource + private ILabsApplicantService iLabsApplicantService; + /** * Get space capacity info. */ @@ -372,6 +378,13 @@ public ResponseData info(@PathVariable("spaceId") String spaceId) { UserSpaceVo userSpaceVo = iSpaceService.getUserSpaceResource(userId, spaceId); spaceInfo.setUserResource(userSpaceVo); + // get the enabled experimental functions + List applicants = new ArrayList<>(); + applicants.add(spaceId); + applicants.add(Long.toString(userId)); + LabsFeatureVo labsFeatureVo = iLabsApplicantService.getUserCurrentFeatureApplicants(applicants); + spaceInfo.setLabsKeys(labsFeatureVo.getKeys()); + return ResponseData.success(spaceInfo); } diff --git a/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceApplyServiceImpl.java b/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceApplyServiceImpl.java index 2026312360..b1a3483045 100644 --- a/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceApplyServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceApplyServiceImpl.java @@ -227,7 +227,7 @@ private void updateApplyStatus(Long userId, Boolean agree, SpaceApplyDTO apply, if (BooleanUtil.isTrue(agree)) { status = SpaceApplyStatus.APPROVE.getStatus(); // Agree to apply and determine whether the number of people invited to the space has reached the maximum - iSpaceService.checkSeatOverLimit(apply.getSpaceId(), 1); + iSpaceService.checkSeatOverLimit(apply.getSpaceId()); // Create member iMemberService.createMember(apply.getCreatedBy(), apply.getSpaceId(), null); } diff --git a/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceServiceImpl.java b/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceServiceImpl.java index 42a48075b6..36c88ba4d9 100644 --- a/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/space/service/impl/SpaceServiceImpl.java @@ -50,7 +50,6 @@ import com.apitable.interfaces.billing.facade.EntitlementServiceFacade; import com.apitable.interfaces.billing.model.DefaultSubscriptionInfo; import com.apitable.interfaces.billing.model.SubscriptionFeature; -import com.apitable.interfaces.billing.model.SubscriptionFeatures; import com.apitable.interfaces.billing.model.SubscriptionInfo; import com.apitable.interfaces.social.facade.SocialServiceFacade; import com.apitable.interfaces.social.model.SocialConnectInfo; @@ -241,9 +240,6 @@ public class SpaceServiceImpl extends ServiceImpl @Resource private InternalSpaceService internalSpaceService; - @Value("${BILLING_APITABLE_ENABLED:false}") - private Boolean billingApitableEnabled; - @Value("${SKIP_USAGE_VERIFICATION:false}") private Boolean skipUsageVerification; @@ -606,31 +602,21 @@ public SeatUsage getSeatUsage(String spaceId) { @Override public void checkSeatOverLimit(String spaceId) { - // get subscription max seat nums - SubscriptionInfo subscriptionInfo = - entitlementServiceFacade.getSpaceSubscription(spaceId); - // only free space has validation, or paid space in apitable mode can skip validation. - if (!subscriptionInfo.isFree() && billingApitableEnabled) { - return; - } - SeatUsage seatUsage = getSeatUsage(spaceId); - SubscriptionFeatures.ConsumeFeatures.Seat seat = subscriptionInfo.getFeature().getSeat(); - if (seat.isUnlimited() && (seatUsage.getTotal() >= seat.getValue())) { - throw new BusinessException(LimitException.SEATS_OVER_LIMIT); - } + checkSeatOverLimit(spaceId, 1); } @Override public void checkSeatOverLimit(String spaceId, long addedSeatNums) { // get subscription max seat nums - SubscriptionInfo subscriptionInfo = + var subscriptionInfo = entitlementServiceFacade.getSpaceSubscription(spaceId); - if (!subscriptionInfo.isFree() && billingApitableEnabled) { + var seatNums = subscriptionInfo.getFeature().getSeat(); + if (!subscriptionInfo.isFree() && seatNums.isUnlimited()) { return; } - SeatUsage seatUsage = getSeatUsage(spaceId); - SubscriptionFeatures.ConsumeFeatures.Seat seat = subscriptionInfo.getFeature().getSeat(); - if (!seat.isUnlimited() && (seatUsage.getTotal() + addedSeatNums > seat.getValue())) { + var seatUsage = getSeatUsage(spaceId); + if (!seatNums.isUnlimited() + && (seatUsage.getTotal() + addedSeatNums > seatNums.getValue())) { throw new BusinessException(LimitException.SEATS_OVER_LIMIT); } } @@ -643,15 +629,15 @@ public void checkFileNumOverLimit(String spaceId) { @Override public void checkFileNumOverLimit(String spaceId, long addFileNums) { // get subscription max sheet nums - SubscriptionInfo subscriptionInfo = + var subscriptionInfo = entitlementServiceFacade.getSpaceSubscription(spaceId); if (!subscriptionInfo.isFree()) { return; } - SubscriptionFeatures.ConsumeFeatures.FileNodeNums fileNodeNums = + var fileNodeNums = subscriptionInfo.getFeature().getFileNodeNums(); - long currentSheetNums = getNodeCountBySpaceId(spaceId, NodeType::isFolder); - if (fileNodeNums.isUnlimited() + var currentSheetNums = getNodeCountBySpaceId(spaceId, NodeType::isFolder); + if (!fileNodeNums.isUnlimited() && (currentSheetNums + addFileNums > fileNodeNums.getValue())) { throw new BusinessException(LimitException.FILE_NUMS_OVER_LIMIT); } @@ -664,17 +650,19 @@ public boolean checkSeatOverLimitAndSendNotify(List userIds, String spaceI // get subscription max seat nums SubscriptionInfo subscriptionInfo = entitlementServiceFacade.getSpaceSubscription(spaceId); - if (!subscriptionInfo.isFree() && billingApitableEnabled) { + var seat = subscriptionInfo.getFeature().getSeat(); + if (!subscriptionInfo.isFree() && seat.isUnlimited()) { // apitable billing mode, paid space,skip validation return true; } - SubscriptionFeatures.ConsumeFeatures.Seat seat = subscriptionInfo.getFeature().getSeat(); SeatUsage seatUsage = getSeatUsageForIM(spaceId); long totalSeatNums = seatUsage.getTotal() + addedSeatNums; if (isAllMember) { totalSeatNums = addedSeatNums; } if (!seat.isUnlimited() && (totalSeatNums > seat.getValue())) { + log.info("spaceId:{}, current num:{}, max seats:{}", spaceId, totalSeatNums, + seat.getValue()); if (sendNotify) { // Send space station notifications try { @@ -690,8 +678,8 @@ public boolean checkSeatOverLimitAndSendNotify(List userIds, String spaceI log.error("send space station notifications error", e); } } - log.warn("seats over limit"); - return false; + log.warn("{} seats over limit", spaceId); + return true; } return true; } diff --git a/backend-server/application/src/main/java/com/apitable/space/vo/SeatUsage.java b/backend-server/application/src/main/java/com/apitable/space/vo/SeatUsage.java index 9db5ecdda2..57d29cef4a 100644 --- a/backend-server/application/src/main/java/com/apitable/space/vo/SeatUsage.java +++ b/backend-server/application/src/main/java/com/apitable/space/vo/SeatUsage.java @@ -22,6 +22,7 @@ public class SeatUsage { private Long memberCount; public SeatUsage() { + this(0L, 0L); } /** diff --git a/backend-server/application/src/main/java/com/apitable/space/vo/SpaceInfoVO.java b/backend-server/application/src/main/java/com/apitable/space/vo/SpaceInfoVO.java index 95fce87085..6c1bb84db6 100644 --- a/backend-server/application/src/main/java/com/apitable/space/vo/SpaceInfoVO.java +++ b/backend-server/application/src/main/java/com/apitable/space/vo/SpaceInfoVO.java @@ -28,6 +28,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import java.math.BigDecimal; import java.time.LocalDateTime; +import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -180,5 +181,9 @@ public class SpaceInfoVO { @Schema(description = "User's resource information view in the space") private UserSpaceVo userResource; + @Schema(description = "List of experimental functions", + type = "java.util.List", example = "[\"RENDER_PROMPT\", \"ASYNC_COMPUTE\", \"ROBOT\"]") + private List labsKeys; + } diff --git a/backend-server/application/src/main/java/com/apitable/space/vo/SpaceSubscribeVo.java b/backend-server/application/src/main/java/com/apitable/space/vo/SpaceSubscribeVo.java index f7ce92dc99..f0bf79d80c 100644 --- a/backend-server/application/src/main/java/com/apitable/space/vo/SpaceSubscribeVo.java +++ b/backend-server/application/src/main/java/com/apitable/space/vo/SpaceSubscribeVo.java @@ -200,6 +200,11 @@ public class SpaceSubscribeVo { @JsonSerialize(nullsUsing = NullNumberSerializer.class) private Long maxAuditQueryDays; + @Schema(description = "Advance - whether to use audit log query", + example = "false") + @JsonSerialize(nullsUsing = NullBooleanSerializer.class) + private Boolean auditQuery; + @Schema(description = "the maximum credit number for ai query(unit: int)", example = "1000") @JsonSerialize(nullsUsing = NullNumberSerializer.class) private Long maxMessageCredits; diff --git a/backend-server/application/src/main/java/com/apitable/user/service/IUserService.java b/backend-server/application/src/main/java/com/apitable/user/service/IUserService.java index 101c25651f..aa454c1cee 100644 --- a/backend-server/application/src/main/java/com/apitable/user/service/IUserService.java +++ b/backend-server/application/src/main/java/com/apitable/user/service/IUserService.java @@ -167,6 +167,16 @@ UserEntity createUserByMobilePhone(String areaCode, String mobile, */ UserEntity createUserByEmail(String email, String password); + /** + * Create an account by email. + * + * @param email email + * @param password password + * @param lang lang + * @return UserEntity + */ + UserEntity createUserByEmail(String email, String password, String lang); + /** * initial new space for new user. * diff --git a/backend-server/application/src/main/java/com/apitable/user/service/impl/UserServiceImpl.java b/backend-server/application/src/main/java/com/apitable/user/service/impl/UserServiceImpl.java index 0148827e58..86cc09e393 100644 --- a/backend-server/application/src/main/java/com/apitable/user/service/impl/UserServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/user/service/impl/UserServiceImpl.java @@ -486,11 +486,17 @@ public UserEntity createUserByEmail(final String email) { @Override @Transactional(rollbackFor = Exception.class) public UserEntity createUserByEmail(final String email, final String password) { + return createUserByEmail(email, password, languageManager.getDefaultLanguageTag()); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public UserEntity createUserByEmail(final String email, final String password, String lang) { UserEntity entity = UserEntity.builder() .uuid(IdUtil.fastSimpleUUID()) .email(email) .nickName(StringUtils.substringBefore(email, "@")) - .locale(languageManager.getDefaultLanguageTag()) + .locale(lang) .color(RandomUtil.randomInt(0, USER_AVATAR_COLOR_MAX_VALUE)) .lastLoginTime(LocalDateTime.now()) .build(); diff --git a/backend-server/application/src/main/java/com/apitable/widget/vo/WidgetReleaseListVo.java b/backend-server/application/src/main/java/com/apitable/widget/vo/WidgetReleaseListVo.java index 4d5fae4a35..7ef933d599 100644 --- a/backend-server/application/src/main/java/com/apitable/widget/vo/WidgetReleaseListVo.java +++ b/backend-server/application/src/main/java/com/apitable/widget/vo/WidgetReleaseListVo.java @@ -42,11 +42,11 @@ public class WidgetReleaseListVo { @Schema(description = "Status (0: to be approved, 1: approved, 2: rejected)", example = "1") private Integer status; - @Schema(description = "Code Address", example = "https://s1.vika.cn/code/2020/12/23/aqa") + @Schema(description = "Code Address", example = "https://aitable.ai/code/2020/12/23/aqa") @JsonSerialize(using = ImageSerializer.class) private String releaseCodeBundle; - @Schema(description = "Source code address", example = "https://s1.vika.cn/code/2020/12/23/aqa") + @Schema(description = "Source code address", example = "https://aitable.ai/code/2020/12/23/aqa") @JsonSerialize(using = ImageSerializer.class) private String sourceCodeBundle; diff --git a/backend-server/application/src/main/java/com/apitable/workspace/service/impl/DatasheetServiceImpl.java b/backend-server/application/src/main/java/com/apitable/workspace/service/impl/DatasheetServiceImpl.java index cd92a3f3af..1fd5a51337 100644 --- a/backend-server/application/src/main/java/com/apitable/workspace/service/impl/DatasheetServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/workspace/service/impl/DatasheetServiceImpl.java @@ -816,10 +816,12 @@ public List replaceFieldDstId(Long userId, boolean sameSpace, MetaMapRo for (Object field : metaMapRo.getFieldMap().values()) { FieldMapRo fieldMapRo = JSONUtil.parseObj(field).toBean(FieldMapRo.class); FieldType type = FieldType.create(fieldMapRo.getType()); - Object originDstId = fieldMapRo.getProperty().get("datasheetId"); + String originDstId = fieldMapRo.getProperty() != null + ? fieldMapRo.getProperty().getStr("datasheetId") : null; switch (type) { case ONE_WAY_LINK: case LINK: + assert fieldMapRo.getProperty() != null; LinkFieldProperty property = fieldMapRo.getProperty().toBean(LinkFieldProperty.class); String foreignDstId = property.getForeignDatasheetId(); @@ -839,22 +841,23 @@ public List replaceFieldDstId(Long userId, boolean sameSpace, MetaMapRo case LAST_MODIFIED_TIME: if (originDstId != null) { fieldMapRo.getProperty() - .set("datasheetId", newNodeIdMap.get(originDstId.toString())); + .set("datasheetId", newNodeIdMap.get(originDstId)); } break; case MEMBER: if (!sameSpace) { + assert fieldMapRo.getProperty() != null; fieldMapRo.getProperty().set("unitIds", new ArrayList<>()); delFieldIds.add(fieldMapRo.getId()); } break; case CREATED_BY: case LAST_MODIFIED_BY: - originDstId = fieldMapRo.getProperty().get("datasheetId"); if (originDstId != null) { fieldMapRo.getProperty() - .set("datasheetId", newNodeIdMap.get(originDstId.toString())); + .set("datasheetId", newNodeIdMap.get(originDstId)); } + assert fieldMapRo.getProperty() != null; fieldMapRo.getProperty().set("uuids", Collections.singletonList(uuid)); break; default: diff --git a/backend-server/application/src/main/java/com/apitable/workspace/service/impl/NodeServiceImpl.java b/backend-server/application/src/main/java/com/apitable/workspace/service/impl/NodeServiceImpl.java index b0cf90015b..e4cc4e01c5 100644 --- a/backend-server/application/src/main/java/com/apitable/workspace/service/impl/NodeServiceImpl.java +++ b/backend-server/application/src/main/java/com/apitable/workspace/service/impl/NodeServiceImpl.java @@ -1648,7 +1648,7 @@ private void createFileMeta(Long userId, String spaceId, String nodeId, Integer JSONUtil.createObj().toString()); break; case AI_CHAT_BOT: - iSpaceService.checkSeatOverLimit(spaceId, 1); + iSpaceService.checkSeatOverLimit(spaceId); aiServiceFacade.createAi(AiCreateParam.builder() .spaceId(spaceId) .aiId(nodeId) diff --git a/backend-server/application/src/main/resources/application.yml b/backend-server/application/src/main/resources/application.yml index 2308d061af..f70c916d78 100644 --- a/backend-server/application/src/main/resources/application.yml +++ b/backend-server/application/src/main/resources/application.yml @@ -116,7 +116,7 @@ starter: access-key: ${QINIU_ACCESS_KEY:' '} secret-key: ${QINIU_SECRET_KEY:' '} region: ${QINIU_REGION:z2} - download-domain: ${QINIU_DOWNLOAD_DOMAIN:s1.vika.cn} + download-domain: ${QINIU_DOWNLOAD_DOMAIN:aitable.ai} upload-url: ${QINIU_UPLOAD_URL:https://up-z2.qiniup.com} callback: enabled: ${QINIU_CALLBACK_ENABLED:false} @@ -166,6 +166,7 @@ sentry: environment: ${ENV} use-git-commit-id-as-release: false max-breadcrumbs: 150 + enable-tracing: true traces-sample-rate: 1.0 logging: minimum-breadcrumb-level: debug diff --git a/backend-server/application/src/main/resources/default.properties b/backend-server/application/src/main/resources/default.properties index e50dbdcda4..9afb51fbd4 100644 --- a/backend-server/application/src/main/resources/default.properties +++ b/backend-server/application/src/main/resources/default.properties @@ -20,10 +20,10 @@ spring.datasource.hikari.connection-test-query=SELECT 1 spring.datasource.hikari.auto-commit=true spring.datasource.hikari.pool-name=DatebookHikariCP # lettuce -spring.redis.lettuce.pool.max-idle=8 -spring.redis.lettuce.pool.min-idle=0 -spring.redis.lettuce.pool.max-active=8 -spring.redis.lettuce.pool.max-wait=-1ms +spring.data.redis.lettuce.pool.max-idle=8 +spring.data.redis.lettuce.pool.min-idle=0 +spring.data.redis.lettuce.pool.max-active=8 +spring.data.redis.lettuce.pool.max-wait=-1ms # actuator management.health.mail.enabled=false management.endpoint.health.enabled=true diff --git a/backend-server/application/src/main/resources/mapper/automation/AutomationServiceMapper.xml b/backend-server/application/src/main/resources/mapper/automation/AutomationServiceMapper.xml deleted file mode 100644 index 857d757893..0000000000 --- a/backend-server/application/src/main/resources/mapper/automation/AutomationServiceMapper.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - diff --git a/backend-server/application/src/main/resources/sysconfig/strings.json b/backend-server/application/src/main/resources/sysconfig/strings.json index 39db71db06..310a27c172 100644 --- a/backend-server/application/src/main/resources/sysconfig/strings.json +++ b/backend-server/application/src/main/resources/sysconfig/strings.json @@ -835,6 +835,7 @@ "automation_runs_this_month": "Läuft diesen Monat", "automation_stay_tuned": "Bleiben Sie dran", "automation_success": "Erfolg", + "automation_tips": "Das Schaltflächenfeld ist falsch konfiguriert. Bitte überprüfen Sie es und versuchen Sie es erneut", "automation_updater_label": "Kann den Ausführungsverlauf der Automatisierung anzeigen", "automation_variabel_empty": "Es sind keine Daten vorhanden, die im Vorschritt verwendet werden können. Bitte passen Sie sie an und versuchen Sie es erneut.", "automation_variable_datasheet": "Daten von ${NODE_NAME} abrufen", @@ -870,6 +871,7 @@ "bermuda": "Bermuda", "bhutan": "Bhutan", "billing_over_limit_tip_common": "Die Nutzung des Speicherplatzes hat das Limit überschritten und Sie können nach dem Upgrade eine höhere Menge nutzen.", + "billing_over_limit_tip_forbidden": "Ihre Testdauer oder Ihr Abonnementzeitraum ist abgelaufen. Für eine Verlängerung wenden Sie sich bitte an den Verkaufsberater.", "billing_over_limit_tip_widget": "Die Anzahl der Widget-Installationen hat das Limit überschritten und Sie können ein Upgrade durchführen, um eine höhere Nutzung zu erzielen.", "billing_period": "Abrechnungszeitraum: ${period}", "billing_subscription_warning": "Feature-Erfahrung", @@ -929,10 +931,14 @@ "button_text": "Schaltflächentext", "button_text_click_start": "Klicken Sie zum Starten", "button_type": "Schaltflächentyp", + "by_days": "Tage", "by_field_id": "Feld-ID verwenden", + "by_hours": "Std", + "by_months": "Monate", "by_the_day": "Tagsüber", "by_the_month": "Monatlich", "by_the_year": "Jährlich", + "by_weeks": "Wochen", "calendar_add_date_time_field": "Datumsfeld erstellen", "calendar_color_more": "Mehr Farben", "calendar_const_detail_weeks": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]", @@ -1787,7 +1793,7 @@ "expired": "Abgelaufen", "export": "Exportieren...", "export_brand_desc": "Bereitgestellt von", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Export in eine .png-Datei", "export_gantt_chart": "Gantt-Diagramm exportieren", "export_to_excel": "Daten exportieren", @@ -2492,6 +2498,8 @@ "guests_per_space": "Gäste pro Raum", "guide_1": "啊这", "guide_2": "Es dauert nur wenige Minuten, um die grundlegenden Funktionen zu erlernen. Arbeiten Sie ab diesem Moment produktiver!", + "guide_flow_modal_contact_sales": "Kontaktieren Sie den Vertrieb", + "guide_flow_modal_get_started": "Loslegen", "guide_flow_of_catalog_step1": "Hier ist der Arbeitskatalog, in dem alle Ordner und Dateien des Space gespeichert sind.", "guide_flow_of_catalog_step2": "Im Arbeitskatalog können Sie nach Bedarf ein Datenblatt oder einen Ordner erstellen.", "guide_flow_of_click_add_view_step1": "Zusätzlich zu einigen grundlegenden Ansichten wird dringend empfohlen, eine Albumansicht zu erstellen, wenn Sie Anhänge im Bildformat haben.", @@ -2878,6 +2886,7 @@ "lark_version_enterprise": "Enterprise Plan mit Lark", "lark_version_standard": "Standardplan mit Lerche", "lark_versions_free": "Grundplan mit Lerche", + "last_day": "Letzter Tag", "last_modified_by_select_modal_desc": "Wenn eines der unten ausgewählten Felder bearbeitet wird, wird das zuletzt bearbeitete Mitglied im zuletzt bearbeiteten Feld angezeigt.", "last_modified_time_select_modal_desc": "Wenn eines der unten ausgewählten Felder bearbeitet wird, wird die zuletzt bearbeitete Zeit im zuletzt bearbeiteten Zeitfeld angezeigt.", "last_step": "Zurück", @@ -3795,7 +3804,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ „headerImg“: „https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1“, „readMoreUrl“: „https://help.vika.cn/changelog/23-04-10- Updates\", \"Kinder\": \"

🚀 Einführung neuer Funktionen

\\N
  • Der neue Feldtyp „Cascader“ wird eingeführt, der die Auswahl aus einer Hierarchie von Optionen auf Formularen erleichtert
  • Das Widget „Skript“ wird veröffentlicht, weniger Code für mehr Anpassungsmöglichkeiten
  • Lösen Sie die Automatisierung aus, um E-Mails zu senden und schnelle Benachrichtigungen zu erhalten
  • Lösen Sie die Automatisierung aus, um eine Nachricht an Slack zu senden und Ihr Team rechtzeitig zu informieren
  • KI erforschen: Widget „GPT Content Generator“ veröffentlicht
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Einführung in den AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Einführung in den AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3825,13 +3834,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3928,6 +3937,7 @@ "preview_guide_click_to_restart": "Klicken Sie auf die Schaltfläche unten, um eine Vorschau erneut anzuzeigen", "preview_guide_enable_it": "Drücken Sie die Taste unten, um diese Funktion einzuschalten", "preview_guide_open_office_preview": "Um eine Vorschau dieser Datei anzuzeigen, aktivieren Sie bitte die Funktion \"Office Preview\"", + "preview_next_automation_execution_time": "Vorschau der nächsten 5 Ausführungszeiten", "preview_not_support_video_codecs": "Nur MP4-Videos mit H.264-Videocodecs können in der Vorschau angezeigt werden", "preview_revision": "Vorschau", "preview_see_more": "Möchten Sie mehr über die Funktion \"Office File Preview\" erfahren? Bitte klicken Sie hier", @@ -4479,6 +4489,7 @@ "scan_to_login": "Scannen, um sich anzumelden", "scan_to_login_by_method": "Bitte scannen Sie ${method}, um dem offiziellen Konto zu folgen, um sich anzumelden", "scatter_chart": "Streudiagramm", + "schedule_type": "Zeitplantyp", "science_and_technology": "Wissenschaft und Technologie", "scroll_screen_down": "Einen Bildschirm nach unten scrollen", "scroll_screen_left": "Einen Bildschirm nach links scrollen", @@ -5044,9 +5055,11 @@ "subscribe_credit_usage_over_limit": "Die Anzahl der Guthaben, die in diesem Bereich sind, die das Limit überschreiten, werden verwendet.\n", "subscribe_demonstrate": "Demos anfordern", "subscribe_disabled_seat": "Die Anzahl der Personen darf nicht niedriger sein als das ursprüngliche Programm", + "subscribe_grade_business": "Geschäft", "subscribe_grade_free": "Frei", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Profi", + "subscribe_grade_starter": "Anlasser", "subscribe_label_tooltip": "Erweiterte Raumfunktionen", "subscribe_new_choose_member": "Unterstützt bis zu ${member_num} Members", "subscribe_new_choose_member_tips": "Dieser Plan unterstützt 1~${member_num} Mitglieder, um den Raum zu betreten", @@ -5183,7 +5196,7 @@ "template_name_repetition_title": "\"${templateName}\" existiert bereits. Wollen Sie es ersetzen?", "template_no_template": "Keine Vorlagen", "template_not_found": "Sie können die gewünschten Vorlagen nicht finden? Sagen Sie uns", - "template_recommend_title": "Heiß", + "template_recommend_title": "🌟 Hot", "template_type": "Vorlage", "terms_of_service": "", "terms_of_service_pure_string": "Nutzungsbedingungen", @@ -5329,6 +5342,7 @@ "timemachine_update_comment": "aktualisierte(r) Kommentar(e)", "times_per_month_unit": "Aufruf/Monat", "times_unit": "Aufruf(e)", + "timing_rules": "Zeitliche Koordinierung", "timor_leste": "Timor-Leste", "tip_del_success": "Sie können Ihren Space innerhalb von 7 Tagen wiederherstellen", "tip_do_you_want_to_know_about_field_permission": "Möchten Sie Felddaten verschlüsseln? Erfahren Sie mehr über Feldberechtigungen", @@ -6842,10 +6856,14 @@ "button_text": "Button text", "button_text_click_start": "Click to Start", "button_type": "Button Type", + "by_days": "Days", "by_field_id": "Use field ID", + "by_hours": "Hours", + "by_months": "Months", "by_the_day": "By day", "by_the_month": "Monthly", "by_the_year": "Yearly", + "by_weeks": "Weeks", "calendar_add_date_time_field": "Create Date field", "calendar_color_more": "More colors", "calendar_const_detail_weeks": "[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]", @@ -8405,6 +8423,8 @@ "guests_per_space": "Guests per Space", "guide_1": "啊这", "guide_2": "It takes only a few minutes to learn the basic functions. Work more productively from this moment on!", + "guide_flow_modal_contact_sales": "Contact Sales", + "guide_flow_modal_get_started": "Get Started", "guide_flow_of_catalog_step1": "Here is working catalog where all the folders and files of the Space are stored.", "guide_flow_of_catalog_step2": "In the working catalog, you can create a datasheet or a folder as needed.", "guide_flow_of_click_add_view_step1": "In addition to some basic view, you are highly recommended to create an album view if you have attachments in picture format.", @@ -8791,6 +8811,7 @@ "lark_version_enterprise": "Enterprise Plan with Lark", "lark_version_standard": "Standard Plan with Lark", "lark_versions_free": "Basic Plan with Lark", + "last_day": "Last day", "last_modified_by_select_modal_desc": "If any of the fields you select below are edited, the member who edited most recently will show in the last edited by field", "last_modified_time_select_modal_desc": "If any of the fields you select below are edited, the most recently edited time will show in the last edited time field", "last_step": "Back", @@ -9708,7 +9729,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • New field type \"Cascader\" is launched, making selection from a hierarchy of options on forms easier
  • \"Script\" widget is released, less code for more customization
  • Trigger Automation to send Emails, and get fast notifications
  • Trigger Automation to send a message to Slack, and inform your team in time
  • Exploring AI: \"GPT Content Generator\" Widget Released
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI Agent Introduction\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AITable.ai DEMO\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -9738,13 +9759,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -9841,6 +9862,7 @@ "preview_guide_click_to_restart": "Press the button below to preview again", "preview_guide_enable_it": "Press the button below to turn on this function", "preview_guide_open_office_preview": "To preview this file, please turn on the \"office preview\" function", + "preview_next_automation_execution_time": "Preview next 5 execution times", "preview_not_support_video_codecs": "Only MP4 videos with H.264 video codecs can be preview", "preview_revision": "Preview", "preview_see_more": "Want to learn more about the \"office file preview\" feature? Please click here", @@ -10392,6 +10414,7 @@ "scan_to_login": "Scan to login", "scan_to_login_by_method": "Please scan ${method} to follow official account to login", "scatter_chart": "Scatter Chart", + "schedule_type": "Schedule Type", "science_and_technology": "Science and technology", "scroll_screen_down": "Scroll one screen down", "scroll_screen_left": "Scroll one screen left", @@ -10957,9 +10980,11 @@ "subscribe_credit_usage_over_limit": "The number of credits in the current space exceeds the limit, please upgrade your subscription.\n", "subscribe_demonstrate": "Request demos", "subscribe_disabled_seat": "The number of people cannot be lower than the original program", + "subscribe_grade_business": "Business", "subscribe_grade_free": "Free", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Starter", "subscribe_label_tooltip": "Advanced space features", "subscribe_new_choose_member": "Supports up to ${member_num} members", "subscribe_new_choose_member_tips": "This plan supports 1~${member_num} members to enter the space", @@ -11096,7 +11121,7 @@ "template_name_repetition_title": "\"${templateName}\" already exists. Do you want to replace it?", "template_no_template": "No templates", "template_not_found": "Can't find templates you want? Tell us", - "template_recommend_title": "Hot", + "template_recommend_title": "🌟 Hot", "template_type": "Template", "terms_of_service": "", "terms_of_service_pure_string": "Terms of service", @@ -11242,6 +11267,7 @@ "timemachine_update_comment": "updated comment(s)", "times_per_month_unit": "call(s)/month", "times_unit": " call(s)", + "timing_rules": "Timing", "timor_leste": "Timor-Leste", "tip_del_success": "You can restore your Space within 7 days", "tip_do_you_want_to_know_about_field_permission": "Want to encrypt field data? Learn about field permissions", @@ -12662,6 +12688,7 @@ "automation_runs_this_month": "Funciona este mes", "automation_stay_tuned": "Manténganse al tanto", "automation_success": "Éxito", + "automation_tips": "El campo del botón está mal configurado, verifíquelo e inténtelo nuevamente.", "automation_updater_label": "Puede ver el historial de ejecución de la automatización.", "automation_variabel_empty": "No hay datos que puedan usarse en el paso previo, ajústelos e inténtelo nuevamente.", "automation_variable_datasheet": "Obtener datos de ${NODE_NAME}", @@ -12697,6 +12724,7 @@ "bermuda": "Bermudas", "bhutan": "Bhután", "billing_over_limit_tip_common": "El uso del espacio ha superado el límite y podrá disfrutar de una cantidad mayor después de la actualización.", + "billing_over_limit_tip_forbidden": "Su duración de prueba o período de suscripción ha expirado. Comuníquese con el asesor de ventas para renovar.", "billing_over_limit_tip_widget": "La cantidad de instalaciones de widgets ha excedido el límite y puede actualizar para obtener un mayor uso.", "billing_period": "Período de facturación: ${period}", "billing_subscription_warning": "Experiencia funcional", @@ -12756,10 +12784,14 @@ "button_text": "Botón de texto", "button_text_click_start": "Haga clic para comenzar", "button_type": "Tipo de botón", + "by_days": "Días", "by_field_id": "Usar el ID de campo", + "by_hours": "Horas", + "by_months": "Meses", "by_the_day": "Por día", "by_the_month": "Revista mensual", "by_the_year": "Anual", + "by_weeks": "Semanas", "calendar_add_date_time_field": "Crear campo de fecha", "calendar_color_more": "Más colores", "calendar_const_detail_weeks": "[\"lunes\",\"martes\",\"miércoles\",\"jueves\",\"viernes\",\"sábado\",\"domingo\"]", @@ -13614,7 +13646,7 @@ "expired": "Expiración", "export": "Se está exportando...", "export_brand_desc": "Soporte técnico", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Exportar al archivo. PNG", "export_gantt_chart": "Exportar mapa de Gantt", "export_to_excel": "Exportar datos", @@ -14319,6 +14351,8 @@ "guests_per_space": "Huéspedes en cada espacio", "guide_1": "啊这", "guide_2": "Solo se tarda unos minutos en aprender las funciones básicas. ¡¡ a partir de este momento, el trabajo es más eficiente!", + "guide_flow_modal_contact_sales": "Contacto Ventas", + "guide_flow_modal_get_started": "Empezar", "guide_flow_of_catalog_step1": "Este es el catálogo de trabajo en el que se almacenan todas las carpetas y archivos de space.", "guide_flow_of_catalog_step2": "En el catálogo de trabajo, puede crear una tabla de datos o una carpeta según sea necesario.", "guide_flow_of_click_add_view_step1": "Además de algunas vistas básicas, si tiene un adjunto en formato de imagen, se recomienda encarecidamente crear una vista de álbum.", @@ -14705,6 +14739,7 @@ "lark_version_enterprise": "El plan empresarial de Lark", "lark_version_standard": "Plano estándar de Lark", "lark_versions_free": "Plano básico de Lark", + "last_day": "Último día", "last_modified_by_select_modal_desc": "Si se edita alguno de los campos seleccionados a continuación, el miembro recién editado se mostrará en el campo editado por última vez.", "last_modified_time_select_modal_desc": "Si se edita alguno de los campos seleccionados a continuación, el tiempo de edición más reciente se mostrará en el campo de tiempo de la última edición.", "last_step": "Volver", @@ -15622,7 +15657,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- actualizaciones\", \"niños\": \"

🚀 Introducción de nuevas funciones.

\\norte
  • Se lanza el nuevo tipo de campo \"Cascader\", lo que facilita la selección entre una jerarquía de opciones en los formularios.
  • Se lanza el widget \"Script\", menos código para una mayor personalización
  • Active la automatización para enviar correos electrónicos y recibir notificaciones rápidas
  • Activa la automatización para enviar un mensaje a Slack e informar a tu equipo a tiempo
  • Explorando la IA: Lanzamiento del widget \"Generador de contenido GPT\"
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introducción AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introducción AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -15652,13 +15687,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -15755,6 +15790,7 @@ "preview_guide_click_to_restart": "Presione el botón de abajo para Previsualizar de nuevo", "preview_guide_enable_it": "Presione el botón de abajo para abrir esta función", "preview_guide_open_office_preview": "Para Previsualizar este archivo, abra la función \"previsualización de la oficina\"", + "preview_next_automation_execution_time": "Vista previa de los próximos 5 tiempos de ejecución", "preview_not_support_video_codecs": "Solo se pueden Previsualizar vídeos mp4 con Códec de vídeo h.264", "preview_revision": "Vista previa", "preview_see_more": "¿Desea obtener más información sobre la función \"vista previa de archivos de Office\"? Por favor haga clic aquí", @@ -16306,6 +16342,7 @@ "scan_to_login": "Escanear inicio de sesión", "scan_to_login_by_method": "Escanea ${method} para seguir la cuenta oficial e iniciar sesión", "scatter_chart": "Mapa de dispersión", + "schedule_type": "Tipo de horario", "science_and_technology": "Ciencia y tecnología", "scroll_screen_down": "Desplácese hacia abajo por una pantalla", "scroll_screen_left": "Desplaza una pantalla a la izquierda", @@ -16871,9 +16908,11 @@ "subscribe_credit_usage_over_limit": "El número de créditos en el espacio actual supera el límite, por favor actualice su suscripción.\n", "subscribe_demonstrate": "Solicitud de presentación", "subscribe_disabled_seat": "El número de personas no puede ser inferior al plan original", + "subscribe_grade_business": "Negocio", "subscribe_grade_free": "Libre", "subscribe_grade_plus": "Más", "subscribe_grade_pro": "A favor", + "subscribe_grade_starter": "Inicio", "subscribe_label_tooltip": "Función espacial avanzada", "subscribe_new_choose_member": "Admite hasta ${member_num} miembros", "subscribe_new_choose_member_tips": "Este plan admite 1~${member_num} miembros para ingresar al espacio", @@ -17010,7 +17049,7 @@ "template_name_repetition_title": "\"${templateName}\" ya existe. ¿Quieres cambiarlo?", "template_no_template": "No hay plantilla", "template_not_found": "¿No puede encontrar las plantillas que desea? Dinos", - "template_recommend_title": "Caliente", + "template_recommend_title": "🌟 Hot", "template_type": "Modelo", "terms_of_service": "[términos de servicio]", "terms_of_service_pure_string": "Cláusulas de servicio", @@ -17156,6 +17195,7 @@ "timemachine_update_comment": "comentarios actualizados", "times_per_month_unit": "Teléfono / mes", "times_unit": "Teléfono", + "timing_rules": "Momento", "timor_leste": "Timor Oriental", "tip_del_success": "Puede recuperar su espacio compartido en 7 días", "tip_do_you_want_to_know_about_field_permission": "¿Quiere cifrar datos de campo? Más información sobre los permisos de campo", @@ -18576,6 +18616,7 @@ "automation_runs_this_month": "Fonctionne ce mois-ci", "automation_stay_tuned": "Restez à l'écoute", "automation_success": "Succès", + "automation_tips": "Le champ du bouton est mal configuré, veuillez vérifier et réessayer", "automation_updater_label": "Peut afficher l'historique d'exécution de l'automatisation", "automation_variabel_empty": "Aucune donnée ne peut être utilisée lors de l'étape préalable, veuillez ajuster et réessayer.", "automation_variable_datasheet": "Obtenir des données de ${NODE_NAME}", @@ -18611,6 +18652,7 @@ "bermuda": "Les îles Bermudes", "bhutan": "Bhoutan", "billing_over_limit_tip_common": "L'utilisation de l'espace a dépassé la limite et vous pouvez profiter d'un montant plus élevé après la mise à niveau.", + "billing_over_limit_tip_forbidden": "Votre durée d’essai ou votre période d’abonnement a expiré. Veuillez contacter le conseiller commercial pour renouveler.", "billing_over_limit_tip_widget": "Le nombre d'installations de widgets a dépassé la limite et vous pouvez effectuer une mise à niveau pour obtenir une utilisation plus élevée.", "billing_period": "Période de facturation : ${period}", "billing_subscription_warning": "Expérience des fonctionnalités", @@ -18670,10 +18712,14 @@ "button_text": "Texte du bouton", "button_text_click_start": "Cliquez pour démarrer", "button_type": "Type de bouton", + "by_days": "Jours", "by_field_id": "Utiliser l'ID du champ", + "by_hours": "Heures", + "by_months": "Mois", "by_the_day": "Par jour", "by_the_month": "Mensuel", "by_the_year": "Annuel", + "by_weeks": "Semaines", "calendar_add_date_time_field": "Créer le champ Date", "calendar_color_more": "Plus de couleurs", "calendar_const_detail_weeks": "[\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\",\"dimanche\"]", @@ -19528,7 +19574,7 @@ "expired": "Expiré", "export": "Exportation en cours...", "export_brand_desc": "Propulsé par", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Exporter vers un fichier .png", "export_gantt_chart": "Exporter le diagramme gantt", "export_to_excel": "Exporter les données", @@ -20233,6 +20279,8 @@ "guests_per_space": "Invités par Espace", "guide_1": "啊这", "guide_2": "Il ne faut que quelques minutes pour apprendre les fonctions de base. Travaillez de manière plus productive dès maintenant !", + "guide_flow_modal_contact_sales": "Contacter le service commercial", + "guide_flow_modal_get_started": "Commencer", "guide_flow_of_catalog_step1": "Voici un catalogue fonctionnel où sont stockés tous les dossiers et fichiers de l'espace.", "guide_flow_of_catalog_step2": "Dans le catalogue fonctionnel, vous pouvez créer une feuille de données ou un dossier si nécessaire.", "guide_flow_of_click_add_view_step1": "En plus d'une vue de base, il est fortement recommandé de créer une vue d'album si vous avez des pièces jointes au format image.", @@ -20619,6 +20667,7 @@ "lark_version_enterprise": "Plan d'entreprise avec Lark", "lark_version_standard": "Plan standard avec Lark", "lark_versions_free": "Plan de base avec Lark", + "last_day": "Dernier jour", "last_modified_by_select_modal_desc": "Si l'un des champs que vous sélectionnez ci-dessous est modifié, le membre qui a modifié le plus récemment sera affiché dans la dernière édition par champ", "last_modified_time_select_modal_desc": "Si l'un des champs que vous sélectionnez ci-dessous est modifié, la date de modification la plus récente s'affichera dans le dernier champ de temps modifié", "last_step": "Précédent", @@ -21536,7 +21585,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- mises à jour\", \"enfants\": \"

🚀 Introduction de nouvelles fonctions

\\n
  • Un nouveau type de champ \"Cascader\" est lancé, facilitant la sélection parmi une hiérarchie d'options sur les formulaires.
  • Le widget \"Script\" est sorti, moins de code pour plus de personnalisation
  • Déclenchez l'automatisation pour envoyer des e-mails et recevoir des notifications rapides
  • Déclenchez l'automatisation pour envoyer un message à Slack et informer votre équipe à temps
  • Explorer l'IA : lancement du widget \"Générateur de contenu GPT\"
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"Comment utiliser un modèle\", \n\"description\": \"Cliquez sur le bouton à gauche pour utiliser le modèle\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introduction au AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introduction au AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>. nt-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"Comment utiliser un modèle\", \n\"description\": \"Sélectionnez où mettre le modèle\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"nom\": \"réponse1\",\n \"titre\": \"Quel genre de questions êtes-vous impatient de résoudre par vikadata? ,\n \"type\": \"checkbox\",\n \"réponses\": [\n \"Planification de travail\",\n \"Service client\",\n \"Gestion de projet\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"Opération e-commerce\",\n \"Planification d'événement\",\n \"Ressources humaines\",\n \"Administration\",\n \"Gestion financière\",\n \"Webcast\",\n \"Gestion des instituts éducatifs\",\n \"Autre\"\n ],\n \"lastAllowInput\": vrai\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Votre titre d'emploi est______\",\n \"type\": \"radio\",\n \"réponses\": [\n \"Directeur Général\",\n \"Chef de projet\",\n \"Gestionnaire de produits\",\n \"Designer\",\n \"Ingénieur R&D \",\n \"Opérateur, éditeur\",\n ventes, service à la clientèle\",\n \"Ressources humaines, administration \",\n \"Finance\", comptable\",\n \"Avocat, affaires juridiques\",\n \"Marketing\",\n \"Professeur\",\n \"Étudiant\",\n \"Autre\"\n ],\n \"lastAllowInput\": vrai\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"Quel est le nom de votre entreprise? ,\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"titre\": \"Veuillez laisser votre adresse e-mail/ numéro de téléphone/ compte Wechat ci-dessous afin que nous puissions vous joindre à temps lorsque vous avez besoin d'aide. ,\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"titre\": \"Merci d'avoir rempli le formulaire, vous pouvez ajouter notre service à la clientèle en cas de besoin\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u. ika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -21566,13 +21615,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"Vous pouvez rapidement créer un formulaire à partir de la vue actuelle. Le nombre et l'ordre des champs dans le formulaire sont compatibles avec la vue.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR . tyle_help__1sXEA\", \n\"placement\": \"rightBais\",\n \"title\": \"Conseil\", \n\"offsetY\":5,\n\"description\": \"Vous pouvez trouver votre assistant Vikaby à partir de l'icône \"Aide\" à gauche\", \"enfants\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Vous voulez utiliser et visualiser vos données de manière plus riche? Essayez le widget ! , \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"élément\": \". tyle_widgetPanelContainer__1l2ZV\",\n\"placement\": \"centre gauche\",\n \"titre\": \"Qu'est-ce qu'un widget\", \n\"description\": \"Les widgets Vika sont une application étendue de vikadonnées qui se caractérise par une visualisation de données plus riche, le transfert de données, le nettoyage de données, et plus encore. En installant des widgets dans le tableau des widgets, vous pouvez faciliter le travail.\", \"enfants\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officiellement recommandé et personnalisés widgets sont publiés ici. Vous pouvez installer n'importe quel widget que vous voulez sur un tableau de bord ou dans un widget de n'importe quelle feuille de données.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 bouton\",\n\"placement\": \"rightBottom\",\n \"title\": \"Installer le widget\", \n\"description\": \"Installons ce widget \"Graphique\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -21669,6 +21718,7 @@ "preview_guide_click_to_restart": "Appuyez sur le bouton ci-dessous pour prévisualiser à nouveau", "preview_guide_enable_it": "Appuyez sur le bouton ci-dessous pour activer cette fonction", "preview_guide_open_office_preview": "Pour visualiser ce fichier, veuillez activer la fonction \"Prévisualisation bureautique\"", + "preview_next_automation_execution_time": "Aperçu des 5 prochaines heures d'exécution", "preview_not_support_video_codecs": "Seules les vidéos MP4 avec des codecs H.264 peuvent être prévisualisées", "preview_revision": "Aperçu", "preview_see_more": "Vous voulez en savoir plus sur la fonction \"aperçu des dossiers de bureau\" ? Veuillez cliquer ici", @@ -22220,6 +22270,7 @@ "scan_to_login": "Scanner pour se connecter", "scan_to_login_by_method": "Veuillez scanner ${method} pour suivre le compte officiel pour vous connecter", "scatter_chart": "Graphique de dispersion", + "schedule_type": "Type d'horaire", "science_and_technology": "Science et technologie", "scroll_screen_down": "Faire défiler un écran vers le bas", "scroll_screen_left": "Faire défiler un écran vers la gauche", @@ -22785,9 +22836,11 @@ "subscribe_credit_usage_over_limit": "Le nombre de crédits dans l'espace actuel dépasse la limite, veuillez mettre à jour votre abonnement.\n", "subscribe_demonstrate": "Demander des démos", "subscribe_disabled_seat": "Le nombre de personnes ne peut pas être inférieur au programme original", + "subscribe_grade_business": "Entreprise", "subscribe_grade_free": "Gratuit", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Approuvé", + "subscribe_grade_starter": "Entrée", "subscribe_label_tooltip": "Fonctionnalités de l'espace avancé", "subscribe_new_choose_member": "Prend en charge jusqu'à ${member_num} membres", "subscribe_new_choose_member_tips": "Ce forfait permet à 1 ~ ${member_num} membres d'accéder à l'espace", @@ -22924,7 +22977,7 @@ "template_name_repetition_title": "\"${templateName}\" existe déjà. Voulez-vous le remplacer?", "template_no_template": "Aucun modèle", "template_not_found": "Vous ne trouvez pas de modèles que vous voulez ? Dites-nous", - "template_recommend_title": "Chaud", + "template_recommend_title": "🌟 Hot", "template_type": "Gabarit", "terms_of_service": "< conditions d'utilisation >", "terms_of_service_pure_string": "Conditions d'utilisation", @@ -23070,6 +23123,7 @@ "timemachine_update_comment": "commentaire(s) mis à jour", "times_per_month_unit": "appel(s)/mois", "times_unit": " appel(s)", + "timing_rules": "Horaire", "timor_leste": "Timor oriental", "tip_del_success": "Vous pouvez restaurer votre Espace dans les 7 jours", "tip_do_you_want_to_know_about_field_permission": "Vous voulez chiffrer les données des champs ? En savoir plus sur les autorisations des champs", @@ -24490,6 +24544,7 @@ "automation_runs_this_month": "Esce questo mese", "automation_stay_tuned": "Rimani sintonizzato", "automation_success": "Successo", + "automation_tips": "Il campo del pulsante non è configurato correttamente, controlla e riprova", "automation_updater_label": "Può visualizzare la cronologia di esecuzione dell'automazione", "automation_variabel_empty": "Non ci sono dati che possano essere utilizzati nel passaggio preliminare, modificali e riprova.", "automation_variable_datasheet": "Ottieni dati da ${NODE_NAME}", @@ -24525,6 +24580,7 @@ "bermuda": "Bermude", "bhutan": "Bhutan", "billing_over_limit_tip_common": "L'utilizzo dello spazio ha superato il limite e potrai usufruire di un importo maggiore dopo l'aggiornamento.", + "billing_over_limit_tip_forbidden": "La durata della prova o il periodo di abbonamento sono scaduti. Si prega di contattare il consulente di vendita per rinnovare.", "billing_over_limit_tip_widget": "Il numero di installazioni di widget ha superato il limite ed è possibile eseguire l'aggiornamento per ottenere un utilizzo maggiore.", "billing_period": "Periodo di fatturazione: ${period}", "billing_subscription_warning": "Esperienza caratteristica", @@ -24584,10 +24640,14 @@ "button_text": "Testo del pulsante", "button_text_click_start": "Fare clic per iniziare", "button_type": "Tipo di pulsante", + "by_days": "Giorni", "by_field_id": "Usa ID campo", + "by_hours": "Ore", + "by_months": "Mesi", "by_the_day": "Di giorno", "by_the_month": "Mensile", "by_the_year": "Annuale", + "by_weeks": "Settimane", "calendar_add_date_time_field": "Crea campo data", "calendar_color_more": "Altri colori", "calendar_const_detail_weeks": "[\"lunedì\",\"martedì\",\"mercoledì\",\"giovedì\",\"venerdì\",\"sabato\",\"domenica\"]", @@ -25442,7 +25502,7 @@ "expired": "Scaduto", "export": "Esportazione...", "export_brand_desc": "Offerto da", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Esporta in un file .png", "export_gantt_chart": "Esporta il grafico gantt", "export_to_excel": "Esporta dati", @@ -26147,6 +26207,8 @@ "guests_per_space": "Ospiti per spazio", "guide_1": "啊这", "guide_2": "Ci vogliono solo pochi minuti per imparare le funzioni di base. Lavora in modo più produttivo da questo momento in poi!", + "guide_flow_modal_contact_sales": "Contatta l'ufficio vendite", + "guide_flow_modal_get_started": "Iniziare", "guide_flow_of_catalog_step1": "Qui è il catalogo di lavoro in cui tutte le cartelle e i file dello spazio sono memorizzati.", "guide_flow_of_catalog_step2": "Nel catalogo di lavoro è possibile creare un foglio dati o una cartella a seconda delle necessità.", "guide_flow_of_click_add_view_step1": "Oltre ad alcune viste di base, si consiglia vivamente di creare una vista album se si dispone di allegati in formato immagine.", @@ -26533,6 +26595,7 @@ "lark_version_enterprise": "Piano d'impresa con Lark", "lark_version_standard": "Piano standard con Lark", "lark_versions_free": "Piano di base con Lark", + "last_day": "Ultimo giorno", "last_modified_by_select_modal_desc": "Se uno dei campi selezionati di seguito viene modificato, il membro che ha modificato di recente verrà visualizzato nell'ultimo campo modificato", "last_modified_time_select_modal_desc": "Se uno dei campi selezionati di seguito viene modificato, l'ora modificata più recente verrà visualizzata nel campo dell'ultima modifica", "last_step": "Indietro", @@ -27450,7 +27513,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- aggiornamenti\", \"bambini\": \"

🚀 Introduzione di nuove funzionalità

\\N
  • Viene lanciato il nuovo tipo di campo \"Cascader\", rendendo più semplice la selezione da una gerarchia di opzioni sui moduli
  • Viene rilasciato il widget \"Script\", meno codice per una maggiore personalizzazione
  • Attiva l'automazione per inviare e-mail e ricevere notifiche rapide
  • Attiva l'automazione per inviare un messaggio a Slack e informare il tuo team in tempo
  • Esplorando l'intelligenza artificiale: rilasciato il widget \"Generatore di contenuti GPT\".
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introduzione agente AI\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introduzione agente AI\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -27480,13 +27543,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -27583,6 +27646,7 @@ "preview_guide_click_to_restart": "Premere il pulsante qui sotto per visualizzare nuovamente l'anteprima", "preview_guide_enable_it": "Premere il pulsante qui sotto per attivare questa funzione", "preview_guide_open_office_preview": "Per visualizzare l'anteprima di questo file, attivare la funzione \"anteprima ufficio\"", + "preview_next_automation_execution_time": "Anteprima dei prossimi 5 tempi di esecuzione", "preview_not_support_video_codecs": "Solo i video MP4 con codec video H.264 possono essere visualizzati in anteprima", "preview_revision": "Anteprima", "preview_see_more": "Vuoi saperne di più sulla funzione \"anteprima file di ufficio\"? Clicca qui", @@ -28134,6 +28198,7 @@ "scan_to_login": "Scansiona per accedere", "scan_to_login_by_method": "Scansiona ${method} per seguire l'account ufficiale per accedere", "scatter_chart": "Grafico a dispersione", + "schedule_type": "Tipo di pianificazione", "science_and_technology": "Scienza e tecnologia", "scroll_screen_down": "Scorri uno schermo verso il basso", "scroll_screen_left": "Scorri uno schermo a sinistra", @@ -28699,9 +28764,11 @@ "subscribe_credit_usage_over_limit": "Il numero di crediti nello spazio corrente supera il limite, si prega di aggiornare il vostro abbonamento.\n", "subscribe_demonstrate": "Richiedi demo", "subscribe_disabled_seat": "Il numero di persone non può essere inferiore al programma originale", + "subscribe_grade_business": "Attività commerciale", "subscribe_grade_free": "Gratis", "subscribe_grade_plus": "Più", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Antipasto", "subscribe_label_tooltip": "Caratteristiche avanzate dello spazio", "subscribe_new_choose_member": "Supporta fino a ${member_num} membri", "subscribe_new_choose_member_tips": "Questo piano supporta 1~${member_num} membri per entrare nello spazio", @@ -28838,7 +28905,7 @@ "template_name_repetition_title": "\"${templateName}\" esiste già. Vuoi sostituirlo?", "template_no_template": "Nessun modello", "template_not_found": "Non riesci a trovare i modelli che desideri? Dicci", - "template_recommend_title": "Caldo", + "template_recommend_title": "🌟 Hot", "template_type": "Modello", "terms_of_service": "", "terms_of_service_pure_string": "Condizioni di servizio", @@ -28984,6 +29051,7 @@ "timemachine_update_comment": "commenti aggiornati", "times_per_month_unit": "invito/mese", "times_unit": "call(s)", + "timing_rules": "Tempistica", "timor_leste": "Timor-Est", "tip_del_success": "Puoi ripristinare il tuo spazio entro 7 giorni", "tip_do_you_want_to_know_about_field_permission": "Vuoi crittografare i dati del campo? Informazioni sulle autorizzazioni dei campi", @@ -30404,6 +30472,7 @@ "automation_runs_this_month": "今月の運行", "automation_stay_tuned": "乞うご期待", "automation_success": "成功", + "automation_tips": "ボタンフィールドの設定が間違っています。確認してもう一度お試しください。", "automation_updater_label": "オートメーションの実行履歴を表示できます", "automation_variabel_empty": "前段階で使用できるデータがありません。調整して再試行してください。", "automation_variable_datasheet": "${NODE_NAME} からデータを取得する", @@ -30439,6 +30508,7 @@ "bermuda": "バミューダ諸島", "bhutan": "ブータン", "billing_over_limit_tip_common": "容量の使用量が制限を超えているため、アップグレード後はより多くの量をお楽しみいただけます。", + "billing_over_limit_tip_forbidden": "試用期間またはサブスクリプション期間が終了しました。更新するには販売コンサルタントにご連絡ください。", "billing_over_limit_tip_widget": "ウィジェットのインストール数が制限を超えているため、アップグレードして使用量を増やすことができます。", "billing_period": "請求期間: ${period}", "billing_subscription_warning": "機能性", @@ -30498,10 +30568,14 @@ "button_text": "ボタンのテキスト", "button_text_click_start": "クリックして開始", "button_type": "ボタンの種類", + "by_days": "日々", "by_field_id": "フィールドIDの使用", + "by_hours": "時間", + "by_months": "月", "by_the_day": "日単位", "by_the_month": "月刊誌", "by_the_year": "毎年", + "by_weeks": "週間", "calendar_add_date_time_field": "作成日フィールド", "calendar_color_more": "その他の色", "calendar_const_detail_weeks": "[\"月曜日\",\"火曜日\",\"水曜日\",\"木曜日\",\"金曜日\",\"土曜日\",\"日曜日\"]", @@ -31356,7 +31430,7 @@ "expired": "期限が切れる", "export": "エクスポート中。。。", "export_brand_desc": "テクニカルサポート", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": ".pngファイルにエクスポート", "export_gantt_chart": "ガントチャートのエクスポート", "export_to_excel": "データのエクスポート", @@ -32061,6 +32135,8 @@ "guests_per_space": "各スペースのお客様", "guide_1": "啊这", "guide_2": "基本機能を学ぶのに数分しかかかりません。この瞬間から、仕事の効率がさらにアップ!", + "guide_flow_modal_contact_sales": "営業担当者へのお問い合わせ", + "guide_flow_modal_get_started": "始めましょう", "guide_flow_of_catalog_step1": "これは作業ディレクトリで、スペースのすべてのフォルダとファイルが格納されています。", "guide_flow_of_catalog_step2": "作業ディレクトリでは、必要に応じてデータテーブルまたはフォルダを作成できます。", "guide_flow_of_click_add_view_step1": "基本ビューのほかに、画像形式の添付ファイルがある場合は、アルバムビューを作成することを強くお勧めします。", @@ -32447,6 +32523,7 @@ "lark_version_enterprise": "Larkのエンタープライズ計画", "lark_version_standard": "Lark標準平面図", "lark_versions_free": "Larkの基本平面図", + "last_day": "最終日", "last_modified_by_select_modal_desc": "下で選択したフィールドを編集すると、最後に編集したメンバーが最後に編集したフィールドに表示されます", "last_modified_time_select_modal_desc": "下で選択したフィールドを編集すると、最後に編集した時刻が最後に編集した時刻フィールドに表示されます", "last_step": "リターンマッチ", @@ -33364,7 +33441,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-更新\"、\"子\": \"

🚀 新機能のご紹介

\\n
  • 新しいフィールド タイプ「Cascader」がリリースされ、フォーム上のオプションの階層からの選択が容易になります。
  • 「スクリプト」ウィジェットがリリースされ、より少ないコードでよりカスタマイズ可能に
  • 自動化をトリガーして電子メールを送信し、迅速な通知を受け取ります
  • 自動化をトリガーして Slack にメッセージを送信し、時間内にチームに通知します
  • AIの探求:「GPT Content Generator」ウィジェットをリリース
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AIエージェント入門\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AIエージェント入門\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -33394,13 +33471,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -33497,6 +33574,7 @@ "preview_guide_click_to_restart": "下のボタンを押して再度プレビュー", "preview_guide_enable_it": "次のボタンを押してこの機能を開きます", "preview_guide_open_office_preview": "このファイルをプレビューするには、「オフィスプレビュー」機能を開きます", + "preview_next_automation_execution_time": "次の 5 回の実行時間をプレビューする", "preview_not_support_video_codecs": "H.264ビデオコーデック付きMP 4ビデオのみプレビュー可能", "preview_revision": "プレビュー", "preview_see_more": "オフィスファイルプレビュー機能の詳細について知りたいですか?ここをクリックしてください", @@ -34048,6 +34126,7 @@ "scan_to_login": "スキャンログイン", "scan_to_login_by_method": "${method} をスキャンして公式アカウントをフォローしてログインしてください", "scatter_chart": "さんぷず", + "schedule_type": "スケジュールの種類", "science_and_technology": "科学と技術", "scroll_screen_down": "画面を下にスクロール", "scroll_screen_left": "画面を左にスクロール", @@ -34613,9 +34692,11 @@ "subscribe_credit_usage_over_limit": "現在の空間のポイント数が制限を超えていますので、購読をアップグレードしてください。\n", "subscribe_demonstrate": "デモンストレーションのリクエスト", "subscribe_disabled_seat": "人数は当初の計画を下回ってはならない", + "subscribe_grade_business": "仕事", "subscribe_grade_free": "フリー", "subscribe_grade_plus": "プラス", "subscribe_grade_pro": "プロ", + "subscribe_grade_starter": "スターター", "subscribe_label_tooltip": "高度なスペース機能", "subscribe_new_choose_member": "最大 ${member_num} 人のメンバーをサポート", "subscribe_new_choose_member_tips": "このプランでは 1~${member_num} 名のメンバーがスペースに入場できます", @@ -34752,7 +34833,7 @@ "template_name_repetition_title": "「${templateName}」はすでに存在します。取り替えたいですか?", "template_no_template": "テンプレートなし", "template_not_found": "希望するテンプレートが見つかりませんでしたか?教えて", - "template_recommend_title": "あつい", + "template_recommend_title": "🌟 Hot", "template_type": "テンプレート", "terms_of_service": "<サービス約款>", "terms_of_service_pure_string": "サービス条件", @@ -34898,6 +34979,7 @@ "timemachine_update_comment": "コメントを更新しました", "times_per_month_unit": "コール/月", "times_unit": "コール数", + "timing_rules": "タイミング", "timor_leste": "東ティモール", "tip_del_success": "7日以内に共有スペースをリカバリできます", "tip_do_you_want_to_know_about_field_permission": "フィールドデータを暗号化しますか?フィールド権限の理解", @@ -36318,6 +36400,7 @@ "automation_runs_this_month": "이번 달에 실행", "automation_stay_tuned": "계속 지켜봐 주시기 바랍니다", "automation_success": "성공", + "automation_tips": "버튼 필드가 잘못 구성되었습니다. 확인하고 다시 시도해 주세요.", "automation_updater_label": "자동화의 실행 기록을 볼 수 있습니다.", "automation_variabel_empty": "사전 단계에서 사용할 수 있는 데이터가 없습니다. 조정 후 다시 시도해 주세요.", "automation_variable_datasheet": "${NODE_NAME}에서 데이터 가져오기", @@ -36353,6 +36436,7 @@ "bermuda": "버뮤다 제도", "bhutan": "부탄", "billing_over_limit_tip_common": "공간 사용량이 한도를 초과했으며, 업그레이드 후 더 많은 양을 즐기실 수 있습니다.", + "billing_over_limit_tip_forbidden": "평가판 기간 또는 구독 기간이 만료되었습니다. 갱신하려면 영업 컨설턴트에게 문의하세요.", "billing_over_limit_tip_widget": "위젯 설치 수가 한도를 초과했습니다. 업그레이드하여 사용량을 늘릴 수 있습니다.", "billing_period": "청구 기간: ${period}", "billing_subscription_warning": "기능 경험", @@ -36412,10 +36496,14 @@ "button_text": "버튼 텍스트", "button_text_click_start": "시작하려면 클릭하세요", "button_type": "버튼 유형", + "by_days": "날", "by_field_id": "필드 ID 사용", + "by_hours": "시간", + "by_months": "개월", "by_the_day": "일별", "by_the_month": "월간", "by_the_year": "매년의", + "by_weeks": "주", "calendar_add_date_time_field": "만든 날짜 필드", "calendar_color_more": "추가 색상", "calendar_const_detail_weeks": "[\"월요일\",\"화요일\",\"수요일\",\"목요일\",\"금요일\",\"토요일\",\"일요일\"]", @@ -37270,7 +37358,7 @@ "expired": "만기", "export": "내보내는 중...", "export_brand_desc": "기술 지원", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": ".png 파일로 내보내기", "export_gantt_chart": "Gantt 차트 내보내기", "export_to_excel": "데이터 내보내기", @@ -37975,6 +38063,8 @@ "guests_per_space": "각 공간의 손님", "guide_1": "啊这", "guide_2": "기본 기능을 학습하는 데 몇 분밖에 걸리지 않습니다.이 순간부터 생산성 향상!", + "guide_flow_modal_contact_sales": "영업팀에 문의", + "guide_flow_modal_get_started": "시작하다", "guide_flow_of_catalog_step1": "Space의 모든 폴더와 파일이 저장된 작업 디렉토리입니다.", "guide_flow_of_catalog_step2": "작업 디렉토리에서 필요에 따라 데이터 테이블이나 폴더를 만들 수 있습니다.", "guide_flow_of_click_add_view_step1": "일부 기본 보기 외에 그림 형식의 첨부 파일이 있으면 앨범 보기를 만드는 것이 좋습니다.", @@ -38361,6 +38451,7 @@ "lark_version_enterprise": "Lark의 엔터프라이즈 프로그램", "lark_version_standard": "Lark 표준 평면도", "lark_versions_free": "Lark의 기본 평면도", + "last_day": "마지막 날", "last_modified_by_select_modal_desc": "아래에서 선택한 필드를 편집하면 최근에 편집한 구성원이 마지막으로 편집한 필드에 표시됩니다.", "last_modified_time_select_modal_desc": "아래에서 선택한 필드를 편집하면 가장 최근에 편집한 시간이 마지막으로 편집한 시간 필드에 표시됩니다.", "last_step": "반환", @@ -39278,7 +39369,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- 업데이트\", \"어린이\": \"

🚀 새로운 기능 소개

\\N
  • 새로운 필드 유형 \"캐스케이더\"가 출시되어 양식의 옵션 계층 구조에서 더 쉽게 선택할 수 있습니다.
  • \"스크립트\" 위젯이 출시되었습니다. 더 적은 코드로 더 많은 사용자 정의 가능
  • 자동화를 실행하여 이메일을 보내고 빠른 알림 받기
  • 자동화를 실행하여 Slack에 메시지를 보내고 적시에 팀에 알립니다.
  • AI 탐색: \"GPT 콘텐츠 생성기\" 위젯 출시
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 프록시 프로필\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 프록시 프로필\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -39308,13 +39399,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -39411,6 +39502,7 @@ "preview_guide_click_to_restart": "아래 버튼을 눌러 다시 미리보기", "preview_guide_enable_it": "아래 버튼을 눌러 이 기능을 엽니다.", "preview_guide_open_office_preview": "이 파일을 미리 보려면 사무실 미리 보기 기능을 엽니다.", + "preview_next_automation_execution_time": "다음 5개의 실행 시간 미리보기", "preview_not_support_video_codecs": "H.264 비디오 코덱이 있는 MP4 비디오만 미리 볼 수 있습니다.", "preview_revision": "미리 보기", "preview_see_more": "오피스 파일 미리보기 기능에 대해 더 알고 싶으십니까?여기를 클릭하십시오.", @@ -39962,6 +40054,7 @@ "scan_to_login": "로그인 검색", "scan_to_login_by_method": "로그인하려면 ${method}를 스캔하여 공식 계정을 팔로우하세요.", "scatter_chart": "산포도", + "schedule_type": "일정 유형", "science_and_technology": "과학과 기술", "scroll_screen_down": "화면 아래로 스크롤", "scroll_screen_left": "왼쪽으로 화면 스크롤", @@ -40527,9 +40620,11 @@ "subscribe_credit_usage_over_limit": "현재 스페이스의 포인트 수가 제한을 초과합니다. 서브스크립션을 업그레이드하십시오.\n", "subscribe_demonstrate": "요청 프레젠테이션", "subscribe_disabled_seat": "인원수는 원래 계획보다 낮아서는 안 된다.", + "subscribe_grade_business": "사업", "subscribe_grade_free": "자유의", "subscribe_grade_plus": "더하기", "subscribe_grade_pro": "찬성", + "subscribe_grade_starter": "기동기", "subscribe_label_tooltip": "고급 공간 기능", "subscribe_new_choose_member": "최대 ${member_num}명의 회원 지원", "subscribe_new_choose_member_tips": "이 플랜은 1~${member_num}명의 멤버가 공간에 입장할 수 있도록 지원합니다.", @@ -40666,7 +40761,7 @@ "template_name_repetition_title": "\"${templateName}\"이(가) 이미 존재합니다. 교체하시겠습니까?", "template_no_template": "템플릿 없음", "template_not_found": "원하는 템플릿을 찾을 수 없습니까?알려주세요", - "template_recommend_title": "더웠어", + "template_recommend_title": "🌟 Hot", "template_type": "템플릿", "terms_of_service": "<서비스 약관>", "terms_of_service_pure_string": "서비스 약관", @@ -40812,6 +40907,7 @@ "timemachine_update_comment": "업데이트된 댓글", "times_per_month_unit": "전화 / 월", "times_unit": "전화기", + "timing_rules": "타이밍", "timor_leste": "동티모르", "tip_del_success": "7일 이내에 공유 공간을 복구할 수 있습니다.", "tip_do_you_want_to_know_about_field_permission": "필드 데이터를 암호화하시겠습니까?필드 권한 이해", @@ -42232,6 +42328,7 @@ "automation_runs_this_month": "Работает в этом месяце", "automation_stay_tuned": "Следите за обновлениями", "automation_success": "Успех", + "automation_tips": "Поле кнопки настроено неправильно. Проверьте и повторите попытку.", "automation_updater_label": "Можно просмотреть историю запуска автоматизации.", "automation_variabel_empty": "Нет данных, которые можно было бы использовать на предварительном этапе. Измените настройки и повторите попытку.", "automation_variable_datasheet": "Получить данные из ${NODE_NAME}", @@ -42267,6 +42364,7 @@ "bermuda": "Бермудскиеострова", "bhutan": "Бутан", "billing_over_limit_tip_common": "Использование пространства превысило лимит, и после обновления вы сможете получить больший объем.", + "billing_over_limit_tip_forbidden": "Срок действия пробной версии или подписки истек. Пожалуйста, свяжитесь с продавцом-консультантом для продления.", "billing_over_limit_tip_widget": "Количество установок виджетов превысило лимит, и вы можете обновить их, чтобы увеличить использование.", "billing_period": "Расчетный период: ${period}", "billing_subscription_warning": "Функциональный опыт", @@ -42326,10 +42424,14 @@ "button_text": "Текст кнопки", "button_text_click_start": "Нажмите, чтобы начать", "button_type": "Тип кнопки", + "by_days": "Дни", "by_field_id": "Использовать идентификатор поля", + "by_hours": "Часы", + "by_months": "Месяцы", "by_the_day": "По дням", "by_the_month": "Ежемесячный журнал", "by_the_year": "Ежегодно", + "by_weeks": "Недели", "calendar_add_date_time_field": "Создать поле даты", "calendar_color_more": "Больше цветов", "calendar_const_detail_weeks": "[\"понедельник\",\"вторник\",\"среда\",\"четверг\",\"пятница\",\"суббота\",\"воскресенье\"]", @@ -43184,7 +43286,7 @@ "expired": "Срок действия", "export": "Проводится экспорт.", "export_brand_desc": "Техническая поддержка", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Экспорт в файл.png", "export_gantt_chart": "Экспорт диаграммы Ганта", "export_to_excel": "Экспорт данных", @@ -43889,6 +43991,8 @@ "guests_per_space": "Гости в каждом пространстве", "guide_1": "啊这", "guide_2": "Изучение основных функций занимает всего несколько минут. С этого момента работа становится эффективнее!", + "guide_flow_modal_contact_sales": "Свяжитесь с отделом продаж", + "guide_flow_modal_get_started": "Начать", "guide_flow_of_catalog_step1": "Это рабочий каталог, в котором хранятся все папки и файлы Space.", "guide_flow_of_catalog_step2": "В рабочем каталоге вы можете создавать таблицы данных или папки по мере необходимости.", "guide_flow_of_click_add_view_step1": "В дополнение к некоторым основным видам, если у вас есть вложения в формате изображения, настоятельно рекомендуется создать вид альбома.", @@ -44275,6 +44379,7 @@ "lark_version_enterprise": "Бизнес - план Ларка", "lark_version_standard": "Стандартный план Ларка", "lark_versions_free": "Основные планы Ларка", + "last_day": "Последний день", "last_modified_by_select_modal_desc": "Если какое - либо поле, выбранное ниже, будет отредактировано, последний член редактора будет показан в поле последнего редактирования", "last_modified_time_select_modal_desc": "Если вы отредактировали любое поле, выбранное ниже, время последнего редактирования будет показано в поле времени последнего редактирования", "last_step": "Возвращение", @@ -45192,7 +45297,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- обновления\", \"дети\": \"

🚀 Введение новых функций

\\п
  • Запущен новый тип поля «Каскад», упрощающий выбор из иерархии параметров в формах.
  • Выпущен виджет «Скрипт», меньше кода для большей настройки
  • Запустите автоматизацию для отправки электронных писем и быстрого получения уведомлений.
  • Запустите автоматизацию, чтобы отправить сообщение в Slack и вовремя проинформировать свою команду.
  • Исследование искусственного интеллекта: выпущен виджет «GPT Content Generator»
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Введение AI-агент\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Введение AI-агент\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -45222,13 +45327,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -45325,6 +45430,7 @@ "preview_guide_click_to_restart": "Нажмите кнопку ниже для просмотра", "preview_guide_enable_it": "Нажмите кнопку ниже, чтобы открыть эту функцию", "preview_guide_open_office_preview": "Для предварительного просмотра этого файла откройте функцию \"Office Preview\"", + "preview_next_automation_execution_time": "Предварительный просмотр следующих 5 раз выполнения", "preview_not_support_video_codecs": "Просмотр только видео MP4 с видеокодеком H.264", "preview_revision": "Предварительный просмотр", "preview_see_more": "Хотите узнать больше о функции « Предварительный просмотр офисных документов»? Пожалуйста, нажмите здесь.", @@ -45876,6 +45982,7 @@ "scan_to_login": "Сканирование записей", "scan_to_login_by_method": "Отсканируйте ${method}, чтобы войти в официальный аккаунт", "scatter_chart": "Диаграмма распространения", + "schedule_type": "Тип расписания", "science_and_technology": "Наука и техника", "scroll_screen_down": "Прокрутить экран вниз", "scroll_screen_left": "Прокрутить экран влево", @@ -46441,9 +46548,11 @@ "subscribe_credit_usage_over_limit": "количество кредитов в текущем пространстве превышает лимит, пожалуйста, обновите подписку.\n", "subscribe_demonstrate": "Запросить демонстрацию", "subscribe_disabled_seat": "Численность не должна быть ниже запланированной.", + "subscribe_grade_business": "Бизнес", "subscribe_grade_free": "Свободный", "subscribe_grade_plus": "А", "subscribe_grade_pro": "Согласен.", + "subscribe_grade_starter": "Стартер", "subscribe_label_tooltip": "Расширенные пространственные функции", "subscribe_new_choose_member": "Поддерживает до ${member_num} участников", "subscribe_new_choose_member_tips": "Этот план поддерживает 1~${member_num} участников для входа в пространство", @@ -46580,7 +46689,7 @@ "template_name_repetition_title": "\"${templateName}\" уже существует. Вы хотите заменить это?", "template_no_template": "Нет шаблонов", "template_not_found": "Не нашли нужный шаблон? Скажи нам.", - "template_recommend_title": "Горячий", + "template_recommend_title": "🌟 Hot", "template_type": "Образец", "terms_of_service": "< Условия обслуживания >", "terms_of_service_pure_string": "Условия предоставления услуг", @@ -46726,6 +46835,7 @@ "timemachine_update_comment": "Обновлены комментарии", "times_per_month_unit": "Телефон / месяц", "times_unit": "Телефон", + "timing_rules": "Тайминг", "timor_leste": "Тимор - Лешти", "tip_del_success": "Вы можете восстановить свое общее пространство за 7 дней.", "tip_do_you_want_to_know_about_field_permission": "Хотите зашифровать данные поля? Права доступа к полю", @@ -47857,6 +47967,7 @@ "api_params_updatedby_can_not_operate": "修改人列的值由系统自动生成,不允许编辑", "api_params_views_max_count_error": "", "api_params_widget_package_id_error": "widgetPackageId 不能为空", + "api_params_workdoc_can_not_operate": "WorkDoc field can't be edited", "api_query_params_invalid_fields": "传入的 fields 不存在:{fields}", "api_query_params_view_id_not_exists": "查询的视图({viewId}) 不存在 ", "api_request_success": "成功", @@ -47964,7 +48075,7 @@ "assistant_activity_train_camp": "限时福利", "assistant_beginner_task": "新手任务", "assistant_beginner_task_1_what_is_datasheet": "什么是 APITable", - "assistant_beginner_task_2_quick_start": "一分钟快速入门", + "assistant_beginner_task_2_quick_start": "VIKA产品演示", "assistant_beginner_task_3_how_to_use_datasheet": "玩转一张维格表", "assistant_beginner_task_4_share_and_invite": "分享和邀请成员", "assistant_beginner_task_5_onboarding": "智能引导", @@ -48225,7 +48336,7 @@ "button_bind_now": "立即绑定", "button_change_phone": "修改手机", "button_check_history": "查看运行历史", - "button_check_history_end": "", + "button_check_history_end": ".", "button_click_trigger_explanation": "\"按钮被点击时\" 是一个触发条件,当用户点击你新建的按钮列时,它会被触发", "button_color": "按钮颜色", "button_combine": "按钮组合", @@ -48241,10 +48352,14 @@ "button_text": "按钮文案", "button_text_click_start": "点击开始", "button_type": "按钮类型", + "by_days": "按天", "by_field_id": "使用 Field ID", + "by_hours": "按小时", + "by_months": "按月", "by_the_day": "按天", "by_the_month": "按月", "by_the_year": "按年", + "by_weeks": "按周", "calendar_add_date_time_field": "创建日期", "calendar_color_more": "更多颜色", "calendar_const_detail_weeks": "[\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\",\"星期天\"]", @@ -49806,6 +49921,8 @@ "guests_per_space": "外部访客", "guide_1": "来呀互相伤害呀", "guide_2": "花费几分钟跟随我们的指引,学习一下维格表的常规功能,可以让您事半功倍哦!", + "guide_flow_modal_contact_sales": "预约销售", + "guide_flow_modal_get_started": "立刻使用", "guide_flow_of_catalog_step1": "这是工作目录,里边存放的是空间站的所有文件夹和文件", "guide_flow_of_catalog_step2": "工作目录里面,除了可以单独创建维格表,也可以单独创建文件夹", "guide_flow_of_click_add_view_step1": "除了基本的表格视图之外,我们支持创建相册视图,如果你有图片附件的话,我建议你创建个相册视图试试", @@ -49861,6 +49978,7 @@ "hide_uneditable_automation_node": "隐藏无编辑权限的自动化节点", "hide_unmanage_sheet": "隐藏无管理权限的文件", "hide_unmanageable_files": "隐藏无管理权限的文件", + "hide_unmanaged_sheet": "Hide unmanageable resource", "hide_unusable_sheet": "隐藏无编辑权限的文件", "highlight": "高亮", "hint": "提示", @@ -50192,6 +50310,7 @@ "lark_version_enterprise": "飞书企业版", "lark_version_standard": "飞书标准版", "lark_versions_free": "飞书基础版", + "last_day": "最后一天", "last_modified_by_select_modal_desc": "由于该维格列类型的特殊性,下方只展示可编辑的列,每当有人在指定的列进行过修改,则会更新当前的修改人", "last_modified_time_select_modal_desc": "由于该维格列类型的特殊性,下方只展示可编辑的列,每当有人在指定的列进行过修改,则会更新当前的修改时间", "last_step": "上一步", @@ -51104,12 +51223,12 @@ "player_step_ui_config_163": "", "player_step_ui_config_164": "", "player_step_ui_config_165": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/03/16/8374ca1295664675bd1155b077555113\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-03-16-updates\",\n \"children\": \"

🚀 新功能介绍

\\n
  • 镜像功能再次升级,可禁止查看已隐藏的字段
  • 个人设置追加时区信息,日期字段可指定时区
  • 「全局搜索」优化,新增搜索结果分类
  • 神奇表单支持隐藏官方标识
  • API 性能优化,大幅提高请求速度
\"\n}", - "player_step_ui_config_166": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Enterprise版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 500,000,000 行\",\n \"空间站附件容量数提高至 50 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://aitable.ai/management/upgrade\n}", + "player_step_ui_config_166": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Enterprise版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 500,000,000 行\",\n \"空间站附件容量数提高至 50 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://aitable.ai/management/upgrade\"\n}", "player_step_ui_config_167": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通过 APITable 解决哪些问题?\",\n \"type\": \"multiButton\",\n \"answers\": [\n \"IT 运维支持\",\n \"教育\",\n \"项目管理\",\n \"市场营销\",\n \"产品管理\",\n \"招聘管理\",\n \"运营\",\n \"金融财务\",\n \"销售 & 客户管理\",\n \"软件开发\",\n \"人力资源 & 合规\",\n \"设计 & 创意\",\n \"非盈利组织\",\n \"制造业\",\n \"其他\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作岗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"企业主\",\n \"团队负责人\",\n \"团队成员\",\n \"自由职业者\",\n \"主管\",\n \"高管层\",\n \"副总裁\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的团队规模是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"只有我\",\n \"2-5\",\n \"6-10\",\n \"11-15\",\n \"16-25\",\n \"25-50\",\n \"51-100\",\n \"101-500\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"您的公司规模是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"1-19\",\n \"20-49\",\n \"50-99\",\n \"100-250\",\n \"251-500\",\n \"501-1500\",\n \"1500+\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 5,\n \"name\": \"answer5\",\n \"title\": \"您从哪种途径了解到我们?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"搜索引擎\",\n \"YouTube\",\n \"Product Hunt\",\n \"Github\",\n \"推特\",\n \"领英\",\n \"朋友推荐\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 6,\n \"name\": \"answer6\",\n \"title\": \"加入我们的Discord社区,和全世界 APITable 的使用者一起讨论使用心得吧!在使用过程中如果遇到任何问题,可以随时在社区获得解答和帮助。\",\n \"type\": \"joinUs\",\n \"url\": \"https://discord.gg/2UXAbDTJTX\",\n \"confirmText\": \"加入社区\",\n \"skipText\": \"跳过\",\n \"submit\": true\n }\n ]\n}", "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 新功能介绍

\\n
  • 推出新字段类型「多级联动」,神奇表单支持多级选项
  • 脚本小程序上架,少少代码满足多多定制化
  • 维格表自动化支持「发送邮件」
  • 维格表自动化支持「发送到Slack」
  • 维格表的AI探索,「GPT 内容生成」小程序发布
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"使用模板教程\", \n\"description\": \"点击左侧按钮使用模板\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 助手介绍\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 助手介绍\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"使用模板教程\", \n\"description\": \"选择模板要存放的位置\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通过维格表解决哪些问题?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"工作规划\",\n \"客户服务\",\n \"项目管理\",\n \"采购供应\",\n \"内容生产\",\n \"电商运营\",\n \"活动策划\",\n \"人力资源\",\n \"行政管理\",\n \"财务管理\",\n \"网络直播\",\n \"高校管理\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作岗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"管理者\",\n \"项目经理\",\n \"产品经理\",\n \"设计师\",\n \"研发、工程师\",\n \"运营、编辑\",\n \"销售、客服\",\n \"人事、行政\",\n \"财务、会计\",\n \"律师、法务\",\n \"市场\",\n \"教师\",\n \"学生\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的公司名称是?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"请留下你的邮箱/手机/微信号,以便我们及时提供帮助。\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"感谢你的填写,请加一下客服号以备不时之需\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -51139,13 +51258,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"神奇表单\", \n\"description\": \"在这里可以快速生成当前视图的神奇表单,神奇表单的字段是依照视图的维格列数量以及顺序来生成的哦\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"小提示\", \n\"offsetY\":5,\n\"description\": \"你可以在左侧的「帮助中心」找回你的维格小助手\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"新功能\", \n\"description\": \"小程序上线!想要让沉淀下来的数据得到更好的运用吗?那就赶紧来体验一下吧\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"什么是小程序\", \n\"description\": \"维格小程序是维格表的一种扩展应用,可实现数据可视化、数据传输、数据清洗等等额外功能。通过在小程序面板安装适合团队的小程序,可以让工作事半功倍\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_5": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"小程序中心\", \n\"description\": \"官方推荐和空间站自建的小程序会发布到这里。你可以根据场景,在这里挑选合适的小程序放置到仪表盘或小程序面板里\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"安装小程序\", \n\"description\": \"我们安装这个「图表」小程序看看吧\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -51198,6 +51317,7 @@ "player_step_ui_config_95": "", "player_step_ui_config_97": "{\n\t\"vikaby\": {\n\t\t\"title\": \"你好\",\n\t\t\"description\": \"如果在使用过程中遇到问题,请扫描右侧二维码联系我解决\",\n\t\t\"list\": \"
  • 刚注册维格表,不知道怎么用
  • 维格表可以实现我想要的效果吗
  • 使用过程出现异常问题
  • 后续支持的功能有哪些
  • 获取官方邀请码
\",\n\t\t\"tip\": \"扫码添加客服\"\n\t},\n\t\"questionnaire\": {\n\t\t\"title\": \"您好,我是维格表数字化顾问\",\n\t\t\"list\": \"[{\\\"title\\\": \\\"Bug 吐槽\\\", \\\"icon\\\": \\\"BugOutlined\\\"}, {\\\"title\\\": \\\"需求反馈\\\", \\\"icon\\\": \\\"AdviseSmallOutlined\\\"}, {\\\"title\\\": \\\"服务支持\\\", \\\"icon\\\": \\\"ServeOutlined\\\"}, {\\\"title\\\": \\\"案例推荐\\\", \\\"icon\\\": \\\"ZanOutlined\\\"}, {\\\"title\\\": \\\"解决方案\\\", \\\"icon\\\": \\\"SolutionSmallOutlined\\\"}, {\\\"title\\\": \\\"产品答疑\\\", \\\"icon\\\": \\\"InformationLargeOutlined\\\"}]\",\n\t\t\"tip\": \"扫码添加微信,获得更多专属服务\"\n\t},\n\t\"website\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/59f4cc8e0b2b4395bf0fcd133d208e63\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/defbf55d1e9646eb929f9f5d11d5c119\"\n\t},\n\t\"dingtalk\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/964be5e3217b4fa8bfa74ef47a980093?attname=dingtalk-questionnaire.png\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/964be5e3217b4fa8bfa74ef47a980093?attname=dingtalk-vikaby.png\",\n\"tip\": \"请使用钉钉扫码,加入交流群\"\n\t},\n\t\"wecom\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/1346d5efbd5043efb2bfcba0075c0ee9\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/09401a8f2d8e491a9097b9bac8b5a4e4\"\n\t},\n\t\"feishu\": {\n\t\t\"title\": \"扫码添加客服\",\n\t\t\"tip\": \"请使用飞书扫码,添加客服号备用\",\n\t\t\"description\": \"以便使用过程中遇到问题,可以随时获得服务和解答\",\n\t\t\"originUrl\": \"https://u.vika.cn/z9ygm\"\n\t}\n}", "player_step_ui_config_99": "", + "player_step_ui_config_automation_1": "{\n \"element\": \"#AUTOMATION_ADD_TRIGGER_BTN\", \"title\":\"title\", \"description\": \"description\" \n} ", "player_step_ui_config_button_field_action_create": "{\n \"element\": \"#CONST_ROBOT_ACTION_CREATE\", \"placement\": \"topCenter\", \"title\": \"\", \"description\": \"现在你应该添加一个或多个 Action,以定义按钮点击后应执行的具体动作\" \n} ", "player_step_ui_config_button_field_bound_datasheet": "{\n \"element\": \"#AUTOMATION_BOUND_DATASHEET\", \"title\": \"\", \"description\": \"“按钮被点击时” 需要绑定表格和字段,以便知道哪里发生的点击行为,这里已经为你设置好\" \n} ", "player_step_ui_config_button_field_node": "{\n \"element\": \".TREE_NODE_ACTIVE_ONE\", \"title\": \"\", \"description\": \"自动化节点是自动化流程的起点,你可以在这里设置触发条件和相关动作\" \n} ", @@ -51242,6 +51362,7 @@ "preview_guide_click_to_restart": "点击下方按钮重新预览", "preview_guide_enable_it": "你可以点击下方按钮去启用此功能", "preview_guide_open_office_preview": "开启「office预览」功能后即可预览该文件", + "preview_next_automation_execution_time": "预览最近5次执行时间", "preview_not_support_video_codecs": "当前仅支持预览编码为H.264的MP4视频", "preview_revision": "预览此版本", "preview_see_more": "想要了解更多「office 文件预览」功能?请点击这里", @@ -51793,6 +51914,7 @@ "scan_to_login": "扫码登录", "scan_to_login_by_method": "请使用${method}关注公众号即可安全登录", "scatter_chart": "散点图", + "schedule_type": "定时类型", "science_and_technology": "科学技术", "scroll_screen_down": "向下滚动一屏", "scroll_screen_left": "向左滚动一屏", @@ -52358,9 +52480,11 @@ "subscribe_credit_usage_over_limit": "空间站的算力点数量已耗尽,请升级你的空间站。", "subscribe_demonstrate": "预约演示", "subscribe_disabled_seat": "人数不可低于原方案", + "subscribe_grade_business": "Business", "subscribe_grade_free": "免费版", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Starter", "subscribe_label_tooltip": "${grade}以上空间站专享功能", "subscribe_new_choose_member": "最高支持 ${member_num} 人", "subscribe_new_choose_member_tips": "本方案支持 1~${member_num} 名成员进入空间站使用", @@ -52497,7 +52621,7 @@ "template_name_repetition_title": "“${templateName}”已存在,确定要替换它吗?", "template_no_template": "暂无模板", "template_not_found": "找不到想要的模板? 请告诉我们~", - "template_recommend_title": "热门推荐", + "template_recommend_title": "🌟 热门推荐", "template_type": "模板", "terms_of_service": "《服务条款》", "terms_of_service_pure_string": " 服务条款", @@ -52643,6 +52767,7 @@ "timemachine_update_comment": "更新了评论", "times_per_month_unit": "次/月", "times_unit": "次", + "timing_rules": "定时规则", "timor_leste": "东帝汶", "tip_del_success": "我们将对您的空间站数据保留七天,七天内可随时撤销删除操作。", "tip_do_you_want_to_know_about_field_permission": "想对列数据加密吗?了解列权限", @@ -52902,7 +53027,7 @@ "vikaby_menu_hidden_vikaby": "取消悬浮", "vikaby_menu_releases_history": "历史更新", "vikaby_todo_menu1": "什么是维格表", - "vikaby_todo_menu2": "一分钟快速入门", + "vikaby_todo_menu2": "VIKA产品演示", "vikaby_todo_menu3": "玩转一张维格表", "vikaby_todo_menu4": "分享和邀请成员", "vikaby_todo_menu5": "智能引导", @@ -52987,7 +53112,7 @@ "weixin_share_card_title": "", "welcome_interface": "欢迎界面", "welcome_module1": "什么是 APITable", - "welcome_module2": "一分钟快速入门", + "welcome_module2": "VIKA产品演示", "welcome_module3": "玩转一张维格表", "welcome_module4": "内容日历", "welcome_module5": "项目管理", @@ -54063,6 +54188,7 @@ "automation_runs_this_month": "Runs this month", "automation_stay_tuned": "Stay tuned", "automation_success": "成功", + "automation_tips": "按鈕欄位配置錯誤,請檢查並重試", "automation_updater_label": "可以查看自動化的運行歷史記錄", "automation_variabel_empty": "前一步沒有可以使用的數據,請調整後重試。", "automation_variable_datasheet": "從 ${NODE_NAME} 取得數據", @@ -54098,6 +54224,7 @@ "bermuda": "百慕大群島", "bhutan": "不丹", "billing_over_limit_tip_common": "空間使用量已超過限制,升級後可享有更高的空間使用量。", + "billing_over_limit_tip_forbidden": "您的試用期或訂閱期已過期。請聯絡銷售顧問續訂。", "billing_over_limit_tip_widget": "小組件安裝數量已超出限制,您可以升級以獲得更高的使用量。", "billing_period": "計費周期:${period}", "billing_subscription_warning": "功能體驗", @@ -54157,10 +54284,14 @@ "button_text": "按鈕文字", "button_text_click_start": "點擊開始", "button_type": "按鈕類型", + "by_days": "天", "by_field_id": "使用 Field ID", + "by_hours": "小時", + "by_months": "幾個月", "by_the_day": "按天", "by_the_month": "按月", "by_the_year": "每年", + "by_weeks": "週數", "calendar_add_date_time_field": "創建日期", "calendar_color_more": "更多顏色", "calendar_const_detail_weeks": "[\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\",\"星期天\"]", @@ -55015,7 +55146,7 @@ "expired": "已過期", "export": "正在導出…", "export_brand_desc": "提供技術支持", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "導出為圖片", "export_gantt_chart": "導出甘特圖", "export_to_excel": "導出為 Excel 文件", @@ -55720,6 +55851,8 @@ "guests_per_space": "外部訪客", "guide_1": "來呀互相傷害呀", "guide_2": "花費幾分鐘跟隨我們的指引,學習一下維格表的常規功能,可以讓您事半功倍哦!", + "guide_flow_modal_contact_sales": "聯繫銷售人員", + "guide_flow_modal_get_started": "開始使用", "guide_flow_of_catalog_step1": "這是工作目錄,裡邊存放的是空間站的所有文件夾和文件", "guide_flow_of_catalog_step2": "工作目錄裡面,除了可以單獨創建維格表,也可以單獨創建文件夾", "guide_flow_of_click_add_view_step1": "除了基本的維格視圖之外,我們支持創建相冊視圖,如果你有圖片附件的話,我建議你創建個相冊視圖試試", @@ -56106,6 +56239,7 @@ "lark_version_enterprise": "飛書企業版", "lark_version_standard": "飛書標準版", "lark_versions_free": "飛書基礎版", + "last_day": "最後一天", "last_modified_by_select_modal_desc": "由於該維格列類型的特殊性,下方只展示可編輯的列,每當有人在指定的列進行過修改,則會更新當前的修改人", "last_modified_time_select_modal_desc": "由於該維格列類型的特殊性,下方只展示可編輯的列,每當有人在指定的列進行過修改,則會更新當前的修改時間", "last_step": "上一步", @@ -57018,12 +57152,12 @@ "player_step_ui_config_163": "", "player_step_ui_config_164": "", "player_step_ui_config_165": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/03/16/8374ca1295664675bd1155b077555113\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-03-16-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • The mirror is upgraded again, hiding sensitive fields and collaborating with peace of mind
  • The time zone of the user account is online, and the time zone of the date list can be set independently, making cross-time zone cooperation smoother.
  • \"Global Search\" experience optimization, new search result categories
  • Gold-level space station benefits are increased, and the sharing form supports hiding official logos
  • API interface performance optimization, greatly improving call efficiency
\"\n}", - "player_step_ui_config_166": "{\n \"title\": \"恭喜你!獲得試用權益\",\n \"description\": \"你獲得了14天Enterprise版本的試用權益,你可以點擊按鈕查看詳情\", \n \"listHeader\": \"試用權益:\",\n \"listContent\": [\n \"空間站記錄總數上限提高至500,000,000 行\",\n \"空間站附件容量數提高至50 GB\",\n \"支持調用所有高級API\"\n ],\n \"listFooter\": \"更多權益\",\n \"url\": \"https://aitable.ai/management/upgrade\n}", + "player_step_ui_config_166": "{\n \"title\": \"恭喜你!獲得試用權益\",\n \"description\": \"你獲得了14天Enterprise版本的試用權益,你可以點擊按鈕查看詳情\", \n \"listHeader\": \"試用權益:\",\n \"listContent\": [\n \"空間站記錄總數上限提高至500,000,000 行\",\n \"空間站附件容量數提高至50 GB\",\n \"支持調用所有高級API\"\n ],\n \"listFooter\": \"更多權益\",\n \"url\": \"https://aitable.ai/management/upgrade\"\n}", "player_step_ui_config_167": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"How do you want to use APITable?\",\n \"type\": \"multiButton\",\n \"answers\": [\n \"IT & Support\",\n \"Education\",\n \"Project Management\",\n \"Marketing\",\n \"Product Management\",\n \"HR & Recruiting\",\n \"Operations\",\n \"Finance\",\n \"Sales & CRM\",\n \"Software Development\",\n \"HR & Legal\",\n \"Design & Creative\",\n \"Nonprofit\",\n \"Manufacture\",\n \"Other Things\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"What best describes your current role?\",\n \"type\": \"radio\",\n \"answers\": [\n \"Business Owner\",\n \"Team Leader\",\n \"Team Member\",\n \"Freelancer\",\n \"Director\",\n \"C-level\",\n \"VP\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"How many people are on your team? \",\n \"type\": \"radio\",\n \"answers\": [\n \"Just me\",\n \"2-5\",\n \"6-10\",\n \"11-15\",\n \"16-25\",\n \"25-50\",\n \"51-100\",\n \"101-500\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"How many people work at your company? \",\n \"type\": \"radio\",\n \"answers\": [\n \"1-19\",\n \"20-49\",\n \"50-99\",\n \"100-250\",\n \"251-500\",\n \"501-1500\",\n \"1500+\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 5,\n \"name\": \"answer5\",\n \"title\": \"How did you hear about us? \",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Search Engine\",\n \"YouTube\",\n \"Product Hunt\",\n \"Github\",\n \"Twitter\",\n \"LinkedIn\",\n \"Through a friend\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 6,\n \"name\": \"answer6\",\n \"title\": \"We host a Discord channel as a place for discussion with APITable fans, come and join us!\",\n \"type\": \"joinUs\",\n \"url\": \"https://discord.gg/2UXAbDTJTX\",\n \"confirmText\": \"Join Our Community\",\n \"skipText\": \"skip\",\n \"submit\": true\n }\n ]\n}", "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • New field type \"Cascader\" is launched, making selection from a hierarchy of options on forms easier
  • \"Script\" widget is released, less code for more customization
  • Trigger Robot to send Emails, and get fast notifications
  • Trigger Robot to send a message to Slack, and inform your team in time
  • Exploring AI: \"GPT Content Generator\" Widget Released
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"使用模板教程\", \n\"description\": \"點擊左側按鈕使用模板\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 助手介紹\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 助手介紹\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"使用模板教程\", \n\"description\": \"選擇模板要存放的位置\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通過維格表解決哪些問題?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"工作規劃\",\n \"客戶服務\",\n \"項目管理\",\n \"採購供應\",\n \"內容生產\",\n \"電商運營\",\n \"活動策劃\",\n \"人力資源\",\n \"行政管理\",\n \"財務管理\",\n \"網絡直播\",\n \"高校管理\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作崗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"管理者\",\n \"項目經理\",\n \"產品經理\",\n \"設計師\",\n \"研發、工程師\",\n \"運營、編輯\",\n \"銷售、客服\",\n \"人事、行政\",\n \"財務、會計\",\n \"律師、法務\",\n \"市場\",\n \"教師\",\n \"學生\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的公司名稱是?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"請留下你的郵箱/手機/微信號,以便我們及時提供幫助。\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"感謝你的填寫,請加一下客服號以備不時之需\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -57053,13 +57187,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"神奇表單\", \n\"description\": \"在這裡可以快速生成當前視圖的神奇表單,神奇表單的字段是依照視圖的維格列數量以及順序來生成的哦\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"小提示\", \n\"offsetY\":5,\n\"description\": \"你可以在左側的「幫助中心」找回你的維格小助手\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"新功能\", \n\"description\": \"小程序上線!想要讓沉澱下來的數據得到更好的運用嗎?那就趕緊來體驗一下吧\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"什麼是小程序\", \n\"description\": \"維格小程序是維格表的一種擴展應用,可實現數據可視化、數據傳輸、數據清洗等等額外功能。通過在小程序面板安裝適合團隊的小程序,可以讓工作事半功倍\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_5": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"小程序中心\", \n\"description\": \"官方推薦和空間站自建的小程序會發佈到這裡。你可以根據場景,在這裡挑選合適的小程序放置到儀錶盤或小程序面板裡\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"安裝小程序\", \n\"description\": \"我們安裝這個「圖表」小程序看看吧\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -57156,6 +57290,7 @@ "preview_guide_click_to_restart": "點擊下方按鈕重新預覽", "preview_guide_enable_it": "你可以點擊下方按鈕去啟用此功能", "preview_guide_open_office_preview": "開啟「office預覽」功能後即可預覽該文件", + "preview_next_automation_execution_time": "預覽接下來 5 個執行時間", "preview_not_support_video_codecs": "當前僅支持預覽編碼為H.264的MP4視頻", "preview_revision": "預覽此版本", "preview_see_more": "想要了解更多「office 文件預覽」功能?請點擊這裡", @@ -57707,6 +57842,7 @@ "scan_to_login": "掃碼登錄", "scan_to_login_by_method": "請使用${method}關注公眾號即可安全登錄", "scatter_chart": "散點圖", + "schedule_type": "時間表類型", "science_and_technology": "科學技術", "scroll_screen_down": "向下滾動一屏", "scroll_screen_left": "向左滾動一屏", @@ -58272,9 +58408,11 @@ "subscribe_credit_usage_over_limit": "當前空間中的積分數量超過限制,請升級您的訂閱。\n", "subscribe_demonstrate": "預約演示", "subscribe_disabled_seat": "人數不可低於原方案", + "subscribe_grade_business": "商業", "subscribe_grade_free": "免費版", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "起動機", "subscribe_label_tooltip": "${grade}以上空間站專享功能", "subscribe_new_choose_member": "最高支持 ${member_num} 人", "subscribe_new_choose_member_tips": "本方案支持 1~${member_num} 名成員進入空間站使用", @@ -58411,7 +58549,7 @@ "template_name_repetition_title": "“${templateName}”已存在,確定要替換它嗎?", "template_no_template": "暫無模板", "template_not_found": "找不到想要的模板? 請告訴我們~", - "template_recommend_title": "熱門推薦", + "template_recommend_title": "🌟 熱門推薦", "template_type": "模板", "terms_of_service": "《服務條款》", "terms_of_service_pure_string": " 服務條款", @@ -58557,6 +58695,7 @@ "timemachine_update_comment": "Updated comments", "times_per_month_unit": "次/月", "times_unit": "次", + "timing_rules": "定時", "timor_leste": "東帝汶", "tip_del_success": "我們將對您的空間站數據保留七天,七天內可隨時撤銷刪除操作。", "tip_do_you_want_to_know_about_field_permission": "想對列數據加密嗎?了解列權限", diff --git a/backend-server/application/src/test/java/com/apitable/AbstractIntegrationTest.java b/backend-server/application/src/test/java/com/apitable/AbstractIntegrationTest.java index 1437fafb31..b0f2c3eb57 100644 --- a/backend-server/application/src/test/java/com/apitable/AbstractIntegrationTest.java +++ b/backend-server/application/src/test/java/com/apitable/AbstractIntegrationTest.java @@ -93,6 +93,7 @@ import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.test.context.TestPropertySource; import org.springframework.test.web.servlet.MockMvc; +import org.springframework.web.client.RestClient; @SpringBootTest(classes = Application.class) @TestPropertySource(value = { @@ -118,6 +119,9 @@ public abstract class AbstractIntegrationTest extends TestSuiteWithDB { @Autowired protected RedisTemplate redisTemplate; + @MockBean + protected RestClient restClient; + @Autowired protected MybatisPlusProperties mybatisPlusProperties; diff --git a/backend-server/application/src/test/java/com/apitable/auth/service/impl/AuthServiceImplTest.java b/backend-server/application/src/test/java/com/apitable/auth/service/impl/AuthServiceImplTest.java index 29f0a51c1a..ceff82cf8f 100644 --- a/backend-server/application/src/test/java/com/apitable/auth/service/impl/AuthServiceImplTest.java +++ b/backend-server/application/src/test/java/com/apitable/auth/service/impl/AuthServiceImplTest.java @@ -88,7 +88,7 @@ public void testLoginUsingPasswordWithMobilePhoneInputPasswordCorrect() { public void testLoginUsingPasswordWithEmailNotExist() { // The mobile phone number does not exist, try to log in, do not automatically register LoginRo loginRo = new LoginRo(); - loginRo.setUsername("dengguiheng@apitable.com"); + loginRo.setUsername("test_user@apitable.com"); loginRo.setType(LoginType.PASSWORD); loginRo.setCredential("qwer1234"); assertThatCode(() -> iAuthService.loginUsingPassword(loginRo)).isInstanceOf( @@ -99,7 +99,7 @@ public void testLoginUsingPasswordWithEmailNotExist() { public void testLoginUsingPasswordWithEmailWithoutPassword() { // Phone number but wrong password try to log in, no automatic registration LoginRo loginRo = new LoginRo(); - loginRo.setUsername("dengguiheng@apitable.com"); + loginRo.setUsername("test_user@apitable.com"); loginRo.setType(LoginType.PASSWORD); loginRo.setCredential("qwer1234"); assertThatCode(() -> iAuthService.loginUsingPassword(loginRo)).isInstanceOf( @@ -111,12 +111,12 @@ public void testLoginUsingPasswordWithEmailInputPasswordCorrect() { // The phone number and password are correct and try to log in UserEntity user = new UserEntity(); user.setUuid(IdUtil.fastSimpleUUID()); - user.setEmail("dengguiheng@apitable.com"); + user.setEmail("test_user@apitable.com"); user.setPassword(passwordEncoder.encode("qwer1234")); iUserService.save(user); LoginRo loginRo = new LoginRo(); - loginRo.setUsername("dengguiheng@apitable.com"); + loginRo.setUsername("test_user@apitable.com"); loginRo.setType(LoginType.PASSWORD); loginRo.setCredential("qwer1234"); assertThatNoException().isThrownBy(() -> iAuthService.loginUsingPassword(loginRo)); diff --git a/backend-server/application/src/test/java/com/apitable/space/service/impl/SpaceServiceImplTest.java b/backend-server/application/src/test/java/com/apitable/space/service/impl/SpaceServiceImplTest.java index 818d7a567c..d26d333143 100644 --- a/backend-server/application/src/test/java/com/apitable/space/service/impl/SpaceServiceImplTest.java +++ b/backend-server/application/src/test/java/com/apitable/space/service/impl/SpaceServiceImplTest.java @@ -157,7 +157,8 @@ void testCheckFileNumOverLimitWithThrownException() { @Test void testCheckFileNumOverLimitWithoutException() { MockUserSpace userSpace = createSingleUserAndSpace(); - assertThatNoException().isThrownBy(() -> iSpaceService.checkFileNumOverLimit(userSpace.getSpaceId())); + assertThatNoException().isThrownBy( + () -> iSpaceService.checkFileNumOverLimit(userSpace.getSpaceId())); } @Test @@ -189,7 +190,8 @@ void testGetSpaceSubscriptionInfo() { assertThat(spaceSubscribeVo.getMaxMessageCredits()).isEqualTo(0L); assertThat(spaceSubscribeVo.getMaxRemainTimeMachineDays()).isEqualTo(-1L); assertThat(spaceSubscribeVo.getMaxRemainRecordActivityDays()).isEqualTo(-1L); - assertThat(spaceSubscribeVo.getMaxAuditQueryDays()).isEqualTo(-1L); + assertThat(spaceSubscribeVo.getMaxAuditQueryDays()).isEqualTo(0); + assertThat(spaceSubscribeVo.getAuditQuery()).isFalse(); assertThat(spaceSubscribeVo.getRainbowLabel()).isEqualTo(false); assertThat(spaceSubscribeVo.getWatermark()).isEqualTo(false); assertThat(spaceSubscribeVo.getIntegrationFeishu()).isEqualTo(false); diff --git a/backend-server/application/src/test/java/com/apitable/widget/service/impl/WidgetUploadServiceImplTest.java b/backend-server/application/src/test/java/com/apitable/widget/service/impl/WidgetUploadServiceImplTest.java index 569b327264..37b62406c6 100644 --- a/backend-server/application/src/test/java/com/apitable/widget/service/impl/WidgetUploadServiceImplTest.java +++ b/backend-server/application/src/test/java/com/apitable/widget/service/impl/WidgetUploadServiceImplTest.java @@ -53,7 +53,7 @@ public void testCreateWidgetAssetsUploadAuth() { } private UserEntity getTestUser() { - return iUserService.createUserByEmail("test@vikadata.com"); + return iUserService.createUserByEmail("test@aitable.ai"); } private WidgetPackageEntity initWidget(UserEntity testOpUser) throws JsonProcessingException { diff --git a/backend-server/config/checkstyle/suppressions.xml b/backend-server/config/checkstyle/suppressions.xml index 7307a09528..e80fd1f1aa 100644 --- a/backend-server/config/checkstyle/suppressions.xml +++ b/backend-server/config/checkstyle/suppressions.xml @@ -3,7 +3,7 @@ "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd"> - + diff --git a/backend-server/gradle/libs.versions.toml b/backend-server/gradle/libs.versions.toml index b19673f926..f555340ea9 100644 --- a/backend-server/gradle/libs.versions.toml +++ b/backend-server/gradle/libs.versions.toml @@ -3,8 +3,6 @@ spring-boot = "3.2.0" aws = "1.12.595" p6spy = "3.9.1" hutool = "5.8.23" -jackson-nullable = "0.2.6" -gson-fire = "1.8.5" javax-ws = "2.1.1" jsoup = "1.15.1" springdoc = "2.3.0" @@ -34,19 +32,21 @@ stripe = "22.22.0" shedlock = "5.10.0" nimbus = "9.22" jose4j = "0.9.3" -sentry = "5.7.4" +sentry = "7.0.0" minio = "8.2.2" vi = "1.0.4" -social = "1.0.6" +social = "1.0.8" imageio = "1.4.0" imageio-jbig2 = "3.0.3" grpc = "2.15.0.RELEASE" protobuf = "3.25.0" iogrpc = "1.59.1" +annotation-api = "1.3.2" # plugin version spring-dependency-management-plugin = "1.1.4" protobuf-plugin = "0.9.4" checkstyle = "10.12.5" +sentry-plugin = "4.0.0" [libraries] # spring dependencies @@ -132,9 +132,10 @@ social-feishu = { module = "cn.vika:vika-social-feishu", version.ref = "social" social-dingtalk = { module = "cn.vika:vika-social-dingtalk", version.ref = "social" } social-wecom = { module = "cn.vika:vika-social-wecom", version.ref = "social" } social-qq = { module = "cn.vika:vika-social-qq", version.ref = "social" } -sentry-spring = { module = "io.sentry:sentry-spring-boot-starter", version.ref = "sentry" } -sentry-logback = { module = "io.sentry:sentry-logback", version.ref = "sentry" } -sentry-client = { module = "io.sentry:sentry-apache-http-client-5", version.ref = "sentry" } +sentry-dependencies = { module = "io.sentry:sentry-bom", version.ref = "sentry" } +sentry-spring = { module = "io.sentry:sentry-spring-boot-starter-jakarta" } +sentry-logback = { module = "io.sentry:sentry-logback" } +sentry-client = { module = "io.sentry:sentry-apache-http-client-5" } # spring bundle constraints dependencies commons-pool2 = { module = "org.apache.commons:commons-pool2" } @@ -145,11 +146,9 @@ jackson = { module = "com.fasterxml.jackson.core:jackson-databind" } gson = { module = "com.google.code.gson:gson" } servlet = { module = "jakarta.servlet:jakarta.servlet-api" } jedis = { module = "redis.clients:jedis" } -okhttp3 = { module = "com.squareup.okhttp3:okhttp" } -okhttp3-logging = { module = "com.squareup.okhttp3:logging-interceptor" } -okhttp3-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver" } slf4j = { module = "org.slf4j:slf4j-api" } logback = { module = "ch.qos.logback:logback-classic" } +httpclient5 = { module = "org.apache.httpcomponents.client5:httpclient5" } #### grpc dependencies begin #### @@ -176,8 +175,6 @@ xerces-impl = { module = "xerces:xercesImpl", version.ref = "xerces-impl" } beetl = { module = "com.ibeetl:beetl", version.ref = "ibeetl" } jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" } javax-ws = { module = "javax.ws.rs:javax.ws.rs-api", version.ref = "javax-ws" } -gson-fire = { module = "io.gsonfire:gson-fire", version.ref = "gson-fire" } -jackson-databind-nullable = { module = "org.openapitools:jackson-databind-nullable", version.ref = "jackson-nullable" } p6spy = { module = "p6spy:p6spy", version.ref = "p6spy" } hutool-core = { module = "cn.hutool:hutool-core", version.ref = "hutool" } hutool-json = { module = "cn.hutool:hutool-json", version.ref = "hutool" } @@ -192,6 +189,7 @@ jose4j = { module = "org.bitbucket.b_c:jose4j", version.ref = "jose4j" } semver = { module = "com.github.zafarkhaja:java-semver", version.ref = "semver" } shedlock = { module = "net.javacrumbs.shedlock:shedlock-spring", version.ref = "shedlock" } shedlock-redis = { module = "net.javacrumbs.shedlock:shedlock-provider-redis-spring", version.ref = "shedlock" } +annotation-api = { module = "javax.annotation:javax.annotation-api", version.ref = "annotation-api" } [bundles] # group libraries @@ -200,14 +198,14 @@ easyexcel = ["easyexcel", "xerces-impl"] slf4j-logback = ["slf4j", "logback"] pdfbox = ["pdfbox", "pdfbox-tools", "pdfbox-jbig2", "imageio-jpeg2000"] shedlock = ["shedlock", "shedlock-redis"] -sentry = ["sentry-spring", "sentry-logback", "sentry-client"] +sentry = ["sentry-spring", "sentry-logback"] social = ["social-feishu", "social-dingtalk", "social-wecom", "social-qq"] iogrpc = ["iogrpc-netty-shaded", "iogrpc-protobuf", "iogrpc-stub"] apidoc = ["knife4j-openapi3"] -okhttp3 = ["okhttp3", "okhttp3-logging"] [plugins] spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" } spring-dependency-management = { id = "io.spring.dependency-management", version.ref = "spring-dependency-management-plugin" } protobuf = { id = "com.google.protobuf", version.ref = "protobuf-plugin" } +sentry = { id = "io.sentry.jvm.gradle", version.ref = "sentry-plugin" } diff --git a/backend-server/application/.openapi-generator-ignore b/backend-server/shared/starters/databus/.openapi-generator-ignore similarity index 94% rename from backend-server/application/.openapi-generator-ignore rename to backend-server/shared/starters/databus/.openapi-generator-ignore index 1df580b79d..f644d1e444 100644 --- a/backend-server/application/.openapi-generator-ignore +++ b/backend-server/shared/starters/databus/.openapi-generator-ignore @@ -38,5 +38,6 @@ gradlew.bat pom.xml README.md settings.gradle -src/test/java/com/apitable/databusclient/ +src/test/java/com/apitable/starter/databus/ +src/main/AndroidManifest.xml diff --git a/backend-server/shared/starters/databus/build.gradle b/backend-server/shared/starters/databus/build.gradle new file mode 100644 index 0000000000..832d588c94 --- /dev/null +++ b/backend-server/shared/starters/databus/build.gradle @@ -0,0 +1,15 @@ +plugins { + id 'java-library' + id 'testing.java-conventions' +} + +dependencies { + implementation platform(libs.spring.boot.dependencies) + implementation(libs.spring.boot.starter) + implementation libs.spring.web + + implementation libs.jackson + implementation libs.annotation.api + // used for javax.annotation.Nonnull + implementation 'com.google.code.findbugs:jsr305:3.0.2' +} diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/DatabusClientConfig.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientAutoConfiguration.java similarity index 52% rename from backend-server/application/src/main/java/com/apitable/shared/config/DatabusClientConfig.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientAutoConfiguration.java index 5bb2b809be..80e6fd16a8 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/config/DatabusClientConfig.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientAutoConfiguration.java @@ -1,23 +1,25 @@ /* - * APITable Ltd. - * Copyright (C) 2022 APITable Ltd. + * APITable + * Copyright (C) 2022 APITable Ltd. * - * This code file is part of APITable Enterprise Edition. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * It is subject to the APITable Commercial License and conditional on having a fully paid-up license from APITable. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. * - * Access to this code file or other code files in this `enterprise` directory and its subdirectories does not constitute permission to use this code or APITable Enterprise Edition features. - * - * Unless otherwise noted, all files Copyright © 2022 APITable Ltd. - * - * For purchase of APITable Enterprise Edition license, please contact . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ -package com.apitable.shared.config; +package com.apitable.starter.databus.autoconfigure; -import com.apitable.databusclient.ApiClient; -import com.apitable.databusclient.api.AutomationDaoApiApi; -import com.apitable.shared.config.properties.DatabusClientProperties; +import com.apitable.starter.databus.client.api.AutomationDaoApiApi; +import com.apitable.starter.databus.client.ApiClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.context.properties.EnableConfigurationProperties; @@ -29,12 +31,13 @@ */ @Configuration(proxyBeanMethods = false) @EnableConfigurationProperties(DatabusClientProperties.class) -public class DatabusClientConfig { - private static final Logger LOGGER = LoggerFactory.getLogger(DatabusClientConfig.class); - private final DatabusClientProperties databusClientProperties; +public class DatabusClientAutoConfiguration { + private static final Logger LOGGER = LoggerFactory.getLogger(DatabusClientAutoConfiguration.class); + + private final DatabusClientProperties databusClientProperties; - public DatabusClientConfig(DatabusClientProperties databusClientProperties) { + public DatabusClientAutoConfiguration(DatabusClientProperties databusClientProperties) { this.databusClientProperties = databusClientProperties; } diff --git a/backend-server/application/src/main/java/com/apitable/shared/config/properties/DatabusClientProperties.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientProperties.java similarity index 77% rename from backend-server/application/src/main/java/com/apitable/shared/config/properties/DatabusClientProperties.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientProperties.java index d9273f7ed0..afc9f2c18b 100644 --- a/backend-server/application/src/main/java/com/apitable/shared/config/properties/DatabusClientProperties.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/autoconfigure/DatabusClientProperties.java @@ -13,20 +13,28 @@ * For purchase of APITable Enterprise Edition license, please contact . */ -package com.apitable.shared.config.properties; +package com.apitable.starter.databus.autoconfigure; -import static com.apitable.shared.config.properties.DatabusClientProperties.PREFIX_CONST; -import lombok.Data; +import static com.apitable.starter.databus.autoconfigure.DatabusClientProperties.PREFIX_CONST; + import org.springframework.boot.context.properties.ConfigurationProperties; /** * Databus client properties. */ -@Data @ConfigurationProperties(prefix = PREFIX_CONST) public class DatabusClientProperties { + public static final String PREFIX_CONST = "databus.client"; private String host; + + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ApiClient.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ApiClient.java new file mode 100644 index 0000000000..7b637c467f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ApiClient.java @@ -0,0 +1,717 @@ +package com.apitable.starter.databus.client; + +import com.apitable.starter.databus.client.auth.Authentication; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; +import java.net.URI; +import java.net.URISyntaxException; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.text.DateFormat; +import java.text.ParseException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.TimeZone; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpRequest; +import org.springframework.http.InvalidMediaTypeException; +import org.springframework.http.MediaType; +import org.springframework.http.RequestEntity; +import org.springframework.http.RequestEntity.BodyBuilder; +import org.springframework.http.ResponseEntity; +import org.springframework.http.client.BufferingClientHttpRequestFactory; +import org.springframework.http.client.ClientHttpRequestExecution; +import org.springframework.http.client.ClientHttpRequestInterceptor; +import org.springframework.http.client.ClientHttpResponse; +import org.springframework.util.CollectionUtils; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.util.StringUtils; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.RestTemplate; +import org.springframework.web.util.DefaultUriBuilderFactory; +import org.springframework.web.util.UriComponentsBuilder; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiClient extends JavaTimeFormatter { + public enum CollectionFormat { + CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); + + private final String separator; + + private CollectionFormat(String separator) { + this.separator = separator; + } + + private String collectionToString(Collection collection) { + return StringUtils.collectionToDelimitedString(collection, separator); + } + } + + private boolean debugging = false; + + private HttpHeaders defaultHeaders = new HttpHeaders(); + private MultiValueMap defaultCookies = new LinkedMultiValueMap(); + + private String basePath = "http://localhost"; + + private RestTemplate restTemplate; + + private Map authentications; + + private DateFormat dateFormat; + + public ApiClient() { + this.restTemplate = buildRestTemplate(); + init(); + } + + public ApiClient(RestTemplate restTemplate) { + this.restTemplate = restTemplate; + init(); + } + + protected void init() { + // Use RFC3339 format for date and datetime. + // See http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14 + this.dateFormat = new RFC3339DateFormat(); + + // Use UTC as the default time zone. + this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + + // Set default User-Agent. + setUserAgent("Java-SDK"); + + // Setup authentications (key: authentication name, value: authentication). + authentications = new HashMap(); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Get the current base path + * + * @return String the base path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set the base path, which should include the host + * + * @param basePath the base path + * @return ApiClient this client + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + return this; + } + + /** + * Get authentications (key: authentication name, value: authentication). + * + * @return Map the currently configured authentication types + */ + public Map getAuthentications() { + return authentications; + } + + /** + * Get authentication for the given name. + * + * @param authName The authentication name + * @return The authentication, null if not found + */ + public Authentication getAuthentication(String authName) { + return authentications.get(authName); + } + + + + + + /** + * Set the User-Agent header's value (by adding to the default header map). + * + * @param userAgent the user agent string + * @return ApiClient this client + */ + public ApiClient setUserAgent(String userAgent) { + addDefaultHeader("User-Agent", userAgent); + return this; + } + + /** + * Add a default header. + * + * @param name The header's name + * @param value The header's value + * @return ApiClient this client + */ + public ApiClient addDefaultHeader(String name, String value) { + if (defaultHeaders.containsKey(name)) { + defaultHeaders.remove(name); + } + defaultHeaders.add(name, value); + return this; + } + + /** + * Add a default cookie. + * + * @param name The cookie's name + * @param value The cookie's value + * @return ApiClient this client + */ + public ApiClient addDefaultCookie(String name, String value) { + if (defaultCookies.containsKey(name)) { + defaultCookies.remove(name); + } + defaultCookies.add(name, value); + return this; + } + + public void setDebugging(boolean debugging) { + List currentInterceptors = this.restTemplate.getInterceptors(); + if (debugging) { + if (currentInterceptors == null) { + currentInterceptors = new ArrayList(); + } + ClientHttpRequestInterceptor interceptor = new ApiClientHttpRequestInterceptor(); + currentInterceptors.add(interceptor); + this.restTemplate.setInterceptors(currentInterceptors); + } else { + if (currentInterceptors != null && !currentInterceptors.isEmpty()) { + Iterator iter = currentInterceptors.iterator(); + while (iter.hasNext()) { + ClientHttpRequestInterceptor interceptor = iter.next(); + if (interceptor instanceof ApiClientHttpRequestInterceptor) { + iter.remove(); + } + } + this.restTemplate.setInterceptors(currentInterceptors); + } + } + this.debugging = debugging; + } + + /** + * Check that whether debugging is enabled for this API client. + * @return boolean true if this client is enabled for debugging, false otherwise + */ + public boolean isDebugging() { + return debugging; + } + + /** + * Get the date format used to parse/format date parameters. + * @return DateFormat format + */ + public DateFormat getDateFormat() { + return dateFormat; + } + + /** + * Set the date format used to parse/format date parameters. + * @param dateFormat Date format + * @return API client + */ + public ApiClient setDateFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + return this; + } + + /** + * Parse the given string into Date object. + * + * @param str the string to parse + * @return the Date parsed from the string + */ + public Date parseDate(String str) { + try { + return dateFormat.parse(str); + } catch (ParseException e) { + throw new RuntimeException(e); + } + } + + /** + * Format the given Date object into string. + * + * @param date the date to format + * @return the formatted date as string + */ + public String formatDate(Date date) { + return dateFormat.format(date); + } + + /** + * Format the given parameter object into string. + * + * @param param the object to convert + * @return String the parameter represented as a String + */ + public String parameterToString(Object param) { + if (param == null) { + return ""; + } else if (param instanceof Date) { + return formatDate( (Date) param); + } else if (param instanceof OffsetDateTime) { + return formatOffsetDateTime((OffsetDateTime) param); + } else if (param instanceof Collection) { + StringBuilder b = new StringBuilder(); + for (Object o : (Collection) param) { + if (b.length() > 0) { + b.append(","); + } + b.append(String.valueOf(o)); + } + return b.toString(); + } else { + return String.valueOf(param); + } + } + + /** + * Formats the specified collection path parameter to a string value. + * + * @param collectionFormat The collection format of the parameter. + * @param values The values of the parameter. + * @return String representation of the parameter + */ + public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection values) { + // create the value based on the collection format + if (CollectionFormat.MULTI.equals(collectionFormat)) { + // not valid for path params + return parameterToString(values); + } + + // collectionFormat is assumed to be "csv" by default + if (collectionFormat == null) { + collectionFormat = CollectionFormat.CSV; + } + + return collectionFormat.collectionToString(values); + } + + /** + * Converts a parameter to a {@link MultiValueMap} for use in REST requests + * + * @param collectionFormat The format to convert to + * @param name The name of the parameter + * @param value The parameter's value + * @return a Map containing the String value(s) of the input parameter + */ + public MultiValueMap parameterToMultiValueMap(CollectionFormat collectionFormat, String name, Object value) { + final MultiValueMap params = new LinkedMultiValueMap(); + + if (name == null || name.isEmpty() || value == null) { + return params; + } + + if (collectionFormat == null) { + collectionFormat = CollectionFormat.CSV; + } + + if (value instanceof Map) { + @SuppressWarnings("unchecked") + final Map valuesMap = (Map) value; + for (final Entry entry : valuesMap.entrySet()) { + params.add(entry.getKey(), parameterToString(entry.getValue())); + } + return params; + } + + Collection valueCollection = null; + if (value instanceof Collection) { + valueCollection = (Collection) value; + } else { + params.add(name, parameterToString(value)); + return params; + } + + if (valueCollection.isEmpty()) { + return params; + } + + if (collectionFormat.equals(CollectionFormat.MULTI)) { + for (Object item : valueCollection) { + params.add(name, parameterToString(item)); + } + return params; + } + + List values = new ArrayList(); + for (Object o : valueCollection) { + values.add(parameterToString(o)); + } + params.add(name, collectionFormat.collectionToString(values)); + + return params; + } + + /** + * Check if the given {@code String} is a JSON MIME. + * + * @param mediaType the input MediaType + * @return boolean true if the MediaType represents JSON, false otherwise + */ + public boolean isJsonMime(String mediaType) { + // "* / *" is default to JSON + if ("*/*".equals(mediaType)) { + return true; + } + + try { + return isJsonMime(MediaType.parseMediaType(mediaType)); + } catch (InvalidMediaTypeException e) { + } + return false; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * + * @param mediaType the input MediaType + * @return boolean true if the MediaType represents JSON, false otherwise + */ + public boolean isJsonMime(MediaType mediaType) { + return mediaType != null && (MediaType.APPLICATION_JSON.isCompatibleWith(mediaType) || mediaType.getSubtype().matches("^.*\\+json[;]?\\s*$")); + } + + /** + * Check if the given {@code String} is a Problem JSON MIME (RFC-7807). + * + * @param mediaType the input MediaType + * @return boolean true if the MediaType represents Problem JSON, false otherwise + */ + public boolean isProblemJsonMime(String mediaType) { + return "application/problem+json".equalsIgnoreCase(mediaType); + } + + /** + * Select the Accept header's value from the given accepts array: + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) + * + * @param accepts The accepts array to select from + * @return List The list of MediaTypes to use for the Accept header + */ + public List selectHeaderAccept(String[] accepts) { + if (accepts.length == 0) { + return null; + } + for (String accept : accepts) { + MediaType mediaType = MediaType.parseMediaType(accept); + if (isJsonMime(mediaType) && !isProblemJsonMime(accept)) { + return Collections.singletonList(mediaType); + } + } + return MediaType.parseMediaTypes(StringUtils.arrayToCommaDelimitedString(accepts)); + } + + /** + * Select the Content-Type header's value from the given array: + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. + * + * @param contentTypes The Content-Type array to select from + * @return MediaType The Content-Type header to use. If the given array is empty, JSON will be used. + */ + public MediaType selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0) { + return MediaType.APPLICATION_JSON; + } + for (String contentType : contentTypes) { + MediaType mediaType = MediaType.parseMediaType(contentType); + if (isJsonMime(mediaType)) { + return mediaType; + } + } + return MediaType.parseMediaType(contentTypes[0]); + } + + /** + * Select the body to use for the request + * + * @param obj the body object + * @param formParams the form parameters + * @param contentType the content type of the request + * @return Object the selected body + */ + protected Object selectBody(Object obj, MultiValueMap formParams, MediaType contentType) { + boolean isForm = MediaType.MULTIPART_FORM_DATA.isCompatibleWith(contentType) || MediaType.APPLICATION_FORM_URLENCODED.isCompatibleWith(contentType); + return isForm ? formParams : obj; + } + + /** + * Expand path template with variables + * + * @param pathTemplate path template with placeholders + * @param variables variables to replace + * @return path with placeholders replaced by variables + */ + public String expandPath(String pathTemplate, Map variables) { + return restTemplate.getUriTemplateHandler().expand(pathTemplate, variables).toString(); + } + + /** + * Include queryParams in uriParams taking into account the paramName + * + * @param queryParams The query parameters + * @param uriParams The path parameters + * return templatized query string + */ + public String generateQueryUri(MultiValueMap queryParams, Map uriParams) { + StringBuilder queryBuilder = new StringBuilder(); + queryParams.forEach((name, values) -> { + try { + final String encodedName = URLEncoder.encode(name.toString(), "UTF-8"); + if (CollectionUtils.isEmpty(values)) { + if (queryBuilder.length() != 0) { + queryBuilder.append('&'); + } + queryBuilder.append(encodedName); + } else { + int valueItemCounter = 0; + for (Object value : values) { + if (queryBuilder.length() != 0) { + queryBuilder.append('&'); + } + queryBuilder.append(encodedName); + if (value != null) { + String templatizedKey = encodedName + valueItemCounter++; + uriParams.put(templatizedKey, value.toString()); + queryBuilder.append('=').append("{").append(templatizedKey).append("}"); + } + } + } + } catch (UnsupportedEncodingException e) { + + } + }); + return queryBuilder.toString(); + + } + + /** + * Invoke API by sending HTTP request with the given options. + * + * @param the return type to use + * @param path The sub-path of the HTTP URL + * @param method The request method + * @param pathParams The path parameters + * @param queryParams The query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param accept The request's Accept header + * @param contentType The request's Content-Type header + * @param authNames The authentications to apply + * @param returnType The return type into which to deserialize the response + * @return ResponseEntity<T> The response of the chosen type + */ + public ResponseEntity invokeAPI(String path, HttpMethod method, Map pathParams, MultiValueMap queryParams, Object body, HttpHeaders headerParams, MultiValueMap cookieParams, MultiValueMap formParams, List accept, MediaType contentType, String[] authNames, ParameterizedTypeReference returnType) throws RestClientException { + updateParamsForAuth(authNames, queryParams, headerParams, cookieParams); + + Map uriParams = new HashMap<>(); + uriParams.putAll(pathParams); + + String finalUri = path; + + if (queryParams != null && !queryParams.isEmpty()) { + //Include queryParams in uriParams taking into account the paramName + String queryUri = generateQueryUri(queryParams, uriParams); + //Append to finalUri the templatized query string like "?param1={param1Value}&....... + finalUri += "?" + queryUri; + } + String expandedPath = this.expandPath(finalUri, uriParams); + final UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(basePath).path(expandedPath); + + URI uri; + try { + uri = new URI(builder.build().toUriString()); + } catch (URISyntaxException ex) { + throw new RestClientException("Could not build URL: " + builder.toUriString(), ex); + } + + final BodyBuilder requestBuilder = RequestEntity.method(method, UriComponentsBuilder.fromHttpUrl(basePath).toUriString() + finalUri, uriParams); + if (accept != null) { + requestBuilder.accept(accept.toArray(new MediaType[accept.size()])); + } + if (contentType != null) { + requestBuilder.contentType(contentType); + } + + addHeadersToRequest(headerParams, requestBuilder); + addHeadersToRequest(defaultHeaders, requestBuilder); + addCookiesToRequest(cookieParams, requestBuilder); + addCookiesToRequest(defaultCookies, requestBuilder); + + RequestEntity requestEntity = requestBuilder.body(selectBody(body, formParams, contentType)); + + ResponseEntity responseEntity = restTemplate.exchange(requestEntity, returnType); + + if (responseEntity.getStatusCode().is2xxSuccessful()) { + return responseEntity; + } else { + // The error handler built into the RestTemplate should handle 400 and 500 series errors. + throw new RestClientException("API returned " + responseEntity.getStatusCode() + " and it wasn't handled by the RestTemplate error handler"); + } + } + + /** + * Add headers to the request that is being built + * @param headers The headers to add + * @param requestBuilder The current request + */ + protected void addHeadersToRequest(HttpHeaders headers, BodyBuilder requestBuilder) { + for (Entry> entry : headers.entrySet()) { + List values = entry.getValue(); + for (String value : values) { + if (value != null) { + requestBuilder.header(entry.getKey(), value); + } + } + } + } + + /** + * Add cookies to the request that is being built + * + * @param cookies The cookies to add + * @param requestBuilder The current request + */ + protected void addCookiesToRequest(MultiValueMap cookies, BodyBuilder requestBuilder) { + if (!cookies.isEmpty()) { + requestBuilder.header("Cookie", buildCookieHeader(cookies)); + } + } + + /** + * Build cookie header. Keeps a single value per cookie (as per + * RFC6265 section 5.3). + * + * @param cookies map all cookies + * @return header string for cookies. + */ + private String buildCookieHeader(MultiValueMap cookies) { + final StringBuilder cookieValue = new StringBuilder(); + String delimiter = ""; + for (final Map.Entry> entry : cookies.entrySet()) { + final String value = entry.getValue().get(entry.getValue().size() - 1); + cookieValue.append(String.format("%s%s=%s", delimiter, entry.getKey(), value)); + delimiter = "; "; + } + return cookieValue.toString(); + } + + /** + * Build the RestTemplate used to make HTTP requests. + * @return RestTemplate + */ + protected RestTemplate buildRestTemplate() { + RestTemplate restTemplate = new RestTemplate(); + // This allows us to read the response more than once - Necessary for debugging. + restTemplate.setRequestFactory(new BufferingClientHttpRequestFactory(restTemplate.getRequestFactory())); + + // disable default URL encoding + DefaultUriBuilderFactory uriBuilderFactory = new DefaultUriBuilderFactory(); + uriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.VALUES_ONLY); + restTemplate.setUriTemplateHandler(uriBuilderFactory); + return restTemplate; + } + + /** + * Update query and header parameters based on authentication settings. + * + * @param authNames The authentications to apply + * @param queryParams The query parameters + * @param headerParams The header parameters + */ + protected void updateParamsForAuth(String[] authNames, MultiValueMap queryParams, HttpHeaders headerParams, MultiValueMap cookieParams) { + for (String authName : authNames) { + Authentication auth = authentications.get(authName); + if (auth == null) { + throw new RestClientException("Authentication undefined: " + authName); + } + auth.applyToParams(queryParams, headerParams, cookieParams); + } + } + + private class ApiClientHttpRequestInterceptor implements ClientHttpRequestInterceptor { + private final Log log = LogFactory.getLog(ApiClientHttpRequestInterceptor.class); + + @Override + public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException { + logRequest(request, body); + ClientHttpResponse response = execution.execute(request, body); + logResponse(response); + return response; + } + + private void logRequest(HttpRequest request, byte[] body) throws UnsupportedEncodingException { + log.info("URI: " + request.getURI()); + log.info("HTTP Method: " + request.getMethod()); + log.info("HTTP Headers: " + headersToString(request.getHeaders())); + log.info("Request Body: " + new String(body, StandardCharsets.UTF_8)); + } + + private void logResponse(ClientHttpResponse response) throws IOException { + log.info("HTTP Status Code: " + response.getStatusCode()); + log.info("Status Text: " + response.getStatusText()); + log.info("HTTP Headers: " + headersToString(response.getHeaders())); + log.info("Response Body: " + bodyToString(response.getBody())); + } + + private String headersToString(HttpHeaders headers) { + if(headers == null || headers.isEmpty()) { + return ""; + } + StringBuilder builder = new StringBuilder(); + for (Entry> entry : headers.entrySet()) { + builder.append(entry.getKey()).append("=["); + for (String value : entry.getValue()) { + builder.append(value).append(","); + } + builder.setLength(builder.length() - 1); // Get rid of trailing comma + builder.append("],"); + } + builder.setLength(builder.length() - 1); // Get rid of trailing comma + return builder.toString(); + } + + private String bodyToString(InputStream body) throws IOException { + StringBuilder builder = new StringBuilder(); + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(body, StandardCharsets.UTF_8)); + String line = bufferedReader.readLine(); + while (line != null) { + builder.append(line).append(System.lineSeparator()); + line = bufferedReader.readLine(); + } + bufferedReader.close(); + return builder.toString(); + } + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/JavaTimeFormatter.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/JavaTimeFormatter.java new file mode 100644 index 0000000000..b9bf6fd456 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/JavaTimeFormatter.java @@ -0,0 +1,64 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.apitable.starter.databus.client; + +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; + +/** + * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. + * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class JavaTimeFormatter { + + private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; + + /** + * Get the date format used to parse/format {@code OffsetDateTime} parameters. + * @return DateTimeFormatter + */ + public DateTimeFormatter getOffsetDateTimeFormatter() { + return offsetDateTimeFormatter; + } + + /** + * Set the date format used to parse/format {@code OffsetDateTime} parameters. + * @param offsetDateTimeFormatter {@code DateTimeFormatter} + */ + public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter) { + this.offsetDateTimeFormatter = offsetDateTimeFormatter; + } + + /** + * Parse the given string into {@code OffsetDateTime} object. + * @param str String + * @return {@code OffsetDateTime} + */ + public OffsetDateTime parseOffsetDateTime(String str) { + try { + return OffsetDateTime.parse(str, offsetDateTimeFormatter); + } catch (DateTimeParseException e) { + throw new RuntimeException(e); + } + } + /** + * Format the given {@code OffsetDateTime} object into string. + * @param offsetDateTime {@code OffsetDateTime} + * @return {@code OffsetDateTime} in string format + */ + public String formatOffsetDateTime(OffsetDateTime offsetDateTime) { + return offsetDateTimeFormatter.format(offsetDateTime); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/RFC3339DateFormat.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/RFC3339DateFormat.java new file mode 100644 index 0000000000..c3ca37506f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/RFC3339DateFormat.java @@ -0,0 +1,57 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.apitable.starter.databus.client; + +import com.fasterxml.jackson.databind.util.StdDateFormat; + +import java.text.DateFormat; +import java.text.FieldPosition; +import java.text.ParsePosition; +import java.util.Date; +import java.text.DecimalFormat; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +public class RFC3339DateFormat extends DateFormat { + private static final long serialVersionUID = 1L; + private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); + + private final StdDateFormat fmt = new StdDateFormat() + .withTimeZone(TIMEZONE_Z) + .withColonInTimeZone(true); + + public RFC3339DateFormat() { + this.calendar = new GregorianCalendar(); + this.numberFormat = new DecimalFormat(); + } + + @Override + public Date parse(String source) { + return parse(source, new ParsePosition(0)); + } + + @Override + public Date parse(String source, ParsePosition pos) { + return fmt.parse(source, pos); + } + + @Override + public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { + return fmt.format(date, toAppendTo, fieldPosition); + } + + @Override + public Object clone() { + return super.clone(); + } +} \ No newline at end of file diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ServerConfiguration.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ServerConfiguration.java similarity index 97% rename from backend-server/application/src/main/java/com/apitable/databusclient/ServerConfiguration.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ServerConfiguration.java index 8a6f69dcbc..fad787241d 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ServerConfiguration.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ServerConfiguration.java @@ -1,4 +1,4 @@ -package com.apitable.databusclient; +package com.apitable.starter.databus.client; import java.util.Map; diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/ServerVariable.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ServerVariable.java similarity index 94% rename from backend-server/application/src/main/java/com/apitable/databusclient/ServerVariable.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ServerVariable.java index 59f4c7575c..645c9b0de6 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/ServerVariable.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/ServerVariable.java @@ -1,4 +1,4 @@ -package com.apitable.databusclient; +package com.apitable.starter.databus.client; import java.util.HashSet; diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/AutomationDaoApiApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/AutomationDaoApiApi.java new file mode 100644 index 0000000000..68a78f0631 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/AutomationDaoApiApi.java @@ -0,0 +1,755 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + +import com.apitable.starter.databus.client.model.ApiResponseAutomationActionPO; +import com.apitable.starter.databus.client.model.ApiResponseAutomationRobotIntroductionSO; +import com.apitable.starter.databus.client.model.ApiResponseAutomationRobotRunNumsSO; +import com.apitable.starter.databus.client.model.ApiResponseAutomationRunHistoryPO; +import com.apitable.starter.databus.client.model.ApiResponseAutomationSO; +import com.apitable.starter.databus.client.model.ApiResponseAutomationTriggerPO; +import com.apitable.starter.databus.client.model.ApiResponseEmptySO; +import com.apitable.starter.databus.client.model.AutomationHistoryStatusRO; +import com.apitable.starter.databus.client.model.AutomationRobotActionRO; +import com.apitable.starter.databus.client.model.AutomationRobotCopyRO; +import com.apitable.starter.databus.client.model.AutomationRobotTriggerRO; +import com.apitable.starter.databus.client.model.AutomationRobotUpdateRO; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationDaoApiApi { + private ApiClient apiClient; + + public AutomationDaoApiApi() { + this(new ApiClient()); + } + + public AutomationDaoApiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create automation robot + * Create automation robot + *

200 - Create automation robot successfully + * @param automationRobotCopyRO (required) + * @return ApiResponseEmptySO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseEmptySO daoCopyAutomationRobot(List automationRobotCopyRO) throws RestClientException { + return daoCopyAutomationRobotWithHttpInfo(automationRobotCopyRO).getBody(); + } + + /** + * Create automation robot + * Create automation robot + *

200 - Create automation robot successfully + * @param automationRobotCopyRO (required) + * @return ResponseEntity<ApiResponseEmptySO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoCopyAutomationRobotWithHttpInfo(List automationRobotCopyRO) throws RestClientException { + Object localVarPostBody = automationRobotCopyRO; + + // verify the required parameter 'automationRobotCopyRO' is set + if (automationRobotCopyRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'automationRobotCopyRO' when calling daoCopyAutomationRobot"); + } + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots/copy", HttpMethod.POST, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create automation run history task success todo + * create automation run history task success todo + *

200 - create automation run history task success + * @param robotId robot id (required) + * @param body (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoCreateAutomationRunHistory(String robotId, Object body) throws RestClientException { + daoCreateAutomationRunHistoryWithHttpInfo(robotId, body); + } + + /** + * create automation run history task success todo + * create automation run history task success todo + *

200 - create automation run history task success + * @param robotId robot id (required) + * @param body (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoCreateAutomationRunHistoryWithHttpInfo(String robotId, Object body) throws RestClientException { + Object localVarPostBody = body; + + // verify the required parameter 'robotId' is set + if (robotId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotId' when calling daoCreateAutomationRunHistory"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling daoCreateAutomationRunHistory"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("robot_id", robotId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/{robot_id}/histories", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Add or create automation robot action + * Add or create automation robot action + *

200 - Update automation robot action successfully + *

201 - Create automation robot action successfully + * @param robotId robot id (required) + * @param automationRobotActionRO (required) + * @return ApiResponseAutomationActionPO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAutomationActionPO daoCreateOrUpdateAutomationRobotAction(String robotId, AutomationRobotActionRO automationRobotActionRO) throws RestClientException { + return daoCreateOrUpdateAutomationRobotActionWithHttpInfo(robotId, automationRobotActionRO).getBody(); + } + + /** + * Add or create automation robot action + * Add or create automation robot action + *

200 - Update automation robot action successfully + *

201 - Create automation robot action successfully + * @param robotId robot id (required) + * @param automationRobotActionRO (required) + * @return ResponseEntity<ApiResponseAutomationActionPO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoCreateOrUpdateAutomationRobotActionWithHttpInfo(String robotId, AutomationRobotActionRO automationRobotActionRO) throws RestClientException { + Object localVarPostBody = automationRobotActionRO; + + // verify the required parameter 'robotId' is set + if (robotId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotId' when calling daoCreateOrUpdateAutomationRobotAction"); + } + + // verify the required parameter 'automationRobotActionRO' is set + if (automationRobotActionRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'automationRobotActionRO' when calling daoCreateOrUpdateAutomationRobotAction"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("robot_id", robotId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots/{robot_id}/actions", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Add or create automation robot trigger + * Add or create automation robot trigger + *

200 - Update automation robot trigger successfully + *

201 - Create automation robot trigger successfully + * @param robotId robot id (required) + * @param automationRobotTriggerRO (required) + * @return ApiResponseAutomationTriggerPO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAutomationTriggerPO daoCreateOrUpdateAutomationRobotTrigger(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO) throws RestClientException { + return daoCreateOrUpdateAutomationRobotTriggerWithHttpInfo(robotId, automationRobotTriggerRO).getBody(); + } + + /** + * Add or create automation robot trigger + * Add or create automation robot trigger + *

200 - Update automation robot trigger successfully + *

201 - Create automation robot trigger successfully + * @param robotId robot id (required) + * @param automationRobotTriggerRO (required) + * @return ResponseEntity<ApiResponseAutomationTriggerPO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoCreateOrUpdateAutomationRobotTriggerWithHttpInfo(String robotId, AutomationRobotTriggerRO automationRobotTriggerRO) throws RestClientException { + Object localVarPostBody = automationRobotTriggerRO; + + // verify the required parameter 'robotId' is set + if (robotId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotId' when calling daoCreateOrUpdateAutomationRobotTrigger"); + } + + // verify the required parameter 'automationRobotTriggerRO' is set + if (automationRobotTriggerRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'automationRobotTriggerRO' when calling daoCreateOrUpdateAutomationRobotTrigger"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("robot_id", robotId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots/{robot_id}/triggers", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get automation task input and output todo + * Get automation task input and output todo + *

200 - Get automation run history task context + * @param taskId task id (required) + * @param actionId action id (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetAutomationRunContext(String taskId, String actionId) throws RestClientException { + daoGetAutomationRunContextWithHttpInfo(taskId, actionId); + } + + /** + * Get automation task input and output todo + * Get automation task input and output todo + *

200 - Get automation run history task context + * @param taskId task id (required) + * @param actionId action id (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetAutomationRunContextWithHttpInfo(String taskId, String actionId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'taskId' when calling daoGetAutomationRunContext"); + } + + // verify the required parameter 'actionId' is set + if (actionId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'actionId' when calling daoGetAutomationRunContext"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("task_id", taskId); + uriVariables.put("action_id", actionId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/histories/{task_id}/contexts/{action_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get automation run history list + * Get automation run history list + *

200 - Get automation run history list + * @param pageSize (required) + * @param pageNum (required) + * @param robotId robot id (required) + * @return ApiResponseAutomationRunHistoryPO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAutomationRunHistoryPO daoGetAutomationRunHistory(Integer pageSize, Integer pageNum, String robotId) throws RestClientException { + return daoGetAutomationRunHistoryWithHttpInfo(pageSize, pageNum, robotId).getBody(); + } + + /** + * Get automation run history list + * Get automation run history list + *

200 - Get automation run history list + * @param pageSize (required) + * @param pageNum (required) + * @param robotId robot id (required) + * @return ResponseEntity<ApiResponseAutomationRunHistoryPO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetAutomationRunHistoryWithHttpInfo(Integer pageSize, Integer pageNum, String robotId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pageSize' when calling daoGetAutomationRunHistory"); + } + + // verify the required parameter 'pageNum' is set + if (pageNum == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pageNum' when calling daoGetAutomationRunHistory"); + } + + // verify the required parameter 'robotId' is set + if (robotId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotId' when calling daoGetAutomationRunHistory"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("robot_id", robotId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "page_size", pageSize)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "page_num", pageNum)); + + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/{robot_id}/histories", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get automation run task details todo + * Get automation run task details todo + *

200 - Get automation run history detail + * @param taskId task id (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetAutomationRunHistoryDetail(String taskId) throws RestClientException { + daoGetAutomationRunHistoryDetailWithHttpInfo(taskId); + } + + /** + * Get automation run task details todo + * Get automation run task details todo + *

200 - Get automation run history detail + * @param taskId task id (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetAutomationRunHistoryDetailWithHttpInfo(String taskId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'taskId' when calling daoGetAutomationRunHistoryDetail"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("task_id", taskId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/histories/{task_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get automation robot detail. + * Get automation robot detail. + *

200 - get automation detail + * @param robotId Automation robot id (required) + * @return ApiResponseAutomationSO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAutomationSO daoGetRobotByRobotId(String robotId) throws RestClientException { + return daoGetRobotByRobotIdWithHttpInfo(robotId).getBody(); + } + + /** + * Get automation robot detail. + * Get automation robot detail. + *

200 - get automation detail + * @param robotId Automation robot id (required) + * @return ResponseEntity<ApiResponseAutomationSO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetRobotByRobotIdWithHttpInfo(String robotId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'robotId' is set + if (robotId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotId' when calling daoGetRobotByRobotId"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("robot_id", robotId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots/{robot_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get automation robot running times. + * Get automation robot running times. + *

200 - get automation robot running times + * @param spaceId space id (required) + * @return ApiResponseAutomationRobotRunNumsSO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAutomationRobotRunNumsSO daoGetRobotRunsBySpaceId(String spaceId) throws RestClientException { + return daoGetRobotRunsBySpaceIdWithHttpInfo(spaceId).getBody(); + } + + /** + * Get automation robot running times. + * Get automation robot running times. + *

200 - get automation robot running times + * @param spaceId space id (required) + * @return ResponseEntity<ApiResponseAutomationRobotRunNumsSO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetRobotRunsBySpaceIdWithHttpInfo(String spaceId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling daoGetRobotRunsBySpaceId"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots/runs/{space_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * get automations triggers todo + * get automations triggers todo + *

200 - get automations triggers + * @param resourceId (required) + * @return ApiResponseAutomationRobotIntroductionSO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAutomationRobotIntroductionSO daoGetRobotsByResourceId(String resourceId) throws RestClientException { + return daoGetRobotsByResourceIdWithHttpInfo(resourceId).getBody(); + } + + /** + * get automations triggers todo + * get automations triggers todo + *

200 - get automations triggers + * @param resourceId (required) + * @return ResponseEntity<ApiResponseAutomationRobotIntroductionSO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetRobotsByResourceIdWithHttpInfo(String resourceId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'resourceId' is set + if (resourceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'resourceId' when calling daoGetRobotsByResourceId"); + } + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "resource_id", resourceId)); + + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * get automations triggers todo + * get automations triggers todo + *

200 - get automations triggers + * @param robotIds (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetRobotsTriggers(List robotIds) throws RestClientException { + daoGetRobotsTriggersWithHttpInfo(robotIds); + } + + /** + * get automations triggers todo + * get automations triggers todo + *

200 - get automations triggers + * @param robotIds (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetRobotsTriggersWithHttpInfo(List robotIds) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'robotIds' is set + if (robotIds == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotIds' when calling daoGetRobotsTriggers"); + } + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "robot_ids", robotIds)); + + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/triggers", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Update automation robot + * Update automation robot + *

200 - Update automation robot successfully + * @param robotId robot id (required) + * @param automationRobotUpdateRO (required) + * @return ApiResponseEmptySO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseEmptySO daoUpdateAutomationRobot(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO) throws RestClientException { + return daoUpdateAutomationRobotWithHttpInfo(robotId, automationRobotUpdateRO).getBody(); + } + + /** + * Update automation robot + * Update automation robot + *

200 - Update automation robot successfully + * @param robotId robot id (required) + * @param automationRobotUpdateRO (required) + * @return ResponseEntity<ApiResponseEmptySO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoUpdateAutomationRobotWithHttpInfo(String robotId, AutomationRobotUpdateRO automationRobotUpdateRO) throws RestClientException { + Object localVarPostBody = automationRobotUpdateRO; + + // verify the required parameter 'robotId' is set + if (robotId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'robotId' when calling daoUpdateAutomationRobot"); + } + + // verify the required parameter 'automationRobotUpdateRO' is set + if (automationRobotUpdateRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'automationRobotUpdateRO' when calling daoUpdateAutomationRobot"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("robot_id", robotId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/robots/{robot_id}", HttpMethod.PATCH, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get automation task input and output todo + * Get automation task input and output todo + *

200 - Get automation run history task context + * @param taskId task id (required) + * @param automationHistoryStatusRO (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoUpdateAutomationRunHistoryStatus(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO) throws RestClientException { + daoUpdateAutomationRunHistoryStatusWithHttpInfo(taskId, automationHistoryStatusRO); + } + + /** + * Get automation task input and output todo + * Get automation task input and output todo + *

200 - Get automation run history task context + * @param taskId task id (required) + * @param automationHistoryStatusRO (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoUpdateAutomationRunHistoryStatusWithHttpInfo(String taskId, AutomationHistoryStatusRO automationHistoryStatusRO) throws RestClientException { + Object localVarPostBody = automationHistoryStatusRO; + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'taskId' when calling daoUpdateAutomationRunHistoryStatus"); + } + + // verify the required parameter 'automationHistoryStatusRO' is set + if (automationHistoryStatusRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'automationHistoryStatusRO' when calling daoUpdateAutomationRunHistoryStatus"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("task_id", taskId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/automations/histories/{task_id}/status", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/CrateApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/CrateApi.java new file mode 100644 index 0000000000..8df3c62a05 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/CrateApi.java @@ -0,0 +1,83 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CrateApi { + private ApiClient apiClient; + + public CrateApi() { + this(new ApiClient()); + } + + public CrateApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Homepage, for liveness check + * Homepage, for liveness check + *

200 - Databus Home + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void databusHome() throws RestClientException { + databusHomeWithHttpInfo(); + } + + /** + * Homepage, for liveness check + * Homepage, for liveness check + *

200 - Databus Home + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity databusHomeWithHttpInfo() throws RestClientException { + Object localVarPostBody = null; + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataDaoApiApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataDaoApiApi.java new file mode 100644 index 0000000000..579821018f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataDaoApiApi.java @@ -0,0 +1,246 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + +import com.apitable.starter.databus.client.model.ApiResponseAiPO; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DataDaoApiApi { + private ApiClient apiClient; + + public DataDaoApiApi() { + this(new ApiClient()); + } + + public DataDaoApiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get AI's binding datasheet ids by AI ID + * Get AI's binding datasheet ids by AI ID + *

200 - Get AI's datasheets success + * @param aiId ai id (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetAiDatasheetIds(String aiId) throws RestClientException { + daoGetAiDatasheetIdsWithHttpInfo(aiId); + } + + /** + * Get AI's binding datasheet ids by AI ID + * Get AI's binding datasheet ids by AI ID + *

200 - Get AI's datasheets success + * @param aiId ai id (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetAiDatasheetIdsWithHttpInfo(String aiId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'aiId' is set + if (aiId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'aiId' when calling daoGetAiDatasheetIds"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("ai_id", aiId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/get_ai_datasheet_ids/{ai_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get AI Node by AI ID + * Get AI Node by AI ID + *

200 - Get AI Node success + * @param aiId ai id (required) + * @param nodeId node id (required) + * @return ApiResponseAiPO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAiPO daoGetAiNode(String aiId, String nodeId) throws RestClientException { + return daoGetAiNodeWithHttpInfo(aiId, nodeId).getBody(); + } + + /** + * Get AI Node by AI ID + * Get AI Node by AI ID + *

200 - Get AI Node success + * @param aiId ai id (required) + * @param nodeId node id (required) + * @return ResponseEntity<ApiResponseAiPO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetAiNodeWithHttpInfo(String aiId, String nodeId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'aiId' is set + if (aiId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'aiId' when calling daoGetAiNode"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'nodeId' when calling daoGetAiNode"); + } + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "ai_id", aiId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "node_id", nodeId)); + + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/get_ai_node", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get AI Entity by AI ID + * Get AI Entity by AI ID + *

200 - Get AI success + * @param aiId ai id (required) + * @return ApiResponseAiPO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseAiPO daoGetAiPo(String aiId) throws RestClientException { + return daoGetAiPoWithHttpInfo(aiId).getBody(); + } + + /** + * Get AI Entity by AI ID + * Get AI Entity by AI ID + *

200 - Get AI success + * @param aiId ai id (required) + * @return ResponseEntity<ApiResponseAiPO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetAiPoWithHttpInfo(String aiId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'aiId' is set + if (aiId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'aiId' when calling daoGetAiPo"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("ai_id", aiId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/get_ai/{ai_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get Datasheet's Revision number + * Get Datasheet's Revision number + *

200 - Get Revision number success + * @param datasheetId datasheet_id (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetRevision(String datasheetId) throws RestClientException { + daoGetRevisionWithHttpInfo(datasheetId); + } + + /** + * Get Datasheet's Revision number + * Get Datasheet's Revision number + *

200 - Get Revision number success + * @param datasheetId datasheet_id (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetRevisionWithHttpInfo(String datasheetId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'datasheetId' is set + if (datasheetId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'datasheetId' when calling daoGetRevision"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("datasheet_id", datasheetId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/get_revision/{datasheet_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataServicesApiApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataServicesApiApi.java new file mode 100644 index 0000000000..5975d67e5b --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DataServicesApiApi.java @@ -0,0 +1,160 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + +import com.apitable.starter.databus.client.model.ApiResponseDatasheetPackSO; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DataServicesApiApi { + private ApiClient apiClient; + + public DataServicesApiApi() { + this(new ApiClient()); + } + + public DataServicesApiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * + * + *

200 - get data pack data + * @param id datasheet id (required) + * @param userId (optional) + * @param spaceId (optional) + * @param viewId (optional) + * @return ApiResponseDatasheetPackSO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseDatasheetPackSO getDatasheetPack(String id, String userId, String spaceId, String viewId) throws RestClientException { + return getDatasheetPackWithHttpInfo(id, userId, spaceId, viewId).getBody(); + } + + /** + * + * + *

200 - get data pack data + * @param id datasheet id (required) + * @param userId (optional) + * @param spaceId (optional) + * @param viewId (optional) + * @return ResponseEntity<ApiResponseDatasheetPackSO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getDatasheetPackWithHttpInfo(String id, String userId, String spaceId, String viewId) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'id' when calling getDatasheetPack"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("id", id); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "userId", userId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "spaceId", spaceId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "viewId", viewId)); + + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/get_datasheet_pack/{id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * + * + *

200 - Patch completed + *

406 - Not accepted + * @param dstId (optional) + * @param userId (optional) + * @param spaceId (optional) + * @param viewId (optional) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getRecords(String dstId, String userId, String spaceId, String viewId) throws RestClientException { + getRecordsWithHttpInfo(dstId, userId, spaceId, viewId); + } + + /** + * + * + *

200 - Patch completed + *

406 - Not accepted + * @param dstId (optional) + * @param userId (optional) + * @param spaceId (optional) + * @param viewId (optional) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getRecordsWithHttpInfo(String dstId, String userId, String spaceId, String viewId) throws RestClientException { + Object localVarPostBody = null; + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "dstId", dstId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "userId", userId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "spaceId", spaceId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "viewId", viewId)); + + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/get_records", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DocumentDaoApiApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DocumentDaoApiApi.java new file mode 100644 index 0000000000..a460f7bffd --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/DocumentDaoApiApi.java @@ -0,0 +1,287 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + +import com.apitable.starter.databus.client.model.DocumentOperationRO; +import com.apitable.starter.databus.client.model.DocumentPropsRO; +import com.apitable.starter.databus.client.model.DocumentRO; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocumentDaoApiApi { + private ApiClient apiClient; + + public DocumentDaoApiApi() { + this(new ApiClient()); + } + + public DocumentDaoApiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * create document operation success + * create document operation success + *

200 - create document operation successfully + * @param documentName document name (required) + * @param documentOperationRO (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoCreateDocumentOperation(String documentName, DocumentOperationRO documentOperationRO) throws RestClientException { + daoCreateDocumentOperationWithHttpInfo(documentName, documentOperationRO); + } + + /** + * create document operation success + * create document operation success + *

200 - create document operation successfully + * @param documentName document name (required) + * @param documentOperationRO (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoCreateDocumentOperationWithHttpInfo(String documentName, DocumentOperationRO documentOperationRO) throws RestClientException { + Object localVarPostBody = documentOperationRO; + + // verify the required parameter 'documentName' is set + if (documentName == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'documentName' when calling daoCreateDocumentOperation"); + } + + // verify the required parameter 'documentOperationRO' is set + if (documentOperationRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'documentOperationRO' when calling daoCreateDocumentOperation"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("document_name", documentName); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/documents/{document_name}/operations", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Create or update document + * Create or update document + *

200 - Create or update document successfully + * @param documentName document name (required) + * @param documentRO (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoCreateOrUpdateDocument(String documentName, DocumentRO documentRO) throws RestClientException { + daoCreateOrUpdateDocumentWithHttpInfo(documentName, documentRO); + } + + /** + * Create or update document + * Create or update document + *

200 - Create or update document successfully + * @param documentName document name (required) + * @param documentRO (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoCreateOrUpdateDocumentWithHttpInfo(String documentName, DocumentRO documentRO) throws RestClientException { + Object localVarPostBody = documentRO; + + // verify the required parameter 'documentName' is set + if (documentName == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'documentName' when calling daoCreateOrUpdateDocument"); + } + + // verify the required parameter 'documentRO' is set + if (documentRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'documentRO' when calling daoCreateOrUpdateDocument"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("document_name", documentName); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/documents/{document_name}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get document data + * Get document data + *

200 - Get document data successfully + * @param documentName document name (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetDocumentData(String documentName) throws RestClientException { + daoGetDocumentDataWithHttpInfo(documentName); + } + + /** + * Get document data + * Get document data + *

200 - Get document data successfully + * @param documentName document name (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetDocumentDataWithHttpInfo(String documentName) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'documentName' is set + if (documentName == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'documentName' when calling daoGetDocumentData"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("document_name", documentName); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/documents/{document_name}/data", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get new document name + * Get new document name + *

200 - Get new document name successfully + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoGetNewDocumentName() throws RestClientException { + daoGetNewDocumentNameWithHttpInfo(); + } + + /** + * Get new document name + * Get new document name + *

200 - Get new document name successfully + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoGetNewDocumentNameWithHttpInfo() throws RestClientException { + Object localVarPostBody = null; + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/documents/name", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * batch update document props + * batch update document props + *

200 - batch update document props successfully + * @param documentPropsRO (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void daoUpdateDocumentProps(DocumentPropsRO documentPropsRO) throws RestClientException { + daoUpdateDocumentPropsWithHttpInfo(documentPropsRO); + } + + /** + * batch update document props + * batch update document props + *

200 - batch update document props successfully + * @param documentPropsRO (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity daoUpdateDocumentPropsWithHttpInfo(DocumentPropsRO documentPropsRO) throws RestClientException { + Object localVarPostBody = documentPropsRO; + + // verify the required parameter 'documentPropsRO' is set + if (documentPropsRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'documentPropsRO' when calling daoUpdateDocumentProps"); + } + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/databus/dao/documents/props", HttpMethod.PATCH, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/EnterpriseFusionApiApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/EnterpriseFusionApiApi.java new file mode 100644 index 0000000000..350a6c2350 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/EnterpriseFusionApiApi.java @@ -0,0 +1,1655 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EnterpriseFusionApiApi { + private ApiClient apiClient; + + public EnterpriseFusionApiApi() { + this(new ApiClient()); + } + + public EnterpriseFusionApiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * batch_delete_view + * batch_delete_view Batch delete views in a specified datasheet + *

200 - batch_delete_view successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void batchDeleteView(String dstId, String authorization) throws RestClientException { + batchDeleteViewWithHttpInfo(dstId, authorization); + } + + /** + * batch_delete_view + * batch_delete_view Batch delete views in a specified datasheet + *

200 - batch_delete_view successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity batchDeleteViewWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling batchDeleteView"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling batchDeleteView"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/views", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * copy_view + * copy_view copy a view at a specified datasheet + *

200 - copy_view successfully + * @param dstId dst_id (required) + * @param viewId view_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void copyView(String dstId, String viewId, String authorization) throws RestClientException { + copyViewWithHttpInfo(dstId, viewId, authorization); + } + + /** + * copy_view + * copy_view copy a view at a specified datasheet + *

200 - copy_view successfully + * @param dstId dst_id (required) + * @param viewId view_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity copyViewWithHttpInfo(String dstId, String viewId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling copyView"); + } + + // verify the required parameter 'viewId' is set + if (viewId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'viewId' when calling copyView"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling copyView"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + uriVariables.put("view_id", viewId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/views/{view_id}/duplicate", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_chat_completion + * create_chat_completion Creates a model response for the given chat conversation + *

200 - create_chat_completion successfully + * @param aiId ai_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createChatCompletion(String aiId, String authorization) throws RestClientException { + createChatCompletionWithHttpInfo(aiId, authorization); + } + + /** + * create_chat_completion + * create_chat_completion Creates a model response for the given chat conversation + *

200 - create_chat_completion successfully + * @param aiId ai_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createChatCompletionWithHttpInfo(String aiId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'aiId' is set + if (aiId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'aiId' when calling createChatCompletion"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createChatCompletion"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("ai_id", aiId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/ai/{ai_id}/chat/completions", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_embed_link + * create_embed_link Creates an \"embed link\" for the specified node + *

200 - create_embed_link successfully + * @param spaceId space_id (required) + * @param nodeId node_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createEmbedLink(String spaceId, String nodeId, String authorization) throws RestClientException { + createEmbedLinkWithHttpInfo(spaceId, nodeId, authorization); + } + + /** + * create_embed_link + * create_embed_link Creates an \"embed link\" for the specified node + *

200 - create_embed_link successfully + * @param spaceId space_id (required) + * @param nodeId node_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createEmbedLinkWithHttpInfo(String spaceId, String nodeId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling createEmbedLink"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'nodeId' when calling createEmbedLink"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createEmbedLink"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("node_id", nodeId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/nodes/{node_id}/embedlinks", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_member + * create_member Create a member for a specified space + *

200 - create_member successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createMember(String spaceId, String authorization) throws RestClientException { + createMemberWithHttpInfo(spaceId, authorization); + } + + /** + * create_member + * create_member Create a member for a specified space + *

200 - create_member successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createMemberWithHttpInfo(String spaceId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling createMember"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createMember"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/members", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_role + * create_role Create a role for a specified space. + *

200 - create_role successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createRole(String spaceId, String authorization) throws RestClientException { + createRoleWithHttpInfo(spaceId, authorization); + } + + /** + * create_role + * create_role Create a role for a specified space. + *

200 - create_role successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createRoleWithHttpInfo(String spaceId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling createRole"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createRole"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/roles", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_team + * create_team Create a team for a specified space. + *

200 - create_team successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createTeam(String spaceId, String authorization) throws RestClientException { + createTeamWithHttpInfo(spaceId, authorization); + } + + /** + * create_team + * create_team Create a team for a specified space. + *

200 - create_team successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createTeamWithHttpInfo(String spaceId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling createTeam"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createTeam"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/teams", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_view + * create_view Add a view to a specified datasheet + *

200 - create_view successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createView(String dstId, String authorization) throws RestClientException { + createViewWithHttpInfo(dstId, authorization); + } + + /** + * create_view + * create_view Add a view to a specified datasheet + *

200 - create_view successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createViewWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling createView"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createView"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/views", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_widget + * create_widget Add a widget to a specified dashboard + *

200 - create_widget successfully + * @param dashboardId dashboard_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createWidget(String dashboardId, String authorization) throws RestClientException { + createWidgetWithHttpInfo(dashboardId, authorization); + } + + /** + * create_widget + * create_widget Add a widget to a specified dashboard + *

200 - create_widget successfully + * @param dashboardId dashboard_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createWidgetWithHttpInfo(String dashboardId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dashboardId' is set + if (dashboardId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dashboardId' when calling createWidget"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createWidget"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dashboard_id", dashboardId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/dashboards/{dashboard_id}/widgets", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * delete_embed_link + * delete_embed_link Removes the specified Advanced Embed link. After deleted, the link cannot be accessed. + *

200 - delete_embed_link successfully + * @param spaceId space_id (required) + * @param nodeId node_id (required) + * @param linkId link_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteEmbedLink(String spaceId, String nodeId, String linkId, String authorization) throws RestClientException { + deleteEmbedLinkWithHttpInfo(spaceId, nodeId, linkId, authorization); + } + + /** + * delete_embed_link + * delete_embed_link Removes the specified Advanced Embed link. After deleted, the link cannot be accessed. + *

200 - delete_embed_link successfully + * @param spaceId space_id (required) + * @param nodeId node_id (required) + * @param linkId link_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteEmbedLinkWithHttpInfo(String spaceId, String nodeId, String linkId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling deleteEmbedLink"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'nodeId' when calling deleteEmbedLink"); + } + + // verify the required parameter 'linkId' is set + if (linkId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'linkId' when calling deleteEmbedLink"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteEmbedLink"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("node_id", nodeId); + uriVariables.put("link_id", linkId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/nodes/{node_id}/embedlinks/{link_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * delete_member + * delete_member Delete a member for a specified space. + *

200 - delete_member successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteMember(String spaceId, String unitId, String authorization) throws RestClientException { + deleteMemberWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * delete_member + * delete_member Delete a member for a specified space. + *

200 - delete_member successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteMemberWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling deleteMember"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling deleteMember"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteMember"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/members/{unit_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * delete_role + * delete_role Delete a role for a specified space + *

200 - delete_role successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteRole(String spaceId, String unitId, String authorization) throws RestClientException { + deleteRoleWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * delete_role + * delete_role Delete a role for a specified space + *

200 - delete_role successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteRoleWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling deleteRole"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling deleteRole"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteRole"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/roles/{unit_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * delete_team + * delete_team Delete a team for a specified space + *

200 - delete_team successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteTeam(String spaceId, String unitId, String authorization) throws RestClientException { + deleteTeamWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * delete_team + * delete_team Delete a team for a specified space + *

200 - delete_team successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteTeamWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling deleteTeam"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling deleteTeam"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteTeam"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/teams/{unit_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * delete_view + * delete_view Delete a view in a specified datasheet + *

200 - delete_view successfully + * @param dstId dst_id (required) + * @param viewId view_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteView(String dstId, String viewId, String authorization) throws RestClientException { + deleteViewWithHttpInfo(dstId, viewId, authorization); + } + + /** + * delete_view + * delete_view Delete a view in a specified datasheet + *

200 - delete_view successfully + * @param dstId dst_id (required) + * @param viewId view_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteViewWithHttpInfo(String dstId, String viewId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling deleteView"); + } + + // verify the required parameter 'viewId' is set + if (viewId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'viewId' when calling deleteView"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteView"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + uriVariables.put("view_id", viewId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/views/{view_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * delete_widget + * delete_widget delete widget in a specified dashboard + *

200 - delete_widget successfully + * @param dashboardId dashboard_id (required) + * @param widgetId widget_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteWidget(String dashboardId, String widgetId, String authorization) throws RestClientException { + deleteWidgetWithHttpInfo(dashboardId, widgetId, authorization); + } + + /** + * delete_widget + * delete_widget delete widget in a specified dashboard + *

200 - delete_widget successfully + * @param dashboardId dashboard_id (required) + * @param widgetId widget_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteWidgetWithHttpInfo(String dashboardId, String widgetId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dashboardId' is set + if (dashboardId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dashboardId' when calling deleteWidget"); + } + + // verify the required parameter 'widgetId' is set + if (widgetId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'widgetId' when calling deleteWidget"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteWidget"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dashboard_id", dashboardId); + uriVariables.put("widget_id", widgetId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/dashboards/{dashboard_id}/widgets/{widget_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * get_embed_link_list + * get_embed_link_list Get all embedded links for a specified node + *

200 - get_embed_link_list successfully + * @param spaceId space_id (required) + * @param nodeId node_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getEmbedLinkList(String spaceId, String nodeId, String authorization) throws RestClientException { + getEmbedLinkListWithHttpInfo(spaceId, nodeId, authorization); + } + + /** + * get_embed_link_list + * get_embed_link_list Get all embedded links for a specified node + *

200 - get_embed_link_list successfully + * @param spaceId space_id (required) + * @param nodeId node_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getEmbedLinkListWithHttpInfo(String spaceId, String nodeId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling getEmbedLinkList"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'nodeId' when calling getEmbedLinkList"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getEmbedLinkList"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("node_id", nodeId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/nodes/{node_id}/embedlinks", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * member_detail + * member_detail Get member details information + *

200 - member_detail successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void memberDetail(String spaceId, String unitId, String authorization) throws RestClientException { + memberDetailWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * member_detail + * member_detail Get member details information + *

200 - member_detail successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity memberDetailWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling memberDetail"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling memberDetail"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling memberDetail"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/members/{unit_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * role_list + * role_list Get roles for a specified space + *

200 - role_list successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void roleList(String spaceId, String authorization) throws RestClientException { + roleListWithHttpInfo(spaceId, authorization); + } + + /** + * role_list + * role_list Get roles for a specified space + *

200 - role_list successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity roleListWithHttpInfo(String spaceId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling roleList"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling roleList"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/roles", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * role_unit_list + * role_unit_list Get the organizational units under the specified role unitId, the returned data includes teams and members. + *

200 - role_unit_list successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void roleUnitList(String spaceId, String unitId, String authorization) throws RestClientException { + roleUnitListWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * role_unit_list + * role_unit_list Get the organizational units under the specified role unitId, the returned data includes teams and members. + *

200 - role_unit_list successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity roleUnitListWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling roleUnitList"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling roleUnitList"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling roleUnitList"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/roles/{unit_id}/units", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * sub_team_list + * sub_team_list Get the list of sub teams of a team by UnitId. + *

200 - sub_team_list successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void subTeamList(String spaceId, String unitId, String authorization) throws RestClientException { + subTeamListWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * sub_team_list + * sub_team_list Get the list of sub teams of a team by UnitId. + *

200 - sub_team_list successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity subTeamListWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling subTeamList"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling subTeamList"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling subTeamList"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/teams/{unit_id}/children", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * team_member_list + * team_member_list List members under team. + *

200 - team_member_list successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void teamMemberList(String spaceId, String unitId, String authorization) throws RestClientException { + teamMemberListWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * team_member_list + * team_member_list List members under team. + *

200 - team_member_list successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity teamMemberListWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling teamMemberList"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling teamMemberList"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling teamMemberList"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/teams/{unit_id}/members", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * update_member + * update_member Update a member for a specified space. + *

200 - update_member successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void updateMember(String spaceId, String unitId, String authorization) throws RestClientException { + updateMemberWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * update_member + * update_member Update a member for a specified space. + *

200 - update_member successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateMemberWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling updateMember"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling updateMember"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateMember"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/members/{unit_id}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * update_role + * update_role Update roles for a specified space + *

200 - update_role successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void updateRole(String spaceId, String unitId, String authorization) throws RestClientException { + updateRoleWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * update_role + * update_role Update roles for a specified space + *

200 - update_role successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateRoleWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling updateRole"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling updateRole"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateRole"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/roles/{unit_id}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * update_team + * update_team Update a for a specified space + *

200 - update_team successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void updateTeam(String spaceId, String unitId, String authorization) throws RestClientException { + updateTeamWithHttpInfo(spaceId, unitId, authorization); + } + + /** + * update_team + * update_team Update a for a specified space + *

200 - update_team successfully + * @param spaceId space_id (required) + * @param unitId unit_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateTeamWithHttpInfo(String spaceId, String unitId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling updateTeam"); + } + + // verify the required parameter 'unitId' is set + if (unitId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'unitId' when calling updateTeam"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateTeam"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("unit_id", unitId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/teams/{unit_id}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * update_view + * update_view update a view in a specified datasheet + *

200 - update_view successfully + * @param dstId dst_id (required) + * @param viewId view_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void updateView(String dstId, String viewId, String authorization) throws RestClientException { + updateViewWithHttpInfo(dstId, viewId, authorization); + } + + /** + * update_view + * update_view update a view in a specified datasheet + *

200 - update_view successfully + * @param dstId dst_id (required) + * @param viewId view_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateViewWithHttpInfo(String dstId, String viewId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling updateView"); + } + + // verify the required parameter 'viewId' is set + if (viewId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'viewId' when calling updateView"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateView"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + uriVariables.put("view_id", viewId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/views/{view_id}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * update_widget + * update_widget modify widget in a specified dashboard + *

200 - update_widget successfully + * @param dashboardId dashboard_id (required) + * @param widgetId widget_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void updateWidget(String dashboardId, String widgetId, String authorization) throws RestClientException { + updateWidgetWithHttpInfo(dashboardId, widgetId, authorization); + } + + /** + * update_widget + * update_widget modify widget in a specified dashboard + *

200 - update_widget successfully + * @param dashboardId dashboard_id (required) + * @param widgetId widget_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateWidgetWithHttpInfo(String dashboardId, String widgetId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dashboardId' is set + if (dashboardId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dashboardId' when calling updateWidget"); + } + + // verify the required parameter 'widgetId' is set + if (widgetId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'widgetId' when calling updateWidget"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateWidget"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dashboard_id", dashboardId); + uriVariables.put("widget_id", widgetId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/dashboards/{dashboard_id}/widgets/{widget_id}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/FusionApiApi.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/FusionApiApi.java new file mode 100644 index 0000000000..d35b2f7af2 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/api/FusionApiApi.java @@ -0,0 +1,982 @@ +package com.apitable.starter.databus.client.api; + +import com.apitable.starter.databus.client.ApiClient; + +import com.apitable.starter.databus.client.model.ApiResponseRecordDTOs; +import com.apitable.starter.databus.client.model.CellFormatEnum; +import com.apitable.starter.databus.client.model.FieldKeyEnum; +import com.apitable.starter.databus.client.model.ListVO; +import com.apitable.starter.databus.client.model.RecordUpdateRO; +import com.apitable.starter.databus.client.model.SortRO; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.client.RestClientException; +import org.springframework.web.client.HttpClientErrorException; +import org.springframework.core.ParameterizedTypeReference; +import org.springframework.core.io.FileSystemResource; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpMethod; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FusionApiApi { + private ApiClient apiClient; + + public FusionApiApi() { + this(new ApiClient()); + } + + public FusionApiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Add multiple rows to a specified datasheet + * Add multiple rows to a specified datasheet Up to 10 records can be created in a single request. You need to bring `Content-Type: application/json` in the Request Header to submit data in raw json format. The POST data is a JSON object, which should contain an array: `records`, the records array contains multiple records to be created. The object `fields` contains the values of the fields to be created in a record, and can contain any number of field values, not necessarily all of them. If there are field defaults set, field values that are not passed in will be saved according to the default values at the time the fields were set. + *

200 - Add multiple rows to a specified datasheet + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param recordUpdateRO (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void addRecords(String dstId, String authorization, RecordUpdateRO recordUpdateRO) throws RestClientException { + addRecordsWithHttpInfo(dstId, authorization, recordUpdateRO); + } + + /** + * Add multiple rows to a specified datasheet + * Add multiple rows to a specified datasheet Up to 10 records can be created in a single request. You need to bring `Content-Type: application/json` in the Request Header to submit data in raw json format. The POST data is a JSON object, which should contain an array: `records`, the records array contains multiple records to be created. The object `fields` contains the values of the fields to be created in a record, and can contain any number of field values, not necessarily all of them. If there are field defaults set, field values that are not passed in will be saved according to the default values at the time the fields were set. + *

200 - Add multiple rows to a specified datasheet + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param recordUpdateRO (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity addRecordsWithHttpInfo(String dstId, String authorization, RecordUpdateRO recordUpdateRO) throws RestClientException { + Object localVarPostBody = recordUpdateRO; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling addRecords"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling addRecords"); + } + + // verify the required parameter 'recordUpdateRO' is set + if (recordUpdateRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'recordUpdateRO' when calling addRecords"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/records", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Create Datasheet + * Create Datasheet Create Datasheet and their fields + *

200 - Get Datasheet Fields + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createDatasheet(String spaceId, String authorization) throws RestClientException { + createDatasheetWithHttpInfo(spaceId, authorization); + } + + /** + * Create Datasheet + * Create Datasheet Create Datasheet and their fields + *

200 - Get Datasheet Fields + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createDatasheetWithHttpInfo(String spaceId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling createDatasheet"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createDatasheet"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/datasheets", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * create_fields + * create_fields create_fields + *

200 - Get Datasheet Fields + * @param spaceId space_id (required) + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void createFields(String spaceId, String dstId, String authorization) throws RestClientException { + createFieldsWithHttpInfo(spaceId, dstId, authorization); + } + + /** + * create_fields + * create_fields create_fields + *

200 - Get Datasheet Fields + * @param spaceId space_id (required) + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity createFieldsWithHttpInfo(String spaceId, String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling createFields"); + } + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling createFields"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling createFields"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/datasheets/{dst_id}/fields", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Delete field + * Delete field Delete field + *

200 - Get Datasheet Fields + * @param spaceId space_id (required) + * @param dstId dst_id (required) + * @param fieldId field_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteFields(String spaceId, String dstId, String fieldId, String authorization) throws RestClientException { + deleteFieldsWithHttpInfo(spaceId, dstId, fieldId, authorization); + } + + /** + * Delete field + * Delete field Delete field + *

200 - Get Datasheet Fields + * @param spaceId space_id (required) + * @param dstId dst_id (required) + * @param fieldId field_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteFieldsWithHttpInfo(String spaceId, String dstId, String fieldId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling deleteFields"); + } + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling deleteFields"); + } + + // verify the required parameter 'fieldId' is set + if (fieldId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'fieldId' when calling deleteFields"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteFields"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + uriVariables.put("dst_id", dstId); + uriVariables.put("field_id", fieldId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/datasheets/{dst_id}/fields/{field_id}", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Delete records + * Delete records Delete a number of records from a datasheet + *

200 - Get Datasheet successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void deleteRecords(String dstId, String authorization) throws RestClientException { + deleteRecordsWithHttpInfo(dstId, authorization); + } + + /** + * Delete records + * Delete records Delete a number of records from a datasheet + *

200 - Get Datasheet successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity deleteRecordsWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling deleteRecords"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling deleteRecords"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/records", HttpMethod.DELETE, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Create the op of the resource + * Create the op of the resource For flexibility reasons and for internal automation testing, provide an interface to freely create commands + *

200 - execute_command successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void executeCommand(String dstId, String authorization) throws RestClientException { + executeCommandWithHttpInfo(dstId, authorization); + } + + /** + * Create the op of the resource + * Create the op of the resource For flexibility reasons and for internal automation testing, provide an interface to freely create commands + *

200 - execute_command successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity executeCommandWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling executeCommand"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling executeCommand"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/executeCommand", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Query all fields of a datasheet + * Query all fields of a datasheet All lines of the doc comment will be included to operation description. + *

200 - Get Datasheet Fields + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getFields(String dstId, String authorization) throws RestClientException { + getFieldsWithHttpInfo(dstId, authorization); + } + + /** + * Query all fields of a datasheet + * Query all fields of a datasheet All lines of the doc comment will be included to operation description. + *

200 - Get Datasheet Fields + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getFieldsWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling getFields"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getFields"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/fields", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * get_nodes + * get_nodes Query the list of space station level 1 document nodes + *

200 - get_nodes successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getNodes(String spaceId, String authorization) throws RestClientException { + getNodesWithHttpInfo(spaceId, authorization); + } + + /** + * get_nodes + * get_nodes Query the list of space station level 1 document nodes + *

200 - get_nodes successfully + * @param spaceId space_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getNodesWithHttpInfo(String spaceId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'spaceId' is set + if (spaceId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'spaceId' when calling getNodes"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getNodes"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("space_id", spaceId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces/{space_id}/nodes", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * get_presigned_url + * get_presigned_url Get the pre-signed URL of the datasheet attachment + *

200 - get_presigned_url successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getPresignedUrl(String dstId, String authorization) throws RestClientException { + getPresignedUrlWithHttpInfo(dstId, authorization); + } + + /** + * get_presigned_url + * get_presigned_url Get the pre-signed URL of the datasheet attachment + *

200 - get_presigned_url successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getPresignedUrlWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling getPresignedUrl"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getPresignedUrl"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/attachments/presignedUrl", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Get multiple records of a datasheet + * Get multiple records of a datasheet + *

200 - Get Datasheet + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param pageSize (optional) + * @param maxRecords (optional) + * @param pageNum (optional) + * @param sort (optional) + * @param recordIds (optional) + * @param viewId (optional) + * @param fields (optional) + * @param filterByFormula (optional) + * @param cellFormat (optional) + * @param fieldKey (optional) + * @return ApiResponseRecordDTOs + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ApiResponseRecordDTOs getRecordByDatasheetId(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey) throws RestClientException { + return getRecordByDatasheetIdWithHttpInfo(dstId, authorization, pageSize, maxRecords, pageNum, sort, recordIds, viewId, fields, filterByFormula, cellFormat, fieldKey).getBody(); + } + + /** + * Get multiple records of a datasheet + * Get multiple records of a datasheet + *

200 - Get Datasheet + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param pageSize (optional) + * @param maxRecords (optional) + * @param pageNum (optional) + * @param sort (optional) + * @param recordIds (optional) + * @param viewId (optional) + * @param fields (optional) + * @param filterByFormula (optional) + * @param cellFormat (optional) + * @param fieldKey (optional) + * @return ResponseEntity<ApiResponseRecordDTOs> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getRecordByDatasheetIdWithHttpInfo(String dstId, String authorization, Integer pageSize, Integer maxRecords, Integer pageNum, List sort, List recordIds, String viewId, List fields, String filterByFormula, CellFormatEnum cellFormat, FieldKeyEnum fieldKey) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling getRecordByDatasheetId"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getRecordByDatasheetId"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "pageSize", pageSize)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "maxRecords", maxRecords)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "pageNum", pageNum)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "sort", sort)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "recordIds", recordIds)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "viewId", viewId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "fields", fields)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "filterByFormula", filterByFormula)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "cellFormat", cellFormat)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "fieldKey", fieldKey)); + + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/records", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * get_spaces + * get_spaces Query space list + *

200 - get_spaces successfully + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getSpaces(String authorization) throws RestClientException { + getSpacesWithHttpInfo(authorization); + } + + /** + * get_spaces + * get_spaces Query space list + *

200 - get_spaces successfully + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getSpacesWithHttpInfo(String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getSpaces"); + } + + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/spaces", HttpMethod.GET, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Query all views of a datasheet + * Query all views of a datasheet A datasheet can create up to 30 views and return them all at once when requesting a view, without paging. + *

200 - Get Datasheet Fields + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void getViews(String dstId, String authorization) throws RestClientException { + getViewsWithHttpInfo(dstId, authorization); + } + + /** + * Query all views of a datasheet + * Query all views of a datasheet A datasheet can create up to 30 views and return them all at once when requesting a view, without paging. + *

200 - Get Datasheet Fields + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity getViewsWithHttpInfo(String dstId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling getViews"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling getViews"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/views", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Query Node Details + * Query Node Details Query the details of the specified file node + *

200 - node_detail successfully + * @param nodeId node_id (required) + * @param authorization Current csrf token of user (required) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void nodeDetail(String nodeId, String authorization) throws RestClientException { + nodeDetailWithHttpInfo(nodeId, authorization); + } + + /** + * Query Node Details + * Query Node Details Query the details of the specified file node + *

200 - node_detail successfully + * @param nodeId node_id (required) + * @param authorization Current csrf token of user (required) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity nodeDetailWithHttpInfo(String nodeId, String authorization) throws RestClientException { + Object localVarPostBody = null; + + // verify the required parameter 'nodeId' is set + if (nodeId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'nodeId' when calling nodeDetail"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling nodeDetail"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("node_id", nodeId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/nodes/{node_id}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Update Records + * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. + *

200 - Get Datasheet + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param recordUpdateRO (required) + * @param viewId (optional) + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public void updateRecordsPatch(String dstId, String authorization, RecordUpdateRO recordUpdateRO, String viewId) throws RestClientException { + updateRecordsPatchWithHttpInfo(dstId, authorization, recordUpdateRO, viewId); + } + + /** + * Update Records + * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. + *

200 - Get Datasheet + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param recordUpdateRO (required) + * @param viewId (optional) + * @return ResponseEntity<Void> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateRecordsPatchWithHttpInfo(String dstId, String authorization, RecordUpdateRO recordUpdateRO, String viewId) throws RestClientException { + Object localVarPostBody = recordUpdateRO; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling updateRecordsPatch"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateRecordsPatch"); + } + + // verify the required parameter 'recordUpdateRO' is set + if (recordUpdateRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'recordUpdateRO' when calling updateRecordsPatch"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "viewId", viewId)); + + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/records", HttpMethod.PATCH, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } + /** + * Update Records + * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. + *

200 - Update records successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param recordUpdateRO (required) + * @param viewId (optional) + * @return ListVO + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ListVO updateRecordsPut(String dstId, String authorization, RecordUpdateRO recordUpdateRO, String viewId) throws RestClientException { + return updateRecordsPutWithHttpInfo(dstId, authorization, recordUpdateRO, viewId).getBody(); + } + + /** + * Update Records + * Update Records Update several records of a datasheet. When submitted using the PUT method, only the fields that are specified will have their data updated, and fields that are not specified will retain their old values. + *

200 - Update records successfully + * @param dstId dst_id (required) + * @param authorization Current csrf token of user (required) + * @param recordUpdateRO (required) + * @param viewId (optional) + * @return ResponseEntity<ListVO> + * @throws RestClientException if an error occurs while attempting to invoke the API + */ + public ResponseEntity updateRecordsPutWithHttpInfo(String dstId, String authorization, RecordUpdateRO recordUpdateRO, String viewId) throws RestClientException { + Object localVarPostBody = recordUpdateRO; + + // verify the required parameter 'dstId' is set + if (dstId == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'dstId' when calling updateRecordsPut"); + } + + // verify the required parameter 'authorization' is set + if (authorization == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'authorization' when calling updateRecordsPut"); + } + + // verify the required parameter 'recordUpdateRO' is set + if (recordUpdateRO == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'recordUpdateRO' when calling updateRecordsPut"); + } + + // create path and map variables + final Map uriVariables = new HashMap(); + uriVariables.put("dst_id", dstId); + + final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarCookieParams = new LinkedMultiValueMap(); + final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "viewId", viewId)); + + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = { + "application/json" + }; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = { + "application/json" + }; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {}; + return apiClient.invokeAPI("/fusion/v3/datasheets/{dst_id}/records", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/ApiKeyAuth.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/ApiKeyAuth.java new file mode 100644 index 0000000000..26e1b51833 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/ApiKeyAuth.java @@ -0,0 +1,62 @@ +package com.apitable.starter.databus.client.auth; + +import org.springframework.http.HttpHeaders; +import org.springframework.util.MultiValueMap; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiKeyAuth implements Authentication { + private final String location; + private final String paramName; + + private String apiKey; + private String apiKeyPrefix; + + public ApiKeyAuth(String location, String paramName) { + this.location = location; + this.paramName = paramName; + } + + public String getLocation() { + return location; + } + + public String getParamName() { + return paramName; + } + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public String getApiKeyPrefix() { + return apiKeyPrefix; + } + + public void setApiKeyPrefix(String apiKeyPrefix) { + this.apiKeyPrefix = apiKeyPrefix; + } + + @Override + public void applyToParams(MultiValueMap queryParams, HttpHeaders headerParams, MultiValueMap cookieParams) { + if (apiKey == null) { + return; + } + String value; + if (apiKeyPrefix != null) { + value = apiKeyPrefix + " " + apiKey; + } else { + value = apiKey; + } + if (location.equals("query")) { + queryParams.add(paramName, value); + } else if (location.equals("header")) { + headerParams.add(paramName, value); + } else if (location.equals("cookie")) { + cookieParams.add(paramName, value); + } + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/Authentication.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/Authentication.java new file mode 100644 index 0000000000..5be125cbdd --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/Authentication.java @@ -0,0 +1,14 @@ +package com.apitable.starter.databus.client.auth; + +import org.springframework.http.HttpHeaders; +import org.springframework.util.MultiValueMap; + +public interface Authentication { + /** + * Apply authentication settings to header and / or query parameters. + * @param queryParams The query parameters for the request + * @param headerParams The header parameters for the request + * @param cookieParams The cookie parameters for the request + */ + public void applyToParams(MultiValueMap queryParams, HttpHeaders headerParams, MultiValueMap cookieParams); +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBasicAuth.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBasicAuth.java new file mode 100644 index 0000000000..7abcd8fe84 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBasicAuth.java @@ -0,0 +1,38 @@ +package com.apitable.starter.databus.client.auth; + +import java.nio.charset.StandardCharsets; +import java.util.Base64; + +import org.springframework.http.HttpHeaders; +import org.springframework.util.MultiValueMap; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class HttpBasicAuth implements Authentication { + private String username; + private String password; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public void applyToParams(MultiValueMap queryParams, HttpHeaders headerParams, MultiValueMap cookieParams) { + if (username == null && password == null) { + return; + } + String str = (username == null ? "" : username) + ":" + (password == null ? "" : password); + headerParams.add(HttpHeaders.AUTHORIZATION, "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8))); + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBearerAuth.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBearerAuth.java new file mode 100644 index 0000000000..990abe9f8a --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/auth/HttpBearerAuth.java @@ -0,0 +1,41 @@ +package com.apitable.starter.databus.client.auth; + +import java.util.Optional; +import java.util.function.Supplier; +import org.springframework.http.HttpHeaders; +import org.springframework.util.MultiValueMap; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class HttpBearerAuth implements Authentication { + private final String scheme; + private Supplier tokenSupplier; + + public HttpBearerAuth(String scheme) { + this.scheme = scheme; + } + + public String getBearerToken() { + return tokenSupplier.get(); + } + + public void setBearerToken(String bearerToken) { + this.tokenSupplier = () -> bearerToken; + } + + public void setBearerToken(Supplier tokenSupplier) { + this.tokenSupplier = tokenSupplier; + } + + @Override + public void applyToParams(MultiValueMap queryParams, HttpHeaders headerParams, MultiValueMap cookieParams) { + String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); + if (bearerToken == null) { + return; + } + headerParams.add(HttpHeaders.AUTHORIZATION, (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + } + + private static String upperCaseBearer(String scheme) { + return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; + } +} diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiNode.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiNode.java new file mode 100644 index 0000000000..d244aa265b --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiNode.java @@ -0,0 +1,302 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AiNode + */ +@JsonPropertyOrder({ + AiNode.JSON_PROPERTY_AI_ID, + AiNode.JSON_PROPERTY_ID, + AiNode.JSON_PROPERTY_NODE_ID, + AiNode.JSON_PROPERTY_NODE_TYPE, + AiNode.JSON_PROPERTY_SETTING, + AiNode.JSON_PROPERTY_TYPE, + AiNode.JSON_PROPERTY_VERSION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AiNode { + public static final String JSON_PROPERTY_AI_ID = "aiId"; + private String aiId; + + public static final String JSON_PROPERTY_ID = "id"; + private Long id; + + public static final String JSON_PROPERTY_NODE_ID = "nodeId"; + private String nodeId; + + public static final String JSON_PROPERTY_NODE_TYPE = "nodeType"; + private Integer nodeType; + + public static final String JSON_PROPERTY_SETTING = "setting"; + private Object setting = null; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public static final String JSON_PROPERTY_VERSION = "version"; + private Integer version; + + public AiNode() { + } + + public AiNode aiId(String aiId) { + + this.aiId = aiId; + return this; + } + + /** + * Get aiId + * @return aiId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AI_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getAiId() { + return aiId; + } + + + @JsonProperty(JSON_PROPERTY_AI_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAiId(String aiId) { + this.aiId = aiId; + } + + + public AiNode id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * minimum: 0 + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(Long id) { + this.id = id; + } + + + public AiNode nodeId(String nodeId) { + + this.nodeId = nodeId; + return this; + } + + /** + * Get nodeId + * @return nodeId + * @deprecated + **/ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NODE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getNodeId() { + return nodeId; + } + + + @JsonProperty(JSON_PROPERTY_NODE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + + public AiNode nodeType(Integer nodeType) { + + this.nodeType = nodeType; + return this; + } + + /** + * Get nodeType + * @return nodeType + * @deprecated + **/ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NODE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getNodeType() { + return nodeType; + } + + + @JsonProperty(JSON_PROPERTY_NODE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNodeType(Integer nodeType) { + this.nodeType = nodeType; + } + + + public AiNode setting(Object setting) { + + this.setting = setting; + return this; + } + + /** + * Get setting + * @return setting + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SETTING) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Object getSetting() { + return setting; + } + + + @JsonProperty(JSON_PROPERTY_SETTING) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSetting(Object setting) { + this.setting = setting; + } + + + public AiNode type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + + public AiNode version(Integer version) { + + this.version = version; + return this; + } + + /** + * Get version + * @return version + * @deprecated + **/ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getVersion() { + return version; + } + + + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVersion(Integer version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AiNode aiNode = (AiNode) o; + return Objects.equals(this.aiId, aiNode.aiId) && + Objects.equals(this.id, aiNode.id) && + Objects.equals(this.nodeId, aiNode.nodeId) && + Objects.equals(this.nodeType, aiNode.nodeType) && + Objects.equals(this.setting, aiNode.setting) && + Objects.equals(this.type, aiNode.type) && + Objects.equals(this.version, aiNode.version); + } + + @Override + public int hashCode() { + return Objects.hash(aiId, id, nodeId, nodeType, setting, type, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AiNode {\n"); + sb.append(" aiId: ").append(toIndentedString(aiId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); + sb.append(" nodeType: ").append(toIndentedString(nodeType)).append("\n"); + sb.append(" setting: ").append(toIndentedString(setting)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiPO.java new file mode 100644 index 0000000000..ff70cf1e8b --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AiPO.java @@ -0,0 +1,327 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AiPO + */ +@JsonPropertyOrder({ + AiPO.JSON_PROPERTY_AI_ID, + AiPO.JSON_PROPERTY_EMBEDDING_MODEL, + AiPO.JSON_PROPERTY_MODEL, + AiPO.JSON_PROPERTY_NAME, + AiPO.JSON_PROPERTY_PROLOGUE, + AiPO.JSON_PROPERTY_PROMPT, + AiPO.JSON_PROPERTY_SETTING, + AiPO.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AiPO { + public static final String JSON_PROPERTY_AI_ID = "aiId"; + private String aiId; + + public static final String JSON_PROPERTY_EMBEDDING_MODEL = "embeddingModel"; + private String embeddingModel; + + public static final String JSON_PROPERTY_MODEL = "model"; + private String model; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_PROLOGUE = "prologue"; + private String prologue; + + public static final String JSON_PROPERTY_PROMPT = "prompt"; + private String prompt; + + public static final String JSON_PROPERTY_SETTING = "setting"; + private String setting; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public AiPO() { + } + + public AiPO aiId(String aiId) { + + this.aiId = aiId; + return this; + } + + /** + * Get aiId + * @return aiId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AI_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getAiId() { + return aiId; + } + + + @JsonProperty(JSON_PROPERTY_AI_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAiId(String aiId) { + this.aiId = aiId; + } + + + public AiPO embeddingModel(String embeddingModel) { + + this.embeddingModel = embeddingModel; + return this; + } + + /** + * Get embeddingModel + * @return embeddingModel + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EMBEDDING_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEmbeddingModel() { + return embeddingModel; + } + + + @JsonProperty(JSON_PROPERTY_EMBEDDING_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmbeddingModel(String embeddingModel) { + this.embeddingModel = embeddingModel; + } + + + public AiPO model(String model) { + + this.model = model; + return this; + } + + /** + * Get model + * @return model + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getModel() { + return model; + } + + + @JsonProperty(JSON_PROPERTY_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setModel(String model) { + this.model = model; + } + + + public AiPO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public AiPO prologue(String prologue) { + + this.prologue = prologue; + return this; + } + + /** + * Get prologue + * @return prologue + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROLOGUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrologue() { + return prologue; + } + + + @JsonProperty(JSON_PROPERTY_PROLOGUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrologue(String prologue) { + this.prologue = prologue; + } + + + public AiPO prompt(String prompt) { + + this.prompt = prompt; + return this; + } + + /** + * Get prompt + * @return prompt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROMPT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrompt() { + return prompt; + } + + + @JsonProperty(JSON_PROPERTY_PROMPT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrompt(String prompt) { + this.prompt = prompt; + } + + + public AiPO setting(String setting) { + + this.setting = setting; + return this; + } + + /** + * Get setting + * @return setting + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SETTING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSetting() { + return setting; + } + + + @JsonProperty(JSON_PROPERTY_SETTING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSetting(String setting) { + this.setting = setting; + } + + + public AiPO type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AiPO aiPO = (AiPO) o; + return Objects.equals(this.aiId, aiPO.aiId) && + Objects.equals(this.embeddingModel, aiPO.embeddingModel) && + Objects.equals(this.model, aiPO.model) && + Objects.equals(this.name, aiPO.name) && + Objects.equals(this.prologue, aiPO.prologue) && + Objects.equals(this.prompt, aiPO.prompt) && + Objects.equals(this.setting, aiPO.setting) && + Objects.equals(this.type, aiPO.type); + } + + @Override + public int hashCode() { + return Objects.hash(aiId, embeddingModel, model, name, prologue, prompt, setting, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AiPO {\n"); + sb.append(" aiId: ").append(toIndentedString(aiId)).append("\n"); + sb.append(" embeddingModel: ").append(toIndentedString(embeddingModel)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" prologue: ").append(toIndentedString(prologue)).append("\n"); + sb.append(" prompt: ").append(toIndentedString(prompt)).append("\n"); + sb.append(" setting: ").append(toIndentedString(setting)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUser.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUser.java new file mode 100644 index 0000000000..93334ac482 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUser.java @@ -0,0 +1,136 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AlarmUsersType; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AlarmUser + */ +@JsonPropertyOrder({ + AlarmUser.JSON_PROPERTY_DATA, + AlarmUser.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AlarmUser { + public static final String JSON_PROPERTY_DATA = "data"; + private String data; + + public static final String JSON_PROPERTY_TYPE = "type"; + private AlarmUsersType type; + + public AlarmUser() { + } + + public AlarmUser data(String data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(String data) { + this.data = data; + } + + + public AlarmUser type(AlarmUsersType type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public AlarmUsersType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(AlarmUsersType type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlarmUser alarmUser = (AlarmUser) o; + return Objects.equals(this.data, alarmUser.data) && + Objects.equals(this.type, alarmUser.type); + } + + @Override + public int hashCode() { + return Objects.hash(data, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlarmUser {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUsersType.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUsersType.java new file mode 100644 index 0000000000..b96c58626a --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AlarmUsersType.java @@ -0,0 +1,59 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets AlarmUsersType + */ +public enum AlarmUsersType { + + FIELD("field"), + + MEMBER("member"); + + private String value; + + AlarmUsersType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AlarmUsersType fromValue(String value) { + for (AlarmUsersType b : AlarmUsersType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AnyBaseField.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AnyBaseField.java new file mode 100644 index 0000000000..b220959823 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AnyBaseField.java @@ -0,0 +1,66 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AnyBaseField + */ +@JsonPropertyOrder({ +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AnyBaseField { + public AnyBaseField() { + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnyBaseField {\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiRecordDto.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiRecordDto.java new file mode 100644 index 0000000000..51d9cdbc8c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiRecordDto.java @@ -0,0 +1,206 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiRecordDto + */ +@JsonPropertyOrder({ + ApiRecordDto.JSON_PROPERTY_CREATED_AT, + ApiRecordDto.JSON_PROPERTY_FIELDS, + ApiRecordDto.JSON_PROPERTY_RECORD_ID, + ApiRecordDto.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiRecordDto { + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_FIELDS = "fields"; + private Map fields = new HashMap<>(); + + public static final String JSON_PROPERTY_RECORD_ID = "recordId"; + private String recordId; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + private Long updatedAt; + + public ApiRecordDto() { + } + + public ApiRecordDto createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public ApiRecordDto fields(Map fields) { + + this.fields = fields; + return this; + } + + public ApiRecordDto putFieldsItem(String key, Object fieldsItem) { + this.fields.put(key, fieldsItem); + return this; + } + + /** + * Get fields + * @return fields + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELDS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + + public Map getFields() { + return fields; + } + + + @JsonProperty(JSON_PROPERTY_FIELDS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + public void setFields(Map fields) { + this.fields = fields; + } + + + public ApiRecordDto recordId(String recordId) { + + this.recordId = recordId; + return this; + } + + /** + * Get recordId + * @return recordId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRecordId() { + return recordId; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + + public ApiRecordDto updatedAt(Long updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiRecordDto apiRecordDto = (ApiRecordDto) o; + return Objects.equals(this.createdAt, apiRecordDto.createdAt) && + Objects.equals(this.fields, apiRecordDto.fields) && + Objects.equals(this.recordId, apiRecordDto.recordId) && + Objects.equals(this.updatedAt, apiRecordDto.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, fields, recordId, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiRecordDto {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAiPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAiPO.java new file mode 100644 index 0000000000..bcc6b25838 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAiPO.java @@ -0,0 +1,201 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AiPO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAiPO + */ +@JsonPropertyOrder({ + ApiResponseAiPO.JSON_PROPERTY_CODE, + ApiResponseAiPO.JSON_PROPERTY_DATA, + ApiResponseAiPO.JSON_PROPERTY_MESSAGE, + ApiResponseAiPO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAiPO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private AiPO data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAiPO() { + } + + public ApiResponseAiPO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAiPO data(AiPO data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AiPO getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(AiPO data) { + this.data = data; + } + + + public ApiResponseAiPO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAiPO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAiPO apiResponseAiPO = (ApiResponseAiPO) o; + return Objects.equals(this.code, apiResponseAiPO.code) && + Objects.equals(this.data, apiResponseAiPO.data) && + Objects.equals(this.message, apiResponseAiPO.message) && + Objects.equals(this.success, apiResponseAiPO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAiPO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationActionPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationActionPO.java new file mode 100644 index 0000000000..00f6ba25ec --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationActionPO.java @@ -0,0 +1,212 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationActionPO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAutomationActionPO + */ +@JsonPropertyOrder({ + ApiResponseAutomationActionPO.JSON_PROPERTY_CODE, + ApiResponseAutomationActionPO.JSON_PROPERTY_DATA, + ApiResponseAutomationActionPO.JSON_PROPERTY_MESSAGE, + ApiResponseAutomationActionPO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAutomationActionPO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private List data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAutomationActionPO() { + } + + public ApiResponseAutomationActionPO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAutomationActionPO data(List data) { + + this.data = data; + return this; + } + + public ApiResponseAutomationActionPO addDataItem(AutomationActionPO dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ApiResponseAutomationActionPO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAutomationActionPO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAutomationActionPO apiResponseAutomationActionPO = (ApiResponseAutomationActionPO) o; + return Objects.equals(this.code, apiResponseAutomationActionPO.code) && + Objects.equals(this.data, apiResponseAutomationActionPO.data) && + Objects.equals(this.message, apiResponseAutomationActionPO.message) && + Objects.equals(this.success, apiResponseAutomationActionPO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAutomationActionPO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotIntroductionSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotIntroductionSO.java new file mode 100644 index 0000000000..b64b4ddd5b --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotIntroductionSO.java @@ -0,0 +1,201 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationRobotIntroductionSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAutomationRobotIntroductionSO + */ +@JsonPropertyOrder({ + ApiResponseAutomationRobotIntroductionSO.JSON_PROPERTY_CODE, + ApiResponseAutomationRobotIntroductionSO.JSON_PROPERTY_DATA, + ApiResponseAutomationRobotIntroductionSO.JSON_PROPERTY_MESSAGE, + ApiResponseAutomationRobotIntroductionSO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAutomationRobotIntroductionSO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private AutomationRobotIntroductionSO data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAutomationRobotIntroductionSO() { + } + + public ApiResponseAutomationRobotIntroductionSO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAutomationRobotIntroductionSO data(AutomationRobotIntroductionSO data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AutomationRobotIntroductionSO getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(AutomationRobotIntroductionSO data) { + this.data = data; + } + + + public ApiResponseAutomationRobotIntroductionSO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAutomationRobotIntroductionSO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAutomationRobotIntroductionSO apiResponseAutomationRobotIntroductionSO = (ApiResponseAutomationRobotIntroductionSO) o; + return Objects.equals(this.code, apiResponseAutomationRobotIntroductionSO.code) && + Objects.equals(this.data, apiResponseAutomationRobotIntroductionSO.data) && + Objects.equals(this.message, apiResponseAutomationRobotIntroductionSO.message) && + Objects.equals(this.success, apiResponseAutomationRobotIntroductionSO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAutomationRobotIntroductionSO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotRunNumsSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotRunNumsSO.java new file mode 100644 index 0000000000..80b7f674c2 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRobotRunNumsSO.java @@ -0,0 +1,201 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationRobotRunNumsSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAutomationRobotRunNumsSO + */ +@JsonPropertyOrder({ + ApiResponseAutomationRobotRunNumsSO.JSON_PROPERTY_CODE, + ApiResponseAutomationRobotRunNumsSO.JSON_PROPERTY_DATA, + ApiResponseAutomationRobotRunNumsSO.JSON_PROPERTY_MESSAGE, + ApiResponseAutomationRobotRunNumsSO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAutomationRobotRunNumsSO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private AutomationRobotRunNumsSO data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAutomationRobotRunNumsSO() { + } + + public ApiResponseAutomationRobotRunNumsSO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAutomationRobotRunNumsSO data(AutomationRobotRunNumsSO data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AutomationRobotRunNumsSO getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(AutomationRobotRunNumsSO data) { + this.data = data; + } + + + public ApiResponseAutomationRobotRunNumsSO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAutomationRobotRunNumsSO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAutomationRobotRunNumsSO apiResponseAutomationRobotRunNumsSO = (ApiResponseAutomationRobotRunNumsSO) o; + return Objects.equals(this.code, apiResponseAutomationRobotRunNumsSO.code) && + Objects.equals(this.data, apiResponseAutomationRobotRunNumsSO.data) && + Objects.equals(this.message, apiResponseAutomationRobotRunNumsSO.message) && + Objects.equals(this.success, apiResponseAutomationRobotRunNumsSO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAutomationRobotRunNumsSO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRunHistoryPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRunHistoryPO.java new file mode 100644 index 0000000000..203009aa9f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationRunHistoryPO.java @@ -0,0 +1,212 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationRunHistoryPO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAutomationRunHistoryPO + */ +@JsonPropertyOrder({ + ApiResponseAutomationRunHistoryPO.JSON_PROPERTY_CODE, + ApiResponseAutomationRunHistoryPO.JSON_PROPERTY_DATA, + ApiResponseAutomationRunHistoryPO.JSON_PROPERTY_MESSAGE, + ApiResponseAutomationRunHistoryPO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAutomationRunHistoryPO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private List data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAutomationRunHistoryPO() { + } + + public ApiResponseAutomationRunHistoryPO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAutomationRunHistoryPO data(List data) { + + this.data = data; + return this; + } + + public ApiResponseAutomationRunHistoryPO addDataItem(AutomationRunHistoryPO dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ApiResponseAutomationRunHistoryPO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAutomationRunHistoryPO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAutomationRunHistoryPO apiResponseAutomationRunHistoryPO = (ApiResponseAutomationRunHistoryPO) o; + return Objects.equals(this.code, apiResponseAutomationRunHistoryPO.code) && + Objects.equals(this.data, apiResponseAutomationRunHistoryPO.data) && + Objects.equals(this.message, apiResponseAutomationRunHistoryPO.message) && + Objects.equals(this.success, apiResponseAutomationRunHistoryPO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAutomationRunHistoryPO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationSO.java new file mode 100644 index 0000000000..dad11d19c7 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationSO.java @@ -0,0 +1,201 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAutomationSO + */ +@JsonPropertyOrder({ + ApiResponseAutomationSO.JSON_PROPERTY_CODE, + ApiResponseAutomationSO.JSON_PROPERTY_DATA, + ApiResponseAutomationSO.JSON_PROPERTY_MESSAGE, + ApiResponseAutomationSO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAutomationSO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private AutomationSO data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAutomationSO() { + } + + public ApiResponseAutomationSO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAutomationSO data(AutomationSO data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AutomationSO getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(AutomationSO data) { + this.data = data; + } + + + public ApiResponseAutomationSO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAutomationSO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAutomationSO apiResponseAutomationSO = (ApiResponseAutomationSO) o; + return Objects.equals(this.code, apiResponseAutomationSO.code) && + Objects.equals(this.data, apiResponseAutomationSO.data) && + Objects.equals(this.message, apiResponseAutomationSO.message) && + Objects.equals(this.success, apiResponseAutomationSO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAutomationSO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationTriggerPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationTriggerPO.java new file mode 100644 index 0000000000..6aefc9c25a --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseAutomationTriggerPO.java @@ -0,0 +1,212 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationTriggerPO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseAutomationTriggerPO + */ +@JsonPropertyOrder({ + ApiResponseAutomationTriggerPO.JSON_PROPERTY_CODE, + ApiResponseAutomationTriggerPO.JSON_PROPERTY_DATA, + ApiResponseAutomationTriggerPO.JSON_PROPERTY_MESSAGE, + ApiResponseAutomationTriggerPO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseAutomationTriggerPO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private List data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseAutomationTriggerPO() { + } + + public ApiResponseAutomationTriggerPO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseAutomationTriggerPO data(List data) { + + this.data = data; + return this; + } + + public ApiResponseAutomationTriggerPO addDataItem(AutomationTriggerPO dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ApiResponseAutomationTriggerPO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseAutomationTriggerPO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseAutomationTriggerPO apiResponseAutomationTriggerPO = (ApiResponseAutomationTriggerPO) o; + return Objects.equals(this.code, apiResponseAutomationTriggerPO.code) && + Objects.equals(this.data, apiResponseAutomationTriggerPO.data) && + Objects.equals(this.message, apiResponseAutomationTriggerPO.message) && + Objects.equals(this.success, apiResponseAutomationTriggerPO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseAutomationTriggerPO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseDatasheetPackSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseDatasheetPackSO.java new file mode 100644 index 0000000000..14f9d16aa0 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseDatasheetPackSO.java @@ -0,0 +1,201 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.DatasheetPackSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseDatasheetPackSO + */ +@JsonPropertyOrder({ + ApiResponseDatasheetPackSO.JSON_PROPERTY_CODE, + ApiResponseDatasheetPackSO.JSON_PROPERTY_DATA, + ApiResponseDatasheetPackSO.JSON_PROPERTY_MESSAGE, + ApiResponseDatasheetPackSO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseDatasheetPackSO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private DatasheetPackSO data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseDatasheetPackSO() { + } + + public ApiResponseDatasheetPackSO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseDatasheetPackSO data(DatasheetPackSO data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DatasheetPackSO getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DatasheetPackSO data) { + this.data = data; + } + + + public ApiResponseDatasheetPackSO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseDatasheetPackSO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseDatasheetPackSO apiResponseDatasheetPackSO = (ApiResponseDatasheetPackSO) o; + return Objects.equals(this.code, apiResponseDatasheetPackSO.code) && + Objects.equals(this.data, apiResponseDatasheetPackSO.data) && + Objects.equals(this.message, apiResponseDatasheetPackSO.message) && + Objects.equals(this.success, apiResponseDatasheetPackSO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseDatasheetPackSO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseEmptySO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseEmptySO.java new file mode 100644 index 0000000000..0a74fbf223 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseEmptySO.java @@ -0,0 +1,200 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseEmptySO + */ +@JsonPropertyOrder({ + ApiResponseEmptySO.JSON_PROPERTY_CODE, + ApiResponseEmptySO.JSON_PROPERTY_DATA, + ApiResponseEmptySO.JSON_PROPERTY_MESSAGE, + ApiResponseEmptySO.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseEmptySO { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private Boolean data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseEmptySO() { + } + + public ApiResponseEmptySO code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseEmptySO data(Boolean data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Boolean data) { + this.data = data; + } + + + public ApiResponseEmptySO message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseEmptySO success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseEmptySO apiResponseEmptySO = (ApiResponseEmptySO) o; + return Objects.equals(this.code, apiResponseEmptySO.code) && + Objects.equals(this.data, apiResponseEmptySO.data) && + Objects.equals(this.message, apiResponseEmptySO.message) && + Objects.equals(this.success, apiResponseEmptySO.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseEmptySO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseRecordDTOs.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseRecordDTOs.java new file mode 100644 index 0000000000..8a6c62e94d --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ApiResponseRecordDTOs.java @@ -0,0 +1,212 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.RecordDTO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ApiResponseRecordDTOs + */ +@JsonPropertyOrder({ + ApiResponseRecordDTOs.JSON_PROPERTY_CODE, + ApiResponseRecordDTOs.JSON_PROPERTY_DATA, + ApiResponseRecordDTOs.JSON_PROPERTY_MESSAGE, + ApiResponseRecordDTOs.JSON_PROPERTY_SUCCESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ApiResponseRecordDTOs { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_DATA = "data"; + private List data; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_SUCCESS = "success"; + private Boolean success; + + public ApiResponseRecordDTOs() { + } + + public ApiResponseRecordDTOs code(Integer code) { + + this.code = code; + return this; + } + + /** + * Get code + * minimum: 0 + * @return code + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public ApiResponseRecordDTOs data(List data) { + + this.data = data; + return this; + } + + public ApiResponseRecordDTOs addDataItem(RecordDTO dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ApiResponseRecordDTOs message(String message) { + + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + + public ApiResponseRecordDTOs success(Boolean success) { + + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getSuccess() { + return success; + } + + + @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSuccess(Boolean success) { + this.success = success; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApiResponseRecordDTOs apiResponseRecordDTOs = (ApiResponseRecordDTOs) o; + return Objects.equals(this.code, apiResponseRecordDTOs.code) && + Objects.equals(this.data, apiResponseRecordDTOs.data) && + Objects.equals(this.message, apiResponseRecordDTOs.message) && + Objects.equals(this.success, apiResponseRecordDTOs.success); + } + + @Override + public int hashCode() { + return Objects.hash(code, data, message, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApiResponseRecordDTOs {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionIntroductionPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionIntroductionPO.java new file mode 100644 index 0000000000..bb1dcf966d --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionIntroductionPO.java @@ -0,0 +1,199 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationActionIntroductionPO + */ +@JsonPropertyOrder({ + AutomationActionIntroductionPO.JSON_PROPERTY_ACTION_ID, + AutomationActionIntroductionPO.JSON_PROPERTY_ACTION_TYPE_ID, + AutomationActionIntroductionPO.JSON_PROPERTY_PREV_ACTION_ID, + AutomationActionIntroductionPO.JSON_PROPERTY_ROBOT_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationActionIntroductionPO { + public static final String JSON_PROPERTY_ACTION_ID = "actionId"; + private String actionId; + + public static final String JSON_PROPERTY_ACTION_TYPE_ID = "actionTypeId"; + private String actionTypeId; + + public static final String JSON_PROPERTY_PREV_ACTION_ID = "prevActionId"; + private String prevActionId; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public AutomationActionIntroductionPO() { + } + + public AutomationActionIntroductionPO actionId(String actionId) { + + this.actionId = actionId; + return this; + } + + /** + * Get actionId + * @return actionId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getActionId() { + return actionId; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setActionId(String actionId) { + this.actionId = actionId; + } + + + public AutomationActionIntroductionPO actionTypeId(String actionTypeId) { + + this.actionTypeId = actionTypeId; + return this; + } + + /** + * Get actionTypeId + * @return actionTypeId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getActionTypeId() { + return actionTypeId; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setActionTypeId(String actionTypeId) { + this.actionTypeId = actionTypeId; + } + + + public AutomationActionIntroductionPO prevActionId(String prevActionId) { + + this.prevActionId = prevActionId; + return this; + } + + /** + * Get prevActionId + * @return prevActionId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREV_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevActionId() { + return prevActionId; + } + + + @JsonProperty(JSON_PROPERTY_PREV_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevActionId(String prevActionId) { + this.prevActionId = prevActionId; + } + + + public AutomationActionIntroductionPO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationActionIntroductionPO automationActionIntroductionPO = (AutomationActionIntroductionPO) o; + return Objects.equals(this.actionId, automationActionIntroductionPO.actionId) && + Objects.equals(this.actionTypeId, automationActionIntroductionPO.actionTypeId) && + Objects.equals(this.prevActionId, automationActionIntroductionPO.prevActionId) && + Objects.equals(this.robotId, automationActionIntroductionPO.robotId); + } + + @Override + public int hashCode() { + return Objects.hash(actionId, actionTypeId, prevActionId, robotId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationActionIntroductionPO {\n"); + sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); + sb.append(" actionTypeId: ").append(toIndentedString(actionTypeId)).append("\n"); + sb.append(" prevActionId: ").append(toIndentedString(prevActionId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionPO.java new file mode 100644 index 0000000000..30e6193b9c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationActionPO.java @@ -0,0 +1,231 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationActionPO + */ +@JsonPropertyOrder({ + AutomationActionPO.JSON_PROPERTY_ACTION_ID, + AutomationActionPO.JSON_PROPERTY_ACTION_TYPE_ID, + AutomationActionPO.JSON_PROPERTY_INPUT, + AutomationActionPO.JSON_PROPERTY_PREV_ACTION_ID, + AutomationActionPO.JSON_PROPERTY_ROBOT_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationActionPO { + public static final String JSON_PROPERTY_ACTION_ID = "actionId"; + private String actionId; + + public static final String JSON_PROPERTY_ACTION_TYPE_ID = "actionTypeId"; + private String actionTypeId; + + public static final String JSON_PROPERTY_INPUT = "input"; + private String input; + + public static final String JSON_PROPERTY_PREV_ACTION_ID = "prevActionId"; + private String prevActionId; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public AutomationActionPO() { + } + + public AutomationActionPO actionId(String actionId) { + + this.actionId = actionId; + return this; + } + + /** + * Get actionId + * @return actionId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getActionId() { + return actionId; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setActionId(String actionId) { + this.actionId = actionId; + } + + + public AutomationActionPO actionTypeId(String actionTypeId) { + + this.actionTypeId = actionTypeId; + return this; + } + + /** + * Get actionTypeId + * @return actionTypeId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getActionTypeId() { + return actionTypeId; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setActionTypeId(String actionTypeId) { + this.actionTypeId = actionTypeId; + } + + + public AutomationActionPO input(String input) { + + this.input = input; + return this; + } + + /** + * Get input + * @return input + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInput() { + return input; + } + + + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInput(String input) { + this.input = input; + } + + + public AutomationActionPO prevActionId(String prevActionId) { + + this.prevActionId = prevActionId; + return this; + } + + /** + * Get prevActionId + * @return prevActionId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREV_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevActionId() { + return prevActionId; + } + + + @JsonProperty(JSON_PROPERTY_PREV_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevActionId(String prevActionId) { + this.prevActionId = prevActionId; + } + + + public AutomationActionPO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationActionPO automationActionPO = (AutomationActionPO) o; + return Objects.equals(this.actionId, automationActionPO.actionId) && + Objects.equals(this.actionTypeId, automationActionPO.actionTypeId) && + Objects.equals(this.input, automationActionPO.input) && + Objects.equals(this.prevActionId, automationActionPO.prevActionId) && + Objects.equals(this.robotId, automationActionPO.robotId); + } + + @Override + public int hashCode() { + return Objects.hash(actionId, actionTypeId, input, prevActionId, robotId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationActionPO {\n"); + sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); + sb.append(" actionTypeId: ").append(toIndentedString(actionTypeId)).append("\n"); + sb.append(" input: ").append(toIndentedString(input)).append("\n"); + sb.append(" prevActionId: ").append(toIndentedString(prevActionId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryRO.java new file mode 100644 index 0000000000..9e17b3f581 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryRO.java @@ -0,0 +1,200 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationHistoryRO + */ +@JsonPropertyOrder({ + AutomationHistoryRO.JSON_PROPERTY_DATA, + AutomationHistoryRO.JSON_PROPERTY_SPACE_ID, + AutomationHistoryRO.JSON_PROPERTY_STATUS, + AutomationHistoryRO.JSON_PROPERTY_TASK_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationHistoryRO { + public static final String JSON_PROPERTY_DATA = "data"; + private Object data = null; + + public static final String JSON_PROPERTY_SPACE_ID = "space_id"; + private String spaceId; + + public static final String JSON_PROPERTY_STATUS = "status"; + private Integer status; + + public static final String JSON_PROPERTY_TASK_ID = "task_id"; + private String taskId; + + public AutomationHistoryRO() { + } + + public AutomationHistoryRO data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Object data) { + this.data = data; + } + + + public AutomationHistoryRO spaceId(String spaceId) { + + this.spaceId = spaceId; + return this; + } + + /** + * Get spaceId + * @return spaceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getSpaceId() { + return spaceId; + } + + + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + + public AutomationHistoryRO status(Integer status) { + + this.status = status; + return this; + } + + /** + * Get status + * minimum: 0 + * @return status + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(Integer status) { + this.status = status; + } + + + public AutomationHistoryRO taskId(String taskId) { + + this.taskId = taskId; + return this; + } + + /** + * Get taskId + * @return taskId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TASK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTaskId() { + return taskId; + } + + + @JsonProperty(JSON_PROPERTY_TASK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationHistoryRO automationHistoryRO = (AutomationHistoryRO) o; + return Objects.equals(this.data, automationHistoryRO.data) && + Objects.equals(this.spaceId, automationHistoryRO.spaceId) && + Objects.equals(this.status, automationHistoryRO.status) && + Objects.equals(this.taskId, automationHistoryRO.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(data, spaceId, status, taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationHistoryRO {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryStatusRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryStatusRO.java new file mode 100644 index 0000000000..4837a197d7 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationHistoryStatusRO.java @@ -0,0 +1,104 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationHistoryStatusRO + */ +@JsonPropertyOrder({ + AutomationHistoryStatusRO.JSON_PROPERTY_STATUS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationHistoryStatusRO { + public static final String JSON_PROPERTY_STATUS = "status"; + private Integer status; + + public AutomationHistoryStatusRO() { + } + + public AutomationHistoryStatusRO status(Integer status) { + + this.status = status; + return this; + } + + /** + * Get status + * minimum: 0 + * @return status + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationHistoryStatusRO automationHistoryStatusRO = (AutomationHistoryStatusRO) o; + return Objects.equals(this.status, automationHistoryStatusRO.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationHistoryStatusRO {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotActionRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotActionRO.java new file mode 100644 index 0000000000..416fa5c0af --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotActionRO.java @@ -0,0 +1,296 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotActionRO + */ +@JsonPropertyOrder({ + AutomationRobotActionRO.JSON_PROPERTY_ACTION_ID, + AutomationRobotActionRO.JSON_PROPERTY_ACTION_TYPE_ID, + AutomationRobotActionRO.JSON_PROPERTY_INPUT, + AutomationRobotActionRO.JSON_PROPERTY_IS_DELETED, + AutomationRobotActionRO.JSON_PROPERTY_LIMIT_COUNT, + AutomationRobotActionRO.JSON_PROPERTY_PREV_ACTION_ID, + AutomationRobotActionRO.JSON_PROPERTY_USER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotActionRO { + public static final String JSON_PROPERTY_ACTION_ID = "action_id"; + private String actionId; + + public static final String JSON_PROPERTY_ACTION_TYPE_ID = "action_type_id"; + private String actionTypeId; + + public static final String JSON_PROPERTY_INPUT = "input"; + private String input; + + public static final String JSON_PROPERTY_IS_DELETED = "is_deleted"; + private Boolean isDeleted; + + public static final String JSON_PROPERTY_LIMIT_COUNT = "limit_count"; + private Long limitCount; + + public static final String JSON_PROPERTY_PREV_ACTION_ID = "prev_action_id"; + private String prevActionId; + + public static final String JSON_PROPERTY_USER_ID = "user_id"; + private Long userId; + + public AutomationRobotActionRO() { + } + + public AutomationRobotActionRO actionId(String actionId) { + + this.actionId = actionId; + return this; + } + + /** + * Get actionId + * @return actionId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getActionId() { + return actionId; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setActionId(String actionId) { + this.actionId = actionId; + } + + + public AutomationRobotActionRO actionTypeId(String actionTypeId) { + + this.actionTypeId = actionTypeId; + return this; + } + + /** + * Get actionTypeId + * @return actionTypeId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getActionTypeId() { + return actionTypeId; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setActionTypeId(String actionTypeId) { + this.actionTypeId = actionTypeId; + } + + + public AutomationRobotActionRO input(String input) { + + this.input = input; + return this; + } + + /** + * Get input + * @return input + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInput() { + return input; + } + + + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInput(String input) { + this.input = input; + } + + + public AutomationRobotActionRO isDeleted(Boolean isDeleted) { + + this.isDeleted = isDeleted; + return this; + } + + /** + * Get isDeleted + * @return isDeleted + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsDeleted() { + return isDeleted; + } + + + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + + public AutomationRobotActionRO limitCount(Long limitCount) { + + this.limitCount = limitCount; + return this; + } + + /** + * Get limitCount + * @return limitCount + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LIMIT_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getLimitCount() { + return limitCount; + } + + + @JsonProperty(JSON_PROPERTY_LIMIT_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLimitCount(Long limitCount) { + this.limitCount = limitCount; + } + + + public AutomationRobotActionRO prevActionId(String prevActionId) { + + this.prevActionId = prevActionId; + return this; + } + + /** + * Get prevActionId + * @return prevActionId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREV_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevActionId() { + return prevActionId; + } + + + @JsonProperty(JSON_PROPERTY_PREV_ACTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevActionId(String prevActionId) { + this.prevActionId = prevActionId; + } + + + public AutomationRobotActionRO userId(Long userId) { + + this.userId = userId; + return this; + } + + /** + * Get userId + * minimum: 0 + * @return userId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserId(Long userId) { + this.userId = userId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotActionRO automationRobotActionRO = (AutomationRobotActionRO) o; + return Objects.equals(this.actionId, automationRobotActionRO.actionId) && + Objects.equals(this.actionTypeId, automationRobotActionRO.actionTypeId) && + Objects.equals(this.input, automationRobotActionRO.input) && + Objects.equals(this.isDeleted, automationRobotActionRO.isDeleted) && + Objects.equals(this.limitCount, automationRobotActionRO.limitCount) && + Objects.equals(this.prevActionId, automationRobotActionRO.prevActionId) && + Objects.equals(this.userId, automationRobotActionRO.userId); + } + + @Override + public int hashCode() { + return Objects.hash(actionId, actionTypeId, input, isDeleted, limitCount, prevActionId, userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotActionRO {\n"); + sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); + sb.append(" actionTypeId: ").append(toIndentedString(actionTypeId)).append("\n"); + sb.append(" input: ").append(toIndentedString(input)).append("\n"); + sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); + sb.append(" limitCount: ").append(toIndentedString(limitCount)).append("\n"); + sb.append(" prevActionId: ").append(toIndentedString(prevActionId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotCopyRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotCopyRO.java new file mode 100644 index 0000000000..0cea8dfaca --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotCopyRO.java @@ -0,0 +1,200 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotCopyRO + */ +@JsonPropertyOrder({ + AutomationRobotCopyRO.JSON_PROPERTY_AUTOMATION_NAME, + AutomationRobotCopyRO.JSON_PROPERTY_ORIGINAL_RESOURCE_ID, + AutomationRobotCopyRO.JSON_PROPERTY_RESOURCE_ID, + AutomationRobotCopyRO.JSON_PROPERTY_USER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotCopyRO { + public static final String JSON_PROPERTY_AUTOMATION_NAME = "automation_name"; + private String automationName; + + public static final String JSON_PROPERTY_ORIGINAL_RESOURCE_ID = "original_resource_id"; + private String originalResourceId; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resource_id"; + private String resourceId; + + public static final String JSON_PROPERTY_USER_ID = "user_id"; + private Long userId; + + public AutomationRobotCopyRO() { + } + + public AutomationRobotCopyRO automationName(String automationName) { + + this.automationName = automationName; + return this; + } + + /** + * Get automationName + * @return automationName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTOMATION_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getAutomationName() { + return automationName; + } + + + @JsonProperty(JSON_PROPERTY_AUTOMATION_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAutomationName(String automationName) { + this.automationName = automationName; + } + + + public AutomationRobotCopyRO originalResourceId(String originalResourceId) { + + this.originalResourceId = originalResourceId; + return this; + } + + /** + * Get originalResourceId + * @return originalResourceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ORIGINAL_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getOriginalResourceId() { + return originalResourceId; + } + + + @JsonProperty(JSON_PROPERTY_ORIGINAL_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setOriginalResourceId(String originalResourceId) { + this.originalResourceId = originalResourceId; + } + + + public AutomationRobotCopyRO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + + public AutomationRobotCopyRO userId(Long userId) { + + this.userId = userId; + return this; + } + + /** + * Get userId + * minimum: 0 + * @return userId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserId(Long userId) { + this.userId = userId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotCopyRO automationRobotCopyRO = (AutomationRobotCopyRO) o; + return Objects.equals(this.automationName, automationRobotCopyRO.automationName) && + Objects.equals(this.originalResourceId, automationRobotCopyRO.originalResourceId) && + Objects.equals(this.resourceId, automationRobotCopyRO.resourceId) && + Objects.equals(this.userId, automationRobotCopyRO.userId); + } + + @Override + public int hashCode() { + return Objects.hash(automationName, originalResourceId, resourceId, userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotCopyRO {\n"); + sb.append(" automationName: ").append(toIndentedString(automationName)).append("\n"); + sb.append(" originalResourceId: ").append(toIndentedString(originalResourceId)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionPO.java new file mode 100644 index 0000000000..82681e251f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionPO.java @@ -0,0 +1,264 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotIntroductionPO + */ +@JsonPropertyOrder({ + AutomationRobotIntroductionPO.JSON_PROPERTY_DESCRIPTION, + AutomationRobotIntroductionPO.JSON_PROPERTY_IS_ACTIVE, + AutomationRobotIntroductionPO.JSON_PROPERTY_NAME, + AutomationRobotIntroductionPO.JSON_PROPERTY_PROPS, + AutomationRobotIntroductionPO.JSON_PROPERTY_RESOURCE_ID, + AutomationRobotIntroductionPO.JSON_PROPERTY_ROBOT_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotIntroductionPO { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_IS_ACTIVE = "isActive"; + private Integer isActive; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_PROPS = "props"; + private String props; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; + private String resourceId; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public AutomationRobotIntroductionPO() { + } + + public AutomationRobotIntroductionPO description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public AutomationRobotIntroductionPO isActive(Integer isActive) { + + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * minimum: 0 + * @return isActive + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getIsActive() { + return isActive; + } + + + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIsActive(Integer isActive) { + this.isActive = isActive; + } + + + public AutomationRobotIntroductionPO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public AutomationRobotIntroductionPO props(String props) { + + this.props = props; + return this; + } + + /** + * Get props + * @return props + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProps() { + return props; + } + + + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProps(String props) { + this.props = props; + } + + + public AutomationRobotIntroductionPO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + + public AutomationRobotIntroductionPO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotIntroductionPO automationRobotIntroductionPO = (AutomationRobotIntroductionPO) o; + return Objects.equals(this.description, automationRobotIntroductionPO.description) && + Objects.equals(this.isActive, automationRobotIntroductionPO.isActive) && + Objects.equals(this.name, automationRobotIntroductionPO.name) && + Objects.equals(this.props, automationRobotIntroductionPO.props) && + Objects.equals(this.resourceId, automationRobotIntroductionPO.resourceId) && + Objects.equals(this.robotId, automationRobotIntroductionPO.robotId); + } + + @Override + public int hashCode() { + return Objects.hash(description, isActive, name, props, resourceId, robotId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotIntroductionPO {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" props: ").append(toIndentedString(props)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionSO.java new file mode 100644 index 0000000000..753c221ffc --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotIntroductionSO.java @@ -0,0 +1,197 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationActionIntroductionPO; +import com.apitable.starter.databus.client.model.AutomationRobotIntroductionPO; +import com.apitable.starter.databus.client.model.AutomationTriggerIntroductionPO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotIntroductionSO + */ +@JsonPropertyOrder({ + AutomationRobotIntroductionSO.JSON_PROPERTY_ACTIONS, + AutomationRobotIntroductionSO.JSON_PROPERTY_ROBOTS, + AutomationRobotIntroductionSO.JSON_PROPERTY_TRIGGERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotIntroductionSO { + public static final String JSON_PROPERTY_ACTIONS = "actions"; + private List actions = new ArrayList<>(); + + public static final String JSON_PROPERTY_ROBOTS = "robots"; + private List robots = new ArrayList<>(); + + public static final String JSON_PROPERTY_TRIGGERS = "triggers"; + private List triggers = new ArrayList<>(); + + public AutomationRobotIntroductionSO() { + } + + public AutomationRobotIntroductionSO actions(List actions) { + + this.actions = actions; + return this; + } + + public AutomationRobotIntroductionSO addActionsItem(AutomationActionIntroductionPO actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + return this; + } + + /** + * Get actions + * @return actions + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getActions() { + return actions; + } + + + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setActions(List actions) { + this.actions = actions; + } + + + public AutomationRobotIntroductionSO robots(List robots) { + + this.robots = robots; + return this; + } + + public AutomationRobotIntroductionSO addRobotsItem(AutomationRobotIntroductionPO robotsItem) { + if (this.robots == null) { + this.robots = new ArrayList<>(); + } + this.robots.add(robotsItem); + return this; + } + + /** + * Get robots + * @return robots + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getRobots() { + return robots; + } + + + @JsonProperty(JSON_PROPERTY_ROBOTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobots(List robots) { + this.robots = robots; + } + + + public AutomationRobotIntroductionSO triggers(List triggers) { + + this.triggers = triggers; + return this; + } + + public AutomationRobotIntroductionSO addTriggersItem(AutomationTriggerIntroductionPO triggersItem) { + if (this.triggers == null) { + this.triggers = new ArrayList<>(); + } + this.triggers.add(triggersItem); + return this; + } + + /** + * Get triggers + * @return triggers + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getTriggers() { + return triggers; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTriggers(List triggers) { + this.triggers = triggers; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotIntroductionSO automationRobotIntroductionSO = (AutomationRobotIntroductionSO) o; + return Objects.equals(this.actions, automationRobotIntroductionSO.actions) && + Objects.equals(this.robots, automationRobotIntroductionSO.robots) && + Objects.equals(this.triggers, automationRobotIntroductionSO.triggers); + } + + @Override + public int hashCode() { + return Objects.hash(actions, robots, triggers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotIntroductionSO {\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" robots: ").append(toIndentedString(robots)).append("\n"); + sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotRunNumsSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotRunNumsSO.java new file mode 100644 index 0000000000..3be3451723 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotRunNumsSO.java @@ -0,0 +1,103 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotRunNumsSO + */ +@JsonPropertyOrder({ + AutomationRobotRunNumsSO.JSON_PROPERTY_RECENTLY_RUN_COUNT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotRunNumsSO { + public static final String JSON_PROPERTY_RECENTLY_RUN_COUNT = "recentlyRunCount"; + private Long recentlyRunCount; + + public AutomationRobotRunNumsSO() { + } + + public AutomationRobotRunNumsSO recentlyRunCount(Long recentlyRunCount) { + + this.recentlyRunCount = recentlyRunCount; + return this; + } + + /** + * Get recentlyRunCount + * @return recentlyRunCount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECENTLY_RUN_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getRecentlyRunCount() { + return recentlyRunCount; + } + + + @JsonProperty(JSON_PROPERTY_RECENTLY_RUN_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecentlyRunCount(Long recentlyRunCount) { + this.recentlyRunCount = recentlyRunCount; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotRunNumsSO automationRobotRunNumsSO = (AutomationRobotRunNumsSO) o; + return Objects.equals(this.recentlyRunCount, automationRobotRunNumsSO.recentlyRunCount); + } + + @Override + public int hashCode() { + return Objects.hash(recentlyRunCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotRunNumsSO {\n"); + sb.append(" recentlyRunCount: ").append(toIndentedString(recentlyRunCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotSO.java new file mode 100644 index 0000000000..8c0a2bc92b --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotSO.java @@ -0,0 +1,361 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotSO + */ +@JsonPropertyOrder({ + AutomationRobotSO.JSON_PROPERTY_DESCRIPTION, + AutomationRobotSO.JSON_PROPERTY_IS_ACTIVE, + AutomationRobotSO.JSON_PROPERTY_NAME, + AutomationRobotSO.JSON_PROPERTY_PROPS, + AutomationRobotSO.JSON_PROPERTY_RECENTLY_RUN_COUNT, + AutomationRobotSO.JSON_PROPERTY_RESOURCE_ID, + AutomationRobotSO.JSON_PROPERTY_ROBOT_ID, + AutomationRobotSO.JSON_PROPERTY_UPDATED_AT, + AutomationRobotSO.JSON_PROPERTY_UPDATED_BY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotSO { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_IS_ACTIVE = "isActive"; + private Integer isActive; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_PROPS = "props"; + private String props; + + public static final String JSON_PROPERTY_RECENTLY_RUN_COUNT = "recentlyRunCount"; + private Long recentlyRunCount; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; + private String resourceId; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + private Long updatedAt; + + public static final String JSON_PROPERTY_UPDATED_BY = "updatedBy"; + private Long updatedBy; + + public AutomationRobotSO() { + } + + public AutomationRobotSO description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public AutomationRobotSO isActive(Integer isActive) { + + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * minimum: 0 + * @return isActive + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getIsActive() { + return isActive; + } + + + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIsActive(Integer isActive) { + this.isActive = isActive; + } + + + public AutomationRobotSO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public AutomationRobotSO props(String props) { + + this.props = props; + return this; + } + + /** + * Get props + * @return props + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProps() { + return props; + } + + + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProps(String props) { + this.props = props; + } + + + public AutomationRobotSO recentlyRunCount(Long recentlyRunCount) { + + this.recentlyRunCount = recentlyRunCount; + return this; + } + + /** + * Get recentlyRunCount + * @return recentlyRunCount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECENTLY_RUN_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getRecentlyRunCount() { + return recentlyRunCount; + } + + + @JsonProperty(JSON_PROPERTY_RECENTLY_RUN_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecentlyRunCount(Long recentlyRunCount) { + this.recentlyRunCount = recentlyRunCount; + } + + + public AutomationRobotSO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + + public AutomationRobotSO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + + public AutomationRobotSO updatedAt(Long updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + + public AutomationRobotSO updatedBy(Long updatedBy) { + + this.updatedBy = updatedBy; + return this; + } + + /** + * Get updatedBy + * minimum: 0 + * @return updatedBy + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedBy() { + return updatedBy; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedBy(Long updatedBy) { + this.updatedBy = updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotSO automationRobotSO = (AutomationRobotSO) o; + return Objects.equals(this.description, automationRobotSO.description) && + Objects.equals(this.isActive, automationRobotSO.isActive) && + Objects.equals(this.name, automationRobotSO.name) && + Objects.equals(this.props, automationRobotSO.props) && + Objects.equals(this.recentlyRunCount, automationRobotSO.recentlyRunCount) && + Objects.equals(this.resourceId, automationRobotSO.resourceId) && + Objects.equals(this.robotId, automationRobotSO.robotId) && + Objects.equals(this.updatedAt, automationRobotSO.updatedAt) && + Objects.equals(this.updatedBy, automationRobotSO.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash(description, isActive, name, props, recentlyRunCount, resourceId, robotId, updatedAt, updatedBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotSO {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" props: ").append(toIndentedString(props)).append("\n"); + sb.append(" recentlyRunCount: ").append(toIndentedString(recentlyRunCount)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotTriggerRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotTriggerRO.java new file mode 100644 index 0000000000..b880cbcd7f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotTriggerRO.java @@ -0,0 +1,328 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotTriggerRO + */ +@JsonPropertyOrder({ + AutomationRobotTriggerRO.JSON_PROPERTY_INPUT, + AutomationRobotTriggerRO.JSON_PROPERTY_IS_DELETED, + AutomationRobotTriggerRO.JSON_PROPERTY_LIMIT_COUNT, + AutomationRobotTriggerRO.JSON_PROPERTY_PREV_TRIGGER_ID, + AutomationRobotTriggerRO.JSON_PROPERTY_RESOURCE_ID, + AutomationRobotTriggerRO.JSON_PROPERTY_TRIGGER_ID, + AutomationRobotTriggerRO.JSON_PROPERTY_TRIGGER_TYPE_ID, + AutomationRobotTriggerRO.JSON_PROPERTY_USER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotTriggerRO { + public static final String JSON_PROPERTY_INPUT = "input"; + private String input; + + public static final String JSON_PROPERTY_IS_DELETED = "is_deleted"; + private Boolean isDeleted; + + public static final String JSON_PROPERTY_LIMIT_COUNT = "limit_count"; + private Long limitCount; + + public static final String JSON_PROPERTY_PREV_TRIGGER_ID = "prev_trigger_id"; + private String prevTriggerId; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resource_id"; + private String resourceId; + + public static final String JSON_PROPERTY_TRIGGER_ID = "trigger_id"; + private String triggerId; + + public static final String JSON_PROPERTY_TRIGGER_TYPE_ID = "trigger_type_id"; + private String triggerTypeId; + + public static final String JSON_PROPERTY_USER_ID = "user_id"; + private Long userId; + + public AutomationRobotTriggerRO() { + } + + public AutomationRobotTriggerRO input(String input) { + + this.input = input; + return this; + } + + /** + * Get input + * @return input + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInput() { + return input; + } + + + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInput(String input) { + this.input = input; + } + + + public AutomationRobotTriggerRO isDeleted(Boolean isDeleted) { + + this.isDeleted = isDeleted; + return this; + } + + /** + * Get isDeleted + * @return isDeleted + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsDeleted() { + return isDeleted; + } + + + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + + public AutomationRobotTriggerRO limitCount(Long limitCount) { + + this.limitCount = limitCount; + return this; + } + + /** + * Get limitCount + * @return limitCount + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LIMIT_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getLimitCount() { + return limitCount; + } + + + @JsonProperty(JSON_PROPERTY_LIMIT_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLimitCount(Long limitCount) { + this.limitCount = limitCount; + } + + + public AutomationRobotTriggerRO prevTriggerId(String prevTriggerId) { + + this.prevTriggerId = prevTriggerId; + return this; + } + + /** + * Get prevTriggerId + * @return prevTriggerId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREV_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevTriggerId() { + return prevTriggerId; + } + + + @JsonProperty(JSON_PROPERTY_PREV_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevTriggerId(String prevTriggerId) { + this.prevTriggerId = prevTriggerId; + } + + + public AutomationRobotTriggerRO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + + public AutomationRobotTriggerRO triggerId(String triggerId) { + + this.triggerId = triggerId; + return this; + } + + /** + * Get triggerId + * @return triggerId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTriggerId() { + return triggerId; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTriggerId(String triggerId) { + this.triggerId = triggerId; + } + + + public AutomationRobotTriggerRO triggerTypeId(String triggerTypeId) { + + this.triggerTypeId = triggerTypeId; + return this; + } + + /** + * Get triggerTypeId + * @return triggerTypeId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TRIGGER_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTriggerTypeId() { + return triggerTypeId; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGER_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTriggerTypeId(String triggerTypeId) { + this.triggerTypeId = triggerTypeId; + } + + + public AutomationRobotTriggerRO userId(Long userId) { + + this.userId = userId; + return this; + } + + /** + * Get userId + * minimum: 0 + * @return userId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserId(Long userId) { + this.userId = userId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotTriggerRO automationRobotTriggerRO = (AutomationRobotTriggerRO) o; + return Objects.equals(this.input, automationRobotTriggerRO.input) && + Objects.equals(this.isDeleted, automationRobotTriggerRO.isDeleted) && + Objects.equals(this.limitCount, automationRobotTriggerRO.limitCount) && + Objects.equals(this.prevTriggerId, automationRobotTriggerRO.prevTriggerId) && + Objects.equals(this.resourceId, automationRobotTriggerRO.resourceId) && + Objects.equals(this.triggerId, automationRobotTriggerRO.triggerId) && + Objects.equals(this.triggerTypeId, automationRobotTriggerRO.triggerTypeId) && + Objects.equals(this.userId, automationRobotTriggerRO.userId); + } + + @Override + public int hashCode() { + return Objects.hash(input, isDeleted, limitCount, prevTriggerId, resourceId, triggerId, triggerTypeId, userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotTriggerRO {\n"); + sb.append(" input: ").append(toIndentedString(input)).append("\n"); + sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); + sb.append(" limitCount: ").append(toIndentedString(limitCount)).append("\n"); + sb.append(" prevTriggerId: ").append(toIndentedString(prevTriggerId)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" triggerId: ").append(toIndentedString(triggerId)).append("\n"); + sb.append(" triggerTypeId: ").append(toIndentedString(triggerTypeId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotUpdateRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotUpdateRO.java new file mode 100644 index 0000000000..3186d8340e --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRobotUpdateRO.java @@ -0,0 +1,264 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRobotUpdateRO + */ +@JsonPropertyOrder({ + AutomationRobotUpdateRO.JSON_PROPERTY_DESCRIPTION, + AutomationRobotUpdateRO.JSON_PROPERTY_IS_ACTIVE, + AutomationRobotUpdateRO.JSON_PROPERTY_IS_DELETED, + AutomationRobotUpdateRO.JSON_PROPERTY_NAME, + AutomationRobotUpdateRO.JSON_PROPERTY_PROPS, + AutomationRobotUpdateRO.JSON_PROPERTY_UPDATED_BY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRobotUpdateRO { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_IS_ACTIVE = "is_active"; + private Boolean isActive; + + public static final String JSON_PROPERTY_IS_DELETED = "is_deleted"; + private Boolean isDeleted; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_PROPS = "props"; + private String props; + + public static final String JSON_PROPERTY_UPDATED_BY = "updated_by"; + private Long updatedBy; + + public AutomationRobotUpdateRO() { + } + + public AutomationRobotUpdateRO description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public AutomationRobotUpdateRO isActive(Boolean isActive) { + + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * @return isActive + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsActive() { + return isActive; + } + + + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + + public AutomationRobotUpdateRO isDeleted(Boolean isDeleted) { + + this.isDeleted = isDeleted; + return this; + } + + /** + * Get isDeleted + * @return isDeleted + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsDeleted() { + return isDeleted; + } + + + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + + public AutomationRobotUpdateRO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public AutomationRobotUpdateRO props(String props) { + + this.props = props; + return this; + } + + /** + * Get props + * @return props + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProps() { + return props; + } + + + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProps(String props) { + this.props = props; + } + + + public AutomationRobotUpdateRO updatedBy(Long updatedBy) { + + this.updatedBy = updatedBy; + return this; + } + + /** + * Get updatedBy + * minimum: 0 + * @return updatedBy + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getUpdatedBy() { + return updatedBy; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdatedBy(Long updatedBy) { + this.updatedBy = updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRobotUpdateRO automationRobotUpdateRO = (AutomationRobotUpdateRO) o; + return Objects.equals(this.description, automationRobotUpdateRO.description) && + Objects.equals(this.isActive, automationRobotUpdateRO.isActive) && + Objects.equals(this.isDeleted, automationRobotUpdateRO.isDeleted) && + Objects.equals(this.name, automationRobotUpdateRO.name) && + Objects.equals(this.props, automationRobotUpdateRO.props) && + Objects.equals(this.updatedBy, automationRobotUpdateRO.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash(description, isActive, isDeleted, name, props, updatedBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRobotUpdateRO {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" props: ").append(toIndentedString(props)).append("\n"); + sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRunHistoryPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRunHistoryPO.java new file mode 100644 index 0000000000..9a84570376 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationRunHistoryPO.java @@ -0,0 +1,296 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationRunHistoryPO + */ +@JsonPropertyOrder({ + AutomationRunHistoryPO.JSON_PROPERTY_ACTION_IDS, + AutomationRunHistoryPO.JSON_PROPERTY_ACTION_TYPE_IDS, + AutomationRunHistoryPO.JSON_PROPERTY_CREATED_AT, + AutomationRunHistoryPO.JSON_PROPERTY_ERROR_STACKS, + AutomationRunHistoryPO.JSON_PROPERTY_ROBOT_ID, + AutomationRunHistoryPO.JSON_PROPERTY_STATUS, + AutomationRunHistoryPO.JSON_PROPERTY_TASK_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationRunHistoryPO { + public static final String JSON_PROPERTY_ACTION_IDS = "actionIds"; + private String actionIds; + + public static final String JSON_PROPERTY_ACTION_TYPE_IDS = "actionTypeIds"; + private String actionTypeIds; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private String createdAt; + + public static final String JSON_PROPERTY_ERROR_STACKS = "errorStacks"; + private String errorStacks; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public static final String JSON_PROPERTY_STATUS = "status"; + private Integer status; + + public static final String JSON_PROPERTY_TASK_ID = "taskId"; + private String taskId; + + public AutomationRunHistoryPO() { + } + + public AutomationRunHistoryPO actionIds(String actionIds) { + + this.actionIds = actionIds; + return this; + } + + /** + * Get actionIds + * @return actionIds + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTION_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getActionIds() { + return actionIds; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setActionIds(String actionIds) { + this.actionIds = actionIds; + } + + + public AutomationRunHistoryPO actionTypeIds(String actionTypeIds) { + + this.actionTypeIds = actionTypeIds; + return this; + } + + /** + * Get actionTypeIds + * @return actionTypeIds + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getActionTypeIds() { + return actionTypeIds; + } + + + @JsonProperty(JSON_PROPERTY_ACTION_TYPE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setActionTypeIds(String actionTypeIds) { + this.actionTypeIds = actionTypeIds; + } + + + public AutomationRunHistoryPO createdAt(String createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + + public AutomationRunHistoryPO errorStacks(String errorStacks) { + + this.errorStacks = errorStacks; + return this; + } + + /** + * Get errorStacks + * @return errorStacks + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ERROR_STACKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getErrorStacks() { + return errorStacks; + } + + + @JsonProperty(JSON_PROPERTY_ERROR_STACKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrorStacks(String errorStacks) { + this.errorStacks = errorStacks; + } + + + public AutomationRunHistoryPO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + + public AutomationRunHistoryPO status(Integer status) { + + this.status = status; + return this; + } + + /** + * Get status + * minimum: 0 + * @return status + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(Integer status) { + this.status = status; + } + + + public AutomationRunHistoryPO taskId(String taskId) { + + this.taskId = taskId; + return this; + } + + /** + * Get taskId + * @return taskId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TASK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTaskId() { + return taskId; + } + + + @JsonProperty(JSON_PROPERTY_TASK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationRunHistoryPO automationRunHistoryPO = (AutomationRunHistoryPO) o; + return Objects.equals(this.actionIds, automationRunHistoryPO.actionIds) && + Objects.equals(this.actionTypeIds, automationRunHistoryPO.actionTypeIds) && + Objects.equals(this.createdAt, automationRunHistoryPO.createdAt) && + Objects.equals(this.errorStacks, automationRunHistoryPO.errorStacks) && + Objects.equals(this.robotId, automationRunHistoryPO.robotId) && + Objects.equals(this.status, automationRunHistoryPO.status) && + Objects.equals(this.taskId, automationRunHistoryPO.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(actionIds, actionTypeIds, createdAt, errorStacks, robotId, status, taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationRunHistoryPO {\n"); + sb.append(" actionIds: ").append(toIndentedString(actionIds)).append("\n"); + sb.append(" actionTypeIds: ").append(toIndentedString(actionTypeIds)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" errorStacks: ").append(toIndentedString(errorStacks)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationSO.java new file mode 100644 index 0000000000..bd8ebfd995 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationSO.java @@ -0,0 +1,230 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AutomationActionPO; +import com.apitable.starter.databus.client.model.AutomationRobotSO; +import com.apitable.starter.databus.client.model.AutomationTriggerPO; +import com.apitable.starter.databus.client.model.NodeSimplePO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationSO + */ +@JsonPropertyOrder({ + AutomationSO.JSON_PROPERTY_ACTIONS, + AutomationSO.JSON_PROPERTY_RELATED_RESOURCES, + AutomationSO.JSON_PROPERTY_ROBOT, + AutomationSO.JSON_PROPERTY_TRIGGERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationSO { + public static final String JSON_PROPERTY_ACTIONS = "actions"; + private List actions = new ArrayList<>(); + + public static final String JSON_PROPERTY_RELATED_RESOURCES = "relatedResources"; + private List relatedResources; + + public static final String JSON_PROPERTY_ROBOT = "robot"; + private AutomationRobotSO robot; + + public static final String JSON_PROPERTY_TRIGGERS = "triggers"; + private List triggers = new ArrayList<>(); + + public AutomationSO() { + } + + public AutomationSO actions(List actions) { + + this.actions = actions; + return this; + } + + public AutomationSO addActionsItem(AutomationActionPO actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + return this; + } + + /** + * Get actions + * @return actions + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getActions() { + return actions; + } + + + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setActions(List actions) { + this.actions = actions; + } + + + public AutomationSO relatedResources(List relatedResources) { + + this.relatedResources = relatedResources; + return this; + } + + public AutomationSO addRelatedResourcesItem(NodeSimplePO relatedResourcesItem) { + if (this.relatedResources == null) { + this.relatedResources = new ArrayList<>(); + } + this.relatedResources.add(relatedResourcesItem); + return this; + } + + /** + * Get relatedResources + * @return relatedResources + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RELATED_RESOURCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRelatedResources() { + return relatedResources; + } + + + @JsonProperty(JSON_PROPERTY_RELATED_RESOURCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRelatedResources(List relatedResources) { + this.relatedResources = relatedResources; + } + + + public AutomationSO robot(AutomationRobotSO robot) { + + this.robot = robot; + return this; + } + + /** + * Get robot + * @return robot + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public AutomationRobotSO getRobot() { + return robot; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobot(AutomationRobotSO robot) { + this.robot = robot; + } + + + public AutomationSO triggers(List triggers) { + + this.triggers = triggers; + return this; + } + + public AutomationSO addTriggersItem(AutomationTriggerPO triggersItem) { + if (this.triggers == null) { + this.triggers = new ArrayList<>(); + } + this.triggers.add(triggersItem); + return this; + } + + /** + * Get triggers + * @return triggers + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getTriggers() { + return triggers; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTriggers(List triggers) { + this.triggers = triggers; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationSO automationSO = (AutomationSO) o; + return Objects.equals(this.actions, automationSO.actions) && + Objects.equals(this.relatedResources, automationSO.relatedResources) && + Objects.equals(this.robot, automationSO.robot) && + Objects.equals(this.triggers, automationSO.triggers); + } + + @Override + public int hashCode() { + return Objects.hash(actions, relatedResources, robot, triggers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationSO {\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" relatedResources: ").append(toIndentedString(relatedResources)).append("\n"); + sb.append(" robot: ").append(toIndentedString(robot)).append("\n"); + sb.append(" triggers: ").append(toIndentedString(triggers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerIntroductionPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerIntroductionPO.java new file mode 100644 index 0000000000..b1649e8e4f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerIntroductionPO.java @@ -0,0 +1,199 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationTriggerIntroductionPO + */ +@JsonPropertyOrder({ + AutomationTriggerIntroductionPO.JSON_PROPERTY_PREV_TRIGGER_ID, + AutomationTriggerIntroductionPO.JSON_PROPERTY_ROBOT_ID, + AutomationTriggerIntroductionPO.JSON_PROPERTY_TRIGGER_ID, + AutomationTriggerIntroductionPO.JSON_PROPERTY_TRIGGER_TYPE_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationTriggerIntroductionPO { + public static final String JSON_PROPERTY_PREV_TRIGGER_ID = "prevTriggerId"; + private String prevTriggerId; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public static final String JSON_PROPERTY_TRIGGER_ID = "triggerId"; + private String triggerId; + + public static final String JSON_PROPERTY_TRIGGER_TYPE_ID = "triggerTypeId"; + private String triggerTypeId; + + public AutomationTriggerIntroductionPO() { + } + + public AutomationTriggerIntroductionPO prevTriggerId(String prevTriggerId) { + + this.prevTriggerId = prevTriggerId; + return this; + } + + /** + * Get prevTriggerId + * @return prevTriggerId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREV_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevTriggerId() { + return prevTriggerId; + } + + + @JsonProperty(JSON_PROPERTY_PREV_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevTriggerId(String prevTriggerId) { + this.prevTriggerId = prevTriggerId; + } + + + public AutomationTriggerIntroductionPO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + + public AutomationTriggerIntroductionPO triggerId(String triggerId) { + + this.triggerId = triggerId; + return this; + } + + /** + * Get triggerId + * @return triggerId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTriggerId() { + return triggerId; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTriggerId(String triggerId) { + this.triggerId = triggerId; + } + + + public AutomationTriggerIntroductionPO triggerTypeId(String triggerTypeId) { + + this.triggerTypeId = triggerTypeId; + return this; + } + + /** + * Get triggerTypeId + * @return triggerTypeId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRIGGER_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTriggerTypeId() { + return triggerTypeId; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGER_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTriggerTypeId(String triggerTypeId) { + this.triggerTypeId = triggerTypeId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationTriggerIntroductionPO automationTriggerIntroductionPO = (AutomationTriggerIntroductionPO) o; + return Objects.equals(this.prevTriggerId, automationTriggerIntroductionPO.prevTriggerId) && + Objects.equals(this.robotId, automationTriggerIntroductionPO.robotId) && + Objects.equals(this.triggerId, automationTriggerIntroductionPO.triggerId) && + Objects.equals(this.triggerTypeId, automationTriggerIntroductionPO.triggerTypeId); + } + + @Override + public int hashCode() { + return Objects.hash(prevTriggerId, robotId, triggerId, triggerTypeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationTriggerIntroductionPO {\n"); + sb.append(" prevTriggerId: ").append(toIndentedString(prevTriggerId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" triggerId: ").append(toIndentedString(triggerId)).append("\n"); + sb.append(" triggerTypeId: ").append(toIndentedString(triggerTypeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerPO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerPO.java new file mode 100644 index 0000000000..3e6b9cd0d4 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/AutomationTriggerPO.java @@ -0,0 +1,263 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * AutomationTriggerPO + */ +@JsonPropertyOrder({ + AutomationTriggerPO.JSON_PROPERTY_INPUT, + AutomationTriggerPO.JSON_PROPERTY_PREV_TRIGGER_ID, + AutomationTriggerPO.JSON_PROPERTY_RESOURCE_ID, + AutomationTriggerPO.JSON_PROPERTY_ROBOT_ID, + AutomationTriggerPO.JSON_PROPERTY_TRIGGER_ID, + AutomationTriggerPO.JSON_PROPERTY_TRIGGER_TYPE_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AutomationTriggerPO { + public static final String JSON_PROPERTY_INPUT = "input"; + private String input; + + public static final String JSON_PROPERTY_PREV_TRIGGER_ID = "prevTriggerId"; + private String prevTriggerId; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; + private String resourceId; + + public static final String JSON_PROPERTY_ROBOT_ID = "robotId"; + private String robotId; + + public static final String JSON_PROPERTY_TRIGGER_ID = "triggerId"; + private String triggerId; + + public static final String JSON_PROPERTY_TRIGGER_TYPE_ID = "triggerTypeId"; + private String triggerTypeId; + + public AutomationTriggerPO() { + } + + public AutomationTriggerPO input(String input) { + + this.input = input; + return this; + } + + /** + * Get input + * @return input + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInput() { + return input; + } + + + @JsonProperty(JSON_PROPERTY_INPUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInput(String input) { + this.input = input; + } + + + public AutomationTriggerPO prevTriggerId(String prevTriggerId) { + + this.prevTriggerId = prevTriggerId; + return this; + } + + /** + * Get prevTriggerId + * @return prevTriggerId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PREV_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevTriggerId() { + return prevTriggerId; + } + + + @JsonProperty(JSON_PROPERTY_PREV_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevTriggerId(String prevTriggerId) { + this.prevTriggerId = prevTriggerId; + } + + + public AutomationTriggerPO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + + public AutomationTriggerPO robotId(String robotId) { + + this.robotId = robotId; + return this; + } + + /** + * Get robotId + * @return robotId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRobotId() { + return robotId; + } + + + @JsonProperty(JSON_PROPERTY_ROBOT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRobotId(String robotId) { + this.robotId = robotId; + } + + + public AutomationTriggerPO triggerId(String triggerId) { + + this.triggerId = triggerId; + return this; + } + + /** + * Get triggerId + * @return triggerId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTriggerId() { + return triggerId; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTriggerId(String triggerId) { + this.triggerId = triggerId; + } + + + public AutomationTriggerPO triggerTypeId(String triggerTypeId) { + + this.triggerTypeId = triggerTypeId; + return this; + } + + /** + * Get triggerTypeId + * @return triggerTypeId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRIGGER_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTriggerTypeId() { + return triggerTypeId; + } + + + @JsonProperty(JSON_PROPERTY_TRIGGER_TYPE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTriggerTypeId(String triggerTypeId) { + this.triggerTypeId = triggerTypeId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutomationTriggerPO automationTriggerPO = (AutomationTriggerPO) o; + return Objects.equals(this.input, automationTriggerPO.input) && + Objects.equals(this.prevTriggerId, automationTriggerPO.prevTriggerId) && + Objects.equals(this.resourceId, automationTriggerPO.resourceId) && + Objects.equals(this.robotId, automationTriggerPO.robotId) && + Objects.equals(this.triggerId, automationTriggerPO.triggerId) && + Objects.equals(this.triggerTypeId, automationTriggerPO.triggerTypeId); + } + + @Override + public int hashCode() { + return Objects.hash(input, prevTriggerId, resourceId, robotId, triggerId, triggerTypeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutomationTriggerPO {\n"); + sb.append(" input: ").append(toIndentedString(input)).append("\n"); + sb.append(" prevTriggerId: ").append(toIndentedString(prevTriggerId)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" robotId: ").append(toIndentedString(robotId)).append("\n"); + sb.append(" triggerId: ").append(toIndentedString(triggerId)).append("\n"); + sb.append(" triggerTypeId: ").append(toIndentedString(triggerTypeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/BaseDatasheetPackSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/BaseDatasheetPackSO.java new file mode 100644 index 0000000000..bdd3333b4c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/BaseDatasheetPackSO.java @@ -0,0 +1,168 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.DatasheetSnapshotSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * BaseDatasheetPackSO + */ +@JsonPropertyOrder({ + BaseDatasheetPackSO.JSON_PROPERTY_DATASHEET, + BaseDatasheetPackSO.JSON_PROPERTY_FIELD_PERMISSION_MAP, + BaseDatasheetPackSO.JSON_PROPERTY_SNAPSHOT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BaseDatasheetPackSO { + public static final String JSON_PROPERTY_DATASHEET = "datasheet"; + private Object datasheet = null; + + public static final String JSON_PROPERTY_FIELD_PERMISSION_MAP = "fieldPermissionMap"; + private Object fieldPermissionMap = null; + + public static final String JSON_PROPERTY_SNAPSHOT = "snapshot"; + private DatasheetSnapshotSO snapshot; + + public BaseDatasheetPackSO() { + } + + public BaseDatasheetPackSO datasheet(Object datasheet) { + + this.datasheet = datasheet; + return this; + } + + /** + * Get datasheet + * @return datasheet + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATASHEET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Object getDatasheet() { + return datasheet; + } + + + @JsonProperty(JSON_PROPERTY_DATASHEET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDatasheet(Object datasheet) { + this.datasheet = datasheet; + } + + + public BaseDatasheetPackSO fieldPermissionMap(Object fieldPermissionMap) { + + this.fieldPermissionMap = fieldPermissionMap; + return this; + } + + /** + * Get fieldPermissionMap + * @return fieldPermissionMap + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_PERMISSION_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getFieldPermissionMap() { + return fieldPermissionMap; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_PERMISSION_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldPermissionMap(Object fieldPermissionMap) { + this.fieldPermissionMap = fieldPermissionMap; + } + + + public BaseDatasheetPackSO snapshot(DatasheetSnapshotSO snapshot) { + + this.snapshot = snapshot; + return this; + } + + /** + * Get snapshot + * @return snapshot + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SNAPSHOT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public DatasheetSnapshotSO getSnapshot() { + return snapshot; + } + + + @JsonProperty(JSON_PROPERTY_SNAPSHOT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSnapshot(DatasheetSnapshotSO snapshot) { + this.snapshot = snapshot; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BaseDatasheetPackSO baseDatasheetPackSO = (BaseDatasheetPackSO) o; + return Objects.equals(this.datasheet, baseDatasheetPackSO.datasheet) && + Objects.equals(this.fieldPermissionMap, baseDatasheetPackSO.fieldPermissionMap) && + Objects.equals(this.snapshot, baseDatasheetPackSO.snapshot); + } + + @Override + public int hashCode() { + return Objects.hash(datasheet, fieldPermissionMap, snapshot); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseDatasheetPackSO {\n"); + sb.append(" datasheet: ").append(toIndentedString(datasheet)).append("\n"); + sb.append(" fieldPermissionMap: ").append(toIndentedString(fieldPermissionMap)).append("\n"); + sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/CellFormatEnum.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CellFormatEnum.java similarity index 50% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/CellFormatEnum.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CellFormatEnum.java index 5028fb0523..e10f8011de 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/CellFormatEnum.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CellFormatEnum.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets CellFormatEnum */ -@JsonAdapter(CellFormatEnum.Adapter.class) public enum CellFormatEnum { STRING("STRING"), @@ -38,6 +36,7 @@ public enum CellFormatEnum { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -47,6 +46,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static CellFormatEnum fromValue(String value) { for (CellFormatEnum b : CellFormatEnum.values()) { if (b.value.equals(value)) { @@ -55,18 +55,5 @@ public static CellFormatEnum fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final CellFormatEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public CellFormatEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return CellFormatEnum.fromValue(value); - } - } } diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/CollectType.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CollectType.java similarity index 51% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/CollectType.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CollectType.java index 3fbf366146..771676d644 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/CollectType.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CollectType.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets CollectType */ -@JsonAdapter(CollectType.Adapter.class) public enum CollectType { ALLFIELDS("AllFields"), @@ -38,6 +36,7 @@ public enum CollectType { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -47,6 +46,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static CollectType fromValue(String value) { for (CollectType b : CollectType.values()) { if (b.value.equals(value)) { @@ -55,18 +55,5 @@ public static CollectType fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final CollectType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public CollectType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return CollectType.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ColorOption.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ColorOption.java new file mode 100644 index 0000000000..a61466e558 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ColorOption.java @@ -0,0 +1,135 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ColorOption + */ +@JsonPropertyOrder({ + ColorOption.JSON_PROPERTY_COLOR, + ColorOption.JSON_PROPERTY_FIELD_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ColorOption { + public static final String JSON_PROPERTY_COLOR = "color"; + private Integer color; + + public static final String JSON_PROPERTY_FIELD_ID = "field_id"; + private String fieldId; + + public ColorOption() { + } + + public ColorOption color(Integer color) { + + this.color = color; + return this; + } + + /** + * Get color + * @return color + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getColor() { + return color; + } + + + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setColor(Integer color) { + this.color = color; + } + + + public ColorOption fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ColorOption colorOption = (ColorOption) o; + return Objects.equals(this.color, colorOption.color) && + Objects.equals(this.fieldId, colorOption.fieldId); + } + + @Override + public int hashCode() { + return Objects.hash(color, fieldId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ColorOption {\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CommentMsg.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CommentMsg.java new file mode 100644 index 0000000000..e6ca1d57e9 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/CommentMsg.java @@ -0,0 +1,242 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * CommentMsg + */ +@JsonPropertyOrder({ + CommentMsg.JSON_PROPERTY_CONTENT, + CommentMsg.JSON_PROPERTY_EMOJIS, + CommentMsg.JSON_PROPERTY_HTML, + CommentMsg.JSON_PROPERTY_REPLY, + CommentMsg.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CommentMsg { + public static final String JSON_PROPERTY_CONTENT = "content"; + private String content; + + public static final String JSON_PROPERTY_EMOJIS = "emojis"; + private Map> emojis; + + public static final String JSON_PROPERTY_HTML = "html"; + private String html; + + public static final String JSON_PROPERTY_REPLY = "reply"; + private String reply; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public CommentMsg() { + } + + public CommentMsg content(String content) { + + this.content = content; + return this; + } + + /** + * Get content + * @return content + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getContent() { + return content; + } + + + @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setContent(String content) { + this.content = content; + } + + + public CommentMsg emojis(Map> emojis) { + + this.emojis = emojis; + return this; + } + + public CommentMsg putEmojisItem(String key, List emojisItem) { + if (this.emojis == null) { + this.emojis = new HashMap<>(); + } + this.emojis.put(key, emojisItem); + return this; + } + + /** + * Get emojis + * @return emojis + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EMOJIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map> getEmojis() { + return emojis; + } + + + @JsonProperty(JSON_PROPERTY_EMOJIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmojis(Map> emojis) { + this.emojis = emojis; + } + + + public CommentMsg html(String html) { + + this.html = html; + return this; + } + + /** + * Get html + * @return html + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HTML) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getHtml() { + return html; + } + + + @JsonProperty(JSON_PROPERTY_HTML) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setHtml(String html) { + this.html = html; + } + + + public CommentMsg reply(String reply) { + + this.reply = reply; + return this; + } + + /** + * Get reply + * @return reply + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REPLY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReply() { + return reply; + } + + + @JsonProperty(JSON_PROPERTY_REPLY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReply(String reply) { + this.reply = reply; + } + + + public CommentMsg type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CommentMsg commentMsg = (CommentMsg) o; + return Objects.equals(this.content, commentMsg.content) && + Objects.equals(this.emojis, commentMsg.emojis) && + Objects.equals(this.html, commentMsg.html) && + Objects.equals(this.reply, commentMsg.reply) && + Objects.equals(this.type, commentMsg.type); + } + + @Override + public int hashCode() { + return Objects.hash(content, emojis, html, reply, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CommentMsg {\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" emojis: ").append(toIndentedString(emojis)).append("\n"); + sb.append(" html: ").append(toIndentedString(html)).append("\n"); + sb.append(" reply: ").append(toIndentedString(reply)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/Comments.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/Comments.java new file mode 100644 index 0000000000..bbc5ad1758 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/Comments.java @@ -0,0 +1,267 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.CommentMsg; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Comments + */ +@JsonPropertyOrder({ + Comments.JSON_PROPERTY_COMMENT_ID, + Comments.JSON_PROPERTY_COMMENT_MSG, + Comments.JSON_PROPERTY_CREATED_AT, + Comments.JSON_PROPERTY_REVISION, + Comments.JSON_PROPERTY_UNIT_ID, + Comments.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Comments { + public static final String JSON_PROPERTY_COMMENT_ID = "commentId"; + private String commentId; + + public static final String JSON_PROPERTY_COMMENT_MSG = "commentMsg"; + private CommentMsg commentMsg; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_REVISION = "revision"; + private Integer revision; + + public static final String JSON_PROPERTY_UNIT_ID = "unitId"; + private String unitId; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + private Long updatedAt; + + public Comments() { + } + + public Comments commentId(String commentId) { + + this.commentId = commentId; + return this; + } + + /** + * Get commentId + * @return commentId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getCommentId() { + return commentId; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCommentId(String commentId) { + this.commentId = commentId; + } + + + public Comments commentMsg(CommentMsg commentMsg) { + + this.commentMsg = commentMsg; + return this; + } + + /** + * Get commentMsg + * @return commentMsg + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMMENT_MSG) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public CommentMsg getCommentMsg() { + return commentMsg; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_MSG) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCommentMsg(CommentMsg commentMsg) { + this.commentMsg = commentMsg; + } + + + public Comments createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * minimum: 0 + * @return createdAt + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public Comments revision(Integer revision) { + + this.revision = revision; + return this; + } + + /** + * Get revision + * minimum: 0 + * @return revision + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_REVISION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getRevision() { + return revision; + } + + + @JsonProperty(JSON_PROPERTY_REVISION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRevision(Integer revision) { + this.revision = revision; + } + + + public Comments unitId(String unitId) { + + this.unitId = unitId; + return this; + } + + /** + * Get unitId + * @return unitId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getUnitId() { + return unitId; + } + + + @JsonProperty(JSON_PROPERTY_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUnitId(String unitId) { + this.unitId = unitId; + } + + + public Comments updatedAt(Long updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * minimum: 0 + * @return updatedAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Comments comments = (Comments) o; + return Objects.equals(this.commentId, comments.commentId) && + Objects.equals(this.commentMsg, comments.commentMsg) && + Objects.equals(this.createdAt, comments.createdAt) && + Objects.equals(this.revision, comments.revision) && + Objects.equals(this.unitId, comments.unitId) && + Objects.equals(this.updatedAt, comments.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(commentId, commentMsg, createdAt, revision, unitId, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Comments {\n"); + sb.append(" commentId: ").append(toIndentedString(commentId)).append("\n"); + sb.append(" commentMsg: ").append(toIndentedString(commentMsg)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" unitId: ").append(toIndentedString(unitId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetMetaSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetMetaSO.java new file mode 100644 index 0000000000..a68ad3a24f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetMetaSO.java @@ -0,0 +1,196 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.FieldSO; +import com.apitable.starter.databus.client.model.ViewSO; +import com.apitable.starter.databus.client.model.WidgetPanelSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * DatasheetMetaSO + */ +@JsonPropertyOrder({ + DatasheetMetaSO.JSON_PROPERTY_FIELD_MAP, + DatasheetMetaSO.JSON_PROPERTY_VIEWS, + DatasheetMetaSO.JSON_PROPERTY_WIDGET_PANELS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DatasheetMetaSO { + public static final String JSON_PROPERTY_FIELD_MAP = "fieldMap"; + private Map fieldMap = new HashMap<>(); + + public static final String JSON_PROPERTY_VIEWS = "views"; + private List views = new ArrayList<>(); + + public static final String JSON_PROPERTY_WIDGET_PANELS = "widgetPanels"; + private List widgetPanels; + + public DatasheetMetaSO() { + } + + public DatasheetMetaSO fieldMap(Map fieldMap) { + + this.fieldMap = fieldMap; + return this; + } + + public DatasheetMetaSO putFieldMapItem(String key, FieldSO fieldMapItem) { + this.fieldMap.put(key, fieldMapItem); + return this; + } + + /** + * Get fieldMap + * @return fieldMap + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELD_MAP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Map getFieldMap() { + return fieldMap; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_MAP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFieldMap(Map fieldMap) { + this.fieldMap = fieldMap; + } + + + public DatasheetMetaSO views(List views) { + + this.views = views; + return this; + } + + public DatasheetMetaSO addViewsItem(ViewSO viewsItem) { + if (this.views == null) { + this.views = new ArrayList<>(); + } + this.views.add(viewsItem); + return this; + } + + /** + * Get views + * @return views + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_VIEWS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getViews() { + return views; + } + + + @JsonProperty(JSON_PROPERTY_VIEWS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setViews(List views) { + this.views = views; + } + + + public DatasheetMetaSO widgetPanels(List widgetPanels) { + + this.widgetPanels = widgetPanels; + return this; + } + + public DatasheetMetaSO addWidgetPanelsItem(WidgetPanelSO widgetPanelsItem) { + if (this.widgetPanels == null) { + this.widgetPanels = new ArrayList<>(); + } + this.widgetPanels.add(widgetPanelsItem); + return this; + } + + /** + * Get widgetPanels + * @return widgetPanels + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WIDGET_PANELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getWidgetPanels() { + return widgetPanels; + } + + + @JsonProperty(JSON_PROPERTY_WIDGET_PANELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWidgetPanels(List widgetPanels) { + this.widgetPanels = widgetPanels; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DatasheetMetaSO datasheetMetaSO = (DatasheetMetaSO) o; + return Objects.equals(this.fieldMap, datasheetMetaSO.fieldMap) && + Objects.equals(this.views, datasheetMetaSO.views) && + Objects.equals(this.widgetPanels, datasheetMetaSO.widgetPanels); + } + + @Override + public int hashCode() { + return Objects.hash(fieldMap, views, widgetPanels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DatasheetMetaSO {\n"); + sb.append(" fieldMap: ").append(toIndentedString(fieldMap)).append("\n"); + sb.append(" views: ").append(toIndentedString(views)).append("\n"); + sb.append(" widgetPanels: ").append(toIndentedString(widgetPanels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetPackSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetPackSO.java new file mode 100644 index 0000000000..eecf84e09f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetPackSO.java @@ -0,0 +1,256 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.BaseDatasheetPackSO; +import com.apitable.starter.databus.client.model.DatasheetSnapshotSO; +import com.apitable.starter.databus.client.model.NodeSO; +import com.apitable.starter.databus.client.model.UnitSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * DatasheetPackSO + */ +@JsonPropertyOrder({ + DatasheetPackSO.JSON_PROPERTY_DATASHEET, + DatasheetPackSO.JSON_PROPERTY_FIELD_PERMISSION_MAP, + DatasheetPackSO.JSON_PROPERTY_FOREIGN_DATASHEET_MAP, + DatasheetPackSO.JSON_PROPERTY_SNAPSHOT, + DatasheetPackSO.JSON_PROPERTY_UNITS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DatasheetPackSO { + public static final String JSON_PROPERTY_DATASHEET = "datasheet"; + private NodeSO datasheet; + + public static final String JSON_PROPERTY_FIELD_PERMISSION_MAP = "fieldPermissionMap"; + private Object fieldPermissionMap = null; + + public static final String JSON_PROPERTY_FOREIGN_DATASHEET_MAP = "foreignDatasheetMap"; + private Map foreignDatasheetMap; + + public static final String JSON_PROPERTY_SNAPSHOT = "snapshot"; + private DatasheetSnapshotSO snapshot; + + public static final String JSON_PROPERTY_UNITS = "units"; + private List units; + + public DatasheetPackSO() { + } + + public DatasheetPackSO datasheet(NodeSO datasheet) { + + this.datasheet = datasheet; + return this; + } + + /** + * Get datasheet + * @return datasheet + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATASHEET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public NodeSO getDatasheet() { + return datasheet; + } + + + @JsonProperty(JSON_PROPERTY_DATASHEET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDatasheet(NodeSO datasheet) { + this.datasheet = datasheet; + } + + + public DatasheetPackSO fieldPermissionMap(Object fieldPermissionMap) { + + this.fieldPermissionMap = fieldPermissionMap; + return this; + } + + /** + * Get fieldPermissionMap + * @return fieldPermissionMap + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_PERMISSION_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getFieldPermissionMap() { + return fieldPermissionMap; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_PERMISSION_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldPermissionMap(Object fieldPermissionMap) { + this.fieldPermissionMap = fieldPermissionMap; + } + + + public DatasheetPackSO foreignDatasheetMap(Map foreignDatasheetMap) { + + this.foreignDatasheetMap = foreignDatasheetMap; + return this; + } + + public DatasheetPackSO putForeignDatasheetMapItem(String key, BaseDatasheetPackSO foreignDatasheetMapItem) { + if (this.foreignDatasheetMap == null) { + this.foreignDatasheetMap = new HashMap<>(); + } + this.foreignDatasheetMap.put(key, foreignDatasheetMapItem); + return this; + } + + /** + * Get foreignDatasheetMap + * @return foreignDatasheetMap + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FOREIGN_DATASHEET_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getForeignDatasheetMap() { + return foreignDatasheetMap; + } + + + @JsonProperty(JSON_PROPERTY_FOREIGN_DATASHEET_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setForeignDatasheetMap(Map foreignDatasheetMap) { + this.foreignDatasheetMap = foreignDatasheetMap; + } + + + public DatasheetPackSO snapshot(DatasheetSnapshotSO snapshot) { + + this.snapshot = snapshot; + return this; + } + + /** + * Get snapshot + * @return snapshot + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SNAPSHOT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public DatasheetSnapshotSO getSnapshot() { + return snapshot; + } + + + @JsonProperty(JSON_PROPERTY_SNAPSHOT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSnapshot(DatasheetSnapshotSO snapshot) { + this.snapshot = snapshot; + } + + + public DatasheetPackSO units(List units) { + + this.units = units; + return this; + } + + public DatasheetPackSO addUnitsItem(UnitSO unitsItem) { + if (this.units == null) { + this.units = new ArrayList<>(); + } + this.units.add(unitsItem); + return this; + } + + /** + * Get units + * @return units + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UNITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getUnits() { + return units; + } + + + @JsonProperty(JSON_PROPERTY_UNITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUnits(List units) { + this.units = units; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DatasheetPackSO datasheetPackSO = (DatasheetPackSO) o; + return Objects.equals(this.datasheet, datasheetPackSO.datasheet) && + Objects.equals(this.fieldPermissionMap, datasheetPackSO.fieldPermissionMap) && + Objects.equals(this.foreignDatasheetMap, datasheetPackSO.foreignDatasheetMap) && + Objects.equals(this.snapshot, datasheetPackSO.snapshot) && + Objects.equals(this.units, datasheetPackSO.units); + } + + @Override + public int hashCode() { + return Objects.hash(datasheet, fieldPermissionMap, foreignDatasheetMap, snapshot, units); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DatasheetPackSO {\n"); + sb.append(" datasheet: ").append(toIndentedString(datasheet)).append("\n"); + sb.append(" fieldPermissionMap: ").append(toIndentedString(fieldPermissionMap)).append("\n"); + sb.append(" foreignDatasheetMap: ").append(toIndentedString(foreignDatasheetMap)).append("\n"); + sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n"); + sb.append(" units: ").append(toIndentedString(units)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetSnapshotSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetSnapshotSO.java new file mode 100644 index 0000000000..6f18ed3926 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DatasheetSnapshotSO.java @@ -0,0 +1,176 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.DatasheetMetaSO; +import com.apitable.starter.databus.client.model.RecordSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * DatasheetSnapshotSO + */ +@JsonPropertyOrder({ + DatasheetSnapshotSO.JSON_PROPERTY_DATASHEET_ID, + DatasheetSnapshotSO.JSON_PROPERTY_META, + DatasheetSnapshotSO.JSON_PROPERTY_RECORD_MAP +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DatasheetSnapshotSO { + public static final String JSON_PROPERTY_DATASHEET_ID = "datasheetId"; + private String datasheetId; + + public static final String JSON_PROPERTY_META = "meta"; + private DatasheetMetaSO meta; + + public static final String JSON_PROPERTY_RECORD_MAP = "recordMap"; + private Map recordMap = new HashMap<>(); + + public DatasheetSnapshotSO() { + } + + public DatasheetSnapshotSO datasheetId(String datasheetId) { + + this.datasheetId = datasheetId; + return this; + } + + /** + * Get datasheetId + * @return datasheetId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getDatasheetId() { + return datasheetId; + } + + + @JsonProperty(JSON_PROPERTY_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDatasheetId(String datasheetId) { + this.datasheetId = datasheetId; + } + + + public DatasheetSnapshotSO meta(DatasheetMetaSO meta) { + + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public DatasheetMetaSO getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMeta(DatasheetMetaSO meta) { + this.meta = meta; + } + + + public DatasheetSnapshotSO recordMap(Map recordMap) { + + this.recordMap = recordMap; + return this; + } + + public DatasheetSnapshotSO putRecordMapItem(String key, RecordSO recordMapItem) { + this.recordMap.put(key, recordMapItem); + return this; + } + + /** + * Get recordMap + * @return recordMap + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORD_MAP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Map getRecordMap() { + return recordMap; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_MAP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecordMap(Map recordMap) { + this.recordMap = recordMap; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DatasheetSnapshotSO datasheetSnapshotSO = (DatasheetSnapshotSO) o; + return Objects.equals(this.datasheetId, datasheetSnapshotSO.datasheetId) && + Objects.equals(this.meta, datasheetSnapshotSO.meta) && + Objects.equals(this.recordMap, datasheetSnapshotSO.recordMap); + } + + @Override + public int hashCode() { + return Objects.hash(datasheetId, meta, recordMap); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DatasheetSnapshotSO {\n"); + sb.append(" datasheetId: ").append(toIndentedString(datasheetId)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" recordMap: ").append(toIndentedString(recordMap)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/DateFormat.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DateFormat.java similarity index 54% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/DateFormat.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DateFormat.java index c6b2463ccc..28cd34b6eb 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/DateFormat.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DateFormat.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets DateFormat */ -@JsonAdapter(DateFormat.Adapter.class) public enum DateFormat { SYYYYMMDD("SYyyyMmDd"), @@ -50,6 +48,7 @@ public enum DateFormat { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -59,6 +58,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static DateFormat fromValue(String value) { for (DateFormat b : DateFormat.values()) { if (b.value.equals(value)) { @@ -67,18 +67,5 @@ public static DateFormat fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final DateFormat enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public DateFormat read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return DateFormat.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentOperationRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentOperationRO.java new file mode 100644 index 0000000000..830625c068 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentOperationRO.java @@ -0,0 +1,169 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.io.File; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * DocumentOperationRO + */ +@JsonPropertyOrder({ + DocumentOperationRO.JSON_PROPERTY_CREATED_BY, + DocumentOperationRO.JSON_PROPERTY_SPACE_ID, + DocumentOperationRO.JSON_PROPERTY_UPDATE_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocumentOperationRO { + public static final String JSON_PROPERTY_CREATED_BY = "created_by"; + private Long createdBy; + + public static final String JSON_PROPERTY_SPACE_ID = "space_id"; + private String spaceId; + + public static final String JSON_PROPERTY_UPDATE_DATA = "update_data"; + private File updateData; + + public DocumentOperationRO() { + } + + public DocumentOperationRO createdBy(Long createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * minimum: 0 + * @return createdBy + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedBy() { + return createdBy; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedBy(Long createdBy) { + this.createdBy = createdBy; + } + + + public DocumentOperationRO spaceId(String spaceId) { + + this.spaceId = spaceId; + return this; + } + + /** + * Get spaceId + * @return spaceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getSpaceId() { + return spaceId; + } + + + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + + public DocumentOperationRO updateData(File updateData) { + + this.updateData = updateData; + return this; + } + + /** + * Get updateData + * @return updateData + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UPDATE_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public File getUpdateData() { + return updateData; + } + + + @JsonProperty(JSON_PROPERTY_UPDATE_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdateData(File updateData) { + this.updateData = updateData; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocumentOperationRO documentOperationRO = (DocumentOperationRO) o; + return Objects.equals(this.createdBy, documentOperationRO.createdBy) && + Objects.equals(this.spaceId, documentOperationRO.spaceId) && + Objects.equals(this.updateData, documentOperationRO.updateData); + } + + @Override + public int hashCode() { + return Objects.hash(createdBy, spaceId, updateData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocumentOperationRO {\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); + sb.append(" updateData: ").append(toIndentedString(updateData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentPropsRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentPropsRO.java new file mode 100644 index 0000000000..510088590c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentPropsRO.java @@ -0,0 +1,178 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * DocumentPropsRO + */ +@JsonPropertyOrder({ + DocumentPropsRO.JSON_PROPERTY_DOCUMENT_NAMES, + DocumentPropsRO.JSON_PROPERTY_RECORD_ID, + DocumentPropsRO.JSON_PROPERTY_RESOURCE_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocumentPropsRO { + public static final String JSON_PROPERTY_DOCUMENT_NAMES = "document_names"; + private List documentNames = new ArrayList<>(); + + public static final String JSON_PROPERTY_RECORD_ID = "record_id"; + private String recordId; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resource_id"; + private String resourceId; + + public DocumentPropsRO() { + } + + public DocumentPropsRO documentNames(List documentNames) { + + this.documentNames = documentNames; + return this; + } + + public DocumentPropsRO addDocumentNamesItem(String documentNamesItem) { + if (this.documentNames == null) { + this.documentNames = new ArrayList<>(); + } + this.documentNames.add(documentNamesItem); + return this; + } + + /** + * Get documentNames + * @return documentNames + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DOCUMENT_NAMES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getDocumentNames() { + return documentNames; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT_NAMES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocumentNames(List documentNames) { + this.documentNames = documentNames; + } + + + public DocumentPropsRO recordId(String recordId) { + + this.recordId = recordId; + return this; + } + + /** + * Get recordId + * @return recordId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRecordId() { + return recordId; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + + public DocumentPropsRO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocumentPropsRO documentPropsRO = (DocumentPropsRO) o; + return Objects.equals(this.documentNames, documentPropsRO.documentNames) && + Objects.equals(this.recordId, documentPropsRO.recordId) && + Objects.equals(this.resourceId, documentPropsRO.resourceId); + } + + @Override + public int hashCode() { + return Objects.hash(documentNames, recordId, resourceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocumentPropsRO {\n"); + sb.append(" documentNames: ").append(toIndentedString(documentNames)).append("\n"); + sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentRO.java new file mode 100644 index 0000000000..49520a012c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/DocumentRO.java @@ -0,0 +1,298 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.io.File; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * DocumentRO + */ +@JsonPropertyOrder({ + DocumentRO.JSON_PROPERTY_DATA, + DocumentRO.JSON_PROPERTY_DOCUMENT_TYPE, + DocumentRO.JSON_PROPERTY_PROPS, + DocumentRO.JSON_PROPERTY_RESOURCE_ID, + DocumentRO.JSON_PROPERTY_SPACE_ID, + DocumentRO.JSON_PROPERTY_TITLE, + DocumentRO.JSON_PROPERTY_UPDATED_BY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocumentRO { + public static final String JSON_PROPERTY_DATA = "data"; + private File data; + + public static final String JSON_PROPERTY_DOCUMENT_TYPE = "document_type"; + private Integer documentType; + + public static final String JSON_PROPERTY_PROPS = "props"; + private String props; + + public static final String JSON_PROPERTY_RESOURCE_ID = "resource_id"; + private String resourceId; + + public static final String JSON_PROPERTY_SPACE_ID = "space_id"; + private String spaceId; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_UPDATED_BY = "updated_by"; + private Long updatedBy; + + public DocumentRO() { + } + + public DocumentRO data(File data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public File getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(File data) { + this.data = data; + } + + + public DocumentRO documentType(Integer documentType) { + + this.documentType = documentType; + return this; + } + + /** + * Get documentType + * minimum: 0 + * @return documentType + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getDocumentType() { + return documentType; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocumentType(Integer documentType) { + this.documentType = documentType; + } + + + public DocumentRO props(String props) { + + this.props = props; + return this; + } + + /** + * Get props + * @return props + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProps() { + return props; + } + + + @JsonProperty(JSON_PROPERTY_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProps(String props) { + this.props = props; + } + + + public DocumentRO resourceId(String resourceId) { + + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getResourceId() { + return resourceId; + } + + + @JsonProperty(JSON_PROPERTY_RESOURCE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + + public DocumentRO spaceId(String spaceId) { + + this.spaceId = spaceId; + return this; + } + + /** + * Get spaceId + * @return spaceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getSpaceId() { + return spaceId; + } + + + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + + public DocumentRO title(String title) { + + this.title = title; + return this; + } + + /** + * Get title + * @return title + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTitle() { + return title; + } + + + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTitle(String title) { + this.title = title; + } + + + public DocumentRO updatedBy(Long updatedBy) { + + this.updatedBy = updatedBy; + return this; + } + + /** + * Get updatedBy + * minimum: 0 + * @return updatedBy + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedBy() { + return updatedBy; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedBy(Long updatedBy) { + this.updatedBy = updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocumentRO documentRO = (DocumentRO) o; + return Objects.equals(this.data, documentRO.data) && + Objects.equals(this.documentType, documentRO.documentType) && + Objects.equals(this.props, documentRO.props) && + Objects.equals(this.resourceId, documentRO.resourceId) && + Objects.equals(this.spaceId, documentRO.spaceId) && + Objects.equals(this.title, documentRO.title) && + Objects.equals(this.updatedBy, documentRO.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash(data, documentType, props, resourceId, spaceId, title, updatedBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocumentRO {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" documentType: ").append(toIndentedString(documentType)).append("\n"); + sb.append(" props: ").append(toIndentedString(props)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FOperator.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FOperator.java similarity index 57% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/FOperator.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FOperator.java index 7f99aa5c1f..5b7efda6b0 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FOperator.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FOperator.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets FOperator */ -@JsonAdapter(FOperator.Adapter.class) public enum FOperator { IS("is"), @@ -56,6 +54,7 @@ public enum FOperator { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -65,6 +64,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static FOperator fromValue(String value) { for (FOperator b : FOperator.values()) { if (b.value.equals(value)) { @@ -73,18 +73,5 @@ public static FOperator fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final FOperator enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public FOperator read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return FOperator.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldExtraMapValue.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldExtraMapValue.java new file mode 100644 index 0000000000..eaa834a6c3 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldExtraMapValue.java @@ -0,0 +1,104 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.RecordAlarm; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * FieldExtraMapValue + */ +@JsonPropertyOrder({ + FieldExtraMapValue.JSON_PROPERTY_ALARM +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FieldExtraMapValue { + public static final String JSON_PROPERTY_ALARM = "alarm"; + private RecordAlarm alarm; + + public FieldExtraMapValue() { + } + + public FieldExtraMapValue alarm(RecordAlarm alarm) { + + this.alarm = alarm; + return this; + } + + /** + * Get alarm + * @return alarm + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALARM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RecordAlarm getAlarm() { + return alarm; + } + + + @JsonProperty(JSON_PROPERTY_ALARM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlarm(RecordAlarm alarm) { + this.alarm = alarm; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FieldExtraMapValue fieldExtraMapValue = (FieldExtraMapValue) o; + return Objects.equals(this.alarm, fieldExtraMapValue.alarm); + } + + @Override + public int hashCode() { + return Objects.hash(alarm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FieldExtraMapValue {\n"); + sb.append(" alarm: ").append(toIndentedString(alarm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldKeyEnum.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldKeyEnum.java similarity index 50% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/FieldKeyEnum.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldKeyEnum.java index c96a8a2244..e232106fff 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldKeyEnum.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldKeyEnum.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets FieldKeyEnum */ -@JsonAdapter(FieldKeyEnum.Adapter.class) public enum FieldKeyEnum { NAME("name"), @@ -38,6 +36,7 @@ public enum FieldKeyEnum { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -47,6 +46,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static FieldKeyEnum fromValue(String value) { for (FieldKeyEnum b : FieldKeyEnum.values()) { if (b.value.equals(value)) { @@ -55,18 +55,5 @@ public static FieldKeyEnum fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final FieldKeyEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public FieldKeyEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return FieldKeyEnum.fromValue(value); - } - } } diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldKindSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldKindSO.java similarity index 65% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/FieldKindSO.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldKindSO.java index 432b8b5e10..6fb0a4d9ae 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldKindSO.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldKindSO.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets FieldKindSO */ -@JsonAdapter(FieldKindSO.Adapter.class) public enum FieldKindSO { NOTSUPPORT("NotSupport"), @@ -80,6 +78,8 @@ public enum FieldKindSO { ONEWAYLINK("OneWayLink"), + WORKDOC("WorkDoc"), + DENIEDFIELD("DeniedField"); private String value; @@ -88,6 +88,7 @@ public enum FieldKindSO { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -97,6 +98,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static FieldKindSO fromValue(String value) { for (FieldKindSO b : FieldKindSO.values()) { if (b.value.equals(value)) { @@ -105,18 +107,5 @@ public static FieldKindSO fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final FieldKindSO enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public FieldKindSO read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return FieldKindSO.fromValue(value); - } - } } diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldPropertySO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldPropertySO.java similarity index 55% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/FieldPropertySO.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldPropertySO.java index cb2d037283..9af1a4b93f 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FieldPropertySO.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldPropertySO.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,228 +11,208 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.apitable.databusclient.model.CollectType; -import com.apitable.databusclient.model.DateFormat; -import com.apitable.databusclient.model.LinkedFields; -import com.apitable.databusclient.model.LookUpFilterPO; -import com.apitable.databusclient.model.RollUpFuncType; -import com.apitable.databusclient.model.SingleSelectProperty; -import com.apitable.databusclient.model.SymbolAlign; -import com.apitable.databusclient.model.TimeFormat; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.CollectType; +import com.apitable.starter.databus.client.model.DateFormat; +import com.apitable.starter.databus.client.model.IFilterInfo; +import com.apitable.starter.databus.client.model.LinkedFields; +import com.apitable.starter.databus.client.model.LookUpLimitType; +import com.apitable.starter.databus.client.model.LookUpSortInfo; +import com.apitable.starter.databus.client.model.RollUpFuncType; +import com.apitable.starter.databus.client.model.SingleSelectProperty; +import com.apitable.starter.databus.client.model.SymbolAlign; +import com.apitable.starter.databus.client.model.TimeFormat; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; /** * FieldPropertySO */ +@JsonPropertyOrder({ + FieldPropertySO.JSON_PROPERTY_AUTO_FILL, + FieldPropertySO.JSON_PROPERTY_BROTHER_FIELD_ID, + FieldPropertySO.JSON_PROPERTY_COLLECT_TYPE, + FieldPropertySO.JSON_PROPERTY_COMMA_STYLE, + FieldPropertySO.JSON_PROPERTY_DATASHEET_ID, + FieldPropertySO.JSON_PROPERTY_DATE_FORMAT, + FieldPropertySO.JSON_PROPERTY_DEFAULT_VALUE, + FieldPropertySO.JSON_PROPERTY_EXPRESSION, + FieldPropertySO.JSON_PROPERTY_FIELD_ID_COLLECTION, + FieldPropertySO.JSON_PROPERTY_FILTER_INFO, + FieldPropertySO.JSON_PROPERTY_FOREIGN_DATASHEET_ID, + FieldPropertySO.JSON_PROPERTY_FORMATTING, + FieldPropertySO.JSON_PROPERTY_FULL_LINKED_FIELDS, + FieldPropertySO.JSON_PROPERTY_ICON, + FieldPropertySO.JSON_PROPERTY_INCLUDE_TIME, + FieldPropertySO.JSON_PROPERTY_INCLUDE_TIME_ZONE, + FieldPropertySO.JSON_PROPERTY_IS_MULTI, + FieldPropertySO.JSON_PROPERTY_IS_RECOG_URL_FLAG, + FieldPropertySO.JSON_PROPERTY_LIMIT_SINGLE_RECORD, + FieldPropertySO.JSON_PROPERTY_LIMIT_TO_VIEW, + FieldPropertySO.JSON_PROPERTY_LINKED_DATASHEET_ID, + FieldPropertySO.JSON_PROPERTY_LINKED_FIELDS, + FieldPropertySO.JSON_PROPERTY_LINKED_VIEW_ID, + FieldPropertySO.JSON_PROPERTY_LOOK_UP_LIMIT, + FieldPropertySO.JSON_PROPERTY_LOOK_UP_TARGET_FIELD_ID, + FieldPropertySO.JSON_PROPERTY_MAX, + FieldPropertySO.JSON_PROPERTY_NEXT_ID, + FieldPropertySO.JSON_PROPERTY_OPEN_FILTER, + FieldPropertySO.JSON_PROPERTY_OPTIONS, + FieldPropertySO.JSON_PROPERTY_PRECISION, + FieldPropertySO.JSON_PROPERTY_RELATED_LINK_FIELD_ID, + FieldPropertySO.JSON_PROPERTY_ROLL_UP_TYPE, + FieldPropertySO.JSON_PROPERTY_SHOULD_SEND_MSG, + FieldPropertySO.JSON_PROPERTY_SHOW_ALL, + FieldPropertySO.JSON_PROPERTY_SORT_INFO, + FieldPropertySO.JSON_PROPERTY_SUBSCRIPTION, + FieldPropertySO.JSON_PROPERTY_SYMBOL, + FieldPropertySO.JSON_PROPERTY_SYMBOL_ALIGN, + FieldPropertySO.JSON_PROPERTY_TIME_FORMAT, + FieldPropertySO.JSON_PROPERTY_TIME_ZONE, + FieldPropertySO.JSON_PROPERTY_UNIT_IDS, + FieldPropertySO.JSON_PROPERTY_UUIDS, + FieldPropertySO.JSON_PROPERTY_VIEW_IDX +}) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FieldPropertySO { - public static final String SERIALIZED_NAME_AUTO_FILL = "autoFill"; - @SerializedName(SERIALIZED_NAME_AUTO_FILL) + public static final String JSON_PROPERTY_AUTO_FILL = "autoFill"; private Boolean autoFill; - public static final String SERIALIZED_NAME_BROTHER_FIELD_ID = "brotherFieldId"; - @SerializedName(SERIALIZED_NAME_BROTHER_FIELD_ID) + public static final String JSON_PROPERTY_BROTHER_FIELD_ID = "brotherFieldId"; private String brotherFieldId; - public static final String SERIALIZED_NAME_COLLECT_TYPE = "collectType"; - @SerializedName(SERIALIZED_NAME_COLLECT_TYPE) + public static final String JSON_PROPERTY_COLLECT_TYPE = "collectType"; private CollectType collectType; - public static final String SERIALIZED_NAME_COMMA_STYLE = "commaStyle"; - @SerializedName(SERIALIZED_NAME_COMMA_STYLE) + public static final String JSON_PROPERTY_COMMA_STYLE = "commaStyle"; private String commaStyle; - public static final String SERIALIZED_NAME_DATASHEET_ID = "datasheetId"; - @SerializedName(SERIALIZED_NAME_DATASHEET_ID) + public static final String JSON_PROPERTY_DATASHEET_ID = "datasheetId"; private String datasheetId; - public static final String SERIALIZED_NAME_DATE_FORMAT = "dateFormat"; - @SerializedName(SERIALIZED_NAME_DATE_FORMAT) + public static final String JSON_PROPERTY_DATE_FORMAT = "dateFormat"; private DateFormat dateFormat; - public static final String SERIALIZED_NAME_DEFAULT_VALUE = "defaultValue"; - @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) - private String defaultValue; + public static final String JSON_PROPERTY_DEFAULT_VALUE = "defaultValue"; + private Object defaultValue = null; - public static final String SERIALIZED_NAME_EXPRESSION = "expression"; - @SerializedName(SERIALIZED_NAME_EXPRESSION) + public static final String JSON_PROPERTY_EXPRESSION = "expression"; private String expression; - public static final String SERIALIZED_NAME_FIELD_ID_COLLECTION = "fieldIdCollection"; - @SerializedName(SERIALIZED_NAME_FIELD_ID_COLLECTION) + public static final String JSON_PROPERTY_FIELD_ID_COLLECTION = "fieldIdCollection"; private List fieldIdCollection; - public static final String SERIALIZED_NAME_FILTER_INFO = "filterInfo"; - @SerializedName(SERIALIZED_NAME_FILTER_INFO) - private LookUpFilterPO filterInfo; + public static final String JSON_PROPERTY_FILTER_INFO = "filterInfo"; + private IFilterInfo filterInfo; - public static final String SERIALIZED_NAME_FOREIGN_DATASHEET_ID = "foreignDatasheetId"; - @SerializedName(SERIALIZED_NAME_FOREIGN_DATASHEET_ID) + public static final String JSON_PROPERTY_FOREIGN_DATASHEET_ID = "foreignDatasheetId"; private String foreignDatasheetId; - public static final String SERIALIZED_NAME_FORMATTING = "formatting"; - @SerializedName(SERIALIZED_NAME_FORMATTING) - private Object formatting = null; + public static final String JSON_PROPERTY_FORMATTING = "formatting"; + private Object formatting; - public static final String SERIALIZED_NAME_FULL_LINKED_FIELDS = "fullLinkedFields"; - @SerializedName(SERIALIZED_NAME_FULL_LINKED_FIELDS) + public static final String JSON_PROPERTY_FULL_LINKED_FIELDS = "fullLinkedFields"; private List fullLinkedFields; - public static final String SERIALIZED_NAME_ICON = "icon"; - @SerializedName(SERIALIZED_NAME_ICON) + public static final String JSON_PROPERTY_ICON = "icon"; private String icon; - public static final String SERIALIZED_NAME_INCLUDE_TIME = "includeTime"; - @SerializedName(SERIALIZED_NAME_INCLUDE_TIME) + public static final String JSON_PROPERTY_INCLUDE_TIME = "includeTime"; private Boolean includeTime; - public static final String SERIALIZED_NAME_INCLUDE_TIME_ZONE = "includeTimeZone"; - @SerializedName(SERIALIZED_NAME_INCLUDE_TIME_ZONE) + public static final String JSON_PROPERTY_INCLUDE_TIME_ZONE = "includeTimeZone"; private Boolean includeTimeZone; - public static final String SERIALIZED_NAME_IS_MULTI = "isMulti"; - @SerializedName(SERIALIZED_NAME_IS_MULTI) + public static final String JSON_PROPERTY_IS_MULTI = "isMulti"; private Boolean isMulti; - public static final String SERIALIZED_NAME_IS_RECOG_URL_FLAG = "isRecogUrlFlag"; - @SerializedName(SERIALIZED_NAME_IS_RECOG_URL_FLAG) + public static final String JSON_PROPERTY_IS_RECOG_URL_FLAG = "isRecogUrlFlag"; private Boolean isRecogUrlFlag; - public static final String SERIALIZED_NAME_LIMIT_SINGLE_RECORD = "limitSingleRecord"; - @SerializedName(SERIALIZED_NAME_LIMIT_SINGLE_RECORD) + public static final String JSON_PROPERTY_LIMIT_SINGLE_RECORD = "limitSingleRecord"; private Boolean limitSingleRecord; - public static final String SERIALIZED_NAME_LIMIT_TO_VIEW = "limitToView"; - @SerializedName(SERIALIZED_NAME_LIMIT_TO_VIEW) + public static final String JSON_PROPERTY_LIMIT_TO_VIEW = "limitToView"; private String limitToView; - public static final String SERIALIZED_NAME_LINKED_DATASHEET_ID = "linkedDatasheetId"; - @SerializedName(SERIALIZED_NAME_LINKED_DATASHEET_ID) + public static final String JSON_PROPERTY_LINKED_DATASHEET_ID = "linkedDatasheetId"; private String linkedDatasheetId; - public static final String SERIALIZED_NAME_LINKED_FIELDS = "linkedFields"; - @SerializedName(SERIALIZED_NAME_LINKED_FIELDS) + public static final String JSON_PROPERTY_LINKED_FIELDS = "linkedFields"; private List linkedFields; - public static final String SERIALIZED_NAME_LINKED_VIEW_ID = "linkedViewId"; - @SerializedName(SERIALIZED_NAME_LINKED_VIEW_ID) + public static final String JSON_PROPERTY_LINKED_VIEW_ID = "linkedViewId"; private String linkedViewId; - public static final String SERIALIZED_NAME_LOOK_UP_LIMIT = "lookUpLimit"; - @SerializedName(SERIALIZED_NAME_LOOK_UP_LIMIT) - private Object lookUpLimit = null; + public static final String JSON_PROPERTY_LOOK_UP_LIMIT = "lookUpLimit"; + private LookUpLimitType lookUpLimit; - public static final String SERIALIZED_NAME_LOOK_UP_TARGET_FIELD_ID = "lookUpTargetFieldId"; - @SerializedName(SERIALIZED_NAME_LOOK_UP_TARGET_FIELD_ID) + public static final String JSON_PROPERTY_LOOK_UP_TARGET_FIELD_ID = "lookUpTargetFieldId"; private String lookUpTargetFieldId; - public static final String SERIALIZED_NAME_MAX = "max"; - @SerializedName(SERIALIZED_NAME_MAX) + public static final String JSON_PROPERTY_MAX = "max"; private Integer max; - public static final String SERIALIZED_NAME_NEXT_ID = "nextId"; - @SerializedName(SERIALIZED_NAME_NEXT_ID) + public static final String JSON_PROPERTY_NEXT_ID = "nextId"; private Integer nextId; - public static final String SERIALIZED_NAME_OPEN_FILTER = "openFilter"; - @SerializedName(SERIALIZED_NAME_OPEN_FILTER) + public static final String JSON_PROPERTY_OPEN_FILTER = "openFilter"; private Boolean openFilter; - public static final String SERIALIZED_NAME_OPTIONS = "options"; - @SerializedName(SERIALIZED_NAME_OPTIONS) + public static final String JSON_PROPERTY_OPTIONS = "options"; private List options; - public static final String SERIALIZED_NAME_PRECISION = "precision"; - @SerializedName(SERIALIZED_NAME_PRECISION) + public static final String JSON_PROPERTY_PRECISION = "precision"; private Integer precision; - public static final String SERIALIZED_NAME_RELATED_LINK_FIELD_ID = "relatedLinkFieldId"; - @SerializedName(SERIALIZED_NAME_RELATED_LINK_FIELD_ID) + public static final String JSON_PROPERTY_RELATED_LINK_FIELD_ID = "relatedLinkFieldId"; private String relatedLinkFieldId; - public static final String SERIALIZED_NAME_ROLL_UP_TYPE = "rollUpType"; - @SerializedName(SERIALIZED_NAME_ROLL_UP_TYPE) + public static final String JSON_PROPERTY_ROLL_UP_TYPE = "rollUpType"; private RollUpFuncType rollUpType; - public static final String SERIALIZED_NAME_SHOULD_SEND_MSG = "shouldSendMsg"; - @SerializedName(SERIALIZED_NAME_SHOULD_SEND_MSG) + public static final String JSON_PROPERTY_SHOULD_SEND_MSG = "shouldSendMsg"; private Boolean shouldSendMsg; - public static final String SERIALIZED_NAME_SHOW_ALL = "showAll"; - @SerializedName(SERIALIZED_NAME_SHOW_ALL) + public static final String JSON_PROPERTY_SHOW_ALL = "showAll"; private Boolean showAll; - public static final String SERIALIZED_NAME_SORT_INFO = "sortInfo"; - @SerializedName(SERIALIZED_NAME_SORT_INFO) - private Object sortInfo = null; + public static final String JSON_PROPERTY_SORT_INFO = "sortInfo"; + private LookUpSortInfo sortInfo; - public static final String SERIALIZED_NAME_SUBSCRIPTION = "subscription"; - @SerializedName(SERIALIZED_NAME_SUBSCRIPTION) + public static final String JSON_PROPERTY_SUBSCRIPTION = "subscription"; private Boolean subscription; - public static final String SERIALIZED_NAME_SYMBOL = "symbol"; - @SerializedName(SERIALIZED_NAME_SYMBOL) + public static final String JSON_PROPERTY_SYMBOL = "symbol"; private String symbol; - public static final String SERIALIZED_NAME_SYMBOL_ALIGN = "symbolAlign"; - @SerializedName(SERIALIZED_NAME_SYMBOL_ALIGN) + public static final String JSON_PROPERTY_SYMBOL_ALIGN = "symbolAlign"; private SymbolAlign symbolAlign; - public static final String SERIALIZED_NAME_TIME_FORMAT = "timeFormat"; - @SerializedName(SERIALIZED_NAME_TIME_FORMAT) + public static final String JSON_PROPERTY_TIME_FORMAT = "timeFormat"; private TimeFormat timeFormat; - public static final String SERIALIZED_NAME_TIME_ZONE = "timeZone"; - @SerializedName(SERIALIZED_NAME_TIME_ZONE) + public static final String JSON_PROPERTY_TIME_ZONE = "timeZone"; private String timeZone; - public static final String SERIALIZED_NAME_UNIT_IDS = "unitIds"; - @SerializedName(SERIALIZED_NAME_UNIT_IDS) + public static final String JSON_PROPERTY_UNIT_IDS = "unitIds"; private List unitIds; - public static final String SERIALIZED_NAME_UUIDS = "uuids"; - @SerializedName(SERIALIZED_NAME_UUIDS) + public static final String JSON_PROPERTY_UUIDS = "uuids"; private List uuids; - public static final String SERIALIZED_NAME_VIEW_IDX = "viewIdx"; - @SerializedName(SERIALIZED_NAME_VIEW_IDX) + public static final String JSON_PROPERTY_VIEW_IDX = "viewIdx"; private Integer viewIdx; public FieldPropertySO() { @@ -249,11 +229,16 @@ public FieldPropertySO autoFill(Boolean autoFill) { * @return autoFill **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTO_FILL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAutoFill() { return autoFill; } + @JsonProperty(JSON_PROPERTY_AUTO_FILL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAutoFill(Boolean autoFill) { this.autoFill = autoFill; } @@ -270,11 +255,16 @@ public FieldPropertySO brotherFieldId(String brotherFieldId) { * @return brotherFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BROTHER_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBrotherFieldId() { return brotherFieldId; } + @JsonProperty(JSON_PROPERTY_BROTHER_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBrotherFieldId(String brotherFieldId) { this.brotherFieldId = brotherFieldId; } @@ -291,11 +281,16 @@ public FieldPropertySO collectType(CollectType collectType) { * @return collectType **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLLECT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CollectType getCollectType() { return collectType; } + @JsonProperty(JSON_PROPERTY_COLLECT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCollectType(CollectType collectType) { this.collectType = collectType; } @@ -312,11 +307,16 @@ public FieldPropertySO commaStyle(String commaStyle) { * @return commaStyle **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COMMA_STYLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCommaStyle() { return commaStyle; } + @JsonProperty(JSON_PROPERTY_COMMA_STYLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCommaStyle(String commaStyle) { this.commaStyle = commaStyle; } @@ -333,11 +333,16 @@ public FieldPropertySO datasheetId(String datasheetId) { * @return datasheetId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDatasheetId() { return datasheetId; } + @JsonProperty(JSON_PROPERTY_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDatasheetId(String datasheetId) { this.datasheetId = datasheetId; } @@ -354,17 +359,22 @@ public FieldPropertySO dateFormat(DateFormat dateFormat) { * @return dateFormat **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATE_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DateFormat getDateFormat() { return dateFormat; } + @JsonProperty(JSON_PROPERTY_DATE_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateFormat(DateFormat dateFormat) { this.dateFormat = dateFormat; } - public FieldPropertySO defaultValue(String defaultValue) { + public FieldPropertySO defaultValue(Object defaultValue) { this.defaultValue = defaultValue; return this; @@ -375,12 +385,17 @@ public FieldPropertySO defaultValue(String defaultValue) { * @return defaultValue **/ @javax.annotation.Nullable - public String getDefaultValue() { + @JsonProperty(JSON_PROPERTY_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getDefaultValue() { return defaultValue; } - public void setDefaultValue(String defaultValue) { + @JsonProperty(JSON_PROPERTY_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDefaultValue(Object defaultValue) { this.defaultValue = defaultValue; } @@ -396,11 +411,16 @@ public FieldPropertySO expression(String expression) { * @return expression **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXPRESSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getExpression() { return expression; } + @JsonProperty(JSON_PROPERTY_EXPRESSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpression(String expression) { this.expression = expression; } @@ -425,17 +445,22 @@ public FieldPropertySO addFieldIdCollectionItem(String fieldIdCollectionItem) { * @return fieldIdCollection **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_ID_COLLECTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFieldIdCollection() { return fieldIdCollection; } + @JsonProperty(JSON_PROPERTY_FIELD_ID_COLLECTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldIdCollection(List fieldIdCollection) { this.fieldIdCollection = fieldIdCollection; } - public FieldPropertySO filterInfo(LookUpFilterPO filterInfo) { + public FieldPropertySO filterInfo(IFilterInfo filterInfo) { this.filterInfo = filterInfo; return this; @@ -446,12 +471,17 @@ public FieldPropertySO filterInfo(LookUpFilterPO filterInfo) { * @return filterInfo **/ @javax.annotation.Nullable - public LookUpFilterPO getFilterInfo() { + @JsonProperty(JSON_PROPERTY_FILTER_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IFilterInfo getFilterInfo() { return filterInfo; } - public void setFilterInfo(LookUpFilterPO filterInfo) { + @JsonProperty(JSON_PROPERTY_FILTER_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFilterInfo(IFilterInfo filterInfo) { this.filterInfo = filterInfo; } @@ -467,11 +497,16 @@ public FieldPropertySO foreignDatasheetId(String foreignDatasheetId) { * @return foreignDatasheetId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FOREIGN_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getForeignDatasheetId() { return foreignDatasheetId; } + @JsonProperty(JSON_PROPERTY_FOREIGN_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForeignDatasheetId(String foreignDatasheetId) { this.foreignDatasheetId = foreignDatasheetId; } @@ -488,11 +523,16 @@ public FieldPropertySO formatting(Object formatting) { * @return formatting **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FORMATTING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getFormatting() { return formatting; } + @JsonProperty(JSON_PROPERTY_FORMATTING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormatting(Object formatting) { this.formatting = formatting; } @@ -517,11 +557,16 @@ public FieldPropertySO addFullLinkedFieldsItem(LinkedFields fullLinkedFieldsItem * @return fullLinkedFields **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FULL_LINKED_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFullLinkedFields() { return fullLinkedFields; } + @JsonProperty(JSON_PROPERTY_FULL_LINKED_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFullLinkedFields(List fullLinkedFields) { this.fullLinkedFields = fullLinkedFields; } @@ -538,11 +583,16 @@ public FieldPropertySO icon(String icon) { * @return icon **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIcon() { return icon; } + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIcon(String icon) { this.icon = icon; } @@ -559,11 +609,16 @@ public FieldPropertySO includeTime(Boolean includeTime) { * @return includeTime **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCLUDE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIncludeTime() { return includeTime; } + @JsonProperty(JSON_PROPERTY_INCLUDE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIncludeTime(Boolean includeTime) { this.includeTime = includeTime; } @@ -580,11 +635,16 @@ public FieldPropertySO includeTimeZone(Boolean includeTimeZone) { * @return includeTimeZone **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCLUDE_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIncludeTimeZone() { return includeTimeZone; } + @JsonProperty(JSON_PROPERTY_INCLUDE_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIncludeTimeZone(Boolean includeTimeZone) { this.includeTimeZone = includeTimeZone; } @@ -601,11 +661,16 @@ public FieldPropertySO isMulti(Boolean isMulti) { * @return isMulti **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_MULTI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsMulti() { return isMulti; } + @JsonProperty(JSON_PROPERTY_IS_MULTI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMulti(Boolean isMulti) { this.isMulti = isMulti; } @@ -622,11 +687,16 @@ public FieldPropertySO isRecogUrlFlag(Boolean isRecogUrlFlag) { * @return isRecogUrlFlag **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_RECOG_URL_FLAG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsRecogUrlFlag() { return isRecogUrlFlag; } + @JsonProperty(JSON_PROPERTY_IS_RECOG_URL_FLAG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsRecogUrlFlag(Boolean isRecogUrlFlag) { this.isRecogUrlFlag = isRecogUrlFlag; } @@ -643,11 +713,16 @@ public FieldPropertySO limitSingleRecord(Boolean limitSingleRecord) { * @return limitSingleRecord **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LIMIT_SINGLE_RECORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getLimitSingleRecord() { return limitSingleRecord; } + @JsonProperty(JSON_PROPERTY_LIMIT_SINGLE_RECORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLimitSingleRecord(Boolean limitSingleRecord) { this.limitSingleRecord = limitSingleRecord; } @@ -664,11 +739,16 @@ public FieldPropertySO limitToView(String limitToView) { * @return limitToView **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LIMIT_TO_VIEW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLimitToView() { return limitToView; } + @JsonProperty(JSON_PROPERTY_LIMIT_TO_VIEW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLimitToView(String limitToView) { this.limitToView = limitToView; } @@ -685,11 +765,16 @@ public FieldPropertySO linkedDatasheetId(String linkedDatasheetId) { * @return linkedDatasheetId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LINKED_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLinkedDatasheetId() { return linkedDatasheetId; } + @JsonProperty(JSON_PROPERTY_LINKED_DATASHEET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkedDatasheetId(String linkedDatasheetId) { this.linkedDatasheetId = linkedDatasheetId; } @@ -714,11 +799,16 @@ public FieldPropertySO addLinkedFieldsItem(LinkedFields linkedFieldsItem) { * @return linkedFields **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LINKED_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getLinkedFields() { return linkedFields; } + @JsonProperty(JSON_PROPERTY_LINKED_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkedFields(List linkedFields) { this.linkedFields = linkedFields; } @@ -735,17 +825,22 @@ public FieldPropertySO linkedViewId(String linkedViewId) { * @return linkedViewId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LINKED_VIEW_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLinkedViewId() { return linkedViewId; } + @JsonProperty(JSON_PROPERTY_LINKED_VIEW_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkedViewId(String linkedViewId) { this.linkedViewId = linkedViewId; } - public FieldPropertySO lookUpLimit(Object lookUpLimit) { + public FieldPropertySO lookUpLimit(LookUpLimitType lookUpLimit) { this.lookUpLimit = lookUpLimit; return this; @@ -756,12 +851,17 @@ public FieldPropertySO lookUpLimit(Object lookUpLimit) { * @return lookUpLimit **/ @javax.annotation.Nullable - public Object getLookUpLimit() { + @JsonProperty(JSON_PROPERTY_LOOK_UP_LIMIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LookUpLimitType getLookUpLimit() { return lookUpLimit; } - public void setLookUpLimit(Object lookUpLimit) { + @JsonProperty(JSON_PROPERTY_LOOK_UP_LIMIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLookUpLimit(LookUpLimitType lookUpLimit) { this.lookUpLimit = lookUpLimit; } @@ -777,11 +877,16 @@ public FieldPropertySO lookUpTargetFieldId(String lookUpTargetFieldId) { * @return lookUpTargetFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LOOK_UP_TARGET_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLookUpTargetFieldId() { return lookUpTargetFieldId; } + @JsonProperty(JSON_PROPERTY_LOOK_UP_TARGET_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLookUpTargetFieldId(String lookUpTargetFieldId) { this.lookUpTargetFieldId = lookUpTargetFieldId; } @@ -799,11 +904,16 @@ public FieldPropertySO max(Integer max) { * @return max **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getMax() { return max; } + @JsonProperty(JSON_PROPERTY_MAX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMax(Integer max) { this.max = max; } @@ -820,11 +930,16 @@ public FieldPropertySO nextId(Integer nextId) { * @return nextId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NEXT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNextId() { return nextId; } + @JsonProperty(JSON_PROPERTY_NEXT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNextId(Integer nextId) { this.nextId = nextId; } @@ -841,11 +956,16 @@ public FieldPropertySO openFilter(Boolean openFilter) { * @return openFilter **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPEN_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getOpenFilter() { return openFilter; } + @JsonProperty(JSON_PROPERTY_OPEN_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOpenFilter(Boolean openFilter) { this.openFilter = openFilter; } @@ -870,11 +990,16 @@ public FieldPropertySO addOptionsItem(SingleSelectProperty optionsItem) { * @return options **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getOptions() { return options; } + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(List options) { this.options = options; } @@ -891,11 +1016,16 @@ public FieldPropertySO precision(Integer precision) { * @return precision **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PRECISION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrecision() { return precision; } + @JsonProperty(JSON_PROPERTY_PRECISION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrecision(Integer precision) { this.precision = precision; } @@ -912,11 +1042,16 @@ public FieldPropertySO relatedLinkFieldId(String relatedLinkFieldId) { * @return relatedLinkFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RELATED_LINK_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRelatedLinkFieldId() { return relatedLinkFieldId; } + @JsonProperty(JSON_PROPERTY_RELATED_LINK_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRelatedLinkFieldId(String relatedLinkFieldId) { this.relatedLinkFieldId = relatedLinkFieldId; } @@ -933,11 +1068,16 @@ public FieldPropertySO rollUpType(RollUpFuncType rollUpType) { * @return rollUpType **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ROLL_UP_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public RollUpFuncType getRollUpType() { return rollUpType; } + @JsonProperty(JSON_PROPERTY_ROLL_UP_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRollUpType(RollUpFuncType rollUpType) { this.rollUpType = rollUpType; } @@ -954,11 +1094,16 @@ public FieldPropertySO shouldSendMsg(Boolean shouldSendMsg) { * @return shouldSendMsg **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SHOULD_SEND_MSG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getShouldSendMsg() { return shouldSendMsg; } + @JsonProperty(JSON_PROPERTY_SHOULD_SEND_MSG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShouldSendMsg(Boolean shouldSendMsg) { this.shouldSendMsg = shouldSendMsg; } @@ -975,17 +1120,22 @@ public FieldPropertySO showAll(Boolean showAll) { * @return showAll **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SHOW_ALL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getShowAll() { return showAll; } + @JsonProperty(JSON_PROPERTY_SHOW_ALL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowAll(Boolean showAll) { this.showAll = showAll; } - public FieldPropertySO sortInfo(Object sortInfo) { + public FieldPropertySO sortInfo(LookUpSortInfo sortInfo) { this.sortInfo = sortInfo; return this; @@ -996,12 +1146,17 @@ public FieldPropertySO sortInfo(Object sortInfo) { * @return sortInfo **/ @javax.annotation.Nullable - public Object getSortInfo() { + @JsonProperty(JSON_PROPERTY_SORT_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LookUpSortInfo getSortInfo() { return sortInfo; } - public void setSortInfo(Object sortInfo) { + @JsonProperty(JSON_PROPERTY_SORT_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSortInfo(LookUpSortInfo sortInfo) { this.sortInfo = sortInfo; } @@ -1017,11 +1172,16 @@ public FieldPropertySO subscription(Boolean subscription) { * @return subscription **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBSCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getSubscription() { return subscription; } + @JsonProperty(JSON_PROPERTY_SUBSCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubscription(Boolean subscription) { this.subscription = subscription; } @@ -1038,11 +1198,16 @@ public FieldPropertySO symbol(String symbol) { * @return symbol **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSymbol() { return symbol; } + @JsonProperty(JSON_PROPERTY_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSymbol(String symbol) { this.symbol = symbol; } @@ -1059,11 +1224,16 @@ public FieldPropertySO symbolAlign(SymbolAlign symbolAlign) { * @return symbolAlign **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SYMBOL_ALIGN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SymbolAlign getSymbolAlign() { return symbolAlign; } + @JsonProperty(JSON_PROPERTY_SYMBOL_ALIGN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSymbolAlign(SymbolAlign symbolAlign) { this.symbolAlign = symbolAlign; } @@ -1080,11 +1250,16 @@ public FieldPropertySO timeFormat(TimeFormat timeFormat) { * @return timeFormat **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TimeFormat getTimeFormat() { return timeFormat; } + @JsonProperty(JSON_PROPERTY_TIME_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTimeFormat(TimeFormat timeFormat) { this.timeFormat = timeFormat; } @@ -1101,11 +1276,16 @@ public FieldPropertySO timeZone(String timeZone) { * @return timeZone **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTimeZone() { return timeZone; } + @JsonProperty(JSON_PROPERTY_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTimeZone(String timeZone) { this.timeZone = timeZone; } @@ -1130,11 +1310,16 @@ public FieldPropertySO addUnitIdsItem(String unitIdsItem) { * @return unitIds **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UNIT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUnitIds() { return unitIds; } + @JsonProperty(JSON_PROPERTY_UNIT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUnitIds(List unitIds) { this.unitIds = unitIds; } @@ -1159,11 +1344,16 @@ public FieldPropertySO addUuidsItem(String uuidsItem) { * @return uuids **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UUIDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUuids() { return uuids; } + @JsonProperty(JSON_PROPERTY_UUIDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuids(List uuids) { this.uuids = uuids; } @@ -1180,17 +1370,20 @@ public FieldPropertySO viewIdx(Integer viewIdx) { * @return viewIdx **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VIEW_IDX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getViewIdx() { return viewIdx; } + @JsonProperty(JSON_PROPERTY_VIEW_IDX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setViewIdx(Integer viewIdx) { this.viewIdx = viewIdx; } - - @Override public boolean equals(Object o) { if (this == o) { @@ -1245,22 +1438,11 @@ public boolean equals(Object o) { Objects.equals(this.viewIdx, fieldPropertySO.viewIdx); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { return Objects.hash(autoFill, brotherFieldId, collectType, commaStyle, datasheetId, dateFormat, defaultValue, expression, fieldIdCollection, filterInfo, foreignDatasheetId, formatting, fullLinkedFields, icon, includeTime, includeTimeZone, isMulti, isRecogUrlFlag, limitSingleRecord, limitToView, linkedDatasheetId, linkedFields, linkedViewId, lookUpLimit, lookUpTargetFieldId, max, nextId, openFilter, options, precision, relatedLinkFieldId, rollUpType, shouldSendMsg, showAll, sortInfo, subscription, symbol, symbolAlign, timeFormat, timeZone, unitIds, uuids, viewIdx); } - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -1323,231 +1505,5 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("autoFill"); - openapiFields.add("brotherFieldId"); - openapiFields.add("collectType"); - openapiFields.add("commaStyle"); - openapiFields.add("datasheetId"); - openapiFields.add("dateFormat"); - openapiFields.add("defaultValue"); - openapiFields.add("expression"); - openapiFields.add("fieldIdCollection"); - openapiFields.add("filterInfo"); - openapiFields.add("foreignDatasheetId"); - openapiFields.add("formatting"); - openapiFields.add("fullLinkedFields"); - openapiFields.add("icon"); - openapiFields.add("includeTime"); - openapiFields.add("includeTimeZone"); - openapiFields.add("isMulti"); - openapiFields.add("isRecogUrlFlag"); - openapiFields.add("limitSingleRecord"); - openapiFields.add("limitToView"); - openapiFields.add("linkedDatasheetId"); - openapiFields.add("linkedFields"); - openapiFields.add("linkedViewId"); - openapiFields.add("lookUpLimit"); - openapiFields.add("lookUpTargetFieldId"); - openapiFields.add("max"); - openapiFields.add("nextId"); - openapiFields.add("openFilter"); - openapiFields.add("options"); - openapiFields.add("precision"); - openapiFields.add("relatedLinkFieldId"); - openapiFields.add("rollUpType"); - openapiFields.add("shouldSendMsg"); - openapiFields.add("showAll"); - openapiFields.add("sortInfo"); - openapiFields.add("subscription"); - openapiFields.add("symbol"); - openapiFields.add("symbolAlign"); - openapiFields.add("timeFormat"); - openapiFields.add("timeZone"); - openapiFields.add("unitIds"); - openapiFields.add("uuids"); - openapiFields.add("viewIdx"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldPropertySO - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FieldPropertySO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FieldPropertySO is not found in the empty JSON string", FieldPropertySO.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!FieldPropertySO.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FieldPropertySO` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("brotherFieldId") != null && !jsonObj.get("brotherFieldId").isJsonNull()) && !jsonObj.get("brotherFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `brotherFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("brotherFieldId").toString())); - } - if ((jsonObj.get("commaStyle") != null && !jsonObj.get("commaStyle").isJsonNull()) && !jsonObj.get("commaStyle").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `commaStyle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("commaStyle").toString())); - } - if ((jsonObj.get("datasheetId") != null && !jsonObj.get("datasheetId").isJsonNull()) && !jsonObj.get("datasheetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `datasheetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datasheetId").toString())); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); - } - if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("fieldIdCollection") != null && !jsonObj.get("fieldIdCollection").isJsonNull() && !jsonObj.get("fieldIdCollection").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fieldIdCollection` to be an array in the JSON string but got `%s`", jsonObj.get("fieldIdCollection").toString())); - } - // validate the optional field `filterInfo` - if (jsonObj.get("filterInfo") != null && !jsonObj.get("filterInfo").isJsonNull()) { - LookUpFilterPO.validateJsonElement(jsonObj.get("filterInfo")); - } - if ((jsonObj.get("foreignDatasheetId") != null && !jsonObj.get("foreignDatasheetId").isJsonNull()) && !jsonObj.get("foreignDatasheetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `foreignDatasheetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignDatasheetId").toString())); - } - if (jsonObj.get("fullLinkedFields") != null && !jsonObj.get("fullLinkedFields").isJsonNull()) { - JsonArray jsonArrayfullLinkedFields = jsonObj.getAsJsonArray("fullLinkedFields"); - if (jsonArrayfullLinkedFields != null) { - // ensure the json data is an array - if (!jsonObj.get("fullLinkedFields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fullLinkedFields` to be an array in the JSON string but got `%s`", jsonObj.get("fullLinkedFields").toString())); - } - - // validate the optional field `fullLinkedFields` (array) - for (int i = 0; i < jsonArrayfullLinkedFields.size(); i++) { - LinkedFields.validateJsonElement(jsonArrayfullLinkedFields.get(i)); - }; - } - } - if ((jsonObj.get("icon") != null && !jsonObj.get("icon").isJsonNull()) && !jsonObj.get("icon").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `icon` to be a primitive type in the JSON string but got `%s`", jsonObj.get("icon").toString())); - } - if ((jsonObj.get("limitToView") != null && !jsonObj.get("limitToView").isJsonNull()) && !jsonObj.get("limitToView").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `limitToView` to be a primitive type in the JSON string but got `%s`", jsonObj.get("limitToView").toString())); - } - if ((jsonObj.get("linkedDatasheetId") != null && !jsonObj.get("linkedDatasheetId").isJsonNull()) && !jsonObj.get("linkedDatasheetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `linkedDatasheetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("linkedDatasheetId").toString())); - } - if (jsonObj.get("linkedFields") != null && !jsonObj.get("linkedFields").isJsonNull()) { - JsonArray jsonArraylinkedFields = jsonObj.getAsJsonArray("linkedFields"); - if (jsonArraylinkedFields != null) { - // ensure the json data is an array - if (!jsonObj.get("linkedFields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `linkedFields` to be an array in the JSON string but got `%s`", jsonObj.get("linkedFields").toString())); - } - - // validate the optional field `linkedFields` (array) - for (int i = 0; i < jsonArraylinkedFields.size(); i++) { - LinkedFields.validateJsonElement(jsonArraylinkedFields.get(i)); - }; - } - } - if ((jsonObj.get("linkedViewId") != null && !jsonObj.get("linkedViewId").isJsonNull()) && !jsonObj.get("linkedViewId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `linkedViewId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("linkedViewId").toString())); - } - if ((jsonObj.get("lookUpTargetFieldId") != null && !jsonObj.get("lookUpTargetFieldId").isJsonNull()) && !jsonObj.get("lookUpTargetFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `lookUpTargetFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lookUpTargetFieldId").toString())); - } - if (jsonObj.get("options") != null && !jsonObj.get("options").isJsonNull()) { - JsonArray jsonArrayoptions = jsonObj.getAsJsonArray("options"); - if (jsonArrayoptions != null) { - // ensure the json data is an array - if (!jsonObj.get("options").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `options` to be an array in the JSON string but got `%s`", jsonObj.get("options").toString())); - } - - // validate the optional field `options` (array) - for (int i = 0; i < jsonArrayoptions.size(); i++) { - SingleSelectProperty.validateJsonElement(jsonArrayoptions.get(i)); - }; - } - } - if ((jsonObj.get("relatedLinkFieldId") != null && !jsonObj.get("relatedLinkFieldId").isJsonNull()) && !jsonObj.get("relatedLinkFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `relatedLinkFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("relatedLinkFieldId").toString())); - } - if ((jsonObj.get("symbol") != null && !jsonObj.get("symbol").isJsonNull()) && !jsonObj.get("symbol").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("symbol").toString())); - } - if ((jsonObj.get("timeZone") != null && !jsonObj.get("timeZone").isJsonNull()) && !jsonObj.get("timeZone").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timeZone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeZone").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("unitIds") != null && !jsonObj.get("unitIds").isJsonNull() && !jsonObj.get("unitIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `unitIds` to be an array in the JSON string but got `%s`", jsonObj.get("unitIds").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("uuids") != null && !jsonObj.get("uuids").isJsonNull() && !jsonObj.get("uuids").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `uuids` to be an array in the JSON string but got `%s`", jsonObj.get("uuids").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!FieldPropertySO.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FieldPropertySO' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FieldPropertySO.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FieldPropertySO value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FieldPropertySO read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of FieldPropertySO given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldPropertySO - * @throws IOException if the JSON string is invalid with respect to FieldPropertySO - */ - public static FieldPropertySO fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, FieldPropertySO.class); - } - - /** - * Convert an instance of FieldPropertySO to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldSO.java new file mode 100644 index 0000000000..1c0646a53d --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldSO.java @@ -0,0 +1,265 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.FieldKindSO; +import com.apitable.starter.databus.client.model.FieldPropertySO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * FieldSO + */ +@JsonPropertyOrder({ + FieldSO.JSON_PROPERTY_DESC, + FieldSO.JSON_PROPERTY_ID, + FieldSO.JSON_PROPERTY_NAME, + FieldSO.JSON_PROPERTY_PROPERTY, + FieldSO.JSON_PROPERTY_REQUIRED, + FieldSO.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FieldSO { + public static final String JSON_PROPERTY_DESC = "desc"; + private String desc; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_PROPERTY = "property"; + private FieldPropertySO property; + + public static final String JSON_PROPERTY_REQUIRED = "required"; + private Boolean required; + + public static final String JSON_PROPERTY_TYPE = "type"; + private FieldKindSO type; + + public FieldSO() { + } + + public FieldSO desc(String desc) { + + this.desc = desc; + return this; + } + + /** + * Get desc + * @return desc + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDesc() { + return desc; + } + + + @JsonProperty(JSON_PROPERTY_DESC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDesc(String desc) { + this.desc = desc; + } + + + public FieldSO id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public FieldSO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public FieldSO property(FieldPropertySO property) { + + this.property = property; + return this; + } + + /** + * Get property + * @return property + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public FieldPropertySO getProperty() { + return property; + } + + + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProperty(FieldPropertySO property) { + this.property = property; + } + + + public FieldSO required(Boolean required) { + + this.required = required; + return this; + } + + /** + * Get required + * @return required + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getRequired() { + return required; + } + + + @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequired(Boolean required) { + this.required = required; + } + + + public FieldSO type(FieldKindSO type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public FieldKindSO getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(FieldKindSO type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FieldSO fieldSO = (FieldSO) o; + return Objects.equals(this.desc, fieldSO.desc) && + Objects.equals(this.id, fieldSO.id) && + Objects.equals(this.name, fieldSO.name) && + Objects.equals(this.property, fieldSO.property) && + Objects.equals(this.required, fieldSO.required) && + Objects.equals(this.type, fieldSO.type); + } + + @Override + public int hashCode() { + return Objects.hash(desc, id, name, property, required, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FieldSO {\n"); + sb.append(" desc: ").append(toIndentedString(desc)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdateRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdateRO.java new file mode 100644 index 0000000000..2910c72420 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdateRO.java @@ -0,0 +1,142 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * FieldUpdateRO + */ +@JsonPropertyOrder({ + FieldUpdateRO.JSON_PROPERTY_FIELDS, + FieldUpdateRO.JSON_PROPERTY_RECORD_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FieldUpdateRO { + public static final String JSON_PROPERTY_FIELDS = "fields"; + private Map fields = new HashMap<>(); + + public static final String JSON_PROPERTY_RECORD_ID = "recordId"; + private String recordId; + + public FieldUpdateRO() { + } + + public FieldUpdateRO fields(Map fields) { + + this.fields = fields; + return this; + } + + public FieldUpdateRO putFieldsItem(String key, Object fieldsItem) { + this.fields.put(key, fieldsItem); + return this; + } + + /** + * Get fields + * @return fields + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELDS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + + public Map getFields() { + return fields; + } + + + @JsonProperty(JSON_PROPERTY_FIELDS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) + public void setFields(Map fields) { + this.fields = fields; + } + + + public FieldUpdateRO recordId(String recordId) { + + this.recordId = recordId; + return this; + } + + /** + * Get recordId + * @return recordId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordId() { + return recordId; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FieldUpdateRO fieldUpdateRO = (FieldUpdateRO) o; + return Objects.equals(this.fields, fieldUpdateRO.fields) && + Objects.equals(this.recordId, fieldUpdateRO.recordId); + } + + @Override + public int hashCode() { + return Objects.hash(fields, recordId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FieldUpdateRO {\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdatedValue.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdatedValue.java new file mode 100644 index 0000000000..08bddf746e --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FieldUpdatedValue.java @@ -0,0 +1,169 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * FieldUpdatedValue + */ +@JsonPropertyOrder({ + FieldUpdatedValue.JSON_PROPERTY_AT, + FieldUpdatedValue.JSON_PROPERTY_AUTO_NUMBER, + FieldUpdatedValue.JSON_PROPERTY_BY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FieldUpdatedValue { + public static final String JSON_PROPERTY_AT = "at"; + private Long at; + + public static final String JSON_PROPERTY_AUTO_NUMBER = "autoNumber"; + private Long autoNumber; + + public static final String JSON_PROPERTY_BY = "by"; + private String by; + + public FieldUpdatedValue() { + } + + public FieldUpdatedValue at(Long at) { + + this.at = at; + return this; + } + + /** + * Get at + * minimum: 0 + * @return at + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getAt() { + return at; + } + + + @JsonProperty(JSON_PROPERTY_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAt(Long at) { + this.at = at; + } + + + public FieldUpdatedValue autoNumber(Long autoNumber) { + + this.autoNumber = autoNumber; + return this; + } + + /** + * Get autoNumber + * minimum: 0 + * @return autoNumber + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTO_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getAutoNumber() { + return autoNumber; + } + + + @JsonProperty(JSON_PROPERTY_AUTO_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAutoNumber(Long autoNumber) { + this.autoNumber = autoNumber; + } + + + public FieldUpdatedValue by(String by) { + + this.by = by; + return this; + } + + /** + * Get by + * @return by + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBy() { + return by; + } + + + @JsonProperty(JSON_PROPERTY_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBy(String by) { + this.by = by; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FieldUpdatedValue fieldUpdatedValue = (FieldUpdatedValue) o; + return Objects.equals(this.at, fieldUpdatedValue.at) && + Objects.equals(this.autoNumber, fieldUpdatedValue.autoNumber) && + Objects.equals(this.by, fieldUpdatedValue.by); + } + + @Override + public int hashCode() { + return Objects.hash(at, autoNumber, by); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FieldUpdatedValue {\n"); + sb.append(" at: ").append(toIndentedString(at)).append("\n"); + sb.append(" autoNumber: ").append(toIndentedString(autoNumber)).append("\n"); + sb.append(" by: ").append(toIndentedString(by)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/FilterConjunction.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FilterConjunction.java similarity index 50% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/FilterConjunction.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FilterConjunction.java index b3298028bc..74bcc2eddc 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/FilterConjunction.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/FilterConjunction.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets FilterConjunction */ -@JsonAdapter(FilterConjunction.Adapter.class) public enum FilterConjunction { AND("and"), @@ -38,6 +36,7 @@ public enum FilterConjunction { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -47,6 +46,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static FilterConjunction fromValue(String value) { for (FilterConjunction b : FilterConjunction.values()) { if (b.value.equals(value)) { @@ -55,18 +55,5 @@ public static FilterConjunction fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final FilterConjunction enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public FilterConjunction read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return FilterConjunction.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorOption.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorOption.java new file mode 100644 index 0000000000..487880d468 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorOption.java @@ -0,0 +1,168 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.GanttColorType; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * GanttColorOption + */ +@JsonPropertyOrder({ + GanttColorOption.JSON_PROPERTY_COLOR, + GanttColorOption.JSON_PROPERTY_FIELD_ID, + GanttColorOption.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GanttColorOption { + public static final String JSON_PROPERTY_COLOR = "color"; + private Integer color; + + public static final String JSON_PROPERTY_FIELD_ID = "field_id"; + private String fieldId; + + public static final String JSON_PROPERTY_TYPE = "type"; + private GanttColorType type; + + public GanttColorOption() { + } + + public GanttColorOption color(Integer color) { + + this.color = color; + return this; + } + + /** + * Get color + * @return color + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getColor() { + return color; + } + + + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setColor(Integer color) { + this.color = color; + } + + + public GanttColorOption fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + + public GanttColorOption type(GanttColorType type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public GanttColorType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(GanttColorType type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GanttColorOption ganttColorOption = (GanttColorOption) o; + return Objects.equals(this.color, ganttColorOption.color) && + Objects.equals(this.fieldId, ganttColorOption.fieldId) && + Objects.equals(this.type, ganttColorOption.type); + } + + @Override + public int hashCode() { + return Objects.hash(color, fieldId, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GanttColorOption {\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorType.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorType.java similarity index 51% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorType.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorType.java index d5beed38a0..72991f6bbd 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/GanttColorType.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/GanttColorType.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets GanttColorType */ -@JsonAdapter(GanttColorType.Adapter.class) public enum GanttColorType { CUSTOM("Custom"), @@ -38,6 +36,7 @@ public enum GanttColorType { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -47,6 +46,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static GanttColorType fromValue(String value) { for (GanttColorType b : GanttColorType.values()) { if (b.value.equals(value)) { @@ -55,18 +55,5 @@ public static GanttColorType fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final GanttColorType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public GanttColorType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return GanttColorType.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterCondition.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterCondition.java new file mode 100644 index 0000000000..862dc5814d --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterCondition.java @@ -0,0 +1,233 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.FOperator; +import com.apitable.starter.databus.client.model.FieldKindSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * IFilterCondition + */ +@JsonPropertyOrder({ + IFilterCondition.JSON_PROPERTY_CONDITION_ID, + IFilterCondition.JSON_PROPERTY_FIELD_ID, + IFilterCondition.JSON_PROPERTY_FIELD_TYPE, + IFilterCondition.JSON_PROPERTY_OPERATOR, + IFilterCondition.JSON_PROPERTY_VALUE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class IFilterCondition { + public static final String JSON_PROPERTY_CONDITION_ID = "conditionId"; + private String conditionId; + + public static final String JSON_PROPERTY_FIELD_ID = "fieldId"; + private String fieldId; + + public static final String JSON_PROPERTY_FIELD_TYPE = "fieldType"; + private FieldKindSO fieldType; + + public static final String JSON_PROPERTY_OPERATOR = "operator"; + private FOperator operator; + + public static final String JSON_PROPERTY_VALUE = "value"; + private Object value = null; + + public IFilterCondition() { + } + + public IFilterCondition conditionId(String conditionId) { + + this.conditionId = conditionId; + return this; + } + + /** + * Get conditionId + * @return conditionId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONDITION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConditionId() { + return conditionId; + } + + + @JsonProperty(JSON_PROPERTY_CONDITION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConditionId(String conditionId) { + this.conditionId = conditionId; + } + + + public IFilterCondition fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + + public IFilterCondition fieldType(FieldKindSO fieldType) { + + this.fieldType = fieldType; + return this; + } + + /** + * Get fieldType + * @return fieldType + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public FieldKindSO getFieldType() { + return fieldType; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldType(FieldKindSO fieldType) { + this.fieldType = fieldType; + } + + + public IFilterCondition operator(FOperator operator) { + + this.operator = operator; + return this; + } + + /** + * Get operator + * @return operator + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public FOperator getOperator() { + return operator; + } + + + @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOperator(FOperator operator) { + this.operator = operator; + } + + + public IFilterCondition value(Object value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getValue() { + return value; + } + + + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(Object value) { + this.value = value; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IFilterCondition ifilterCondition = (IFilterCondition) o; + return Objects.equals(this.conditionId, ifilterCondition.conditionId) && + Objects.equals(this.fieldId, ifilterCondition.fieldId) && + Objects.equals(this.fieldType, ifilterCondition.fieldType) && + Objects.equals(this.operator, ifilterCondition.operator) && + Objects.equals(this.value, ifilterCondition.value); + } + + @Override + public int hashCode() { + return Objects.hash(conditionId, fieldId, fieldType, operator, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IFilterCondition {\n"); + sb.append(" conditionId: ").append(toIndentedString(conditionId)).append("\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append(" fieldType: ").append(toIndentedString(fieldType)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterInfo.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterInfo.java new file mode 100644 index 0000000000..4a07d0340c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IFilterInfo.java @@ -0,0 +1,148 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.FilterConjunction; +import com.apitable.starter.databus.client.model.IFilterCondition; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * IFilterInfo + */ +@JsonPropertyOrder({ + IFilterInfo.JSON_PROPERTY_CONDITIONS, + IFilterInfo.JSON_PROPERTY_CONJUNCTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class IFilterInfo { + public static final String JSON_PROPERTY_CONDITIONS = "conditions"; + private List conditions; + + public static final String JSON_PROPERTY_CONJUNCTION = "conjunction"; + private FilterConjunction conjunction; + + public IFilterInfo() { + } + + public IFilterInfo conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public IFilterInfo addConditionsItem(IFilterCondition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Get conditions + * @return conditions + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONDITIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getConditions() { + return conditions; + } + + + @JsonProperty(JSON_PROPERTY_CONDITIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + public IFilterInfo conjunction(FilterConjunction conjunction) { + + this.conjunction = conjunction; + return this; + } + + /** + * Get conjunction + * @return conjunction + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CONJUNCTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public FilterConjunction getConjunction() { + return conjunction; + } + + + @JsonProperty(JSON_PROPERTY_CONJUNCTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setConjunction(FilterConjunction conjunction) { + this.conjunction = conjunction; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IFilterInfo ifilterInfo = (IFilterInfo) o; + return Objects.equals(this.conditions, ifilterInfo.conditions) && + Objects.equals(this.conjunction, ifilterInfo.conjunction); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, conjunction); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IFilterInfo {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" conjunction: ").append(toIndentedString(conjunction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortInfo.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortInfo.java new file mode 100644 index 0000000000..d0422364ed --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortInfo.java @@ -0,0 +1,147 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.ISortedField; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ISortInfo + */ +@JsonPropertyOrder({ + ISortInfo.JSON_PROPERTY_KEEP_SORT, + ISortInfo.JSON_PROPERTY_RULES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ISortInfo { + public static final String JSON_PROPERTY_KEEP_SORT = "keepSort"; + private Boolean keepSort; + + public static final String JSON_PROPERTY_RULES = "rules"; + private List rules = new ArrayList<>(); + + public ISortInfo() { + } + + public ISortInfo keepSort(Boolean keepSort) { + + this.keepSort = keepSort; + return this; + } + + /** + * Get keepSort + * @return keepSort + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_KEEP_SORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getKeepSort() { + return keepSort; + } + + + @JsonProperty(JSON_PROPERTY_KEEP_SORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setKeepSort(Boolean keepSort) { + this.keepSort = keepSort; + } + + + public ISortInfo rules(List rules) { + + this.rules = rules; + return this; + } + + public ISortInfo addRulesItem(ISortedField rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Get rules + * @return rules + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RULES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getRules() { + return rules; + } + + + @JsonProperty(JSON_PROPERTY_RULES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRules(List rules) { + this.rules = rules; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ISortInfo isortInfo = (ISortInfo) o; + return Objects.equals(this.keepSort, isortInfo.keepSort) && + Objects.equals(this.rules, isortInfo.rules); + } + + @Override + public int hashCode() { + return Objects.hash(keepSort, rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ISortInfo {\n"); + sb.append(" keepSort: ").append(toIndentedString(keepSort)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortedField.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortedField.java new file mode 100644 index 0000000000..2aad61864e --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ISortedField.java @@ -0,0 +1,135 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ISortedField + */ +@JsonPropertyOrder({ + ISortedField.JSON_PROPERTY_DESC, + ISortedField.JSON_PROPERTY_FIELD_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ISortedField { + public static final String JSON_PROPERTY_DESC = "desc"; + private Boolean desc; + + public static final String JSON_PROPERTY_FIELD_ID = "fieldId"; + private String fieldId; + + public ISortedField() { + } + + public ISortedField desc(Boolean desc) { + + this.desc = desc; + return this; + } + + /** + * Get desc + * @return desc + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DESC) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getDesc() { + return desc; + } + + + @JsonProperty(JSON_PROPERTY_DESC) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDesc(Boolean desc) { + this.desc = desc; + } + + + public ISortedField fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ISortedField isortedField = (ISortedField) o; + return Objects.equals(this.desc, isortedField.desc) && + Objects.equals(this.fieldId, isortedField.fieldId); + } + + @Override + public int hashCode() { + return Objects.hash(desc, fieldId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ISortedField {\n"); + sb.append(" desc: ").append(toIndentedString(desc)).append("\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IViewLockInfo.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IViewLockInfo.java new file mode 100644 index 0000000000..6b1b235f5c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/IViewLockInfo.java @@ -0,0 +1,135 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * IViewLockInfo + */ +@JsonPropertyOrder({ + IViewLockInfo.JSON_PROPERTY_DESCRIPTION, + IViewLockInfo.JSON_PROPERTY_UNIT_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class IViewLockInfo { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_UNIT_ID = "unitId"; + private String unitId; + + public IViewLockInfo() { + } + + public IViewLockInfo description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public IViewLockInfo unitId(String unitId) { + + this.unitId = unitId; + return this; + } + + /** + * Get unitId + * @return unitId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getUnitId() { + return unitId; + } + + + @JsonProperty(JSON_PROPERTY_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUnitId(String unitId) { + this.unitId = unitId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IViewLockInfo iviewLockInfo = (IViewLockInfo) o; + return Objects.equals(this.description, iviewLockInfo.description) && + Objects.equals(this.unitId, iviewLockInfo.unitId); + } + + @Override + public int hashCode() { + return Objects.hash(description, unitId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IViewLockInfo {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" unitId: ").append(toIndentedString(unitId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LinkedFields.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LinkedFields.java new file mode 100644 index 0000000000..aed431c5f4 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LinkedFields.java @@ -0,0 +1,168 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * LinkedFields + */ +@JsonPropertyOrder({ + LinkedFields.JSON_PROPERTY_ID, + LinkedFields.JSON_PROPERTY_NAME, + LinkedFields.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LinkedFields { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_TYPE = "type"; + private Integer type; + + public LinkedFields() { + } + + public LinkedFields id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public LinkedFields name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public LinkedFields type(Integer type) { + + this.type = type; + return this; + } + + /** + * Get type + * minimum: 0 + * @return type + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(Integer type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LinkedFields linkedFields = (LinkedFields) o; + return Objects.equals(this.id, linkedFields.id) && + Objects.equals(this.name, linkedFields.name) && + Objects.equals(this.type, linkedFields.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LinkedFields {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ListVO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ListVO.java new file mode 100644 index 0000000000..ff6d7a0188 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ListVO.java @@ -0,0 +1,115 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.ApiRecordDto; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ListVO + */ +@JsonPropertyOrder({ + ListVO.JSON_PROPERTY_RECORDS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListVO { + public static final String JSON_PROPERTY_RECORDS = "records"; + private List records = new ArrayList<>(); + + public ListVO() { + } + + public ListVO records(List records) { + + this.records = records; + return this; + } + + public ListVO addRecordsItem(ApiRecordDto recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + /** + * Get records + * @return records + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getRecords() { + return records; + } + + + @JsonProperty(JSON_PROPERTY_RECORDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListVO listVO = (ListVO) o; + return Objects.equals(this.records, listVO.records); + } + + @Override + public int hashCode() { + return Objects.hash(records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListVO {\n"); + sb.append(" records: ").append(toIndentedString(records)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpLimitType.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpLimitType.java new file mode 100644 index 0000000000..9f6879bb86 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpLimitType.java @@ -0,0 +1,59 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets LookUpLimitType + */ +public enum LookUpLimitType { + + ALL("ALL"), + + FIRST("FIRST"); + + private String value; + + LookUpLimitType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LookUpLimitType fromValue(String value) { + for (LookUpLimitType b : LookUpLimitType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortField.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortField.java new file mode 100644 index 0000000000..436cb41583 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortField.java @@ -0,0 +1,135 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * LookUpSortField + */ +@JsonPropertyOrder({ + LookUpSortField.JSON_PROPERTY_DESC, + LookUpSortField.JSON_PROPERTY_FIELD_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LookUpSortField { + public static final String JSON_PROPERTY_DESC = "desc"; + private Boolean desc; + + public static final String JSON_PROPERTY_FIELD_ID = "fieldId"; + private String fieldId; + + public LookUpSortField() { + } + + public LookUpSortField desc(Boolean desc) { + + this.desc = desc; + return this; + } + + /** + * Get desc + * @return desc + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DESC) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getDesc() { + return desc; + } + + + @JsonProperty(JSON_PROPERTY_DESC) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDesc(Boolean desc) { + this.desc = desc; + } + + + public LookUpSortField fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LookUpSortField lookUpSortField = (LookUpSortField) o; + return Objects.equals(this.desc, lookUpSortField.desc) && + Objects.equals(this.fieldId, lookUpSortField.fieldId); + } + + @Override + public int hashCode() { + return Objects.hash(desc, fieldId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LookUpSortField {\n"); + sb.append(" desc: ").append(toIndentedString(desc)).append("\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortInfo.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortInfo.java new file mode 100644 index 0000000000..5fe4719b6e --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/LookUpSortInfo.java @@ -0,0 +1,115 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.LookUpSortField; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * LookUpSortInfo + */ +@JsonPropertyOrder({ + LookUpSortInfo.JSON_PROPERTY_RULES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LookUpSortInfo { + public static final String JSON_PROPERTY_RULES = "rules"; + private List rules = new ArrayList<>(); + + public LookUpSortInfo() { + } + + public LookUpSortInfo rules(List rules) { + + this.rules = rules; + return this; + } + + public LookUpSortInfo addRulesItem(LookUpSortField rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Get rules + * @return rules + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RULES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getRules() { + return rules; + } + + + @JsonProperty(JSON_PROPERTY_RULES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRules(List rules) { + this.rules = rules; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LookUpSortInfo lookUpSortInfo = (LookUpSortInfo) o; + return Objects.equals(this.rules, lookUpSortInfo.rules); + } + + @Override + public int hashCode() { + return Objects.hash(rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LookUpSortInfo {\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodePermissionStateSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodePermissionStateSO.java new file mode 100644 index 0000000000..bdecdfe34b --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodePermissionStateSO.java @@ -0,0 +1,103 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * NodePermissionStateSO + */ +@JsonPropertyOrder({ + NodePermissionStateSO.JSON_PROPERTY_IS_DELETED +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NodePermissionStateSO { + public static final String JSON_PROPERTY_IS_DELETED = "isDeleted"; + private Boolean isDeleted; + + public NodePermissionStateSO() { + } + + public NodePermissionStateSO isDeleted(Boolean isDeleted) { + + this.isDeleted = isDeleted; + return this; + } + + /** + * Get isDeleted + * @return isDeleted + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsDeleted() { + return isDeleted; + } + + + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodePermissionStateSO nodePermissionStateSO = (NodePermissionStateSO) o; + return Objects.equals(this.isDeleted, nodePermissionStateSO.isDeleted); + } + + @Override + public int hashCode() { + return Objects.hash(isDeleted); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodePermissionStateSO {\n"); + sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSO.java new file mode 100644 index 0000000000..9e6075ab6e --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSO.java @@ -0,0 +1,553 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.NodePermissionStateSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * NodeSO + */ +@JsonPropertyOrder({ + NodeSO.JSON_PROPERTY_ACTIVE_VIEW, + NodeSO.JSON_PROPERTY_DESCRIPTION, + NodeSO.JSON_PROPERTY_EXTRA, + NodeSO.JSON_PROPERTY_ICON, + NodeSO.JSON_PROPERTY_ID, + NodeSO.JSON_PROPERTY_IS_GHOST_NODE, + NodeSO.JSON_PROPERTY_NAME, + NodeSO.JSON_PROPERTY_NODE_FAVORITE, + NodeSO.JSON_PROPERTY_NODE_PERMIT_SET, + NodeSO.JSON_PROPERTY_NODE_SHARED, + NodeSO.JSON_PROPERTY_PARENT_ID, + NodeSO.JSON_PROPERTY_PERMISSIONS, + NodeSO.JSON_PROPERTY_REVISION, + NodeSO.JSON_PROPERTY_ROLE, + NodeSO.JSON_PROPERTY_SPACE_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NodeSO { + public static final String JSON_PROPERTY_ACTIVE_VIEW = "activeView"; + private String activeView; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_EXTRA = "extra"; + private Object extra = null; + + public static final String JSON_PROPERTY_ICON = "icon"; + private String icon; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_IS_GHOST_NODE = "isGhostNode"; + private Boolean isGhostNode; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_NODE_FAVORITE = "nodeFavorite"; + private Boolean nodeFavorite; + + public static final String JSON_PROPERTY_NODE_PERMIT_SET = "nodePermitSet"; + private Boolean nodePermitSet; + + public static final String JSON_PROPERTY_NODE_SHARED = "nodeShared"; + private Boolean nodeShared; + + public static final String JSON_PROPERTY_PARENT_ID = "parentId"; + private String parentId; + + public static final String JSON_PROPERTY_PERMISSIONS = "permissions"; + private NodePermissionStateSO permissions; + + public static final String JSON_PROPERTY_REVISION = "revision"; + private Integer revision; + + public static final String JSON_PROPERTY_ROLE = "role"; + private String role; + + public static final String JSON_PROPERTY_SPACE_ID = "spaceId"; + private String spaceId; + + public NodeSO() { + } + + public NodeSO activeView(String activeView) { + + this.activeView = activeView; + return this; + } + + /** + * Get activeView + * @return activeView + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTIVE_VIEW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getActiveView() { + return activeView; + } + + + @JsonProperty(JSON_PROPERTY_ACTIVE_VIEW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setActiveView(String activeView) { + this.activeView = activeView; + } + + + public NodeSO description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDescription(String description) { + this.description = description; + } + + + public NodeSO extra(Object extra) { + + this.extra = extra; + return this; + } + + /** + * Get extra + * @return extra + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXTRA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getExtra() { + return extra; + } + + + @JsonProperty(JSON_PROPERTY_EXTRA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExtra(Object extra) { + this.extra = extra; + } + + + public NodeSO icon(String icon) { + + this.icon = icon; + return this; + } + + /** + * Get icon + * @return icon + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getIcon() { + return icon; + } + + + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIcon(String icon) { + this.icon = icon; + } + + + public NodeSO id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public NodeSO isGhostNode(Boolean isGhostNode) { + + this.isGhostNode = isGhostNode; + return this; + } + + /** + * Get isGhostNode + * @return isGhostNode + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_GHOST_NODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsGhostNode() { + return isGhostNode; + } + + + @JsonProperty(JSON_PROPERTY_IS_GHOST_NODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsGhostNode(Boolean isGhostNode) { + this.isGhostNode = isGhostNode; + } + + + public NodeSO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public NodeSO nodeFavorite(Boolean nodeFavorite) { + + this.nodeFavorite = nodeFavorite; + return this; + } + + /** + * Get nodeFavorite + * @return nodeFavorite + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NODE_FAVORITE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getNodeFavorite() { + return nodeFavorite; + } + + + @JsonProperty(JSON_PROPERTY_NODE_FAVORITE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNodeFavorite(Boolean nodeFavorite) { + this.nodeFavorite = nodeFavorite; + } + + + public NodeSO nodePermitSet(Boolean nodePermitSet) { + + this.nodePermitSet = nodePermitSet; + return this; + } + + /** + * Get nodePermitSet + * @return nodePermitSet + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NODE_PERMIT_SET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getNodePermitSet() { + return nodePermitSet; + } + + + @JsonProperty(JSON_PROPERTY_NODE_PERMIT_SET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNodePermitSet(Boolean nodePermitSet) { + this.nodePermitSet = nodePermitSet; + } + + + public NodeSO nodeShared(Boolean nodeShared) { + + this.nodeShared = nodeShared; + return this; + } + + /** + * Get nodeShared + * @return nodeShared + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NODE_SHARED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getNodeShared() { + return nodeShared; + } + + + @JsonProperty(JSON_PROPERTY_NODE_SHARED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNodeShared(Boolean nodeShared) { + this.nodeShared = nodeShared; + } + + + public NodeSO parentId(String parentId) { + + this.parentId = parentId; + return this; + } + + /** + * Get parentId + * @return parentId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PARENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getParentId() { + return parentId; + } + + + @JsonProperty(JSON_PROPERTY_PARENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setParentId(String parentId) { + this.parentId = parentId; + } + + + public NodeSO permissions(NodePermissionStateSO permissions) { + + this.permissions = permissions; + return this; + } + + /** + * Get permissions + * @return permissions + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PERMISSIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public NodePermissionStateSO getPermissions() { + return permissions; + } + + + @JsonProperty(JSON_PROPERTY_PERMISSIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPermissions(NodePermissionStateSO permissions) { + this.permissions = permissions; + } + + + public NodeSO revision(Integer revision) { + + this.revision = revision; + return this; + } + + /** + * Get revision + * minimum: 0 + * @return revision + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_REVISION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getRevision() { + return revision; + } + + + @JsonProperty(JSON_PROPERTY_REVISION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRevision(Integer revision) { + this.revision = revision; + } + + + public NodeSO role(String role) { + + this.role = role; + return this; + } + + /** + * Get role + * @return role + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ROLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRole() { + return role; + } + + + @JsonProperty(JSON_PROPERTY_ROLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRole(String role) { + this.role = role; + } + + + public NodeSO spaceId(String spaceId) { + + this.spaceId = spaceId; + return this; + } + + /** + * Get spaceId + * @return spaceId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getSpaceId() { + return spaceId; + } + + + @JsonProperty(JSON_PROPERTY_SPACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeSO nodeSO = (NodeSO) o; + return Objects.equals(this.activeView, nodeSO.activeView) && + Objects.equals(this.description, nodeSO.description) && + Objects.equals(this.extra, nodeSO.extra) && + Objects.equals(this.icon, nodeSO.icon) && + Objects.equals(this.id, nodeSO.id) && + Objects.equals(this.isGhostNode, nodeSO.isGhostNode) && + Objects.equals(this.name, nodeSO.name) && + Objects.equals(this.nodeFavorite, nodeSO.nodeFavorite) && + Objects.equals(this.nodePermitSet, nodeSO.nodePermitSet) && + Objects.equals(this.nodeShared, nodeSO.nodeShared) && + Objects.equals(this.parentId, nodeSO.parentId) && + Objects.equals(this.permissions, nodeSO.permissions) && + Objects.equals(this.revision, nodeSO.revision) && + Objects.equals(this.role, nodeSO.role) && + Objects.equals(this.spaceId, nodeSO.spaceId); + } + + @Override + public int hashCode() { + return Objects.hash(activeView, description, extra, icon, id, isGhostNode, name, nodeFavorite, nodePermitSet, nodeShared, parentId, permissions, revision, role, spaceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeSO {\n"); + sb.append(" activeView: ").append(toIndentedString(activeView)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); + sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" isGhostNode: ").append(toIndentedString(isGhostNode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nodeFavorite: ").append(toIndentedString(nodeFavorite)).append("\n"); + sb.append(" nodePermitSet: ").append(toIndentedString(nodePermitSet)).append("\n"); + sb.append(" nodeShared: ").append(toIndentedString(nodeShared)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" spaceId: ").append(toIndentedString(spaceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSimplePO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSimplePO.java new file mode 100644 index 0000000000..bd6d17fa6c --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/NodeSimplePO.java @@ -0,0 +1,167 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * NodeSimplePO + */ +@JsonPropertyOrder({ + NodeSimplePO.JSON_PROPERTY_ICON, + NodeSimplePO.JSON_PROPERTY_NODE_ID, + NodeSimplePO.JSON_PROPERTY_NODE_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NodeSimplePO { + public static final String JSON_PROPERTY_ICON = "icon"; + private String icon; + + public static final String JSON_PROPERTY_NODE_ID = "nodeId"; + private String nodeId; + + public static final String JSON_PROPERTY_NODE_NAME = "nodeName"; + private String nodeName; + + public NodeSimplePO() { + } + + public NodeSimplePO icon(String icon) { + + this.icon = icon; + return this; + } + + /** + * Get icon + * @return icon + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIcon() { + return icon; + } + + + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIcon(String icon) { + this.icon = icon; + } + + + public NodeSimplePO nodeId(String nodeId) { + + this.nodeId = nodeId; + return this; + } + + /** + * Get nodeId + * @return nodeId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NODE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getNodeId() { + return nodeId; + } + + + @JsonProperty(JSON_PROPERTY_NODE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + + public NodeSimplePO nodeName(String nodeName) { + + this.nodeName = nodeName; + return this; + } + + /** + * Get nodeName + * @return nodeName + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NODE_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getNodeName() { + return nodeName; + } + + + @JsonProperty(JSON_PROPERTY_NODE_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NodeSimplePO nodeSimplePO = (NodeSimplePO) o; + return Objects.equals(this.icon, nodeSimplePO.icon) && + Objects.equals(this.nodeId, nodeSimplePO.nodeId) && + Objects.equals(this.nodeName, nodeSimplePO.nodeName); + } + + @Override + public int hashCode() { + return Objects.hash(icon, nodeId, nodeName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NodeSimplePO {\n"); + sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/OrderEnum.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/OrderEnum.java similarity index 50% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/OrderEnum.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/OrderEnum.java index 1940e09d41..fff1138fd9 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/OrderEnum.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/OrderEnum.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets OrderEnum */ -@JsonAdapter(OrderEnum.Adapter.class) public enum OrderEnum { DESC("desc"), @@ -38,6 +36,7 @@ public enum OrderEnum { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -47,6 +46,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static OrderEnum fromValue(String value) { for (OrderEnum b : OrderEnum.values()) { if (b.value.equals(value)) { @@ -55,18 +55,5 @@ public static OrderEnum fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final OrderEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public OrderEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return OrderEnum.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordAlarm.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordAlarm.java new file mode 100644 index 0000000000..8ec922b786 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordAlarm.java @@ -0,0 +1,308 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AlarmUser; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RecordAlarm + */ +@JsonPropertyOrder({ + RecordAlarm.JSON_PROPERTY_ALARM_AT, + RecordAlarm.JSON_PROPERTY_ALARM_USERS, + RecordAlarm.JSON_PROPERTY_FIELD_ID, + RecordAlarm.JSON_PROPERTY_ID, + RecordAlarm.JSON_PROPERTY_RECORD_ID, + RecordAlarm.JSON_PROPERTY_SUBTRACT, + RecordAlarm.JSON_PROPERTY_TIME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RecordAlarm { + public static final String JSON_PROPERTY_ALARM_AT = "alarmAt"; + private Long alarmAt; + + public static final String JSON_PROPERTY_ALARM_USERS = "alarmUsers"; + private List alarmUsers; + + public static final String JSON_PROPERTY_FIELD_ID = "fieldId"; + private String fieldId; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_RECORD_ID = "recordId"; + private String recordId; + + public static final String JSON_PROPERTY_SUBTRACT = "subtract"; + private String subtract; + + public static final String JSON_PROPERTY_TIME = "time"; + private String time; + + public RecordAlarm() { + } + + public RecordAlarm alarmAt(Long alarmAt) { + + this.alarmAt = alarmAt; + return this; + } + + /** + * Get alarmAt + * minimum: 0 + * @return alarmAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALARM_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getAlarmAt() { + return alarmAt; + } + + + @JsonProperty(JSON_PROPERTY_ALARM_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlarmAt(Long alarmAt) { + this.alarmAt = alarmAt; + } + + + public RecordAlarm alarmUsers(List alarmUsers) { + + this.alarmUsers = alarmUsers; + return this; + } + + public RecordAlarm addAlarmUsersItem(AlarmUser alarmUsersItem) { + if (this.alarmUsers == null) { + this.alarmUsers = new ArrayList<>(); + } + this.alarmUsers.add(alarmUsersItem); + return this; + } + + /** + * Get alarmUsers + * @return alarmUsers + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALARM_USERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getAlarmUsers() { + return alarmUsers; + } + + + @JsonProperty(JSON_PROPERTY_ALARM_USERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlarmUsers(List alarmUsers) { + this.alarmUsers = alarmUsers; + } + + + public RecordAlarm fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + + public RecordAlarm id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public RecordAlarm recordId(String recordId) { + + this.recordId = recordId; + return this; + } + + /** + * Get recordId + * @return recordId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordId() { + return recordId; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + + public RecordAlarm subtract(String subtract) { + + this.subtract = subtract; + return this; + } + + /** + * Get subtract + * @return subtract + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBTRACT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSubtract() { + return subtract; + } + + + @JsonProperty(JSON_PROPERTY_SUBTRACT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSubtract(String subtract) { + this.subtract = subtract; + } + + + public RecordAlarm time(String time) { + + this.time = time; + return this; + } + + /** + * Get time + * @return time + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTime() { + return time; + } + + + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTime(String time) { + this.time = time; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecordAlarm recordAlarm = (RecordAlarm) o; + return Objects.equals(this.alarmAt, recordAlarm.alarmAt) && + Objects.equals(this.alarmUsers, recordAlarm.alarmUsers) && + Objects.equals(this.fieldId, recordAlarm.fieldId) && + Objects.equals(this.id, recordAlarm.id) && + Objects.equals(this.recordId, recordAlarm.recordId) && + Objects.equals(this.subtract, recordAlarm.subtract) && + Objects.equals(this.time, recordAlarm.time); + } + + @Override + public int hashCode() { + return Objects.hash(alarmAt, alarmUsers, fieldId, id, recordId, subtract, time); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecordAlarm {\n"); + sb.append(" alarmAt: ").append(toIndentedString(alarmAt)).append("\n"); + sb.append(" alarmUsers: ").append(toIndentedString(alarmUsers)).append("\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); + sb.append(" subtract: ").append(toIndentedString(subtract)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordDTO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordDTO.java new file mode 100644 index 0000000000..01252b8cbd --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordDTO.java @@ -0,0 +1,208 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RecordDTO + */ +@JsonPropertyOrder({ + RecordDTO.JSON_PROPERTY_CREATED_AT, + RecordDTO.JSON_PROPERTY_FIELDS, + RecordDTO.JSON_PROPERTY_RECORD_ID, + RecordDTO.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RecordDTO { + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_FIELDS = "fields"; + private Map fields = new HashMap<>(); + + public static final String JSON_PROPERTY_RECORD_ID = "recordId"; + private String recordId; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + private Long updatedAt; + + public RecordDTO() { + } + + public RecordDTO createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * minimum: 0 + * @return createdAt + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public RecordDTO fields(Map fields) { + + this.fields = fields; + return this; + } + + public RecordDTO putFieldsItem(String key, Object fieldsItem) { + this.fields.put(key, fieldsItem); + return this; + } + + /** + * Get fields + * @return fields + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Map getFields() { + return fields; + } + + + @JsonProperty(JSON_PROPERTY_FIELDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFields(Map fields) { + this.fields = fields; + } + + + public RecordDTO recordId(String recordId) { + + this.recordId = recordId; + return this; + } + + /** + * Get recordId + * @return recordId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRecordId() { + return recordId; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + + public RecordDTO updatedAt(Long updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * minimum: 0 + * @return updatedAt + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecordDTO recordDTO = (RecordDTO) o; + return Objects.equals(this.createdAt, recordDTO.createdAt) && + Objects.equals(this.fields, recordDTO.fields) && + Objects.equals(this.recordId, recordDTO.recordId) && + Objects.equals(this.updatedAt, recordDTO.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, fields, recordId, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecordDTO {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordMeta.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordMeta.java new file mode 100644 index 0000000000..95220cd233 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordMeta.java @@ -0,0 +1,285 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.FieldExtraMapValue; +import com.apitable.starter.databus.client.model.FieldUpdatedValue; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RecordMeta + */ +@JsonPropertyOrder({ + RecordMeta.JSON_PROPERTY_CREATED_AT, + RecordMeta.JSON_PROPERTY_CREATED_BY, + RecordMeta.JSON_PROPERTY_FIELD_EXTRA_MAP, + RecordMeta.JSON_PROPERTY_FIELD_UPDATED_MAP, + RecordMeta.JSON_PROPERTY_UPDATED_AT, + RecordMeta.JSON_PROPERTY_UPDATED_BY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RecordMeta { + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; + private String createdBy; + + public static final String JSON_PROPERTY_FIELD_EXTRA_MAP = "fieldExtraMap"; + private Map fieldExtraMap; + + public static final String JSON_PROPERTY_FIELD_UPDATED_MAP = "fieldUpdatedMap"; + private Map fieldUpdatedMap; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + private Long updatedAt; + + public static final String JSON_PROPERTY_UPDATED_BY = "updatedBy"; + private String updatedBy; + + public RecordMeta() { + } + + public RecordMeta createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * minimum: 0 + * @return createdAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public RecordMeta createdBy(String createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedBy() { + return createdBy; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + + public RecordMeta fieldExtraMap(Map fieldExtraMap) { + + this.fieldExtraMap = fieldExtraMap; + return this; + } + + public RecordMeta putFieldExtraMapItem(String key, FieldExtraMapValue fieldExtraMapItem) { + if (this.fieldExtraMap == null) { + this.fieldExtraMap = new HashMap<>(); + } + this.fieldExtraMap.put(key, fieldExtraMapItem); + return this; + } + + /** + * Get fieldExtraMap + * @return fieldExtraMap + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_EXTRA_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getFieldExtraMap() { + return fieldExtraMap; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_EXTRA_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldExtraMap(Map fieldExtraMap) { + this.fieldExtraMap = fieldExtraMap; + } + + + public RecordMeta fieldUpdatedMap(Map fieldUpdatedMap) { + + this.fieldUpdatedMap = fieldUpdatedMap; + return this; + } + + public RecordMeta putFieldUpdatedMapItem(String key, FieldUpdatedValue fieldUpdatedMapItem) { + if (this.fieldUpdatedMap == null) { + this.fieldUpdatedMap = new HashMap<>(); + } + this.fieldUpdatedMap.put(key, fieldUpdatedMapItem); + return this; + } + + /** + * Get fieldUpdatedMap + * @return fieldUpdatedMap + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FIELD_UPDATED_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getFieldUpdatedMap() { + return fieldUpdatedMap; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_UPDATED_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldUpdatedMap(Map fieldUpdatedMap) { + this.fieldUpdatedMap = fieldUpdatedMap; + } + + + public RecordMeta updatedAt(Long updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * minimum: 0 + * @return updatedAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + + public RecordMeta updatedBy(String updatedBy) { + + this.updatedBy = updatedBy; + return this; + } + + /** + * Get updatedBy + * @return updatedBy + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedBy() { + return updatedBy; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecordMeta recordMeta = (RecordMeta) o; + return Objects.equals(this.createdAt, recordMeta.createdAt) && + Objects.equals(this.createdBy, recordMeta.createdBy) && + Objects.equals(this.fieldExtraMap, recordMeta.fieldExtraMap) && + Objects.equals(this.fieldUpdatedMap, recordMeta.fieldUpdatedMap) && + Objects.equals(this.updatedAt, recordMeta.updatedAt) && + Objects.equals(this.updatedBy, recordMeta.updatedBy); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, createdBy, fieldExtraMap, fieldUpdatedMap, updatedAt, updatedBy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecordMeta {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" fieldExtraMap: ").append(toIndentedString(fieldExtraMap)).append("\n"); + sb.append(" fieldUpdatedMap: ").append(toIndentedString(fieldUpdatedMap)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordSO.java new file mode 100644 index 0000000000..0fd7a68ba5 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordSO.java @@ -0,0 +1,349 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.Comments; +import com.apitable.starter.databus.client.model.RecordMeta; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RecordSO + */ +@JsonPropertyOrder({ + RecordSO.JSON_PROPERTY_COMMENT_COUNT, + RecordSO.JSON_PROPERTY_COMMENTS, + RecordSO.JSON_PROPERTY_CREATED_AT, + RecordSO.JSON_PROPERTY_DATA, + RecordSO.JSON_PROPERTY_ID, + RecordSO.JSON_PROPERTY_RECORD_META, + RecordSO.JSON_PROPERTY_REVISION_HISTORY, + RecordSO.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RecordSO { + public static final String JSON_PROPERTY_COMMENT_COUNT = "commentCount"; + private Integer commentCount; + + public static final String JSON_PROPERTY_COMMENTS = "comments"; + private List comments; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private Long createdAt; + + public static final String JSON_PROPERTY_DATA = "data"; + private Object data = null; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_RECORD_META = "recordMeta"; + private RecordMeta recordMeta; + + public static final String JSON_PROPERTY_REVISION_HISTORY = "revisionHistory"; + private List revisionHistory; + + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; + private Long updatedAt; + + public RecordSO() { + } + + public RecordSO commentCount(Integer commentCount) { + + this.commentCount = commentCount; + return this; + } + + /** + * Get commentCount + * minimum: 0 + * @return commentCount + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMMENT_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCommentCount() { + return commentCount; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_COUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCommentCount(Integer commentCount) { + this.commentCount = commentCount; + } + + + public RecordSO comments(List comments) { + + this.comments = comments; + return this; + } + + public RecordSO addCommentsItem(Comments commentsItem) { + if (this.comments == null) { + this.comments = new ArrayList<>(); + } + this.comments.add(commentsItem); + return this; + } + + /** + * Get comments + * @return comments + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COMMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getComments() { + return comments; + } + + + @JsonProperty(JSON_PROPERTY_COMMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComments(List comments) { + this.comments = comments; + } + + + public RecordSO createdAt(Long createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(Long createdAt) { + this.createdAt = createdAt; + } + + + public RecordSO data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Object getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(Object data) { + this.data = data; + } + + + public RecordSO id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public RecordSO recordMeta(RecordMeta recordMeta) { + + this.recordMeta = recordMeta; + return this; + } + + /** + * Get recordMeta + * @return recordMeta + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RECORD_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RecordMeta getRecordMeta() { + return recordMeta; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordMeta(RecordMeta recordMeta) { + this.recordMeta = recordMeta; + } + + + public RecordSO revisionHistory(List revisionHistory) { + + this.revisionHistory = revisionHistory; + return this; + } + + public RecordSO addRevisionHistoryItem(Integer revisionHistoryItem) { + if (this.revisionHistory == null) { + this.revisionHistory = new ArrayList<>(); + } + this.revisionHistory.add(revisionHistoryItem); + return this; + } + + /** + * Get revisionHistory + * @return revisionHistory + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REVISION_HISTORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRevisionHistory() { + return revisionHistory; + } + + + @JsonProperty(JSON_PROPERTY_REVISION_HISTORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRevisionHistory(List revisionHistory) { + this.revisionHistory = revisionHistory; + } + + + public RecordSO updatedAt(Long updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(Long updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecordSO recordSO = (RecordSO) o; + return Objects.equals(this.commentCount, recordSO.commentCount) && + Objects.equals(this.comments, recordSO.comments) && + Objects.equals(this.createdAt, recordSO.createdAt) && + Objects.equals(this.data, recordSO.data) && + Objects.equals(this.id, recordSO.id) && + Objects.equals(this.recordMeta, recordSO.recordMeta) && + Objects.equals(this.revisionHistory, recordSO.revisionHistory) && + Objects.equals(this.updatedAt, recordSO.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(commentCount, comments, createdAt, data, id, recordMeta, revisionHistory, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecordSO {\n"); + sb.append(" commentCount: ").append(toIndentedString(commentCount)).append("\n"); + sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordMeta: ").append(toIndentedString(recordMeta)).append("\n"); + sb.append(" revisionHistory: ").append(toIndentedString(revisionHistory)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordUpdateRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordUpdateRO.java new file mode 100644 index 0000000000..ebdf66e22a --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RecordUpdateRO.java @@ -0,0 +1,148 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.FieldKeyEnum; +import com.apitable.starter.databus.client.model.FieldUpdateRO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * RecordUpdateRO + */ +@JsonPropertyOrder({ + RecordUpdateRO.JSON_PROPERTY_FIELD_KEY, + RecordUpdateRO.JSON_PROPERTY_RECORDS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RecordUpdateRO { + public static final String JSON_PROPERTY_FIELD_KEY = "fieldKey"; + private FieldKeyEnum fieldKey; + + public static final String JSON_PROPERTY_RECORDS = "records"; + private List records = new ArrayList<>(); + + public RecordUpdateRO() { + } + + public RecordUpdateRO fieldKey(FieldKeyEnum fieldKey) { + + this.fieldKey = fieldKey; + return this; + } + + /** + * Get fieldKey + * @return fieldKey + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELD_KEY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public FieldKeyEnum getFieldKey() { + return fieldKey; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_KEY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFieldKey(FieldKeyEnum fieldKey) { + this.fieldKey = fieldKey; + } + + + public RecordUpdateRO records(List records) { + + this.records = records; + return this; + } + + public RecordUpdateRO addRecordsItem(FieldUpdateRO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + /** + * Get records + * @return records + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getRecords() { + return records; + } + + + @JsonProperty(JSON_PROPERTY_RECORDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecordUpdateRO recordUpdateRO = (RecordUpdateRO) o; + return Objects.equals(this.fieldKey, recordUpdateRO.fieldKey) && + Objects.equals(this.records, recordUpdateRO.records); + } + + @Override + public int hashCode() { + return Objects.hash(fieldKey, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecordUpdateRO {\n"); + sb.append(" fieldKey: ").append(toIndentedString(fieldKey)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/RollUpFuncType.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RollUpFuncType.java similarity index 58% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/RollUpFuncType.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RollUpFuncType.java index 41911ed9eb..ab317258ef 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/RollUpFuncType.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/RollUpFuncType.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets RollUpFuncType */ -@JsonAdapter(RollUpFuncType.Adapter.class) public enum RollUpFuncType { VALUES("VALUES"), @@ -64,6 +62,7 @@ public enum RollUpFuncType { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -73,6 +72,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static RollUpFuncType fromValue(String value) { for (RollUpFuncType b : RollUpFuncType.values()) { if (b.value.equals(value)) { @@ -81,18 +81,5 @@ public static RollUpFuncType fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final RollUpFuncType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public RollUpFuncType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return RollUpFuncType.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleSelectProperty.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleSelectProperty.java new file mode 100644 index 0000000000..e8998e4a63 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleSelectProperty.java @@ -0,0 +1,167 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * SingleSelectProperty + */ +@JsonPropertyOrder({ + SingleSelectProperty.JSON_PROPERTY_COLOR, + SingleSelectProperty.JSON_PROPERTY_ID, + SingleSelectProperty.JSON_PROPERTY_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SingleSelectProperty { + public static final String JSON_PROPERTY_COLOR = "color"; + private Integer color; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public SingleSelectProperty() { + } + + public SingleSelectProperty color(Integer color) { + + this.color = color; + return this; + } + + /** + * Get color + * @return color + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getColor() { + return color; + } + + + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setColor(Integer color) { + this.color = color; + } + + + public SingleSelectProperty id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public SingleSelectProperty name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SingleSelectProperty singleSelectProperty = (SingleSelectProperty) o; + return Objects.equals(this.color, singleSelectProperty.color) && + Objects.equals(this.id, singleSelectProperty.id) && + Objects.equals(this.name, singleSelectProperty.name); + } + + @Override + public int hashCode() { + return Objects.hash(color, id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SingleSelectProperty {\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleTextFieldPropertySO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleTextFieldPropertySO.java new file mode 100644 index 0000000000..1b616a9648 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SingleTextFieldPropertySO.java @@ -0,0 +1,103 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * SingleTextFieldPropertySO + */ +@JsonPropertyOrder({ + SingleTextFieldPropertySO.JSON_PROPERTY_DEFAULT_VALUE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SingleTextFieldPropertySO { + public static final String JSON_PROPERTY_DEFAULT_VALUE = "defaultValue"; + private String defaultValue; + + public SingleTextFieldPropertySO() { + } + + public SingleTextFieldPropertySO defaultValue(String defaultValue) { + + this.defaultValue = defaultValue; + return this; + } + + /** + * Get defaultValue + * @return defaultValue + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDefaultValue() { + return defaultValue; + } + + + @JsonProperty(JSON_PROPERTY_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SingleTextFieldPropertySO singleTextFieldPropertySO = (SingleTextFieldPropertySO) o; + return Objects.equals(this.defaultValue, singleTextFieldPropertySO.defaultValue); + } + + @Override + public int hashCode() { + return Objects.hash(defaultValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SingleTextFieldPropertySO {\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SortRO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SortRO.java new file mode 100644 index 0000000000..bcbe32c3d4 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SortRO.java @@ -0,0 +1,136 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.OrderEnum; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * SortRO + */ +@JsonPropertyOrder({ + SortRO.JSON_PROPERTY_FIELD, + SortRO.JSON_PROPERTY_ORDER +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SortRO { + public static final String JSON_PROPERTY_FIELD = "field"; + private String field; + + public static final String JSON_PROPERTY_ORDER = "order"; + private OrderEnum order; + + public SortRO() { + } + + public SortRO field(String field) { + + this.field = field; + return this; + } + + /** + * Get field + * @return field + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getField() { + return field; + } + + + @JsonProperty(JSON_PROPERTY_FIELD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setField(String field) { + this.field = field; + } + + + public SortRO order(OrderEnum order) { + + this.order = order; + return this; + } + + /** + * Get order + * @return order + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ORDER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public OrderEnum getOrder() { + return order; + } + + + @JsonProperty(JSON_PROPERTY_ORDER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setOrder(OrderEnum order) { + this.order = order; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SortRO sortRO = (SortRO) o; + return Objects.equals(this.field, sortRO.field) && + Objects.equals(this.order, sortRO.order); + } + + @Override + public int hashCode() { + return Objects.hash(field, order); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SortRO {\n"); + sb.append(" field: ").append(toIndentedString(field)).append("\n"); + sb.append(" order: ").append(toIndentedString(order)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/SymbolAlign.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SymbolAlign.java similarity index 51% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/SymbolAlign.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SymbolAlign.java index 8736746147..22ce0ebb78 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/SymbolAlign.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/SymbolAlign.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,21 +11,19 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.google.gson.annotations.SerializedName; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; /** * Gets or Sets SymbolAlign */ -@JsonAdapter(SymbolAlign.Adapter.class) public enum SymbolAlign { DEFAULT("Default"), @@ -40,6 +38,7 @@ public enum SymbolAlign { this.value = value; } + @JsonValue public String getValue() { return value; } @@ -49,6 +48,7 @@ public String toString() { return String.valueOf(value); } + @JsonCreator public static SymbolAlign fromValue(String value) { for (SymbolAlign b : SymbolAlign.values()) { if (b.value.equals(value)) { @@ -57,18 +57,5 @@ public static SymbolAlign fromValue(String value) { } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SymbolAlign enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SymbolAlign read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SymbolAlign.fromValue(value); - } - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/TimeFormat.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/TimeFormat.java new file mode 100644 index 0000000000..cd8c0bf06a --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/TimeFormat.java @@ -0,0 +1,59 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets TimeFormat + */ +public enum TimeFormat { + + HHMM("HHmm"), + + HHMM2("Hhmm"); + + private String value; + + TimeFormat(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TimeFormat fromValue(String value) { + for (TimeFormat b : TimeFormat.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/UnitSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/UnitSO.java new file mode 100644 index 0000000000..ed8bac0765 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/UnitSO.java @@ -0,0 +1,490 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * UnitSO + */ +@JsonPropertyOrder({ + UnitSO.JSON_PROPERTY_AVATAR, + UnitSO.JSON_PROPERTY_AVATAR_COLOR, + UnitSO.JSON_PROPERTY_IS_ACTIVE, + UnitSO.JSON_PROPERTY_IS_DELETED, + UnitSO.JSON_PROPERTY_IS_MEMBER_NAME_MODIFIED, + UnitSO.JSON_PROPERTY_IS_NICK_NAME_MODIFIED, + UnitSO.JSON_PROPERTY_NAME, + UnitSO.JSON_PROPERTY_NICK_NAME, + UnitSO.JSON_PROPERTY_ORIGINAL_UNIT_ID, + UnitSO.JSON_PROPERTY_TYPE, + UnitSO.JSON_PROPERTY_UNIT_ID, + UnitSO.JSON_PROPERTY_USER_ID, + UnitSO.JSON_PROPERTY_UUID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UnitSO { + public static final String JSON_PROPERTY_AVATAR = "avatar"; + private String avatar; + + public static final String JSON_PROPERTY_AVATAR_COLOR = "avatarColor"; + private Integer avatarColor; + + public static final String JSON_PROPERTY_IS_ACTIVE = "isActive"; + private Integer isActive; + + public static final String JSON_PROPERTY_IS_DELETED = "isDeleted"; + private Integer isDeleted; + + public static final String JSON_PROPERTY_IS_MEMBER_NAME_MODIFIED = "isMemberNameModified"; + private Boolean isMemberNameModified; + + public static final String JSON_PROPERTY_IS_NICK_NAME_MODIFIED = "isNickNameModified"; + private Boolean isNickNameModified; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_NICK_NAME = "nickName"; + private String nickName; + + public static final String JSON_PROPERTY_ORIGINAL_UNIT_ID = "originalUnitId"; + private String originalUnitId; + + public static final String JSON_PROPERTY_TYPE = "type"; + private Integer type; + + public static final String JSON_PROPERTY_UNIT_ID = "unitId"; + private String unitId; + + public static final String JSON_PROPERTY_USER_ID = "userId"; + private String userId; + + public static final String JSON_PROPERTY_UUID = "uuid"; + private String uuid; + + public UnitSO() { + } + + public UnitSO avatar(String avatar) { + + this.avatar = avatar; + return this; + } + + /** + * Get avatar + * @return avatar + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AVATAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getAvatar() { + return avatar; + } + + + @JsonProperty(JSON_PROPERTY_AVATAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + + public UnitSO avatarColor(Integer avatarColor) { + + this.avatarColor = avatarColor; + return this; + } + + /** + * Get avatarColor + * @return avatarColor + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AVATAR_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getAvatarColor() { + return avatarColor; + } + + + @JsonProperty(JSON_PROPERTY_AVATAR_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAvatarColor(Integer avatarColor) { + this.avatarColor = avatarColor; + } + + + public UnitSO isActive(Integer isActive) { + + this.isActive = isActive; + return this; + } + + /** + * Get isActive + * minimum: 0 + * @return isActive + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getIsActive() { + return isActive; + } + + + @JsonProperty(JSON_PROPERTY_IS_ACTIVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsActive(Integer isActive) { + this.isActive = isActive; + } + + + public UnitSO isDeleted(Integer isDeleted) { + + this.isDeleted = isDeleted; + return this; + } + + /** + * Get isDeleted + * minimum: 0 + * @return isDeleted + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getIsDeleted() { + return isDeleted; + } + + + @JsonProperty(JSON_PROPERTY_IS_DELETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsDeleted(Integer isDeleted) { + this.isDeleted = isDeleted; + } + + + public UnitSO isMemberNameModified(Boolean isMemberNameModified) { + + this.isMemberNameModified = isMemberNameModified; + return this; + } + + /** + * Get isMemberNameModified + * @return isMemberNameModified + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_MEMBER_NAME_MODIFIED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsMemberNameModified() { + return isMemberNameModified; + } + + + @JsonProperty(JSON_PROPERTY_IS_MEMBER_NAME_MODIFIED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsMemberNameModified(Boolean isMemberNameModified) { + this.isMemberNameModified = isMemberNameModified; + } + + + public UnitSO isNickNameModified(Boolean isNickNameModified) { + + this.isNickNameModified = isNickNameModified; + return this; + } + + /** + * Get isNickNameModified + * @return isNickNameModified + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_NICK_NAME_MODIFIED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsNickNameModified() { + return isNickNameModified; + } + + + @JsonProperty(JSON_PROPERTY_IS_NICK_NAME_MODIFIED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsNickNameModified(Boolean isNickNameModified) { + this.isNickNameModified = isNickNameModified; + } + + + public UnitSO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public UnitSO nickName(String nickName) { + + this.nickName = nickName; + return this; + } + + /** + * Get nickName + * @return nickName + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NICK_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getNickName() { + return nickName; + } + + + @JsonProperty(JSON_PROPERTY_NICK_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNickName(String nickName) { + this.nickName = nickName; + } + + + public UnitSO originalUnitId(String originalUnitId) { + + this.originalUnitId = originalUnitId; + return this; + } + + /** + * Get originalUnitId + * @return originalUnitId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ORIGINAL_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOriginalUnitId() { + return originalUnitId; + } + + + @JsonProperty(JSON_PROPERTY_ORIGINAL_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOriginalUnitId(String originalUnitId) { + this.originalUnitId = originalUnitId; + } + + + public UnitSO type(Integer type) { + + this.type = type; + return this; + } + + /** + * Get type + * minimum: 0 + * @return type + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(Integer type) { + this.type = type; + } + + + public UnitSO unitId(String unitId) { + + this.unitId = unitId; + return this; + } + + /** + * Get unitId + * @return unitId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUnitId() { + return unitId; + } + + + @JsonProperty(JSON_PROPERTY_UNIT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUnitId(String unitId) { + this.unitId = unitId; + } + + + public UnitSO userId(String userId) { + + this.userId = userId; + return this; + } + + /** + * Get userId + * @return userId + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(String userId) { + this.userId = userId; + } + + + public UnitSO uuid(String uuid) { + + this.uuid = uuid; + return this; + } + + /** + * Get uuid + * @return uuid + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUuid() { + return uuid; + } + + + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUuid(String uuid) { + this.uuid = uuid; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnitSO unitSO = (UnitSO) o; + return Objects.equals(this.avatar, unitSO.avatar) && + Objects.equals(this.avatarColor, unitSO.avatarColor) && + Objects.equals(this.isActive, unitSO.isActive) && + Objects.equals(this.isDeleted, unitSO.isDeleted) && + Objects.equals(this.isMemberNameModified, unitSO.isMemberNameModified) && + Objects.equals(this.isNickNameModified, unitSO.isNickNameModified) && + Objects.equals(this.name, unitSO.name) && + Objects.equals(this.nickName, unitSO.nickName) && + Objects.equals(this.originalUnitId, unitSO.originalUnitId) && + Objects.equals(this.type, unitSO.type) && + Objects.equals(this.unitId, unitSO.unitId) && + Objects.equals(this.userId, unitSO.userId) && + Objects.equals(this.uuid, unitSO.uuid); + } + + @Override + public int hashCode() { + return Objects.hash(avatar, avatarColor, isActive, isDeleted, isMemberNameModified, isNickNameModified, name, nickName, originalUnitId, type, unitId, userId, uuid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnitSO {\n"); + sb.append(" avatar: ").append(toIndentedString(avatar)).append("\n"); + sb.append(" avatarColor: ").append(toIndentedString(avatarColor)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n"); + sb.append(" isMemberNameModified: ").append(toIndentedString(isMemberNameModified)).append("\n"); + sb.append(" isNickNameModified: ").append(toIndentedString(isNickNameModified)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nickName: ").append(toIndentedString(nickName)).append("\n"); + sb.append(" originalUnitId: ").append(toIndentedString(originalUnitId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" unitId: ").append(toIndentedString(unitId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewColumnSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewColumnSO.java new file mode 100644 index 0000000000..7dbccd446f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewColumnSO.java @@ -0,0 +1,295 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ViewColumnSO + */ +@JsonPropertyOrder({ + ViewColumnSO.JSON_PROPERTY_FIELD_ID, + ViewColumnSO.JSON_PROPERTY_HIDDEN, + ViewColumnSO.JSON_PROPERTY_HIDDEN_IN_CALENDAR, + ViewColumnSO.JSON_PROPERTY_HIDDEN_IN_GANTT, + ViewColumnSO.JSON_PROPERTY_HIDDEN_IN_ORG_CHART, + ViewColumnSO.JSON_PROPERTY_STAT_TYPE, + ViewColumnSO.JSON_PROPERTY_WIDTH +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ViewColumnSO { + public static final String JSON_PROPERTY_FIELD_ID = "fieldId"; + private String fieldId; + + public static final String JSON_PROPERTY_HIDDEN = "hidden"; + private Boolean hidden; + + public static final String JSON_PROPERTY_HIDDEN_IN_CALENDAR = "hiddenInCalendar"; + private Boolean hiddenInCalendar; + + public static final String JSON_PROPERTY_HIDDEN_IN_GANTT = "hiddenInGantt"; + private Boolean hiddenInGantt; + + public static final String JSON_PROPERTY_HIDDEN_IN_ORG_CHART = "hiddenInOrgChart"; + private Boolean hiddenInOrgChart; + + public static final String JSON_PROPERTY_STAT_TYPE = "statType"; + private Integer statType; + + public static final String JSON_PROPERTY_WIDTH = "width"; + private Double width; + + public ViewColumnSO() { + } + + public ViewColumnSO fieldId(String fieldId) { + + this.fieldId = fieldId; + return this; + } + + /** + * Get fieldId + * @return fieldId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getFieldId() { + return fieldId; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFieldId(String fieldId) { + this.fieldId = fieldId; + } + + + public ViewColumnSO hidden(Boolean hidden) { + + this.hidden = hidden; + return this; + } + + /** + * Get hidden + * @return hidden + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getHidden() { + return hidden; + } + + + @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + + public ViewColumnSO hiddenInCalendar(Boolean hiddenInCalendar) { + + this.hiddenInCalendar = hiddenInCalendar; + return this; + } + + /** + * Get hiddenInCalendar + * @return hiddenInCalendar + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN_IN_CALENDAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getHiddenInCalendar() { + return hiddenInCalendar; + } + + + @JsonProperty(JSON_PROPERTY_HIDDEN_IN_CALENDAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHiddenInCalendar(Boolean hiddenInCalendar) { + this.hiddenInCalendar = hiddenInCalendar; + } + + + public ViewColumnSO hiddenInGantt(Boolean hiddenInGantt) { + + this.hiddenInGantt = hiddenInGantt; + return this; + } + + /** + * Get hiddenInGantt + * @return hiddenInGantt + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN_IN_GANTT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getHiddenInGantt() { + return hiddenInGantt; + } + + + @JsonProperty(JSON_PROPERTY_HIDDEN_IN_GANTT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHiddenInGantt(Boolean hiddenInGantt) { + this.hiddenInGantt = hiddenInGantt; + } + + + public ViewColumnSO hiddenInOrgChart(Boolean hiddenInOrgChart) { + + this.hiddenInOrgChart = hiddenInOrgChart; + return this; + } + + /** + * Get hiddenInOrgChart + * @return hiddenInOrgChart + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN_IN_ORG_CHART) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getHiddenInOrgChart() { + return hiddenInOrgChart; + } + + + @JsonProperty(JSON_PROPERTY_HIDDEN_IN_ORG_CHART) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHiddenInOrgChart(Boolean hiddenInOrgChart) { + this.hiddenInOrgChart = hiddenInOrgChart; + } + + + public ViewColumnSO statType(Integer statType) { + + this.statType = statType; + return this; + } + + /** + * Get statType + * @return statType + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STAT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getStatType() { + return statType; + } + + + @JsonProperty(JSON_PROPERTY_STAT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatType(Integer statType) { + this.statType = statType; + } + + + public ViewColumnSO width(Double width) { + + this.width = width; + return this; + } + + /** + * Get width + * @return width + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getWidth() { + return width; + } + + + @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWidth(Double width) { + this.width = width; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewColumnSO viewColumnSO = (ViewColumnSO) o; + return Objects.equals(this.fieldId, viewColumnSO.fieldId) && + Objects.equals(this.hidden, viewColumnSO.hidden) && + Objects.equals(this.hiddenInCalendar, viewColumnSO.hiddenInCalendar) && + Objects.equals(this.hiddenInGantt, viewColumnSO.hiddenInGantt) && + Objects.equals(this.hiddenInOrgChart, viewColumnSO.hiddenInOrgChart) && + Objects.equals(this.statType, viewColumnSO.statType) && + Objects.equals(this.width, viewColumnSO.width); + } + + @Override + public int hashCode() { + return Objects.hash(fieldId, hidden, hiddenInCalendar, hiddenInGantt, hiddenInOrgChart, statType, width); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewColumnSO {\n"); + sb.append(" fieldId: ").append(toIndentedString(fieldId)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" hiddenInCalendar: ").append(toIndentedString(hiddenInCalendar)).append("\n"); + sb.append(" hiddenInGantt: ").append(toIndentedString(hiddenInGantt)).append("\n"); + sb.append(" hiddenInOrgChart: ").append(toIndentedString(hiddenInOrgChart)).append("\n"); + sb.append(" statType: ").append(toIndentedString(statType)).append("\n"); + sb.append(" width: ").append(toIndentedString(width)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewRowSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewRowSO.java new file mode 100644 index 0000000000..7b7f18f8dc --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewRowSO.java @@ -0,0 +1,135 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ViewRowSO + */ +@JsonPropertyOrder({ + ViewRowSO.JSON_PROPERTY_HIDDEN, + ViewRowSO.JSON_PROPERTY_RECORD_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ViewRowSO { + public static final String JSON_PROPERTY_HIDDEN = "hidden"; + private Boolean hidden; + + public static final String JSON_PROPERTY_RECORD_ID = "recordId"; + private String recordId; + + public ViewRowSO() { + } + + public ViewRowSO hidden(Boolean hidden) { + + this.hidden = hidden; + return this; + } + + /** + * Get hidden + * @return hidden + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getHidden() { + return hidden; + } + + + @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + + public ViewRowSO recordId(String recordId) { + + this.recordId = recordId; + return this; + } + + /** + * Get recordId + * @return recordId + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRecordId() { + return recordId; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewRowSO viewRowSO = (ViewRowSO) o; + return Objects.equals(this.hidden, viewRowSO.hidden) && + Objects.equals(this.recordId, viewRowSO.recordId); + } + + @Override + public int hashCode() { + return Objects.hash(hidden, recordId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewRowSO {\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewSO.java new file mode 100644 index 0000000000..3d1742020f --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewSO.java @@ -0,0 +1,650 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.IFilterInfo; +import com.apitable.starter.databus.client.model.ISortInfo; +import com.apitable.starter.databus.client.model.ISortedField; +import com.apitable.starter.databus.client.model.IViewLockInfo; +import com.apitable.starter.databus.client.model.ViewColumnSO; +import com.apitable.starter.databus.client.model.ViewRowSO; +import com.apitable.starter.databus.client.model.ViewStyleSo; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ViewSO + */ +@JsonPropertyOrder({ + ViewSO.JSON_PROPERTY_AUTO_HEAD_HEIGHT, + ViewSO.JSON_PROPERTY_AUTO_SAVE, + ViewSO.JSON_PROPERTY_COLUMNS, + ViewSO.JSON_PROPERTY_DESCRIPTION, + ViewSO.JSON_PROPERTY_DISPLAY_HIDDEN_COLUMN_WITHIN_MIRROR, + ViewSO.JSON_PROPERTY_FILTER_INFO, + ViewSO.JSON_PROPERTY_FROZEN_COLUMN_COUNT, + ViewSO.JSON_PROPERTY_GROUP_INFO, + ViewSO.JSON_PROPERTY_HIDDEN, + ViewSO.JSON_PROPERTY_ID, + ViewSO.JSON_PROPERTY_LOCK_INFO, + ViewSO.JSON_PROPERTY_NAME, + ViewSO.JSON_PROPERTY_ROW_HEIGHT_LEVEL, + ViewSO.JSON_PROPERTY_ROWS, + ViewSO.JSON_PROPERTY_SORT_INFO, + ViewSO.JSON_PROPERTY_STYLE, + ViewSO.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ViewSO { + public static final String JSON_PROPERTY_AUTO_HEAD_HEIGHT = "autoHeadHeight"; + private Boolean autoHeadHeight; + + public static final String JSON_PROPERTY_AUTO_SAVE = "autoSave"; + private Boolean autoSave; + + public static final String JSON_PROPERTY_COLUMNS = "columns"; + private List columns = new ArrayList<>(); + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_DISPLAY_HIDDEN_COLUMN_WITHIN_MIRROR = "displayHiddenColumnWithinMirror"; + private Boolean displayHiddenColumnWithinMirror; + + public static final String JSON_PROPERTY_FILTER_INFO = "filterInfo"; + private IFilterInfo filterInfo; + + public static final String JSON_PROPERTY_FROZEN_COLUMN_COUNT = "frozenColumnCount"; + private Integer frozenColumnCount; + + public static final String JSON_PROPERTY_GROUP_INFO = "groupInfo"; + private List groupInfo; + + public static final String JSON_PROPERTY_HIDDEN = "hidden"; + private Boolean hidden; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_LOCK_INFO = "lockInfo"; + private IViewLockInfo lockInfo; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_ROW_HEIGHT_LEVEL = "rowHeightLevel"; + private Integer rowHeightLevel; + + public static final String JSON_PROPERTY_ROWS = "rows"; + private List rows; + + public static final String JSON_PROPERTY_SORT_INFO = "sortInfo"; + private ISortInfo sortInfo; + + public static final String JSON_PROPERTY_STYLE = "style"; + private ViewStyleSo style; + + public static final String JSON_PROPERTY_TYPE = "type"; + private Long type; + + public ViewSO() { + } + + public ViewSO autoHeadHeight(Boolean autoHeadHeight) { + + this.autoHeadHeight = autoHeadHeight; + return this; + } + + /** + * Get autoHeadHeight + * @return autoHeadHeight + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTO_HEAD_HEIGHT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getAutoHeadHeight() { + return autoHeadHeight; + } + + + @JsonProperty(JSON_PROPERTY_AUTO_HEAD_HEIGHT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAutoHeadHeight(Boolean autoHeadHeight) { + this.autoHeadHeight = autoHeadHeight; + } + + + public ViewSO autoSave(Boolean autoSave) { + + this.autoSave = autoSave; + return this; + } + + /** + * Get autoSave + * @return autoSave + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTO_SAVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getAutoSave() { + return autoSave; + } + + + @JsonProperty(JSON_PROPERTY_AUTO_SAVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAutoSave(Boolean autoSave) { + this.autoSave = autoSave; + } + + + public ViewSO columns(List columns) { + + this.columns = columns; + return this; + } + + public ViewSO addColumnsItem(ViewColumnSO columnsItem) { + if (this.columns == null) { + this.columns = new ArrayList<>(); + } + this.columns.add(columnsItem); + return this; + } + + /** + * Get columns + * @return columns + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COLUMNS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getColumns() { + return columns; + } + + + @JsonProperty(JSON_PROPERTY_COLUMNS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setColumns(List columns) { + this.columns = columns; + } + + + public ViewSO description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public ViewSO displayHiddenColumnWithinMirror(Boolean displayHiddenColumnWithinMirror) { + + this.displayHiddenColumnWithinMirror = displayHiddenColumnWithinMirror; + return this; + } + + /** + * Get displayHiddenColumnWithinMirror + * @return displayHiddenColumnWithinMirror + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DISPLAY_HIDDEN_COLUMN_WITHIN_MIRROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getDisplayHiddenColumnWithinMirror() { + return displayHiddenColumnWithinMirror; + } + + + @JsonProperty(JSON_PROPERTY_DISPLAY_HIDDEN_COLUMN_WITHIN_MIRROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayHiddenColumnWithinMirror(Boolean displayHiddenColumnWithinMirror) { + this.displayHiddenColumnWithinMirror = displayHiddenColumnWithinMirror; + } + + + public ViewSO filterInfo(IFilterInfo filterInfo) { + + this.filterInfo = filterInfo; + return this; + } + + /** + * Get filterInfo + * @return filterInfo + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FILTER_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IFilterInfo getFilterInfo() { + return filterInfo; + } + + + @JsonProperty(JSON_PROPERTY_FILTER_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFilterInfo(IFilterInfo filterInfo) { + this.filterInfo = filterInfo; + } + + + public ViewSO frozenColumnCount(Integer frozenColumnCount) { + + this.frozenColumnCount = frozenColumnCount; + return this; + } + + /** + * Get frozenColumnCount + * @return frozenColumnCount + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROZEN_COLUMN_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getFrozenColumnCount() { + return frozenColumnCount; + } + + + @JsonProperty(JSON_PROPERTY_FROZEN_COLUMN_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFrozenColumnCount(Integer frozenColumnCount) { + this.frozenColumnCount = frozenColumnCount; + } + + + public ViewSO groupInfo(List groupInfo) { + + this.groupInfo = groupInfo; + return this; + } + + public ViewSO addGroupInfoItem(ISortedField groupInfoItem) { + if (this.groupInfo == null) { + this.groupInfo = new ArrayList<>(); + } + this.groupInfo.add(groupInfoItem); + return this; + } + + /** + * Get groupInfo + * @return groupInfo + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_GROUP_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getGroupInfo() { + return groupInfo; + } + + + @JsonProperty(JSON_PROPERTY_GROUP_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setGroupInfo(List groupInfo) { + this.groupInfo = groupInfo; + } + + + public ViewSO hidden(Boolean hidden) { + + this.hidden = hidden; + return this; + } + + /** + * Get hidden + * @return hidden + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getHidden() { + return hidden; + } + + + @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHidden(Boolean hidden) { + this.hidden = hidden; + } + + + public ViewSO id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public ViewSO lockInfo(IViewLockInfo lockInfo) { + + this.lockInfo = lockInfo; + return this; + } + + /** + * Get lockInfo + * @return lockInfo + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LOCK_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IViewLockInfo getLockInfo() { + return lockInfo; + } + + + @JsonProperty(JSON_PROPERTY_LOCK_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLockInfo(IViewLockInfo lockInfo) { + this.lockInfo = lockInfo; + } + + + public ViewSO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public ViewSO rowHeightLevel(Integer rowHeightLevel) { + + this.rowHeightLevel = rowHeightLevel; + return this; + } + + /** + * Get rowHeightLevel + * @return rowHeightLevel + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ROW_HEIGHT_LEVEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getRowHeightLevel() { + return rowHeightLevel; + } + + + @JsonProperty(JSON_PROPERTY_ROW_HEIGHT_LEVEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRowHeightLevel(Integer rowHeightLevel) { + this.rowHeightLevel = rowHeightLevel; + } + + + public ViewSO rows(List rows) { + + this.rows = rows; + return this; + } + + public ViewSO addRowsItem(ViewRowSO rowsItem) { + if (this.rows == null) { + this.rows = new ArrayList<>(); + } + this.rows.add(rowsItem); + return this; + } + + /** + * Get rows + * @return rows + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ROWS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRows() { + return rows; + } + + + @JsonProperty(JSON_PROPERTY_ROWS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRows(List rows) { + this.rows = rows; + } + + + public ViewSO sortInfo(ISortInfo sortInfo) { + + this.sortInfo = sortInfo; + return this; + } + + /** + * Get sortInfo + * @return sortInfo + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SORT_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ISortInfo getSortInfo() { + return sortInfo; + } + + + @JsonProperty(JSON_PROPERTY_SORT_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSortInfo(ISortInfo sortInfo) { + this.sortInfo = sortInfo; + } + + + public ViewSO style(ViewStyleSo style) { + + this.style = style; + return this; + } + + /** + * Get style + * @return style + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STYLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ViewStyleSo getStyle() { + return style; + } + + + @JsonProperty(JSON_PROPERTY_STYLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStyle(ViewStyleSo style) { + this.style = style; + } + + + public ViewSO type(Long type) { + + this.type = type; + return this; + } + + /** + * Get type + * minimum: 0 + * @return type + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(Long type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewSO viewSO = (ViewSO) o; + return Objects.equals(this.autoHeadHeight, viewSO.autoHeadHeight) && + Objects.equals(this.autoSave, viewSO.autoSave) && + Objects.equals(this.columns, viewSO.columns) && + Objects.equals(this.description, viewSO.description) && + Objects.equals(this.displayHiddenColumnWithinMirror, viewSO.displayHiddenColumnWithinMirror) && + Objects.equals(this.filterInfo, viewSO.filterInfo) && + Objects.equals(this.frozenColumnCount, viewSO.frozenColumnCount) && + Objects.equals(this.groupInfo, viewSO.groupInfo) && + Objects.equals(this.hidden, viewSO.hidden) && + Objects.equals(this.id, viewSO.id) && + Objects.equals(this.lockInfo, viewSO.lockInfo) && + Objects.equals(this.name, viewSO.name) && + Objects.equals(this.rowHeightLevel, viewSO.rowHeightLevel) && + Objects.equals(this.rows, viewSO.rows) && + Objects.equals(this.sortInfo, viewSO.sortInfo) && + Objects.equals(this.style, viewSO.style) && + Objects.equals(this.type, viewSO.type); + } + + @Override + public int hashCode() { + return Objects.hash(autoHeadHeight, autoSave, columns, description, displayHiddenColumnWithinMirror, filterInfo, frozenColumnCount, groupInfo, hidden, id, lockInfo, name, rowHeightLevel, rows, sortInfo, style, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewSO {\n"); + sb.append(" autoHeadHeight: ").append(toIndentedString(autoHeadHeight)).append("\n"); + sb.append(" autoSave: ").append(toIndentedString(autoSave)).append("\n"); + sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" displayHiddenColumnWithinMirror: ").append(toIndentedString(displayHiddenColumnWithinMirror)).append("\n"); + sb.append(" filterInfo: ").append(toIndentedString(filterInfo)).append("\n"); + sb.append(" frozenColumnCount: ").append(toIndentedString(frozenColumnCount)).append("\n"); + sb.append(" groupInfo: ").append(toIndentedString(groupInfo)).append("\n"); + sb.append(" hidden: ").append(toIndentedString(hidden)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" lockInfo: ").append(toIndentedString(lockInfo)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rowHeightLevel: ").append(toIndentedString(rowHeightLevel)).append("\n"); + sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); + sb.append(" sortInfo: ").append(toIndentedString(sortInfo)).append("\n"); + sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewStyleSo.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewStyleSo.java similarity index 52% rename from backend-server/application/src/main/java/com/apitable/databusclient/model/ViewStyleSo.java rename to backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewStyleSo.java index 0058ac8f38..7a126dc2e0 100644 --- a/backend-server/application/src/main/java/com/apitable/databusclient/model/ViewStyleSo.java +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/ViewStyleSo.java @@ -2,7 +2,7 @@ * databus-server * databus-server APIs * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,116 +11,94 @@ */ -package com.apitable.databusclient.model; +package com.apitable.starter.databus.client.model; import java.util.Objects; -import com.apitable.databusclient.model.AnyBaseField; -import com.apitable.databusclient.model.GanttColorOption; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.AnyBaseField; +import com.apitable.starter.databus.client.model.GanttColorOption; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.apitable.databusclient.JSON; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; /** * ViewStyleSo */ +@JsonPropertyOrder({ + ViewStyleSo.JSON_PROPERTY_AUTO_TASK_LAYOUT, + ViewStyleSo.JSON_PROPERTY_CARD_COUNT, + ViewStyleSo.JSON_PROPERTY_COLOR_OPTION, + ViewStyleSo.JSON_PROPERTY_COVER_FIELD_ID, + ViewStyleSo.JSON_PROPERTY_END_FIELD_ID, + ViewStyleSo.JSON_PROPERTY_HIDDEN_GROUP_MAP, + ViewStyleSo.JSON_PROPERTY_HORIZONTAL, + ViewStyleSo.JSON_PROPERTY_IS_AUTO_LAYOUT, + ViewStyleSo.JSON_PROPERTY_IS_COL_NAME_VISIBLE, + ViewStyleSo.JSON_PROPERTY_IS_COVER_FIT, + ViewStyleSo.JSON_PROPERTY_KANBAN_FIELD_ID, + ViewStyleSo.JSON_PROPERTY_LAYOUT_TYPE, + ViewStyleSo.JSON_PROPERTY_LINK_FIELD_ID, + ViewStyleSo.JSON_PROPERTY_ONLY_CALC_WORK_DAY, + ViewStyleSo.JSON_PROPERTY_START_FIELD_ID, + ViewStyleSo.JSON_PROPERTY_WORK_DAYS +}) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ViewStyleSo { - public static final String SERIALIZED_NAME_AUTO_TASK_LAYOUT = "autoTaskLayout"; - @SerializedName(SERIALIZED_NAME_AUTO_TASK_LAYOUT) + public static final String JSON_PROPERTY_AUTO_TASK_LAYOUT = "autoTaskLayout"; private Boolean autoTaskLayout; - public static final String SERIALIZED_NAME_CARD_COUNT = "cardCount"; - @SerializedName(SERIALIZED_NAME_CARD_COUNT) + public static final String JSON_PROPERTY_CARD_COUNT = "cardCount"; private Integer cardCount; - public static final String SERIALIZED_NAME_COLOR_OPTION = "colorOption"; - @SerializedName(SERIALIZED_NAME_COLOR_OPTION) + public static final String JSON_PROPERTY_COLOR_OPTION = "colorOption"; private GanttColorOption colorOption; - public static final String SERIALIZED_NAME_COVER_FIELD_ID = "coverFieldId"; - @SerializedName(SERIALIZED_NAME_COVER_FIELD_ID) + public static final String JSON_PROPERTY_COVER_FIELD_ID = "coverFieldId"; private String coverFieldId; - public static final String SERIALIZED_NAME_END_FIELD_ID = "endFieldId"; - @SerializedName(SERIALIZED_NAME_END_FIELD_ID) + public static final String JSON_PROPERTY_END_FIELD_ID = "endFieldId"; private String endFieldId; - public static final String SERIALIZED_NAME_HIDDEN_GROUP_MAP = "hiddenGroupMap"; - @SerializedName(SERIALIZED_NAME_HIDDEN_GROUP_MAP) + public static final String JSON_PROPERTY_HIDDEN_GROUP_MAP = "hiddenGroupMap"; private Map hiddenGroupMap; - public static final String SERIALIZED_NAME_HORIZONTAL = "horizontal"; - @SerializedName(SERIALIZED_NAME_HORIZONTAL) + public static final String JSON_PROPERTY_HORIZONTAL = "horizontal"; private Boolean horizontal; - public static final String SERIALIZED_NAME_IS_AUTO_LAYOUT = "isAutoLayout"; - @SerializedName(SERIALIZED_NAME_IS_AUTO_LAYOUT) + public static final String JSON_PROPERTY_IS_AUTO_LAYOUT = "isAutoLayout"; private Boolean isAutoLayout; - public static final String SERIALIZED_NAME_IS_COL_NAME_VISIBLE = "isColNameVisible"; - @SerializedName(SERIALIZED_NAME_IS_COL_NAME_VISIBLE) + public static final String JSON_PROPERTY_IS_COL_NAME_VISIBLE = "isColNameVisible"; private Boolean isColNameVisible; - public static final String SERIALIZED_NAME_IS_COVER_FIT = "isCoverFit"; - @SerializedName(SERIALIZED_NAME_IS_COVER_FIT) + public static final String JSON_PROPERTY_IS_COVER_FIT = "isCoverFit"; private Boolean isCoverFit; - public static final String SERIALIZED_NAME_KANBAN_FIELD_ID = "kanbanFieldId"; - @SerializedName(SERIALIZED_NAME_KANBAN_FIELD_ID) + public static final String JSON_PROPERTY_KANBAN_FIELD_ID = "kanbanFieldId"; private String kanbanFieldId; - public static final String SERIALIZED_NAME_LAYOUT_TYPE = "layoutType"; - @SerializedName(SERIALIZED_NAME_LAYOUT_TYPE) + public static final String JSON_PROPERTY_LAYOUT_TYPE = "layoutType"; private AnyBaseField layoutType; - public static final String SERIALIZED_NAME_LINK_FIELD_ID = "linkFieldId"; - @SerializedName(SERIALIZED_NAME_LINK_FIELD_ID) + public static final String JSON_PROPERTY_LINK_FIELD_ID = "linkFieldId"; private String linkFieldId; - public static final String SERIALIZED_NAME_ONLY_CALC_WORK_DAY = "onlyCalcWorkDay"; - @SerializedName(SERIALIZED_NAME_ONLY_CALC_WORK_DAY) + public static final String JSON_PROPERTY_ONLY_CALC_WORK_DAY = "onlyCalcWorkDay"; private Boolean onlyCalcWorkDay; - public static final String SERIALIZED_NAME_START_FIELD_ID = "startFieldId"; - @SerializedName(SERIALIZED_NAME_START_FIELD_ID) + public static final String JSON_PROPERTY_START_FIELD_ID = "startFieldId"; private String startFieldId; - public static final String SERIALIZED_NAME_WORK_DAYS = "workDays"; - @SerializedName(SERIALIZED_NAME_WORK_DAYS) + public static final String JSON_PROPERTY_WORK_DAYS = "workDays"; private List workDays; public ViewStyleSo() { @@ -137,11 +115,16 @@ public ViewStyleSo autoTaskLayout(Boolean autoTaskLayout) { * @return autoTaskLayout **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTO_TASK_LAYOUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAutoTaskLayout() { return autoTaskLayout; } + @JsonProperty(JSON_PROPERTY_AUTO_TASK_LAYOUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAutoTaskLayout(Boolean autoTaskLayout) { this.autoTaskLayout = autoTaskLayout; } @@ -158,11 +141,16 @@ public ViewStyleSo cardCount(Integer cardCount) { * @return cardCount **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CARD_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCardCount() { return cardCount; } + @JsonProperty(JSON_PROPERTY_CARD_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCardCount(Integer cardCount) { this.cardCount = cardCount; } @@ -179,11 +167,16 @@ public ViewStyleSo colorOption(GanttColorOption colorOption) { * @return colorOption **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLOR_OPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GanttColorOption getColorOption() { return colorOption; } + @JsonProperty(JSON_PROPERTY_COLOR_OPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColorOption(GanttColorOption colorOption) { this.colorOption = colorOption; } @@ -200,11 +193,16 @@ public ViewStyleSo coverFieldId(String coverFieldId) { * @return coverFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COVER_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCoverFieldId() { return coverFieldId; } + @JsonProperty(JSON_PROPERTY_COVER_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverFieldId(String coverFieldId) { this.coverFieldId = coverFieldId; } @@ -221,11 +219,16 @@ public ViewStyleSo endFieldId(String endFieldId) { * @return endFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_END_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEndFieldId() { return endFieldId; } + @JsonProperty(JSON_PROPERTY_END_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEndFieldId(String endFieldId) { this.endFieldId = endFieldId; } @@ -250,11 +253,16 @@ public ViewStyleSo putHiddenGroupMapItem(String key, Boolean hiddenGroupMapItem) * @return hiddenGroupMap **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HIDDEN_GROUP_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getHiddenGroupMap() { return hiddenGroupMap; } + @JsonProperty(JSON_PROPERTY_HIDDEN_GROUP_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHiddenGroupMap(Map hiddenGroupMap) { this.hiddenGroupMap = hiddenGroupMap; } @@ -271,11 +279,16 @@ public ViewStyleSo horizontal(Boolean horizontal) { * @return horizontal **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HORIZONTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getHorizontal() { return horizontal; } + @JsonProperty(JSON_PROPERTY_HORIZONTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHorizontal(Boolean horizontal) { this.horizontal = horizontal; } @@ -292,11 +305,16 @@ public ViewStyleSo isAutoLayout(Boolean isAutoLayout) { * @return isAutoLayout **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_AUTO_LAYOUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsAutoLayout() { return isAutoLayout; } + @JsonProperty(JSON_PROPERTY_IS_AUTO_LAYOUT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsAutoLayout(Boolean isAutoLayout) { this.isAutoLayout = isAutoLayout; } @@ -313,11 +331,16 @@ public ViewStyleSo isColNameVisible(Boolean isColNameVisible) { * @return isColNameVisible **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_COL_NAME_VISIBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsColNameVisible() { return isColNameVisible; } + @JsonProperty(JSON_PROPERTY_IS_COL_NAME_VISIBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsColNameVisible(Boolean isColNameVisible) { this.isColNameVisible = isColNameVisible; } @@ -334,11 +357,16 @@ public ViewStyleSo isCoverFit(Boolean isCoverFit) { * @return isCoverFit **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_COVER_FIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsCoverFit() { return isCoverFit; } + @JsonProperty(JSON_PROPERTY_IS_COVER_FIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsCoverFit(Boolean isCoverFit) { this.isCoverFit = isCoverFit; } @@ -355,11 +383,16 @@ public ViewStyleSo kanbanFieldId(String kanbanFieldId) { * @return kanbanFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_KANBAN_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getKanbanFieldId() { return kanbanFieldId; } + @JsonProperty(JSON_PROPERTY_KANBAN_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKanbanFieldId(String kanbanFieldId) { this.kanbanFieldId = kanbanFieldId; } @@ -376,11 +409,16 @@ public ViewStyleSo layoutType(AnyBaseField layoutType) { * @return layoutType **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LAYOUT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AnyBaseField getLayoutType() { return layoutType; } + @JsonProperty(JSON_PROPERTY_LAYOUT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLayoutType(AnyBaseField layoutType) { this.layoutType = layoutType; } @@ -397,11 +435,16 @@ public ViewStyleSo linkFieldId(String linkFieldId) { * @return linkFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LINK_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLinkFieldId() { return linkFieldId; } + @JsonProperty(JSON_PROPERTY_LINK_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkFieldId(String linkFieldId) { this.linkFieldId = linkFieldId; } @@ -418,11 +461,16 @@ public ViewStyleSo onlyCalcWorkDay(Boolean onlyCalcWorkDay) { * @return onlyCalcWorkDay **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ONLY_CALC_WORK_DAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getOnlyCalcWorkDay() { return onlyCalcWorkDay; } + @JsonProperty(JSON_PROPERTY_ONLY_CALC_WORK_DAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOnlyCalcWorkDay(Boolean onlyCalcWorkDay) { this.onlyCalcWorkDay = onlyCalcWorkDay; } @@ -439,11 +487,16 @@ public ViewStyleSo startFieldId(String startFieldId) { * @return startFieldId **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_START_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStartFieldId() { return startFieldId; } + @JsonProperty(JSON_PROPERTY_START_FIELD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStartFieldId(String startFieldId) { this.startFieldId = startFieldId; } @@ -468,17 +521,20 @@ public ViewStyleSo addWorkDaysItem(Integer workDaysItem) { * @return workDays **/ @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WORK_DAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWorkDays() { return workDays; } + @JsonProperty(JSON_PROPERTY_WORK_DAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWorkDays(List workDays) { this.workDays = workDays; } - - @Override public boolean equals(Object o) { if (this == o) { @@ -506,22 +562,11 @@ public boolean equals(Object o) { Objects.equals(this.workDays, viewStyleSo.workDays); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { return Objects.hash(autoTaskLayout, cardCount, colorOption, coverFieldId, endFieldId, hiddenGroupMap, horizontal, isAutoLayout, isColNameVisible, isCoverFit, kanbanFieldId, layoutType, linkFieldId, onlyCalcWorkDay, startFieldId, workDays); } - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -557,131 +602,5 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("autoTaskLayout"); - openapiFields.add("cardCount"); - openapiFields.add("colorOption"); - openapiFields.add("coverFieldId"); - openapiFields.add("endFieldId"); - openapiFields.add("hiddenGroupMap"); - openapiFields.add("horizontal"); - openapiFields.add("isAutoLayout"); - openapiFields.add("isColNameVisible"); - openapiFields.add("isCoverFit"); - openapiFields.add("kanbanFieldId"); - openapiFields.add("layoutType"); - openapiFields.add("linkFieldId"); - openapiFields.add("onlyCalcWorkDay"); - openapiFields.add("startFieldId"); - openapiFields.add("workDays"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ViewStyleSo - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ViewStyleSo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ViewStyleSo is not found in the empty JSON string", ViewStyleSo.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ViewStyleSo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ViewStyleSo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `colorOption` - if (jsonObj.get("colorOption") != null && !jsonObj.get("colorOption").isJsonNull()) { - GanttColorOption.validateJsonElement(jsonObj.get("colorOption")); - } - if ((jsonObj.get("coverFieldId") != null && !jsonObj.get("coverFieldId").isJsonNull()) && !jsonObj.get("coverFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `coverFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("coverFieldId").toString())); - } - if ((jsonObj.get("endFieldId") != null && !jsonObj.get("endFieldId").isJsonNull()) && !jsonObj.get("endFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `endFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endFieldId").toString())); - } - if ((jsonObj.get("kanbanFieldId") != null && !jsonObj.get("kanbanFieldId").isJsonNull()) && !jsonObj.get("kanbanFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `kanbanFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kanbanFieldId").toString())); - } - // validate the optional field `layoutType` - if (jsonObj.get("layoutType") != null && !jsonObj.get("layoutType").isJsonNull()) { - AnyBaseField.validateJsonElement(jsonObj.get("layoutType")); - } - if ((jsonObj.get("linkFieldId") != null && !jsonObj.get("linkFieldId").isJsonNull()) && !jsonObj.get("linkFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `linkFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("linkFieldId").toString())); - } - if ((jsonObj.get("startFieldId") != null && !jsonObj.get("startFieldId").isJsonNull()) && !jsonObj.get("startFieldId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `startFieldId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startFieldId").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("workDays") != null && !jsonObj.get("workDays").isJsonNull() && !jsonObj.get("workDays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `workDays` to be an array in the JSON string but got `%s`", jsonObj.get("workDays").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ViewStyleSo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ViewStyleSo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ViewStyleSo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ViewStyleSo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ViewStyleSo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ViewStyleSo given an JSON string - * - * @param jsonString JSON string - * @return An instance of ViewStyleSo - * @throws IOException if the JSON string is invalid with respect to ViewStyleSo - */ - public static ViewStyleSo fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ViewStyleSo.class); - } - - /** - * Convert an instance of ViewStyleSo to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } } diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetInPanelSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetInPanelSO.java new file mode 100644 index 0000000000..d2d9b09717 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetInPanelSO.java @@ -0,0 +1,167 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WidgetInPanelSO + */ +@JsonPropertyOrder({ + WidgetInPanelSO.JSON_PROPERTY_HEIGHT, + WidgetInPanelSO.JSON_PROPERTY_ID, + WidgetInPanelSO.JSON_PROPERTY_Y +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WidgetInPanelSO { + public static final String JSON_PROPERTY_HEIGHT = "height"; + private Double height; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_Y = "y"; + private Double y; + + public WidgetInPanelSO() { + } + + public WidgetInPanelSO height(Double height) { + + this.height = height; + return this; + } + + /** + * Get height + * @return height + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Double getHeight() { + return height; + } + + + @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setHeight(Double height) { + this.height = height; + } + + + public WidgetInPanelSO id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public WidgetInPanelSO y(Double y) { + + this.y = y; + return this; + } + + /** + * Get y + * @return y + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_Y) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getY() { + return y; + } + + + @JsonProperty(JSON_PROPERTY_Y) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setY(Double y) { + this.y = y; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WidgetInPanelSO widgetInPanelSO = (WidgetInPanelSO) o; + return Objects.equals(this.height, widgetInPanelSO.height) && + Objects.equals(this.id, widgetInPanelSO.id) && + Objects.equals(this.y, widgetInPanelSO.y); + } + + @Override + public int hashCode() { + return Objects.hash(height, id, y); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WidgetInPanelSO {\n"); + sb.append(" height: ").append(toIndentedString(height)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" y: ").append(toIndentedString(y)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetPanelSO.java b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetPanelSO.java new file mode 100644 index 0000000000..314346c118 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/java/com/apitable/starter/databus/client/model/WidgetPanelSO.java @@ -0,0 +1,179 @@ +/* + * databus-server + * databus-server APIs + * + * The version of the OpenAPI document: 1.6.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.apitable.starter.databus.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.apitable.starter.databus.client.model.WidgetInPanelSO; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * WidgetPanelSO + */ +@JsonPropertyOrder({ + WidgetPanelSO.JSON_PROPERTY_ID, + WidgetPanelSO.JSON_PROPERTY_NAME, + WidgetPanelSO.JSON_PROPERTY_WIDGETS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WidgetPanelSO { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_WIDGETS = "widgets"; + private List widgets = new ArrayList<>(); + + public WidgetPanelSO() { + } + + public WidgetPanelSO id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public WidgetPanelSO name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public WidgetPanelSO widgets(List widgets) { + + this.widgets = widgets; + return this; + } + + public WidgetPanelSO addWidgetsItem(WidgetInPanelSO widgetsItem) { + if (this.widgets == null) { + this.widgets = new ArrayList<>(); + } + this.widgets.add(widgetsItem); + return this; + } + + /** + * Get widgets + * @return widgets + **/ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_WIDGETS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getWidgets() { + return widgets; + } + + + @JsonProperty(JSON_PROPERTY_WIDGETS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWidgets(List widgets) { + this.widgets = widgets; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WidgetPanelSO widgetPanelSO = (WidgetPanelSO) o; + return Objects.equals(this.id, widgetPanelSO.id) && + Objects.equals(this.name, widgetPanelSO.name) && + Objects.equals(this.widgets, widgetPanelSO.widgets); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, widgets); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WidgetPanelSO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" widgets: ").append(toIndentedString(widgets)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/backend-server/shared/starters/databus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/backend-server/shared/starters/databus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports new file mode 100644 index 0000000000..f950feec28 --- /dev/null +++ b/backend-server/shared/starters/databus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -0,0 +1 @@ +com.apitable.starter.databus.autoconfigure.DatabusClientAutoConfiguration diff --git a/init-db/.version b/init-db/.version index dc1e644a10..bd8bf882d0 100644 --- a/init-db/.version +++ b/init-db/.version @@ -1 +1 @@ -1.6.0 +1.7.0 diff --git a/package.json b/package.json index ce7ede5e5f..ba3279562c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "root", - "version": "1.6.0", + "version": "1.7.0", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/packages/ai-components/package.json b/packages/ai-components/package.json index 0eca2afa4b..6f39f3a23f 100644 --- a/packages/ai-components/package.json +++ b/packages/ai-components/package.json @@ -1,6 +1,6 @@ { "name": "@apitable/ai", - "version": "1.6.0", + "version": "1.7.0", "main": "dist/index.js", "typings": "dist/index.d.ts", "author": "APITable Ltd. ", @@ -11,9 +11,9 @@ "access": "public" }, "dependencies": { - "@apitable/components": "*", - "@apitable/core": "*", - "@apitable/icons": "*" + "@apitable/components": "workspace:*", + "@apitable/core": "workspace:*", + "@apitable/icons": "workspace:*" }, "devDependencies": { "@rollup/plugin-alias": "^5.0.1", diff --git a/packages/components/package.json b/packages/components/package.json index f630463249..838b9aadd7 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@apitable/components", - "version": "1.6.0", + "version": "1.7.0", "main": "dist/index.js", "typings": "dist/index.d.ts", "author": "APITable Ltd. ", @@ -11,8 +11,8 @@ "access": "public" }, "dependencies": { - "@apitable/core": "*", - "@apitable/icons": "*", + "@apitable/core": "workspace:*", + "@apitable/icons": "workspace:*", "@apitable/react-contexify": "^5.0.7", "@floating-ui/dom": "^1.5.1", "@floating-ui/react": "0.24.5", @@ -66,9 +66,10 @@ "@types/react-is": "^17.0.0", "@types/react-window": "^1.8.1", "@types/resize-observer-browser": "^0.1.5", - "@types/styled-components": "^5.1.26", + "@types/styled-components": "5.1.26", "@types/styled-system": "^5.1.11", "babel-jest": "^26.6.0", + "dayjs": "1.11.10", "chromatic": "^5.10.1", "concurrently": "^7.2.2", "jest": "^29.6.2", diff --git a/packages/components/src/components/avatar/avatar.tsx b/packages/components/src/components/avatar/avatar.tsx index 9fb407538e..76a8f31c02 100644 --- a/packages/components/src/components/avatar/avatar.tsx +++ b/packages/components/src/components/avatar/avatar.tsx @@ -28,7 +28,8 @@ export const Avatar: FC> = ({ alt, children, style, - shape = 'circle' + shape = 'circle', + onClick }) => { const avatarNodeRef = useRef(null); const avatarChildrenRef = useRef(null); @@ -76,7 +77,7 @@ export const Avatar: FC> = ({ setScale(scale()); }, [src, icon, size]); - const wrapperProps = { size, src, shape, icon, style }; + const wrapperProps = { size, src, shape, icon, style, onClick }; return ( diff --git a/packages/components/src/components/avatar/avatar_group/avatar_group.tsx b/packages/components/src/components/avatar/avatar_group/avatar_group.tsx index b93fea61ae..7ee9267dfc 100644 --- a/packages/components/src/components/avatar/avatar_group/avatar_group.tsx +++ b/packages/components/src/components/avatar/avatar_group/avatar_group.tsx @@ -22,7 +22,7 @@ import { AvatarGroupStyled } from './styled'; import { Avatar } from '../index'; export const AvatarGroup: FC> = ({ - max = 5, children, maxStyle, size + max = 5, children, maxStyle, size, moreClick }) => { const childrenArr = (Array.isArray(children) ? children : [children]).map((child, index) => cloneElement((child as ReactElement), { @@ -36,7 +36,7 @@ export const AvatarGroup: FC> = ({ return ( {childrenShow} - {isHidden && +{numOfChildren - max}} + {isHidden && +{numOfChildren - max}} ); }; \ No newline at end of file diff --git a/packages/components/src/components/avatar/avatar_group/intarface.ts b/packages/components/src/components/avatar/avatar_group/intarface.ts index 1ee08c55cd..077d3c51b0 100644 --- a/packages/components/src/components/avatar/avatar_group/intarface.ts +++ b/packages/components/src/components/avatar/avatar_group/intarface.ts @@ -27,4 +27,5 @@ export interface IAvatarGroup { * avatar inline style */ maxStyle?: React.CSSProperties; + moreClick?: (e: React.MouseEvent) => void; } \ No newline at end of file diff --git a/packages/components/src/components/avatar/interface.ts b/packages/components/src/components/avatar/interface.ts index 299d9e6873..570847ab57 100644 --- a/packages/components/src/components/avatar/interface.ts +++ b/packages/components/src/components/avatar/interface.ts @@ -35,4 +35,5 @@ export interface IAvatarProps { className?: string; /** avatar image alt attribute */ alt?: string; + onClick?: (e: React.MouseEvent) => void; } \ No newline at end of file diff --git a/packages/components/src/components/dropdown/float_ui/index.tsx b/packages/components/src/components/dropdown/float_ui/index.tsx index 58b02e1d9e..647be6fcb3 100644 --- a/packages/components/src/components/dropdown/float_ui/index.tsx +++ b/packages/components/src/components/dropdown/float_ui/index.tsx @@ -58,7 +58,7 @@ export interface IDropdownControl { resetIndex ?:() => void; } -const CONST_INITIAL_DROPDOWN_INDEX = 1002; +const CONST_INITIAL_DROPDOWN_INDEX = 1202; export const Dropdown = forwardRef((props, ref) => { const { trigger, children, onVisibleChange, options= { zIndex: CONST_INITIAL_DROPDOWN_INDEX diff --git a/packages/components/src/components/dropdown/float_ui/useFloatUiDropdown.tsx b/packages/components/src/components/dropdown/float_ui/useFloatUiDropdown.tsx index 6b4f92d358..72ea2af4c8 100644 --- a/packages/components/src/components/dropdown/float_ui/useFloatUiDropdown.tsx +++ b/packages/components/src/components/dropdown/float_ui/useFloatUiDropdown.tsx @@ -16,7 +16,7 @@ export const setIndex = (zIndex: number) => { }; }; -const CONST_INITIAL_DROPDOWN_INDEX = 1002; +const CONST_INITIAL_DROPDOWN_INDEX = 1202; export const useFloatUiDropdown: any = (options: { isOpen: boolean setOpen: (v: boolean) => void; diff --git a/packages/components/src/components/select/dropdown/list_dropdown.tsx b/packages/components/src/components/select/dropdown/list_dropdown.tsx index 01c1a442e9..3e19e877df 100644 --- a/packages/components/src/components/select/dropdown/list_dropdown.tsx +++ b/packages/components/src/components/select/dropdown/list_dropdown.tsx @@ -26,7 +26,7 @@ export interface IDropdownControl { resetIndex:() => void; } -const CONST_INITIAL_DROPDOWN_INDEX = 1002; +const CONST_INITIAL_DROPDOWN_INDEX = 1202; interface SelectContextValue { activeIndex: number | null; @@ -98,8 +98,8 @@ export const ListDropdown = forwardRef((props, const handleSelect = React.useCallback((index: number | null) => { setSelectedIndex(index); - setOpen(false); - }, [setOpen]); + // setOpen(false); + }, []); const listNav = useListNavigation(context, { listRef: elementsRef, diff --git a/packages/components/src/components/select/dropdown/multiple.tsx b/packages/components/src/components/select/dropdown/multiple.tsx new file mode 100644 index 0000000000..620136e782 --- /dev/null +++ b/packages/components/src/components/select/dropdown/multiple.tsx @@ -0,0 +1,335 @@ +/** + * APITable + * Copyright (C) 2022 APITable Ltd. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +import { CheckOutlined, ChevronDownOutlined } from '@apitable/icons'; +import { useToggle } from 'ahooks'; +import Color from 'color'; +import Highlighter from 'react-highlight-words'; +import React, { FC, useEffect, useMemo, useRef, useState } from 'react'; +import { ListDeprecate } from '../../list_deprecate'; +import { IListItemProps } from '../../list_deprecate/interface'; +import { IOption, ISelectProps, ISelectValue } from '../interface'; +import { + GlobalStyle, hightLightCls, OptionOutside, + StyledArrowIcon, + StyledListContainer, + StyledSelectedContainer, + StyledSelectTrigger, +} from '../styled'; +import debounce from 'lodash/debounce'; +import { IOverLayProps } from '../../dropdown/float_ui'; +import styled from 'styled-components'; +import { ListDropdown, SelectContext } from './list_dropdown'; +import { useListItem } from '@floating-ui/react'; +import { SelectItem } from '../select_item'; +import { convertChildrenToData } from '../utils'; +import { IUseListenTriggerInfo, stopPropagation } from '../../../helper'; +import { useThemeColors } from '../../../hooks'; +import { WrapperTooltip } from '../../tooltip'; + +const StyledDropdown = styled(ListDropdown)` + z-index: 1200; + `; + +const OFFSET = [0, 4]; + +const _renderValue = (option: IOption) => { + return option.label; +}; + +const _GlobalStyle: any = GlobalStyle; + +export const MultipleSelect: FC & { + value: ISelectValue[], + onChange ?: (value: ISelectValue[]) => void +}>> & { + Option: React.FC & Pick>> +} = (props) => { + const { + placeholder, value, triggerStyle, onChange, triggerCls, options: _options, prefixIcon, suffixIcon, dropdownMatchSelectWidth = true, + openSearch = false, searchPlaceholder, noDataTip, defaultVisible, hiddenArrow = false, triggerLabel, + onSelected, dropdownRender, disabled, disabledTip, listStyle, listCls, renderValue = _renderValue, + children, maxListWidth = 240 + } = props; + const [isInit, setIsInit] = useState(true); + const listContainer = useRef(null); + const inputRef = useRef(null); + const [visible, { toggle: toggleVisible, set: setVisible }] = useToggle(false); + const containerRef = useRef(null); + const [keyword, setKeyword] = React.useState(''); + const options = useMemo(() => { + return _options == null ? convertChildrenToData(children) : _options; + }, [children, _options]); + const selectedOption = options.filter(item => Boolean(item)).filter(item => value.includes(item!.value)); + + const setKeywordDebounce = debounce(setKeyword, 300); + + const inputOnChange = (_e: React.ChangeEvent, keyword: string) => { + setKeywordDebounce(keyword); + }; + + useEffect(() => { + if (defaultVisible != null && isInit) { + setIsInit(false); + setVisible(defaultVisible); + return; + } + }, [toggleVisible, defaultVisible, isInit, setVisible]); + + useEffect(() => { + setKeyword(''); + }, [visible, value]); + + const optionsFilter = (item: IOption | null) => { + if (!item) { + return false; + } + if (keyword && item.label) { + // Search supports case, refer to the antd rc select library + return item.label.toUpperCase().includes(keyword.toUpperCase()); + } + return true; + + }; + + const afterFilterOptions = options!.filter(optionsFilter); + + const triggerRef: React.MutableRefObject = useRef(null); + + const [triggerInfo, setTriggerInfo] = useState(); + + useEffect(() => { + if (triggerRef.current) { + const size = triggerRef.current.getBoundingClientRect(); + setTriggerInfo({ triggerSize: size, triggerOffset: OFFSET, adjust: true }); + } + // eslint-disable-next-line + }, [triggerRef.current]); + + const colors = useThemeColors(); + + const renderOptionList = ({ toggle }: IOverLayProps) => { + return ( + + { + // @ts-ignore + dropdownRender || { + onSelected && onSelected(afterFilterOptions[index]!, index); + const item = afterFilterOptions[index]; + if(item?.value) { + if (value.includes(item?.value)) { + onChange?.(value.filter(v => v !== item.value)); + } else { + onChange?.(value.concat(item.value)); + } + } + }} + searchProps={ + openSearch ? { + inputRef: inputRef, + onSearchChange: inputOnChange, + placeholder: searchPlaceholder, + } : undefined + } + noDataTip={noDataTip} + triggerInfo={triggerInfo} + autoHeight + > + { + afterFilterOptions.filter(Boolean).map((item, index) => { + return ( { + onSelected && onSelected(afterFilterOptions[index]!, index); + if(item?.value) { + if (value.includes(item?.value)) { + onChange?.(value.filter(v => v !== item.value)); + } else { + onChange?.(value.concat(item.value)); + } + } + }} item={item as IOption} currentIndex={index} keyword={keyword} value={value}/>); + }) + } + + } + + ); + }; + + const checked2View = () => { + setTimeout(() => { + const selectedItemElement = listContainer.current?.querySelector('.isChecked'); + selectedItemElement?.scrollIntoView({ block: 'nearest' }); + }, 20); + }; + + const triggerClick = () => { + if (disabled) { + return; + } + if (!visible) { + setTimeout(() => { + openSearch && inputRef.current && inputRef.current.focus(); + }, 100); + } + checked2View(); + }; + + return <> + <_GlobalStyle /> + { + setVisible(visible); + } + } + setTriggerRef={(element) => { + triggerRef.current = element; + }} + options={{ + arrow: false, + offset: 4, + // TODO find index + // selectedIndex: findIndex, + disabled, + }} + trigger={ +

+ + { + triggerClick(); + }} + style={triggerStyle} + className={triggerCls} + tabIndex={-1} + ref={containerRef} + disabled={Boolean(disabled)} + focus={visible} + data-name='select' + > + + {triggerLabel} + {!triggerLabel && ( + value != null && selectedOption.length> 0 ? item?.label).join(','), + }} + renderValue={renderValue} + /> : + + {placeholder} + + ) + } + + { + !hiddenArrow && + + + } + + +
+ } + > + { + renderOptionList + } + + ; +}; + +const Option = ListDeprecate.Item; + +MultipleSelect.Option = Option; + +export function OptionItem({ item,currentIndex, value , keyword, className, + onClick, + iconClassName, +}: {item: IOption, currentIndex: number, iconClassName?: string, className?: string, value: any[]|any, keyword: string,onClick: () => void}) { + + const { + activeIndex, + selectedIndex, + getItemProps, + handleSelect + } = React.useContext(SelectContext); + + const { ref, index:aIndex } = useListItem(); + + const isActive = activeIndex === aIndex; + const isSelected = selectedIndex === aIndex; + + const itemProps = getItemProps({ + onClick: () => { + onClick?.(); + handleSelect(aIndex); + }, + onKeyDown(event) { + if (event.key === 'Enter') { + event.preventDefault(); + onClick?.(); + handleSelect(aIndex); + } + } + }); + + const isChecked = Array.isArray(value) ? value.includes(item?.value): value === item?.value; + return + , + ...item, + }: + item + } renderValue={_renderValue} isChecked={isChecked}> + { + !keyword ? null : + } + + ; +} diff --git a/packages/components/src/components/select/select.stories.tsx b/packages/components/src/components/select/select.stories.tsx index f1ecb2b207..5a2deee5cf 100644 --- a/packages/components/src/components/select/select.stories.tsx +++ b/packages/components/src/components/select/select.stories.tsx @@ -23,6 +23,7 @@ import { StoryType } from '../../stories/constants'; import { Story } from '@storybook/react'; import { ISelectProps } from './interface'; import { StarOutlined, WarnCircleFilled } from '@apitable/icons'; +import { MultipleSelect } from './dropdown/multiple'; const COMPONENT_NAME = 'Select'; @@ -56,6 +57,119 @@ WithData.args = { options: data }; +export const MultipleSelectDemo = () => { + const [value, setValue] = React.useState(['value4', 'value5']); + return ( + { + console.log('options', option); + setValue(option as any); + }} + /> + ); +}; + export const SearchSelectDemo = () => { const [value, setValue] = React.useState('value1'); return ( diff --git a/packages/components/src/components/time/day.tsx b/packages/components/src/components/time/day.tsx new file mode 100644 index 0000000000..704121d7c6 --- /dev/null +++ b/packages/components/src/components/time/day.tsx @@ -0,0 +1,10 @@ +import React from 'react'; +import { FC } from 'react'; + +export const SelectDay: FC = (props) => { + + return ( + <> + + ); +}; diff --git a/packages/components/src/components/time/preview.tsx b/packages/components/src/components/time/preview.tsx new file mode 100644 index 0000000000..a25a2d027b --- /dev/null +++ b/packages/components/src/components/time/preview.tsx @@ -0,0 +1,44 @@ +/** + * APITable + * Copyright (C) 2022 APITable Ltd. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import React, { FC } from 'react'; +import { useCssColors } from '../../hooks/use_css_colors'; +import { Box } from '../box'; +import { Typography } from '../typography'; +import dayjs from 'dayjs'; + +export const NextTimePreview: FC<{ + title: string + times: Date[] +}> = ({ title , times }) => { + const colors = useCssColors(); + return ( + {title} + + + { + times.map((time, index) => { + + return ( + {dayjs(time).format('YYYY-MM-DD HH:mm')} + ); + }) + } + + ); +}; diff --git a/packages/components/src/components/time/time.stories.tsx b/packages/components/src/components/time/time.stories.tsx new file mode 100644 index 0000000000..58e506953a --- /dev/null +++ b/packages/components/src/components/time/time.stories.tsx @@ -0,0 +1,74 @@ +/** + * APITable + * Copyright (C) 2022 APITable Ltd. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import React, { FC, useState } from 'react'; +import { StoryType } from '../../stories/constants'; +import { NextTimePreview } from './preview'; +import { Timing } from './timing'; + +const COMPONENT_NAME = 'Time'; + +const TITLE = `${StoryType.BaseComponent}/${COMPONENT_NAME}`; + +export default { + title: TITLE, + parameters: { + design: { + type: 'figma', + url: 'https://www.figma.com/file/VjmhroWol6uCMqhDcJVrxV/LightMode?node-id=247%3A0', + }, + }, + args: { + content: 'Scanner for decks of cards with bar codes printed on card edges', + } +}; + +export const NextTime: FC = () => <>; + +export const TimingHour : FC = () => { + const [state, setState] = useState({ + hour: 1, + }); + + // @ts-ignore + return ; +}; + +export const TimingDay : FC = () => { + const [state, setState] = useState({ + hour: 1, + }); + + // @ts-ignore + return ; +}; + +export const TimingHourDisabled : FC = () => { + const [state, setState] = useState({ + hour: 1, + }); + + // @ts-ignore + return ; +}; + +// export const TimingMonth : FC = () => ; +// export const TimingDay : FC = () => ; +// export const TimingWeek : FC = () => ; diff --git a/packages/components/src/components/time/time_input/index.tsx b/packages/components/src/components/time/time_input/index.tsx new file mode 100644 index 0000000000..25eb7aa314 --- /dev/null +++ b/packages/components/src/components/time/time_input/index.tsx @@ -0,0 +1,77 @@ +import React, { FC, useState } from 'react'; +import { ListDropdown } from '../../select/dropdown/list_dropdown'; +import { stopPropagation } from '../../../helper'; +import { OptionItem, StyledListContainer } from '../../select'; + +export const CONST_DEFAULT_HOUR_ARRAY = [ + '00:00', '00:30', '01:00', '01:30', '02:00', '02:30', '03:00', '03:30', '04:00', '04:30', '05:00', '05:30', + '06:00', '06:30', '07:00', '07:30', '08:00', '08:30', '09:00', '09:30', '10:00', '10:30', '11:00', '11:30', + '12:00', '12:30', '13:00', '13:30', '14:00', '14:30', '15:00', '15:30', '16:00', '16:30', '17:00', '17:30', + '18:00', '18:30', '19:00', '19:30', '20:00', '20:30', '21:00', '21:30', '22:00', '22:30', '23:00', '23:30' +]; + +const regex = /^([01]\d|2[0-3]):([0-5]\d)$/; + +export const TimeInput: FC<{ + time?: string + onChange?: (value: string) => void; +}> = ({ time, onChange }) => { + + const [input, setInput] = useState(time || ''); + + return ( + <> + + { + const input = e.target.value; + if(regex.test(input)) { + onChange?.(e.target.value); + } + setInput(e.target.value); + }} /> + + } + > + { + ({ toggle })=> ( + + { + CONST_DEFAULT_HOUR_ARRAY.map((item, index) => ( + { + setInput(item); + onChange?.(item); + toggle(); + }} + value={null} + item={{ + value: item, + label: item + }} /> + )) + } + + + ) + } + + + ); +}; diff --git a/packages/components/src/components/time/timing.tsx b/packages/components/src/components/time/timing.tsx new file mode 100644 index 0000000000..a2c4427980 --- /dev/null +++ b/packages/components/src/components/time/timing.tsx @@ -0,0 +1,123 @@ +import React, { FC } from 'react'; +import { DropdownSelect } from '../select'; +import advancedFormat from 'dayjs/plugin/advancedFormat'; +import dayjs from 'dayjs'; +import { TimeInput } from './time_input'; +dayjs.extend(advancedFormat); + +interface Props { + interval: 'day'|'month'|'week' | 'hour'; + readonly : boolean; + value: { + // interval + hour?: number; + minute?: number; + } + onUpdate: (value: Props['value']) => void; +} + +const weekOptions = Array.from({ length: 7 }, (_, i) => (i)) + .map(item => dayjs().day(item)) + .map(num => ({ + label: num.format('dddd'), + value: num.day().toString() + })); + +const hourOptions = Array.from({ length: 24 }, (_, i) => (i + 1)).map(num => ({ + label: String(num), + value: num.toString() +})); + +const minuteOptions = Array.from({ length: 59 }, (_, i) => (i + 1)).map(num => ({ + label: num < 10 ? `0${num}` : String(num), + value: num.toString() +})); + +const dayOptions = Array.from({ length: 31 }, (_, i) => { + return dayjs().set('date', i + 1); +}).map(num => ({ + label: num.format('Do'), + value: num.date().toString() +})); + +export const Timing: FC = ({ + interval, + value, + onUpdate, + +}) => { + + console.log('Timing Timing value', value); + + // day of month + // week days + // input hour + + switch (interval) { + case 'hour': { + return ( + <> + Every { + onUpdate({ ...value, + hour: Number(node.value) + }); + }} + + /> + Hours in + + {/*TODO update postfix*/} + Miniutes} + onSelected={(node) => { + onUpdate({ ...value, + minute: Number(node.value) + }); + }} + + /> + + { + onUpdate({ ...value, + minute: Number(node.value) + }); + }} + /> + + { + onUpdate({ ...value, + minute: Number(node.value) + }); + }} + /> + + ); + } + + case 'day': { + return ( + <> + {/*Every Hours in */} + + + + ); + } + + default : { + return (<>); + } + } + +}; diff --git a/packages/components/src/components/tooltip/float_ui/index.tsx b/packages/components/src/components/tooltip/float_ui/index.tsx index ecce8b6b21..104ed17f01 100644 --- a/packages/components/src/components/tooltip/float_ui/index.tsx +++ b/packages/components/src/components/tooltip/float_ui/index.tsx @@ -49,7 +49,7 @@ const FloatUiTooltip: FunctionComponent = ({ placement, whileElementsMounted: autoUpdate, middleware: [ - setIndex(options?.zIndex ?? 1002), + setIndex(options?.zIndex ?? 1202), offset(options?.offset ?? 16), ...( hasArrow ? ( diff --git a/backend-server/application/src/main/java/com/apitable/automation/mapper/AutomationServiceMapper.java b/packages/components/src/hooks/use_css_colors.ts similarity index 63% rename from backend-server/application/src/main/java/com/apitable/automation/mapper/AutomationServiceMapper.java rename to packages/components/src/hooks/use_css_colors.ts index 78dc957ee0..b32ad7a492 100644 --- a/backend-server/application/src/main/java/com/apitable/automation/mapper/AutomationServiceMapper.java +++ b/packages/components/src/hooks/use_css_colors.ts @@ -1,4 +1,4 @@ -/* +/** * APITable * Copyright (C) 2022 APITable Ltd. * @@ -16,18 +16,18 @@ * along with this program. If not, see . */ -package com.apitable.automation.mapper; - -import com.apitable.automation.entity.AutomationServiceEntity; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Param; - -/** - * AutomationServiceMapper. - */ -public interface AutomationServiceMapper extends BaseMapper { +import { useThemeColors } from './use_theme_colors'; +import { useMemo } from 'react'; - Long selectIdByServiceId(@Param("serviceId") String serviceId); +export const useCssColors = () => { + const colors = useThemeColors(); + const newColors = useMemo(() => { + return new Proxy(colors, { + get: function (target, prop) { + return `var(--${String(prop)})`; + }, + }); + }, [colors]); - Long selectIdBySlugIncludeDeleted(@Param("slug") String slug); -} + return newColors; +}; diff --git a/packages/core/package.json b/packages/core/package.json index af4c9cd49d..c2f0ee8b57 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@apitable/core", - "version": "1.6.0", + "version": "1.7.0", "description": "datasheet core", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -24,10 +24,10 @@ "node": ">=8.x" }, "dependencies": { - "@apitable/databus-wasm-nodejs": "*", - "@apitable/databus-wasm-web": "*", + "@apitable/databus-wasm-nodejs": "workspace:*", + "@apitable/databus-wasm-web": "workspace:*", "@apitable/i18n": "^1.0.4", - "@apitable/i18n-lang": "*", + "@apitable/i18n-lang": "workspace:*", "@types/lodash": "^4.14.197", "@types/socket.io-client": "^1.4.36", "apphook": "1.0.6", diff --git a/packages/core/src/automation_manager/magic_variable/sys_functions/context_base.ts b/packages/core/src/automation_manager/magic_variable/sys_functions/context_base.ts index 17a3c42e13..9fad1a641d 100644 --- a/packages/core/src/automation_manager/magic_variable/sys_functions/context_base.ts +++ b/packages/core/src/automation_manager/magic_variable/sys_functions/context_base.ts @@ -17,8 +17,8 @@ */ import { IRobotTaskRuntimeContext, OperatorEnums } from 'automation_manager/interface'; -import { Field } from 'model/field'; import type { IReduxState } from 'exports/store/interfaces'; +import { Field } from 'model/field'; import { FOperator } from 'types/view_types'; /** @@ -26,10 +26,10 @@ import { FOperator } from 'types/view_types'; */ export function getNodeOutput(_context: IRobotTaskRuntimeContext, nodeId: string) { - if (!_context.executedNodeIds.includes(nodeId)) { + if (!_context.executedNodeIds.includes(nodeId) && !_context.executedNodeIds.includes(_context.robot.triggerId)) { throw Error(`${nodeId} Does Not Executed!`); } - return _context.context[nodeId]!.output; + return _context.context[nodeId]?.output || _context.context[_context.robot.triggerId]?.output; } // for now we have 3 trigger of apitable, their output will be like this: diff --git a/packages/core/src/config/stringkeys.interface.ts b/packages/core/src/config/stringkeys.interface.ts index b206124bf3..38dd92061a 100644 --- a/packages/core/src/config/stringkeys.interface.ts +++ b/packages/core/src/config/stringkeys.interface.ts @@ -928,10 +928,14 @@ export type StringKeysMapType = { 'button_text': 'button_text', 'button_text_click_start': 'button_text_click_start', 'button_type': 'button_type', + 'by_days': 'by_days', 'by_field_id': 'by_field_id', + 'by_hours': 'by_hours', + 'by_months': 'by_months', 'by_the_day': 'by_the_day', 'by_the_month': 'by_the_month', 'by_the_year': 'by_the_year', + 'by_weeks': 'by_weeks', 'calendar_add_date_time_field': 'calendar_add_date_time_field', 'calendar_color_more': 'calendar_color_more', 'calendar_const_detail_weeks': 'calendar_const_detail_weeks', @@ -2491,6 +2495,8 @@ export type StringKeysMapType = { 'guests_per_space': 'guests_per_space', 'guide_1': 'guide_1', 'guide_2': 'guide_2', + 'guide_flow_modal_contact_sales': 'guide_flow_modal_contact_sales', + 'guide_flow_modal_get_started': 'guide_flow_modal_get_started', 'guide_flow_of_catalog_step1': 'guide_flow_of_catalog_step1', 'guide_flow_of_catalog_step2': 'guide_flow_of_catalog_step2', 'guide_flow_of_click_add_view_step1': 'guide_flow_of_click_add_view_step1', @@ -2877,6 +2883,7 @@ export type StringKeysMapType = { 'lark_version_enterprise': 'lark_version_enterprise', 'lark_version_standard': 'lark_version_standard', 'lark_versions_free': 'lark_versions_free', + 'last_day': 'last_day', 'last_modified_by_select_modal_desc': 'last_modified_by_select_modal_desc', 'last_modified_time_select_modal_desc': 'last_modified_time_select_modal_desc', 'last_step': 'last_step', @@ -3927,6 +3934,7 @@ export type StringKeysMapType = { 'preview_guide_click_to_restart': 'preview_guide_click_to_restart', 'preview_guide_enable_it': 'preview_guide_enable_it', 'preview_guide_open_office_preview': 'preview_guide_open_office_preview', + 'preview_next_automation_execution_time': 'preview_next_automation_execution_time', 'preview_not_support_video_codecs': 'preview_not_support_video_codecs', 'preview_revision': 'preview_revision', 'preview_see_more': 'preview_see_more', @@ -4478,6 +4486,7 @@ export type StringKeysMapType = { 'scan_to_login': 'scan_to_login', 'scan_to_login_by_method': 'scan_to_login_by_method', 'scatter_chart': 'scatter_chart', + 'schedule_type': 'schedule_type', 'science_and_technology': 'science_and_technology', 'scroll_screen_down': 'scroll_screen_down', 'scroll_screen_left': 'scroll_screen_left', @@ -5043,9 +5052,11 @@ export type StringKeysMapType = { 'subscribe_credit_usage_over_limit': 'subscribe_credit_usage_over_limit', 'subscribe_demonstrate': 'subscribe_demonstrate', 'subscribe_disabled_seat': 'subscribe_disabled_seat', + 'subscribe_grade_business': 'subscribe_grade_business', 'subscribe_grade_free': 'subscribe_grade_free', 'subscribe_grade_plus': 'subscribe_grade_plus', 'subscribe_grade_pro': 'subscribe_grade_pro', + 'subscribe_grade_starter': 'subscribe_grade_starter', 'subscribe_label_tooltip': 'subscribe_label_tooltip', 'subscribe_new_choose_member': 'subscribe_new_choose_member', 'subscribe_new_choose_member_tips': 'subscribe_new_choose_member_tips', @@ -5328,6 +5339,7 @@ export type StringKeysMapType = { 'timemachine_update_comment': 'timemachine_update_comment', 'times_per_month_unit': 'times_per_month_unit', 'times_unit': 'times_unit', + 'timing_rules': 'timing_rules', 'timor_leste': 'timor_leste', 'tip_del_success': 'tip_del_success', 'tip_do_you_want_to_know_about_field_permission': 'tip_do_you_want_to_know_about_field_permission', diff --git a/packages/core/src/config/system_config.source.json b/packages/core/src/config/system_config.source.json index 2e125d5445..a96176b91f 100644 --- a/packages/core/src/config/system_config.source.json +++ b/packages/core/src/config/system_config.source.json @@ -1295,7 +1295,7 @@ "onPlay": [ "set_wizard_completed({\"curWizard\": true})" ], - "uiConfig": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "uiConfig": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "uiConfigId": "player_step_ui_config_5", "uiType": "modal" }, @@ -1747,7 +1747,7 @@ "onPlay": [ "set_wizard_completed({\"wizardId\": 14})" ], - "uiConfig": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "uiConfig": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "uiConfigId": "player_step_ui_config_44", "uiType": "modal" }, @@ -2863,7 +2863,7 @@ "open_guide_next_step({\"clearAllPrevUi\":true})" ], "skipId": "maybe_later", - "uiConfig": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Pro版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 2,000,000 行\",\n \"空间站附件容量数提高至 140 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://apitable.com/management/upgrade\n}", + "uiConfig": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Pro版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 2,000,000 行\",\n \"空间站附件容量数提高至 140 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://apitable.com/management/upgrade\"\n}", "uiConfigId": "player_step_ui_config_166", "uiType": "billingStrip" }, @@ -2928,7 +2928,7 @@ "set_wizard_completed({\"curWizard\": true})", "clear_guide_all_ui()" ], - "uiConfig": "{\n\"\"title\"\":\"\"AI 功能介绍\"\",\n\"\"video\"\":\"\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\"\",\n\"\"videoId\"\":\"\"VIKA_GUIDE_VIDEO_FOR_AI\"\",\n\"\"autoPlay\"\":true\n}", + "uiConfig": "{\n\"\"title\"\":\"\"AI 功能介绍\"\",\n\"\"video\"\":\"\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\"\",\n\"\"videoId\"\":\"\"VIKA_GUIDE_VIDEO_FOR_AI\"\",\n\"\"autoPlay\"\":true\n}", "uiConfigId": "player_step_ui_config_176", "uiType": "modal" } @@ -6496,7 +6496,7 @@ "value": "{ \"title\":\"玩转一张维格表\", \"video\":\"space/2020/12/21/cb7bdf6fe22146068111d46915587fb2\", \"autoPlay\":true }" }, "user_guide_welcome_quick_start_video": { - "value": "{\"title\":\"一分钟快速入门\", \"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\", \"autoPlay\":true}" + "value": "{\"title\":\"VIKA产品演示\", \"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\", \"autoPlay\":true}" }, "user_guide_welcome_template1_icon": { "value": "现有的 icon 链接" diff --git a/packages/core/src/exports/i18n/index.ts b/packages/core/src/exports/i18n/index.ts index 016bb654e1..19abeff021 100644 --- a/packages/core/src/exports/i18n/index.ts +++ b/packages/core/src/exports/i18n/index.ts @@ -20,9 +20,13 @@ * read strings.auto.json, go translation */ import { I18N } from '@apitable/i18n'; +import LANGUAGE_DATA from '@apitable/i18n-lang/src/config/strings.json'; import type { StringKeysMapType, StringKeysType } from '../../config/stringkeys.interface'; -export * from '../../config/stringkeys.interface'; +export { StringKeysMapType, StringKeysType }; + +// @ts-ignore nextjs +const isBrowser = process.browser || typeof window !== 'undefined'; export const Strings = new Proxy({} as Record, { get: function (_target, key: string) { @@ -37,19 +41,50 @@ declare const window: any; declare const global: any; const _global = global || window; +const getBrowserLanguage = (): string | undefined => { + if (_global.browserLang){ + return _global.browserLang; + } + // @ts-ignore + const languageMap = _global.languageManifest; + + if (!_global.navigator || !languageMap) { + return undefined; + } + let userLanguage: string | undefined = _global.navigator.language as string; + if (userLanguage == 'zh-TW') { + userLanguage = 'zh-HK'; + } + if (!languageMap[userLanguage]) { + const langArr = Object.keys(languageMap); + if (!langArr) { + userLanguage = undefined; + } + for (let i = 0; i < langArr.length; i++) { + // @ts-ignore + if (langArr[i] !== undefined && langArr[i].indexOf(userLanguage) > -1) { + userLanguage = langArr[i]; + } + } + } + _global.browserLang = userLanguage; + return userLanguage; +}; export function getLanguage() { let clientLang = null; - if (typeof window !== 'undefined') { + if (isBrowser) { try { // @ts-ignore clientLang = localStorage.getItem('client-lang'); } catch (e) {} } + const browserLang = getBrowserLanguage(); + // console.log('browser language is', browserLang); const language = typeof _global == 'object' && _global.__initialization_data__ && _global.__initialization_data__.locale != 'und' && _global.__initialization_data__.locale; const defaultLang = (typeof _global == 'object' && _global.__initialization_data__?.envVars?.SYSTEM_CONFIGURATION_DEFAULT_LANGUAGE) || 'zh-CN'; - return clientLang || language || defaultLang; + return clientLang || browserLang || language || defaultLang; } const fetchLanguagePack = (lang: string, data: any) => { @@ -76,52 +111,9 @@ const fetchLanguagePack = (lang: string, data: any) => { } }; -// get English language pack asynchronously -const fetchLanguagePackAsync = (lang: string, data: any) => { - const version = window.__initialization_data__.version; - // @ts-ignore - fetch(`/file/langs/strings.${lang}.json?version=${version}`) - .then((response: any) => { - if (!response.ok) { - throw new Error('get lang pack error: ' + response.status); - } - return response.json(); // 解析响应为JSON格式 - }) - .then((langPack: any) => { - data[lang] = langPack; - if (_global.apitable_i18n){ - _global.apitable_i18n[lang] = langPack; - } - }); -}; - -const loadLanguage = (lang: string) => { - // console.log('start load language', lang); - let data = {}; - if (typeof window !== 'undefined') { - fetchLanguagePack(lang, data); - if (lang != 'en-US') { - fetchLanguagePackAsync('en-US', data); - } - } else { - try { - // load language for room-server. suitable for docker environment - const fs = require('fs'); - const jsonData = fs.readFileSync(`${__dirname}/../../../../i18n-lang/src/config/strings.json`); - data = JSON.parse(jsonData); - } catch (_e) { - // load language for frontend - try { - const path = require('path'); - const fs = require('fs'); - const pagesDirectory = path.resolve(process.cwd(), '../i18n-lang/src/config/strings.json'); - const jsonData = fs.readFileSync(pagesDirectory); - data = JSON.parse(jsonData); - } catch (error) { - console.error('load strings.json error', error); - } - } - } +const loadClientLanguage = (lang: string) => { + const data = {}; + fetchLanguagePack(lang, data); return data; }; @@ -135,28 +127,26 @@ const rewriteI18nForEdition = () => { } } +}; + +// browser only +if (isBrowser) { + require('@apitable/i18n-lang'); + if (_global.apitable_language_list && Object.keys(_global.apitable_language_list).length > 0) { _global.languageManifest = _global.apitable_language_list; } -}; +} const currentLang = getLanguage().replace('_', '-'); _global.currentLang = currentLang; -_global.apitable_i18n = loadLanguage(currentLang); -// browser only -if (typeof window !== 'undefined') { - require('@apitable/i18n-lang'); -} +_global.apitable_i18n = isBrowser ? loadClientLanguage(currentLang) : LANGUAGE_DATA; + rewriteI18nForEdition(); const i18n = I18N.createByLanguagePacks(_global.apitable_i18n, currentLang); -let engI18n: I18N | null = null; -if (currentLang != 'en-US') { - engI18n = I18N.createByLanguagePacks(_global.apitable_i18n, 'en-US'); -} + export function t(stringKey: keyof StringKeysMapType | unknown, options: any = null, isPlural = false): string { const text = i18n.getText(stringKey as string, options, isPlural); - if (currentLang != 'en-US' && !text && engI18n != null && _global.apitable_i18n['en-US']) { - return engI18n.getText(stringKey as string, options, isPlural); - } return text; -} \ No newline at end of file +} + diff --git a/packages/core/src/model/field/index.ts b/packages/core/src/model/field/index.ts index 3818cb60cc..967beeab64 100644 --- a/packages/core/src/model/field/index.ts +++ b/packages/core/src/model/field/index.ts @@ -1,3 +1,21 @@ +/** + * APITable + * Copyright (C) 2022 APITable Ltd. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import { Store } from 'redux'; import { FieldType, @@ -87,6 +105,7 @@ export * from './created_by_field'; export * from './last_modified_by_field'; export * from './text_base_field'; export * from './workdoc_field'; +export * from './button_field'; export * from './utils'; export { numberThresholdValue, OtherTypeUnitId } from './const'; diff --git a/packages/core/src/modules/database/api/wasm/index.ts b/packages/core/src/modules/database/api/wasm/index.ts index 494ba02a87..c260ef2d5b 100644 --- a/packages/core/src/modules/database/api/wasm/index.ts +++ b/packages/core/src/modules/database/api/wasm/index.ts @@ -148,7 +148,9 @@ const getBrowserDatabusApiEnabled = () => { const parsedTestFunctionSettings = testFunctionSettings == null ? {} : JSON.parse(testFunctionSettings); return parsedTestFunctionSettings['dataBusWasmEnable'] != null; } catch (e) { - console.error('error getting browser databus api enabled', e); + if (isClient()) { + console.error('error getting browser databus api enabled', e); + } return false; } }; diff --git a/packages/core/src/modules/database/store/selectors/resource/datasheet/calc.ts b/packages/core/src/modules/database/store/selectors/resource/datasheet/calc.ts index 82b69b3cdd..39aff2b290 100644 --- a/packages/core/src/modules/database/store/selectors/resource/datasheet/calc.ts +++ b/packages/core/src/modules/database/store/selectors/resource/datasheet/calc.ts @@ -173,6 +173,21 @@ export const getCurrentViewBase = ( const permissionColumns = filterColumnsByPermission(view.columns, fieldPermissionMap); if (permissionColumns.length !== view.columns.length) { + // we need to update the frozenColumnCount in mirror view when the permissionColumns is changed + if (mirror?.id && (view.type === ViewType.Grid || view.type === ViewType.Gantt)) { + let frozenColumnCount = view.frozenColumnCount; + view.columns.slice(0, view.frozenColumnCount).forEach(column => { + const fieldRole = getFieldRoleByFieldId(fieldPermissionMap, column.fieldId); + if (fieldRole === Role.None) { + frozenColumnCount--; + } + }); + return { + ...view, + frozenColumnCount, + columns: permissionColumns, + }; + } return { ...view, columns: permissionColumns, diff --git a/packages/core/src/modules/database/store/selectors/resource/datasheet/cell_calc.ts b/packages/core/src/modules/database/store/selectors/resource/datasheet/cell_calc.ts index 1a7235cb77..a9dc33f73a 100644 --- a/packages/core/src/modules/database/store/selectors/resource/datasheet/cell_calc.ts +++ b/packages/core/src/modules/database/store/selectors/resource/datasheet/cell_calc.ts @@ -4,6 +4,7 @@ import { CacheManager } from 'cache_manager'; import { dataSelfHelper } from 'compute_manager/compute_cache_manager'; import { IRecord, IRecordSnapshot, IReduxState, ISnapshot, Role } from 'exports/store/interfaces'; import { evaluate } from 'formula_parser/evaluate'; +import { ButtonField } from 'model/field/button_field'; import { handleEmptyCellValue } from 'model/utils'; import { ICellValue } from 'model/record'; import { BasicValueType, FieldType, IAttachmentValue, IFormulaField } from 'types/field_types'; @@ -197,6 +198,9 @@ export const getComputeCellValue = (state: IReduxState, snapshot: IRecordSnapsho case FieldType.LookUp: { return Field.bindContext(field, state).getCellValue(recordId, withError); } + case FieldType.Button: { + return (Field.bindContext(field, state) as ButtonField).cellValueToArray(null); + } case FieldType.CreatedBy: case FieldType.LastModifiedBy: case FieldType.CreatedTime: diff --git a/packages/core/src/modules/space/store/actions/space.ts b/packages/core/src/modules/space/store/actions/space.ts index 7253aa0266..27bfa99231 100644 --- a/packages/core/src/modules/space/store/actions/space.ts +++ b/packages/core/src/modules/space/store/actions/space.ts @@ -23,7 +23,7 @@ import * as ActionConstants from 'modules/shared/store/action_constants'; import { IApp, IEnvs, IReduxState, ISpaceBasicInfo, ISpaceErr, ISpaceFeatures, ISpaceInfo } from 'exports/store/interfaces'; import { initCatalogTree } from './catalog_tree'; import { getUserMe } from '../../../user/store/actions/user'; -import { updateSpaceResource } from 'exports/store/actions'; +import { setLabs, updateSpaceResource } from 'exports/store/actions'; /** * Get Space List @@ -210,6 +210,7 @@ export const getSpaceInfo = (spaceId: string, ignoreTimeLimit: boolean = false) dispatch(setSpaceInfo({ ...data, lastUpdateTime: Date.now() })); dispatch(setSpaceFeatures(data.feature)); dispatch(updateSpaceResource(data.userResource)); + dispatch(setLabs(data.labsKeys)); } }, err => { console.log('API.spaceInfo error', err); diff --git a/packages/core/src/modules/space/store/interfaces/space.ts b/packages/core/src/modules/space/store/interfaces/space.ts index 3b2bebfa54..967db5dcdb 100644 --- a/packages/core/src/modules/space/store/interfaces/space.ts +++ b/packages/core/src/modules/space/store/interfaces/space.ts @@ -130,6 +130,7 @@ export interface ISpaceBasicInfo { galleryViewNums: number; ganttViewNums: number; kanbanViewNums: number; + labsKeys: string[]; calendarViewNums: number; mirrorNums: number; nodeRoleNums: number; diff --git a/packages/core/src/modules/user/api/api.auth.ts b/packages/core/src/modules/user/api/api.auth.ts index b23b8e465a..dd1c08ada5 100644 --- a/packages/core/src/modules/user/api/api.auth.ts +++ b/packages/core/src/modules/user/api/api.auth.ts @@ -89,10 +89,11 @@ export function signUp(token?: string, inviteCode?: string) { * */ -export function register(username: string, credential: string) { +export function register(username: string, credential: string, lang = 'en-US') { return axios.post(Url.REGISTER, { username, - credential + credential, + lang }); } diff --git a/packages/core/src/utils/types.ts b/packages/core/src/utils/types.ts index 66bc8f0329..834ee21b49 100644 --- a/packages/core/src/utils/types.ts +++ b/packages/core/src/utils/types.ts @@ -60,7 +60,7 @@ export function isGroupFieldValid(snapshot: ISnapshot, group: IGroupInfo, viewTy } export function isTextBaseType(type: FieldType): boolean { - return [FieldType.Text, FieldType.Phone, FieldType.Email, FieldType.URL, FieldType.SingleText].includes(type); + return [FieldType.Text, FieldType.Phone, FieldType.Email, FieldType.URL, FieldType.Button, FieldType.SingleText].includes(type); } export function isEnhanceTextType(type: FieldType): boolean { diff --git a/packages/cypress/package.json b/packages/cypress/package.json index e46fddd569..aaeb828a14 100644 --- a/packages/cypress/package.json +++ b/packages/cypress/package.json @@ -1,6 +1,6 @@ { "name": "@apitable/cypress", - "version": "1.6.0", + "version": "1.7.0", "description": "> TODO: description", "author": "APITable Ltd. ", "license": "AGPL-3.0", diff --git a/packages/databus-client/package.json b/packages/databus-client/package.json index 0bb031ca1d..72a77690c5 100644 --- a/packages/databus-client/package.json +++ b/packages/databus-client/package.json @@ -1,6 +1,6 @@ { "name": "databus-client", - "version": "1.6.0", + "version": "1.7.0", "description": "OpenAPI client for databus-client", "author": "OpenAPI-Generator Contributors", "repository": { diff --git a/packages/databus-wasm-nodejs/package.json b/packages/databus-wasm-nodejs/package.json index 46d6e87206..f697275374 100644 --- a/packages/databus-wasm-nodejs/package.json +++ b/packages/databus-wasm-nodejs/package.json @@ -3,7 +3,7 @@ "collaborators": [ "Kelly Peilin Chan " ], - "version": "1.6.0", + "version": "1.7.0", "files": [ "databus_wasm_bg.wasm", "databus_wasm.js", diff --git a/packages/databus-wasm-web/package.json b/packages/databus-wasm-web/package.json index b806a08b5a..0cbe750e72 100644 --- a/packages/databus-wasm-web/package.json +++ b/packages/databus-wasm-web/package.json @@ -3,7 +3,7 @@ "collaborators": [ "Kelly Peilin Chan " ], - "version": "1.6.0", + "version": "1.7.0", "files": [ "databus_wasm_bg.wasm", "databus_wasm.js", diff --git a/packages/datasheet/package.json b/packages/datasheet/package.json index 50324f0b5a..0995fa8dd9 100644 --- a/packages/datasheet/package.json +++ b/packages/datasheet/package.json @@ -1,6 +1,6 @@ { "name": "@apitable/datasheet", - "version": "1.6.0", + "version": "1.7.0", "author": "APITable Ltd. ", "license": "AGPL-3.0", "scripts": { @@ -22,12 +22,12 @@ "node": "16.15.0" }, "dependencies": { - "@apitable/ai": "*", - "@apitable/api-client": "*", - "@apitable/components": "*", - "@apitable/core": "*", - "@apitable/i18n-lang": "*", - "@apitable/icons": "*", + "@apitable/ai": "workspace:*", + "@apitable/api-client": "workspace:*", + "@apitable/components": "workspace:*", + "@apitable/core": "workspace:*", + "@apitable/i18n-lang": "workspace:*", + "@apitable/icons": "workspace:*", "@apitable/react-flow": "^9.6.12", "@apitable/widget-sdk": "*", "@floating-ui/react": "0.24.5", @@ -72,7 +72,7 @@ "@types/json-schema": "^7.0.12", "@types/react-highlight-words": "^0.16.1", "@types/react-window": "^1.8.1", - "@types/styled-components": "^5.1.26", + "@types/styled-components": "5.1.26", "ahooks": "^3.5.0", "ajv": "^6.12.6", "ajv-i18n": "^4.2.0", diff --git a/packages/datasheet/pages/_app.tsx b/packages/datasheet/pages/_app.tsx index 1b134ddbff..6268cc640b 100644 --- a/packages/datasheet/pages/_app.tsx +++ b/packages/datasheet/pages/_app.tsx @@ -155,7 +155,7 @@ function MyAppMain({ Component, pageProps, envVars }: AppProps & { envVars: stri const endLoading = () => { const ele = document.querySelector('.script-loading-wrap'); - // delete loading : scale logo -> vika -> wait 1000ms -> disappear + // delete loading : scale logo -> aitable -> wait 1000ms -> disappear const logoImg = document.querySelector('.script-loading-logo-img'); logoImg?.classList.remove('loading-static-animation'); setTimeout(() => ele?.classList.add('script-loading-wrap-finished'), 0); diff --git a/packages/datasheet/public/file/langs/strings.ar-SA.json b/packages/datasheet/public/file/langs/strings.ar-SA.json index 97dd583e95..a87b2d7ece 100644 --- a/packages/datasheet/public/file/langs/strings.ar-SA.json +++ b/packages/datasheet/public/file/langs/strings.ar-SA.json @@ -3481,13 +3481,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", diff --git a/packages/datasheet/public/file/langs/strings.de-DE.json b/packages/datasheet/public/file/langs/strings.de-DE.json index a09640c97a..22d16049c9 100644 --- a/packages/datasheet/public/file/langs/strings.de-DE.json +++ b/packages/datasheet/public/file/langs/strings.de-DE.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "Läuft diesen Monat", "automation_stay_tuned": "Bleiben Sie dran", "automation_success": "Erfolg", + "automation_tips": "Das Schaltflächenfeld ist falsch konfiguriert. Bitte überprüfen Sie es und versuchen Sie es erneut", "automation_updater_label": "Kann den Ausführungsverlauf der Automatisierung anzeigen", "automation_variabel_empty": "Es sind keine Daten vorhanden, die im Vorschritt verwendet werden können. Bitte passen Sie sie an und versuchen Sie es erneut.", "automation_variable_datasheet": "Daten von ${NODE_NAME} abrufen", @@ -869,6 +870,7 @@ "bermuda": "Bermuda", "bhutan": "Bhutan", "billing_over_limit_tip_common": "Die Nutzung des Speicherplatzes hat das Limit überschritten und Sie können nach dem Upgrade eine höhere Menge nutzen.", + "billing_over_limit_tip_forbidden": "Ihre Testdauer oder Ihr Abonnementzeitraum ist abgelaufen. Für eine Verlängerung wenden Sie sich bitte an den Verkaufsberater.", "billing_over_limit_tip_widget": "Die Anzahl der Widget-Installationen hat das Limit überschritten und Sie können ein Upgrade durchführen, um eine höhere Nutzung zu erzielen.", "billing_period": "Abrechnungszeitraum: ${period}", "billing_subscription_warning": "Feature-Erfahrung", @@ -928,10 +930,14 @@ "button_text": "Schaltflächentext", "button_text_click_start": "Klicken Sie zum Starten", "button_type": "Schaltflächentyp", + "by_days": "Tage", "by_field_id": "Feld-ID verwenden", + "by_hours": "Std", + "by_months": "Monate", "by_the_day": "Tagsüber", "by_the_month": "Monatlich", "by_the_year": "Jährlich", + "by_weeks": "Wochen", "calendar_add_date_time_field": "Datumsfeld erstellen", "calendar_color_more": "Mehr Farben", "calendar_const_detail_weeks": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]", @@ -1786,7 +1792,7 @@ "expired": "Abgelaufen", "export": "Exportieren...", "export_brand_desc": "Bereitgestellt von", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Export in eine .png-Datei", "export_gantt_chart": "Gantt-Diagramm exportieren", "export_to_excel": "Daten exportieren", @@ -2491,6 +2497,8 @@ "guests_per_space": "Gäste pro Raum", "guide_1": "啊这", "guide_2": "Es dauert nur wenige Minuten, um die grundlegenden Funktionen zu erlernen. Arbeiten Sie ab diesem Moment produktiver!", + "guide_flow_modal_contact_sales": "Kontaktieren Sie den Vertrieb", + "guide_flow_modal_get_started": "Loslegen", "guide_flow_of_catalog_step1": "Hier ist der Arbeitskatalog, in dem alle Ordner und Dateien des Space gespeichert sind.", "guide_flow_of_catalog_step2": "Im Arbeitskatalog können Sie nach Bedarf ein Datenblatt oder einen Ordner erstellen.", "guide_flow_of_click_add_view_step1": "Zusätzlich zu einigen grundlegenden Ansichten wird dringend empfohlen, eine Albumansicht zu erstellen, wenn Sie Anhänge im Bildformat haben.", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "Enterprise Plan mit Lark", "lark_version_standard": "Standardplan mit Lerche", "lark_versions_free": "Grundplan mit Lerche", + "last_day": "Letzter Tag", "last_modified_by_select_modal_desc": "Wenn eines der unten ausgewählten Felder bearbeitet wird, wird das zuletzt bearbeitete Mitglied im zuletzt bearbeiteten Feld angezeigt.", "last_modified_time_select_modal_desc": "Wenn eines der unten ausgewählten Felder bearbeitet wird, wird die zuletzt bearbeitete Zeit im zuletzt bearbeiteten Zeitfeld angezeigt.", "last_step": "Zurück", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ „headerImg“: „https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1“, „readMoreUrl“: „https://help.vika.cn/changelog/23-04-10- Updates\", \"Kinder\": \"

🚀 Einführung neuer Funktionen

\\N
  • Der neue Feldtyp „Cascader“ wird eingeführt, der die Auswahl aus einer Hierarchie von Optionen auf Formularen erleichtert
  • Das Widget „Skript“ wird veröffentlicht, weniger Code für mehr Anpassungsmöglichkeiten
  • Lösen Sie die Automatisierung aus, um E-Mails zu senden und schnelle Benachrichtigungen zu erhalten
  • Lösen Sie die Automatisierung aus, um eine Nachricht an Slack zu senden und Ihr Team rechtzeitig zu informieren
  • KI erforschen: Widget „GPT Content Generator“ veröffentlicht
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Einführung in den AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Einführung in den AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "Klicken Sie auf die Schaltfläche unten, um eine Vorschau erneut anzuzeigen", "preview_guide_enable_it": "Drücken Sie die Taste unten, um diese Funktion einzuschalten", "preview_guide_open_office_preview": "Um eine Vorschau dieser Datei anzuzeigen, aktivieren Sie bitte die Funktion \"Office Preview\"", + "preview_next_automation_execution_time": "Vorschau der nächsten 5 Ausführungszeiten", "preview_not_support_video_codecs": "Nur MP4-Videos mit H.264-Videocodecs können in der Vorschau angezeigt werden", "preview_revision": "Vorschau", "preview_see_more": "Möchten Sie mehr über die Funktion \"Office File Preview\" erfahren? Bitte klicken Sie hier", @@ -4478,6 +4488,7 @@ "scan_to_login": "Scannen, um sich anzumelden", "scan_to_login_by_method": "Bitte scannen Sie ${method}, um dem offiziellen Konto zu folgen, um sich anzumelden", "scatter_chart": "Streudiagramm", + "schedule_type": "Zeitplantyp", "science_and_technology": "Wissenschaft und Technologie", "scroll_screen_down": "Einen Bildschirm nach unten scrollen", "scroll_screen_left": "Einen Bildschirm nach links scrollen", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "Die Anzahl der Guthaben, die in diesem Bereich sind, die das Limit überschreiten, werden verwendet.\n", "subscribe_demonstrate": "Demos anfordern", "subscribe_disabled_seat": "Die Anzahl der Personen darf nicht niedriger sein als das ursprüngliche Programm", + "subscribe_grade_business": "Geschäft", "subscribe_grade_free": "Frei", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Profi", + "subscribe_grade_starter": "Anlasser", "subscribe_label_tooltip": "Erweiterte Raumfunktionen", "subscribe_new_choose_member": "Unterstützt bis zu ${member_num} Members", "subscribe_new_choose_member_tips": "Dieser Plan unterstützt 1~${member_num} Mitglieder, um den Raum zu betreten", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "\"${templateName}\" existiert bereits. Wollen Sie es ersetzen?", "template_no_template": "Keine Vorlagen", "template_not_found": "Sie können die gewünschten Vorlagen nicht finden? Sagen Sie uns", - "template_recommend_title": "Heiß", + "template_recommend_title": "🌟 Hot", "template_type": "Vorlage", "terms_of_service": "", "terms_of_service_pure_string": "Nutzungsbedingungen", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "aktualisierte(r) Kommentar(e)", "times_per_month_unit": "Aufruf/Monat", "times_unit": "Aufruf(e)", + "timing_rules": "Zeitliche Koordinierung", "timor_leste": "Timor-Leste", "tip_del_success": "Sie können Ihren Space innerhalb von 7 Tagen wiederherstellen", "tip_do_you_want_to_know_about_field_permission": "Möchten Sie Felddaten verschlüsseln? Erfahren Sie mehr über Feldberechtigungen", diff --git a/packages/datasheet/public/file/langs/strings.en-US.json b/packages/datasheet/public/file/langs/strings.en-US.json index f13c435a1e..2220868b88 100644 --- a/packages/datasheet/public/file/langs/strings.en-US.json +++ b/packages/datasheet/public/file/langs/strings.en-US.json @@ -927,10 +927,14 @@ "button_text": "Button text", "button_text_click_start": "Click to Start", "button_type": "Button Type", + "by_days": "Days", "by_field_id": "Use field ID", + "by_hours": "Hours", + "by_months": "Months", "by_the_day": "By day", "by_the_month": "Monthly", "by_the_year": "Yearly", + "by_weeks": "Weeks", "calendar_add_date_time_field": "Create Date field", "calendar_color_more": "More colors", "calendar_const_detail_weeks": "[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]", @@ -2490,6 +2494,8 @@ "guests_per_space": "Guests per Space", "guide_1": "啊这", "guide_2": "It takes only a few minutes to learn the basic functions. Work more productively from this moment on!", + "guide_flow_modal_contact_sales": "Contact Sales", + "guide_flow_modal_get_started": "Get Started", "guide_flow_of_catalog_step1": "Here is working catalog where all the folders and files of the Space are stored.", "guide_flow_of_catalog_step2": "In the working catalog, you can create a datasheet or a folder as needed.", "guide_flow_of_click_add_view_step1": "In addition to some basic view, you are highly recommended to create an album view if you have attachments in picture format.", @@ -2876,6 +2882,7 @@ "lark_version_enterprise": "Enterprise Plan with Lark", "lark_version_standard": "Standard Plan with Lark", "lark_versions_free": "Basic Plan with Lark", + "last_day": "Last day", "last_modified_by_select_modal_desc": "If any of the fields you select below are edited, the member who edited most recently will show in the last edited by field", "last_modified_time_select_modal_desc": "If any of the fields you select below are edited, the most recently edited time will show in the last edited time field", "last_step": "Back", @@ -3793,7 +3800,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • New field type \"Cascader\" is launched, making selection from a hierarchy of options on forms easier
  • \"Script\" widget is released, less code for more customization
  • Trigger Automation to send Emails, and get fast notifications
  • Trigger Automation to send a message to Slack, and inform your team in time
  • Exploring AI: \"GPT Content Generator\" Widget Released
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI Agent Introduction\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AITable.ai DEMO\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3823,13 +3830,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3926,6 +3933,7 @@ "preview_guide_click_to_restart": "Press the button below to preview again", "preview_guide_enable_it": "Press the button below to turn on this function", "preview_guide_open_office_preview": "To preview this file, please turn on the \"office preview\" function", + "preview_next_automation_execution_time": "Preview next 5 execution times", "preview_not_support_video_codecs": "Only MP4 videos with H.264 video codecs can be preview", "preview_revision": "Preview", "preview_see_more": "Want to learn more about the \"office file preview\" feature? Please click here", @@ -4477,6 +4485,7 @@ "scan_to_login": "Scan to login", "scan_to_login_by_method": "Please scan ${method} to follow official account to login", "scatter_chart": "Scatter Chart", + "schedule_type": "Schedule Type", "science_and_technology": "Science and technology", "scroll_screen_down": "Scroll one screen down", "scroll_screen_left": "Scroll one screen left", @@ -5042,9 +5051,11 @@ "subscribe_credit_usage_over_limit": "The number of credits in the current space exceeds the limit, please upgrade your subscription.\n", "subscribe_demonstrate": "Request demos", "subscribe_disabled_seat": "The number of people cannot be lower than the original program", + "subscribe_grade_business": "Business", "subscribe_grade_free": "Free", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Starter", "subscribe_label_tooltip": "Advanced space features", "subscribe_new_choose_member": "Supports up to ${member_num} members", "subscribe_new_choose_member_tips": "This plan supports 1~${member_num} members to enter the space", @@ -5181,7 +5192,7 @@ "template_name_repetition_title": "\"${templateName}\" already exists. Do you want to replace it?", "template_no_template": "No templates", "template_not_found": "Can't find templates you want? Tell us", - "template_recommend_title": "Hot", + "template_recommend_title": "🌟 Hot", "template_type": "Template", "terms_of_service": "", "terms_of_service_pure_string": "Terms of service", @@ -5327,6 +5338,7 @@ "timemachine_update_comment": "updated comment(s)", "times_per_month_unit": "call(s)/month", "times_unit": " call(s)", + "timing_rules": "Timing", "timor_leste": "Timor-Leste", "tip_del_success": "You can restore your Space within 7 days", "tip_do_you_want_to_know_about_field_permission": "Want to encrypt field data? Learn about field permissions", diff --git a/packages/datasheet/public/file/langs/strings.es-ES.json b/packages/datasheet/public/file/langs/strings.es-ES.json index 894e3f291b..07771dac31 100644 --- a/packages/datasheet/public/file/langs/strings.es-ES.json +++ b/packages/datasheet/public/file/langs/strings.es-ES.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "Funciona este mes", "automation_stay_tuned": "Manténganse al tanto", "automation_success": "Éxito", + "automation_tips": "El campo del botón está mal configurado, verifíquelo e inténtelo nuevamente.", "automation_updater_label": "Puede ver el historial de ejecución de la automatización.", "automation_variabel_empty": "No hay datos que puedan usarse en el paso previo, ajústelos e inténtelo nuevamente.", "automation_variable_datasheet": "Obtener datos de ${NODE_NAME}", @@ -869,6 +870,7 @@ "bermuda": "Bermudas", "bhutan": "Bhután", "billing_over_limit_tip_common": "El uso del espacio ha superado el límite y podrá disfrutar de una cantidad mayor después de la actualización.", + "billing_over_limit_tip_forbidden": "Su duración de prueba o período de suscripción ha expirado. Comuníquese con el asesor de ventas para renovar.", "billing_over_limit_tip_widget": "La cantidad de instalaciones de widgets ha excedido el límite y puede actualizar para obtener un mayor uso.", "billing_period": "Período de facturación: ${period}", "billing_subscription_warning": "Experiencia funcional", @@ -928,10 +930,14 @@ "button_text": "Botón de texto", "button_text_click_start": "Haga clic para comenzar", "button_type": "Tipo de botón", + "by_days": "Días", "by_field_id": "Usar el ID de campo", + "by_hours": "Horas", + "by_months": "Meses", "by_the_day": "Por día", "by_the_month": "Revista mensual", "by_the_year": "Anual", + "by_weeks": "Semanas", "calendar_add_date_time_field": "Crear campo de fecha", "calendar_color_more": "Más colores", "calendar_const_detail_weeks": "[\"lunes\",\"martes\",\"miércoles\",\"jueves\",\"viernes\",\"sábado\",\"domingo\"]", @@ -1786,7 +1792,7 @@ "expired": "Expiración", "export": "Se está exportando...", "export_brand_desc": "Soporte técnico", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Exportar al archivo. PNG", "export_gantt_chart": "Exportar mapa de Gantt", "export_to_excel": "Exportar datos", @@ -2491,6 +2497,8 @@ "guests_per_space": "Huéspedes en cada espacio", "guide_1": "啊这", "guide_2": "Solo se tarda unos minutos en aprender las funciones básicas. ¡¡ a partir de este momento, el trabajo es más eficiente!", + "guide_flow_modal_contact_sales": "Contacto Ventas", + "guide_flow_modal_get_started": "Empezar", "guide_flow_of_catalog_step1": "Este es el catálogo de trabajo en el que se almacenan todas las carpetas y archivos de space.", "guide_flow_of_catalog_step2": "En el catálogo de trabajo, puede crear una tabla de datos o una carpeta según sea necesario.", "guide_flow_of_click_add_view_step1": "Además de algunas vistas básicas, si tiene un adjunto en formato de imagen, se recomienda encarecidamente crear una vista de álbum.", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "El plan empresarial de Lark", "lark_version_standard": "Plano estándar de Lark", "lark_versions_free": "Plano básico de Lark", + "last_day": "Último día", "last_modified_by_select_modal_desc": "Si se edita alguno de los campos seleccionados a continuación, el miembro recién editado se mostrará en el campo editado por última vez.", "last_modified_time_select_modal_desc": "Si se edita alguno de los campos seleccionados a continuación, el tiempo de edición más reciente se mostrará en el campo de tiempo de la última edición.", "last_step": "Volver", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- actualizaciones\", \"niños\": \"

🚀 Introducción de nuevas funciones.

\\norte
  • Se lanza el nuevo tipo de campo \"Cascader\", lo que facilita la selección entre una jerarquía de opciones en los formularios.
  • Se lanza el widget \"Script\", menos código para una mayor personalización
  • Active la automatización para enviar correos electrónicos y recibir notificaciones rápidas
  • Activa la automatización para enviar un mensaje a Slack e informar a tu equipo a tiempo
  • Explorando la IA: Lanzamiento del widget \"Generador de contenido GPT\"
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introducción AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introducción AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "Presione el botón de abajo para Previsualizar de nuevo", "preview_guide_enable_it": "Presione el botón de abajo para abrir esta función", "preview_guide_open_office_preview": "Para Previsualizar este archivo, abra la función \"previsualización de la oficina\"", + "preview_next_automation_execution_time": "Vista previa de los próximos 5 tiempos de ejecución", "preview_not_support_video_codecs": "Solo se pueden Previsualizar vídeos mp4 con Códec de vídeo h.264", "preview_revision": "Vista previa", "preview_see_more": "¿Desea obtener más información sobre la función \"vista previa de archivos de Office\"? Por favor haga clic aquí", @@ -4478,6 +4488,7 @@ "scan_to_login": "Escanear inicio de sesión", "scan_to_login_by_method": "Escanea ${method} para seguir la cuenta oficial e iniciar sesión", "scatter_chart": "Mapa de dispersión", + "schedule_type": "Tipo de horario", "science_and_technology": "Ciencia y tecnología", "scroll_screen_down": "Desplácese hacia abajo por una pantalla", "scroll_screen_left": "Desplaza una pantalla a la izquierda", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "El número de créditos en el espacio actual supera el límite, por favor actualice su suscripción.\n", "subscribe_demonstrate": "Solicitud de presentación", "subscribe_disabled_seat": "El número de personas no puede ser inferior al plan original", + "subscribe_grade_business": "Negocio", "subscribe_grade_free": "Libre", "subscribe_grade_plus": "Más", "subscribe_grade_pro": "A favor", + "subscribe_grade_starter": "Inicio", "subscribe_label_tooltip": "Función espacial avanzada", "subscribe_new_choose_member": "Admite hasta ${member_num} miembros", "subscribe_new_choose_member_tips": "Este plan admite 1~${member_num} miembros para ingresar al espacio", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "\"${templateName}\" ya existe. ¿Quieres cambiarlo?", "template_no_template": "No hay plantilla", "template_not_found": "¿No puede encontrar las plantillas que desea? Dinos", - "template_recommend_title": "Caliente", + "template_recommend_title": "🌟 Hot", "template_type": "Modelo", "terms_of_service": "[términos de servicio]", "terms_of_service_pure_string": "Cláusulas de servicio", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "comentarios actualizados", "times_per_month_unit": "Teléfono / mes", "times_unit": "Teléfono", + "timing_rules": "Momento", "timor_leste": "Timor Oriental", "tip_del_success": "Puede recuperar su espacio compartido en 7 días", "tip_do_you_want_to_know_about_field_permission": "¿Quiere cifrar datos de campo? Más información sobre los permisos de campo", diff --git a/packages/datasheet/public/file/langs/strings.fr-FR.json b/packages/datasheet/public/file/langs/strings.fr-FR.json index 9e2a857312..9bf2f14c2b 100644 --- a/packages/datasheet/public/file/langs/strings.fr-FR.json +++ b/packages/datasheet/public/file/langs/strings.fr-FR.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "Fonctionne ce mois-ci", "automation_stay_tuned": "Restez à l'écoute", "automation_success": "Succès", + "automation_tips": "Le champ du bouton est mal configuré, veuillez vérifier et réessayer", "automation_updater_label": "Peut afficher l'historique d'exécution de l'automatisation", "automation_variabel_empty": "Aucune donnée ne peut être utilisée lors de l'étape préalable, veuillez ajuster et réessayer.", "automation_variable_datasheet": "Obtenir des données de ${NODE_NAME}", @@ -869,6 +870,7 @@ "bermuda": "Les îles Bermudes", "bhutan": "Bhoutan", "billing_over_limit_tip_common": "L'utilisation de l'espace a dépassé la limite et vous pouvez profiter d'un montant plus élevé après la mise à niveau.", + "billing_over_limit_tip_forbidden": "Votre durée d’essai ou votre période d’abonnement a expiré. Veuillez contacter le conseiller commercial pour renouveler.", "billing_over_limit_tip_widget": "Le nombre d'installations de widgets a dépassé la limite et vous pouvez effectuer une mise à niveau pour obtenir une utilisation plus élevée.", "billing_period": "Période de facturation : ${period}", "billing_subscription_warning": "Expérience des fonctionnalités", @@ -928,10 +930,14 @@ "button_text": "Texte du bouton", "button_text_click_start": "Cliquez pour démarrer", "button_type": "Type de bouton", + "by_days": "Jours", "by_field_id": "Utiliser l'ID du champ", + "by_hours": "Heures", + "by_months": "Mois", "by_the_day": "Par jour", "by_the_month": "Mensuel", "by_the_year": "Annuel", + "by_weeks": "Semaines", "calendar_add_date_time_field": "Créer le champ Date", "calendar_color_more": "Plus de couleurs", "calendar_const_detail_weeks": "[\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\",\"dimanche\"]", @@ -1786,7 +1792,7 @@ "expired": "Expiré", "export": "Exportation en cours...", "export_brand_desc": "Propulsé par", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Exporter vers un fichier .png", "export_gantt_chart": "Exporter le diagramme gantt", "export_to_excel": "Exporter les données", @@ -2491,6 +2497,8 @@ "guests_per_space": "Invités par Espace", "guide_1": "啊这", "guide_2": "Il ne faut que quelques minutes pour apprendre les fonctions de base. Travaillez de manière plus productive dès maintenant !", + "guide_flow_modal_contact_sales": "Contacter le service commercial", + "guide_flow_modal_get_started": "Commencer", "guide_flow_of_catalog_step1": "Voici un catalogue fonctionnel où sont stockés tous les dossiers et fichiers de l'espace.", "guide_flow_of_catalog_step2": "Dans le catalogue fonctionnel, vous pouvez créer une feuille de données ou un dossier si nécessaire.", "guide_flow_of_click_add_view_step1": "En plus d'une vue de base, il est fortement recommandé de créer une vue d'album si vous avez des pièces jointes au format image.", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "Plan d'entreprise avec Lark", "lark_version_standard": "Plan standard avec Lark", "lark_versions_free": "Plan de base avec Lark", + "last_day": "Dernier jour", "last_modified_by_select_modal_desc": "Si l'un des champs que vous sélectionnez ci-dessous est modifié, le membre qui a modifié le plus récemment sera affiché dans la dernière édition par champ", "last_modified_time_select_modal_desc": "Si l'un des champs que vous sélectionnez ci-dessous est modifié, la date de modification la plus récente s'affichera dans le dernier champ de temps modifié", "last_step": "Précédent", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- mises à jour\", \"enfants\": \"

🚀 Introduction de nouvelles fonctions

\\n
  • Un nouveau type de champ \"Cascader\" est lancé, facilitant la sélection parmi une hiérarchie d'options sur les formulaires.
  • Le widget \"Script\" est sorti, moins de code pour plus de personnalisation
  • Déclenchez l'automatisation pour envoyer des e-mails et recevoir des notifications rapides
  • Déclenchez l'automatisation pour envoyer un message à Slack et informer votre équipe à temps
  • Explorer l'IA : lancement du widget \"Générateur de contenu GPT\"
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"Comment utiliser un modèle\", \n\"description\": \"Cliquez sur le bouton à gauche pour utiliser le modèle\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introduction au AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introduction au AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>. nt-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"Comment utiliser un modèle\", \n\"description\": \"Sélectionnez où mettre le modèle\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"nom\": \"réponse1\",\n \"titre\": \"Quel genre de questions êtes-vous impatient de résoudre par vikadata? ,\n \"type\": \"checkbox\",\n \"réponses\": [\n \"Planification de travail\",\n \"Service client\",\n \"Gestion de projet\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"Opération e-commerce\",\n \"Planification d'événement\",\n \"Ressources humaines\",\n \"Administration\",\n \"Gestion financière\",\n \"Webcast\",\n \"Gestion des instituts éducatifs\",\n \"Autre\"\n ],\n \"lastAllowInput\": vrai\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Votre titre d'emploi est______\",\n \"type\": \"radio\",\n \"réponses\": [\n \"Directeur Général\",\n \"Chef de projet\",\n \"Gestionnaire de produits\",\n \"Designer\",\n \"Ingénieur R&D \",\n \"Opérateur, éditeur\",\n ventes, service à la clientèle\",\n \"Ressources humaines, administration \",\n \"Finance\", comptable\",\n \"Avocat, affaires juridiques\",\n \"Marketing\",\n \"Professeur\",\n \"Étudiant\",\n \"Autre\"\n ],\n \"lastAllowInput\": vrai\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"Quel est le nom de votre entreprise? ,\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"titre\": \"Veuillez laisser votre adresse e-mail/ numéro de téléphone/ compte Wechat ci-dessous afin que nous puissions vous joindre à temps lorsque vous avez besoin d'aide. ,\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"titre\": \"Merci d'avoir rempli le formulaire, vous pouvez ajouter notre service à la clientèle en cas de besoin\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u. ika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"Vous pouvez rapidement créer un formulaire à partir de la vue actuelle. Le nombre et l'ordre des champs dans le formulaire sont compatibles avec la vue.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR . tyle_help__1sXEA\", \n\"placement\": \"rightBais\",\n \"title\": \"Conseil\", \n\"offsetY\":5,\n\"description\": \"Vous pouvez trouver votre assistant Vikaby à partir de l'icône \"Aide\" à gauche\", \"enfants\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Vous voulez utiliser et visualiser vos données de manière plus riche? Essayez le widget ! , \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"élément\": \". tyle_widgetPanelContainer__1l2ZV\",\n\"placement\": \"centre gauche\",\n \"titre\": \"Qu'est-ce qu'un widget\", \n\"description\": \"Les widgets Vika sont une application étendue de vikadonnées qui se caractérise par une visualisation de données plus riche, le transfert de données, le nettoyage de données, et plus encore. En installant des widgets dans le tableau des widgets, vous pouvez faciliter le travail.\", \"enfants\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officiellement recommandé et personnalisés widgets sont publiés ici. Vous pouvez installer n'importe quel widget que vous voulez sur un tableau de bord ou dans un widget de n'importe quelle feuille de données.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 bouton\",\n\"placement\": \"rightBottom\",\n \"title\": \"Installer le widget\", \n\"description\": \"Installons ce widget \"Graphique\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "Appuyez sur le bouton ci-dessous pour prévisualiser à nouveau", "preview_guide_enable_it": "Appuyez sur le bouton ci-dessous pour activer cette fonction", "preview_guide_open_office_preview": "Pour visualiser ce fichier, veuillez activer la fonction \"Prévisualisation bureautique\"", + "preview_next_automation_execution_time": "Aperçu des 5 prochaines heures d'exécution", "preview_not_support_video_codecs": "Seules les vidéos MP4 avec des codecs H.264 peuvent être prévisualisées", "preview_revision": "Aperçu", "preview_see_more": "Vous voulez en savoir plus sur la fonction \"aperçu des dossiers de bureau\" ? Veuillez cliquer ici", @@ -4478,6 +4488,7 @@ "scan_to_login": "Scanner pour se connecter", "scan_to_login_by_method": "Veuillez scanner ${method} pour suivre le compte officiel pour vous connecter", "scatter_chart": "Graphique de dispersion", + "schedule_type": "Type d'horaire", "science_and_technology": "Science et technologie", "scroll_screen_down": "Faire défiler un écran vers le bas", "scroll_screen_left": "Faire défiler un écran vers la gauche", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "Le nombre de crédits dans l'espace actuel dépasse la limite, veuillez mettre à jour votre abonnement.\n", "subscribe_demonstrate": "Demander des démos", "subscribe_disabled_seat": "Le nombre de personnes ne peut pas être inférieur au programme original", + "subscribe_grade_business": "Entreprise", "subscribe_grade_free": "Gratuit", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Approuvé", + "subscribe_grade_starter": "Entrée", "subscribe_label_tooltip": "Fonctionnalités de l'espace avancé", "subscribe_new_choose_member": "Prend en charge jusqu'à ${member_num} membres", "subscribe_new_choose_member_tips": "Ce forfait permet à 1 ~ ${member_num} membres d'accéder à l'espace", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "\"${templateName}\" existe déjà. Voulez-vous le remplacer?", "template_no_template": "Aucun modèle", "template_not_found": "Vous ne trouvez pas de modèles que vous voulez ? Dites-nous", - "template_recommend_title": "Chaud", + "template_recommend_title": "🌟 Hot", "template_type": "Gabarit", "terms_of_service": "< conditions d'utilisation >", "terms_of_service_pure_string": "Conditions d'utilisation", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "commentaire(s) mis à jour", "times_per_month_unit": "appel(s)/mois", "times_unit": " appel(s)", + "timing_rules": "Horaire", "timor_leste": "Timor oriental", "tip_del_success": "Vous pouvez restaurer votre Espace dans les 7 jours", "tip_do_you_want_to_know_about_field_permission": "Vous voulez chiffrer les données des champs ? En savoir plus sur les autorisations des champs", diff --git a/packages/datasheet/public/file/langs/strings.it-IT.json b/packages/datasheet/public/file/langs/strings.it-IT.json index 75bb334758..e102f3ab58 100644 --- a/packages/datasheet/public/file/langs/strings.it-IT.json +++ b/packages/datasheet/public/file/langs/strings.it-IT.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "Esce questo mese", "automation_stay_tuned": "Rimani sintonizzato", "automation_success": "Successo", + "automation_tips": "Il campo del pulsante non è configurato correttamente, controlla e riprova", "automation_updater_label": "Può visualizzare la cronologia di esecuzione dell'automazione", "automation_variabel_empty": "Non ci sono dati che possano essere utilizzati nel passaggio preliminare, modificali e riprova.", "automation_variable_datasheet": "Ottieni dati da ${NODE_NAME}", @@ -869,6 +870,7 @@ "bermuda": "Bermude", "bhutan": "Bhutan", "billing_over_limit_tip_common": "L'utilizzo dello spazio ha superato il limite e potrai usufruire di un importo maggiore dopo l'aggiornamento.", + "billing_over_limit_tip_forbidden": "La durata della prova o il periodo di abbonamento sono scaduti. Si prega di contattare il consulente di vendita per rinnovare.", "billing_over_limit_tip_widget": "Il numero di installazioni di widget ha superato il limite ed è possibile eseguire l'aggiornamento per ottenere un utilizzo maggiore.", "billing_period": "Periodo di fatturazione: ${period}", "billing_subscription_warning": "Esperienza caratteristica", @@ -928,10 +930,14 @@ "button_text": "Testo del pulsante", "button_text_click_start": "Fare clic per iniziare", "button_type": "Tipo di pulsante", + "by_days": "Giorni", "by_field_id": "Usa ID campo", + "by_hours": "Ore", + "by_months": "Mesi", "by_the_day": "Di giorno", "by_the_month": "Mensile", "by_the_year": "Annuale", + "by_weeks": "Settimane", "calendar_add_date_time_field": "Crea campo data", "calendar_color_more": "Altri colori", "calendar_const_detail_weeks": "[\"lunedì\",\"martedì\",\"mercoledì\",\"giovedì\",\"venerdì\",\"sabato\",\"domenica\"]", @@ -1786,7 +1792,7 @@ "expired": "Scaduto", "export": "Esportazione...", "export_brand_desc": "Offerto da", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Esporta in un file .png", "export_gantt_chart": "Esporta il grafico gantt", "export_to_excel": "Esporta dati", @@ -2491,6 +2497,8 @@ "guests_per_space": "Ospiti per spazio", "guide_1": "啊这", "guide_2": "Ci vogliono solo pochi minuti per imparare le funzioni di base. Lavora in modo più produttivo da questo momento in poi!", + "guide_flow_modal_contact_sales": "Contatta l'ufficio vendite", + "guide_flow_modal_get_started": "Iniziare", "guide_flow_of_catalog_step1": "Qui è il catalogo di lavoro in cui tutte le cartelle e i file dello spazio sono memorizzati.", "guide_flow_of_catalog_step2": "Nel catalogo di lavoro è possibile creare un foglio dati o una cartella a seconda delle necessità.", "guide_flow_of_click_add_view_step1": "Oltre ad alcune viste di base, si consiglia vivamente di creare una vista album se si dispone di allegati in formato immagine.", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "Piano d'impresa con Lark", "lark_version_standard": "Piano standard con Lark", "lark_versions_free": "Piano di base con Lark", + "last_day": "Ultimo giorno", "last_modified_by_select_modal_desc": "Se uno dei campi selezionati di seguito viene modificato, il membro che ha modificato di recente verrà visualizzato nell'ultimo campo modificato", "last_modified_time_select_modal_desc": "Se uno dei campi selezionati di seguito viene modificato, l'ora modificata più recente verrà visualizzata nel campo dell'ultima modifica", "last_step": "Indietro", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- aggiornamenti\", \"bambini\": \"

🚀 Introduzione di nuove funzionalità

\\N
  • Viene lanciato il nuovo tipo di campo \"Cascader\", rendendo più semplice la selezione da una gerarchia di opzioni sui moduli
  • Viene rilasciato il widget \"Script\", meno codice per una maggiore personalizzazione
  • Attiva l'automazione per inviare e-mail e ricevere notifiche rapide
  • Attiva l'automazione per inviare un messaggio a Slack e informare il tuo team in tempo
  • Esplorando l'intelligenza artificiale: rilasciato il widget \"Generatore di contenuti GPT\".
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introduzione agente AI\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introduzione agente AI\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "Premere il pulsante qui sotto per visualizzare nuovamente l'anteprima", "preview_guide_enable_it": "Premere il pulsante qui sotto per attivare questa funzione", "preview_guide_open_office_preview": "Per visualizzare l'anteprima di questo file, attivare la funzione \"anteprima ufficio\"", + "preview_next_automation_execution_time": "Anteprima dei prossimi 5 tempi di esecuzione", "preview_not_support_video_codecs": "Solo i video MP4 con codec video H.264 possono essere visualizzati in anteprima", "preview_revision": "Anteprima", "preview_see_more": "Vuoi saperne di più sulla funzione \"anteprima file di ufficio\"? Clicca qui", @@ -4478,6 +4488,7 @@ "scan_to_login": "Scansiona per accedere", "scan_to_login_by_method": "Scansiona ${method} per seguire l'account ufficiale per accedere", "scatter_chart": "Grafico a dispersione", + "schedule_type": "Tipo di pianificazione", "science_and_technology": "Scienza e tecnologia", "scroll_screen_down": "Scorri uno schermo verso il basso", "scroll_screen_left": "Scorri uno schermo a sinistra", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "Il numero di crediti nello spazio corrente supera il limite, si prega di aggiornare il vostro abbonamento.\n", "subscribe_demonstrate": "Richiedi demo", "subscribe_disabled_seat": "Il numero di persone non può essere inferiore al programma originale", + "subscribe_grade_business": "Attività commerciale", "subscribe_grade_free": "Gratis", "subscribe_grade_plus": "Più", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Antipasto", "subscribe_label_tooltip": "Caratteristiche avanzate dello spazio", "subscribe_new_choose_member": "Supporta fino a ${member_num} membri", "subscribe_new_choose_member_tips": "Questo piano supporta 1~${member_num} membri per entrare nello spazio", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "\"${templateName}\" esiste già. Vuoi sostituirlo?", "template_no_template": "Nessun modello", "template_not_found": "Non riesci a trovare i modelli che desideri? Dicci", - "template_recommend_title": "Caldo", + "template_recommend_title": "🌟 Hot", "template_type": "Modello", "terms_of_service": "", "terms_of_service_pure_string": "Condizioni di servizio", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "commenti aggiornati", "times_per_month_unit": "invito/mese", "times_unit": "call(s)", + "timing_rules": "Tempistica", "timor_leste": "Timor-Est", "tip_del_success": "Puoi ripristinare il tuo spazio entro 7 giorni", "tip_do_you_want_to_know_about_field_permission": "Vuoi crittografare i dati del campo? Informazioni sulle autorizzazioni dei campi", diff --git a/packages/datasheet/public/file/langs/strings.ja-JP.json b/packages/datasheet/public/file/langs/strings.ja-JP.json index 833d0cd7e1..8c96ec28cb 100644 --- a/packages/datasheet/public/file/langs/strings.ja-JP.json +++ b/packages/datasheet/public/file/langs/strings.ja-JP.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "今月の運行", "automation_stay_tuned": "乞うご期待", "automation_success": "成功", + "automation_tips": "ボタンフィールドの設定が間違っています。確認してもう一度お試しください。", "automation_updater_label": "オートメーションの実行履歴を表示できます", "automation_variabel_empty": "前段階で使用できるデータがありません。調整して再試行してください。", "automation_variable_datasheet": "${NODE_NAME} からデータを取得する", @@ -869,6 +870,7 @@ "bermuda": "バミューダ諸島", "bhutan": "ブータン", "billing_over_limit_tip_common": "容量の使用量が制限を超えているため、アップグレード後はより多くの量をお楽しみいただけます。", + "billing_over_limit_tip_forbidden": "試用期間またはサブスクリプション期間が終了しました。更新するには販売コンサルタントにご連絡ください。", "billing_over_limit_tip_widget": "ウィジェットのインストール数が制限を超えているため、アップグレードして使用量を増やすことができます。", "billing_period": "請求期間: ${period}", "billing_subscription_warning": "機能性", @@ -928,10 +930,14 @@ "button_text": "ボタンのテキスト", "button_text_click_start": "クリックして開始", "button_type": "ボタンの種類", + "by_days": "日々", "by_field_id": "フィールドIDの使用", + "by_hours": "時間", + "by_months": "月", "by_the_day": "日単位", "by_the_month": "月刊誌", "by_the_year": "毎年", + "by_weeks": "週間", "calendar_add_date_time_field": "作成日フィールド", "calendar_color_more": "その他の色", "calendar_const_detail_weeks": "[\"月曜日\",\"火曜日\",\"水曜日\",\"木曜日\",\"金曜日\",\"土曜日\",\"日曜日\"]", @@ -1786,7 +1792,7 @@ "expired": "期限が切れる", "export": "エクスポート中。。。", "export_brand_desc": "テクニカルサポート", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": ".pngファイルにエクスポート", "export_gantt_chart": "ガントチャートのエクスポート", "export_to_excel": "データのエクスポート", @@ -2491,6 +2497,8 @@ "guests_per_space": "各スペースのお客様", "guide_1": "啊这", "guide_2": "基本機能を学ぶのに数分しかかかりません。この瞬間から、仕事の効率がさらにアップ!", + "guide_flow_modal_contact_sales": "営業担当者へのお問い合わせ", + "guide_flow_modal_get_started": "始めましょう", "guide_flow_of_catalog_step1": "これは作業ディレクトリで、スペースのすべてのフォルダとファイルが格納されています。", "guide_flow_of_catalog_step2": "作業ディレクトリでは、必要に応じてデータテーブルまたはフォルダを作成できます。", "guide_flow_of_click_add_view_step1": "基本ビューのほかに、画像形式の添付ファイルがある場合は、アルバムビューを作成することを強くお勧めします。", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "Larkのエンタープライズ計画", "lark_version_standard": "Lark標準平面図", "lark_versions_free": "Larkの基本平面図", + "last_day": "最終日", "last_modified_by_select_modal_desc": "下で選択したフィールドを編集すると、最後に編集したメンバーが最後に編集したフィールドに表示されます", "last_modified_time_select_modal_desc": "下で選択したフィールドを編集すると、最後に編集した時刻が最後に編集した時刻フィールドに表示されます", "last_step": "リターンマッチ", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-更新\"、\"子\": \"

🚀 新機能のご紹介

\\n
  • 新しいフィールド タイプ「Cascader」がリリースされ、フォーム上のオプションの階層からの選択が容易になります。
  • 「スクリプト」ウィジェットがリリースされ、より少ないコードでよりカスタマイズ可能に
  • 自動化をトリガーして電子メールを送信し、迅速な通知を受け取ります
  • 自動化をトリガーして Slack にメッセージを送信し、時間内にチームに通知します
  • AIの探求:「GPT Content Generator」ウィジェットをリリース
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AIエージェント入門\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AIエージェント入門\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "下のボタンを押して再度プレビュー", "preview_guide_enable_it": "次のボタンを押してこの機能を開きます", "preview_guide_open_office_preview": "このファイルをプレビューするには、「オフィスプレビュー」機能を開きます", + "preview_next_automation_execution_time": "次の 5 回の実行時間をプレビューする", "preview_not_support_video_codecs": "H.264ビデオコーデック付きMP 4ビデオのみプレビュー可能", "preview_revision": "プレビュー", "preview_see_more": "オフィスファイルプレビュー機能の詳細について知りたいですか?ここをクリックしてください", @@ -4478,6 +4488,7 @@ "scan_to_login": "スキャンログイン", "scan_to_login_by_method": "${method} をスキャンして公式アカウントをフォローしてログインしてください", "scatter_chart": "さんぷず", + "schedule_type": "スケジュールの種類", "science_and_technology": "科学と技術", "scroll_screen_down": "画面を下にスクロール", "scroll_screen_left": "画面を左にスクロール", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "現在の空間のポイント数が制限を超えていますので、購読をアップグレードしてください。\n", "subscribe_demonstrate": "デモンストレーションのリクエスト", "subscribe_disabled_seat": "人数は当初の計画を下回ってはならない", + "subscribe_grade_business": "仕事", "subscribe_grade_free": "フリー", "subscribe_grade_plus": "プラス", "subscribe_grade_pro": "プロ", + "subscribe_grade_starter": "スターター", "subscribe_label_tooltip": "高度なスペース機能", "subscribe_new_choose_member": "最大 ${member_num} 人のメンバーをサポート", "subscribe_new_choose_member_tips": "このプランでは 1~${member_num} 名のメンバーがスペースに入場できます", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "「${templateName}」はすでに存在します。取り替えたいですか?", "template_no_template": "テンプレートなし", "template_not_found": "希望するテンプレートが見つかりませんでしたか?教えて", - "template_recommend_title": "あつい", + "template_recommend_title": "🌟 Hot", "template_type": "テンプレート", "terms_of_service": "<サービス約款>", "terms_of_service_pure_string": "サービス条件", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "コメントを更新しました", "times_per_month_unit": "コール/月", "times_unit": "コール数", + "timing_rules": "タイミング", "timor_leste": "東ティモール", "tip_del_success": "7日以内に共有スペースをリカバリできます", "tip_do_you_want_to_know_about_field_permission": "フィールドデータを暗号化しますか?フィールド権限の理解", diff --git a/packages/datasheet/public/file/langs/strings.json b/packages/datasheet/public/file/langs/strings.json index 39db71db06..310a27c172 100644 --- a/packages/datasheet/public/file/langs/strings.json +++ b/packages/datasheet/public/file/langs/strings.json @@ -835,6 +835,7 @@ "automation_runs_this_month": "Läuft diesen Monat", "automation_stay_tuned": "Bleiben Sie dran", "automation_success": "Erfolg", + "automation_tips": "Das Schaltflächenfeld ist falsch konfiguriert. Bitte überprüfen Sie es und versuchen Sie es erneut", "automation_updater_label": "Kann den Ausführungsverlauf der Automatisierung anzeigen", "automation_variabel_empty": "Es sind keine Daten vorhanden, die im Vorschritt verwendet werden können. Bitte passen Sie sie an und versuchen Sie es erneut.", "automation_variable_datasheet": "Daten von ${NODE_NAME} abrufen", @@ -870,6 +871,7 @@ "bermuda": "Bermuda", "bhutan": "Bhutan", "billing_over_limit_tip_common": "Die Nutzung des Speicherplatzes hat das Limit überschritten und Sie können nach dem Upgrade eine höhere Menge nutzen.", + "billing_over_limit_tip_forbidden": "Ihre Testdauer oder Ihr Abonnementzeitraum ist abgelaufen. Für eine Verlängerung wenden Sie sich bitte an den Verkaufsberater.", "billing_over_limit_tip_widget": "Die Anzahl der Widget-Installationen hat das Limit überschritten und Sie können ein Upgrade durchführen, um eine höhere Nutzung zu erzielen.", "billing_period": "Abrechnungszeitraum: ${period}", "billing_subscription_warning": "Feature-Erfahrung", @@ -929,10 +931,14 @@ "button_text": "Schaltflächentext", "button_text_click_start": "Klicken Sie zum Starten", "button_type": "Schaltflächentyp", + "by_days": "Tage", "by_field_id": "Feld-ID verwenden", + "by_hours": "Std", + "by_months": "Monate", "by_the_day": "Tagsüber", "by_the_month": "Monatlich", "by_the_year": "Jährlich", + "by_weeks": "Wochen", "calendar_add_date_time_field": "Datumsfeld erstellen", "calendar_color_more": "Mehr Farben", "calendar_const_detail_weeks": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]", @@ -1787,7 +1793,7 @@ "expired": "Abgelaufen", "export": "Exportieren...", "export_brand_desc": "Bereitgestellt von", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Export in eine .png-Datei", "export_gantt_chart": "Gantt-Diagramm exportieren", "export_to_excel": "Daten exportieren", @@ -2492,6 +2498,8 @@ "guests_per_space": "Gäste pro Raum", "guide_1": "啊这", "guide_2": "Es dauert nur wenige Minuten, um die grundlegenden Funktionen zu erlernen. Arbeiten Sie ab diesem Moment produktiver!", + "guide_flow_modal_contact_sales": "Kontaktieren Sie den Vertrieb", + "guide_flow_modal_get_started": "Loslegen", "guide_flow_of_catalog_step1": "Hier ist der Arbeitskatalog, in dem alle Ordner und Dateien des Space gespeichert sind.", "guide_flow_of_catalog_step2": "Im Arbeitskatalog können Sie nach Bedarf ein Datenblatt oder einen Ordner erstellen.", "guide_flow_of_click_add_view_step1": "Zusätzlich zu einigen grundlegenden Ansichten wird dringend empfohlen, eine Albumansicht zu erstellen, wenn Sie Anhänge im Bildformat haben.", @@ -2878,6 +2886,7 @@ "lark_version_enterprise": "Enterprise Plan mit Lark", "lark_version_standard": "Standardplan mit Lerche", "lark_versions_free": "Grundplan mit Lerche", + "last_day": "Letzter Tag", "last_modified_by_select_modal_desc": "Wenn eines der unten ausgewählten Felder bearbeitet wird, wird das zuletzt bearbeitete Mitglied im zuletzt bearbeiteten Feld angezeigt.", "last_modified_time_select_modal_desc": "Wenn eines der unten ausgewählten Felder bearbeitet wird, wird die zuletzt bearbeitete Zeit im zuletzt bearbeiteten Zeitfeld angezeigt.", "last_step": "Zurück", @@ -3795,7 +3804,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ „headerImg“: „https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1“, „readMoreUrl“: „https://help.vika.cn/changelog/23-04-10- Updates\", \"Kinder\": \"

🚀 Einführung neuer Funktionen

\\N
  • Der neue Feldtyp „Cascader“ wird eingeführt, der die Auswahl aus einer Hierarchie von Optionen auf Formularen erleichtert
  • Das Widget „Skript“ wird veröffentlicht, weniger Code für mehr Anpassungsmöglichkeiten
  • Lösen Sie die Automatisierung aus, um E-Mails zu senden und schnelle Benachrichtigungen zu erhalten
  • Lösen Sie die Automatisierung aus, um eine Nachricht an Slack zu senden und Ihr Team rechtzeitig zu informieren
  • KI erforschen: Widget „GPT Content Generator“ veröffentlicht
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Einführung in den AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Einführung in den AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3825,13 +3834,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3928,6 +3937,7 @@ "preview_guide_click_to_restart": "Klicken Sie auf die Schaltfläche unten, um eine Vorschau erneut anzuzeigen", "preview_guide_enable_it": "Drücken Sie die Taste unten, um diese Funktion einzuschalten", "preview_guide_open_office_preview": "Um eine Vorschau dieser Datei anzuzeigen, aktivieren Sie bitte die Funktion \"Office Preview\"", + "preview_next_automation_execution_time": "Vorschau der nächsten 5 Ausführungszeiten", "preview_not_support_video_codecs": "Nur MP4-Videos mit H.264-Videocodecs können in der Vorschau angezeigt werden", "preview_revision": "Vorschau", "preview_see_more": "Möchten Sie mehr über die Funktion \"Office File Preview\" erfahren? Bitte klicken Sie hier", @@ -4479,6 +4489,7 @@ "scan_to_login": "Scannen, um sich anzumelden", "scan_to_login_by_method": "Bitte scannen Sie ${method}, um dem offiziellen Konto zu folgen, um sich anzumelden", "scatter_chart": "Streudiagramm", + "schedule_type": "Zeitplantyp", "science_and_technology": "Wissenschaft und Technologie", "scroll_screen_down": "Einen Bildschirm nach unten scrollen", "scroll_screen_left": "Einen Bildschirm nach links scrollen", @@ -5044,9 +5055,11 @@ "subscribe_credit_usage_over_limit": "Die Anzahl der Guthaben, die in diesem Bereich sind, die das Limit überschreiten, werden verwendet.\n", "subscribe_demonstrate": "Demos anfordern", "subscribe_disabled_seat": "Die Anzahl der Personen darf nicht niedriger sein als das ursprüngliche Programm", + "subscribe_grade_business": "Geschäft", "subscribe_grade_free": "Frei", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Profi", + "subscribe_grade_starter": "Anlasser", "subscribe_label_tooltip": "Erweiterte Raumfunktionen", "subscribe_new_choose_member": "Unterstützt bis zu ${member_num} Members", "subscribe_new_choose_member_tips": "Dieser Plan unterstützt 1~${member_num} Mitglieder, um den Raum zu betreten", @@ -5183,7 +5196,7 @@ "template_name_repetition_title": "\"${templateName}\" existiert bereits. Wollen Sie es ersetzen?", "template_no_template": "Keine Vorlagen", "template_not_found": "Sie können die gewünschten Vorlagen nicht finden? Sagen Sie uns", - "template_recommend_title": "Heiß", + "template_recommend_title": "🌟 Hot", "template_type": "Vorlage", "terms_of_service": "", "terms_of_service_pure_string": "Nutzungsbedingungen", @@ -5329,6 +5342,7 @@ "timemachine_update_comment": "aktualisierte(r) Kommentar(e)", "times_per_month_unit": "Aufruf/Monat", "times_unit": "Aufruf(e)", + "timing_rules": "Zeitliche Koordinierung", "timor_leste": "Timor-Leste", "tip_del_success": "Sie können Ihren Space innerhalb von 7 Tagen wiederherstellen", "tip_do_you_want_to_know_about_field_permission": "Möchten Sie Felddaten verschlüsseln? Erfahren Sie mehr über Feldberechtigungen", @@ -6842,10 +6856,14 @@ "button_text": "Button text", "button_text_click_start": "Click to Start", "button_type": "Button Type", + "by_days": "Days", "by_field_id": "Use field ID", + "by_hours": "Hours", + "by_months": "Months", "by_the_day": "By day", "by_the_month": "Monthly", "by_the_year": "Yearly", + "by_weeks": "Weeks", "calendar_add_date_time_field": "Create Date field", "calendar_color_more": "More colors", "calendar_const_detail_weeks": "[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]", @@ -8405,6 +8423,8 @@ "guests_per_space": "Guests per Space", "guide_1": "啊这", "guide_2": "It takes only a few minutes to learn the basic functions. Work more productively from this moment on!", + "guide_flow_modal_contact_sales": "Contact Sales", + "guide_flow_modal_get_started": "Get Started", "guide_flow_of_catalog_step1": "Here is working catalog where all the folders and files of the Space are stored.", "guide_flow_of_catalog_step2": "In the working catalog, you can create a datasheet or a folder as needed.", "guide_flow_of_click_add_view_step1": "In addition to some basic view, you are highly recommended to create an album view if you have attachments in picture format.", @@ -8791,6 +8811,7 @@ "lark_version_enterprise": "Enterprise Plan with Lark", "lark_version_standard": "Standard Plan with Lark", "lark_versions_free": "Basic Plan with Lark", + "last_day": "Last day", "last_modified_by_select_modal_desc": "If any of the fields you select below are edited, the member who edited most recently will show in the last edited by field", "last_modified_time_select_modal_desc": "If any of the fields you select below are edited, the most recently edited time will show in the last edited time field", "last_step": "Back", @@ -9708,7 +9729,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • New field type \"Cascader\" is launched, making selection from a hierarchy of options on forms easier
  • \"Script\" widget is released, less code for more customization
  • Trigger Automation to send Emails, and get fast notifications
  • Trigger Automation to send a message to Slack, and inform your team in time
  • Exploring AI: \"GPT Content Generator\" Widget Released
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI Agent Introduction\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AITable.ai DEMO\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -9738,13 +9759,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -9841,6 +9862,7 @@ "preview_guide_click_to_restart": "Press the button below to preview again", "preview_guide_enable_it": "Press the button below to turn on this function", "preview_guide_open_office_preview": "To preview this file, please turn on the \"office preview\" function", + "preview_next_automation_execution_time": "Preview next 5 execution times", "preview_not_support_video_codecs": "Only MP4 videos with H.264 video codecs can be preview", "preview_revision": "Preview", "preview_see_more": "Want to learn more about the \"office file preview\" feature? Please click here", @@ -10392,6 +10414,7 @@ "scan_to_login": "Scan to login", "scan_to_login_by_method": "Please scan ${method} to follow official account to login", "scatter_chart": "Scatter Chart", + "schedule_type": "Schedule Type", "science_and_technology": "Science and technology", "scroll_screen_down": "Scroll one screen down", "scroll_screen_left": "Scroll one screen left", @@ -10957,9 +10980,11 @@ "subscribe_credit_usage_over_limit": "The number of credits in the current space exceeds the limit, please upgrade your subscription.\n", "subscribe_demonstrate": "Request demos", "subscribe_disabled_seat": "The number of people cannot be lower than the original program", + "subscribe_grade_business": "Business", "subscribe_grade_free": "Free", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Starter", "subscribe_label_tooltip": "Advanced space features", "subscribe_new_choose_member": "Supports up to ${member_num} members", "subscribe_new_choose_member_tips": "This plan supports 1~${member_num} members to enter the space", @@ -11096,7 +11121,7 @@ "template_name_repetition_title": "\"${templateName}\" already exists. Do you want to replace it?", "template_no_template": "No templates", "template_not_found": "Can't find templates you want? Tell us", - "template_recommend_title": "Hot", + "template_recommend_title": "🌟 Hot", "template_type": "Template", "terms_of_service": "", "terms_of_service_pure_string": "Terms of service", @@ -11242,6 +11267,7 @@ "timemachine_update_comment": "updated comment(s)", "times_per_month_unit": "call(s)/month", "times_unit": " call(s)", + "timing_rules": "Timing", "timor_leste": "Timor-Leste", "tip_del_success": "You can restore your Space within 7 days", "tip_do_you_want_to_know_about_field_permission": "Want to encrypt field data? Learn about field permissions", @@ -12662,6 +12688,7 @@ "automation_runs_this_month": "Funciona este mes", "automation_stay_tuned": "Manténganse al tanto", "automation_success": "Éxito", + "automation_tips": "El campo del botón está mal configurado, verifíquelo e inténtelo nuevamente.", "automation_updater_label": "Puede ver el historial de ejecución de la automatización.", "automation_variabel_empty": "No hay datos que puedan usarse en el paso previo, ajústelos e inténtelo nuevamente.", "automation_variable_datasheet": "Obtener datos de ${NODE_NAME}", @@ -12697,6 +12724,7 @@ "bermuda": "Bermudas", "bhutan": "Bhután", "billing_over_limit_tip_common": "El uso del espacio ha superado el límite y podrá disfrutar de una cantidad mayor después de la actualización.", + "billing_over_limit_tip_forbidden": "Su duración de prueba o período de suscripción ha expirado. Comuníquese con el asesor de ventas para renovar.", "billing_over_limit_tip_widget": "La cantidad de instalaciones de widgets ha excedido el límite y puede actualizar para obtener un mayor uso.", "billing_period": "Período de facturación: ${period}", "billing_subscription_warning": "Experiencia funcional", @@ -12756,10 +12784,14 @@ "button_text": "Botón de texto", "button_text_click_start": "Haga clic para comenzar", "button_type": "Tipo de botón", + "by_days": "Días", "by_field_id": "Usar el ID de campo", + "by_hours": "Horas", + "by_months": "Meses", "by_the_day": "Por día", "by_the_month": "Revista mensual", "by_the_year": "Anual", + "by_weeks": "Semanas", "calendar_add_date_time_field": "Crear campo de fecha", "calendar_color_more": "Más colores", "calendar_const_detail_weeks": "[\"lunes\",\"martes\",\"miércoles\",\"jueves\",\"viernes\",\"sábado\",\"domingo\"]", @@ -13614,7 +13646,7 @@ "expired": "Expiración", "export": "Se está exportando...", "export_brand_desc": "Soporte técnico", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Exportar al archivo. PNG", "export_gantt_chart": "Exportar mapa de Gantt", "export_to_excel": "Exportar datos", @@ -14319,6 +14351,8 @@ "guests_per_space": "Huéspedes en cada espacio", "guide_1": "啊这", "guide_2": "Solo se tarda unos minutos en aprender las funciones básicas. ¡¡ a partir de este momento, el trabajo es más eficiente!", + "guide_flow_modal_contact_sales": "Contacto Ventas", + "guide_flow_modal_get_started": "Empezar", "guide_flow_of_catalog_step1": "Este es el catálogo de trabajo en el que se almacenan todas las carpetas y archivos de space.", "guide_flow_of_catalog_step2": "En el catálogo de trabajo, puede crear una tabla de datos o una carpeta según sea necesario.", "guide_flow_of_click_add_view_step1": "Además de algunas vistas básicas, si tiene un adjunto en formato de imagen, se recomienda encarecidamente crear una vista de álbum.", @@ -14705,6 +14739,7 @@ "lark_version_enterprise": "El plan empresarial de Lark", "lark_version_standard": "Plano estándar de Lark", "lark_versions_free": "Plano básico de Lark", + "last_day": "Último día", "last_modified_by_select_modal_desc": "Si se edita alguno de los campos seleccionados a continuación, el miembro recién editado se mostrará en el campo editado por última vez.", "last_modified_time_select_modal_desc": "Si se edita alguno de los campos seleccionados a continuación, el tiempo de edición más reciente se mostrará en el campo de tiempo de la última edición.", "last_step": "Volver", @@ -15622,7 +15657,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- actualizaciones\", \"niños\": \"

🚀 Introducción de nuevas funciones.

\\norte
  • Se lanza el nuevo tipo de campo \"Cascader\", lo que facilita la selección entre una jerarquía de opciones en los formularios.
  • Se lanza el widget \"Script\", menos código para una mayor personalización
  • Active la automatización para enviar correos electrónicos y recibir notificaciones rápidas
  • Activa la automatización para enviar un mensaje a Slack e informar a tu equipo a tiempo
  • Explorando la IA: Lanzamiento del widget \"Generador de contenido GPT\"
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introducción AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introducción AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -15652,13 +15687,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -15755,6 +15790,7 @@ "preview_guide_click_to_restart": "Presione el botón de abajo para Previsualizar de nuevo", "preview_guide_enable_it": "Presione el botón de abajo para abrir esta función", "preview_guide_open_office_preview": "Para Previsualizar este archivo, abra la función \"previsualización de la oficina\"", + "preview_next_automation_execution_time": "Vista previa de los próximos 5 tiempos de ejecución", "preview_not_support_video_codecs": "Solo se pueden Previsualizar vídeos mp4 con Códec de vídeo h.264", "preview_revision": "Vista previa", "preview_see_more": "¿Desea obtener más información sobre la función \"vista previa de archivos de Office\"? Por favor haga clic aquí", @@ -16306,6 +16342,7 @@ "scan_to_login": "Escanear inicio de sesión", "scan_to_login_by_method": "Escanea ${method} para seguir la cuenta oficial e iniciar sesión", "scatter_chart": "Mapa de dispersión", + "schedule_type": "Tipo de horario", "science_and_technology": "Ciencia y tecnología", "scroll_screen_down": "Desplácese hacia abajo por una pantalla", "scroll_screen_left": "Desplaza una pantalla a la izquierda", @@ -16871,9 +16908,11 @@ "subscribe_credit_usage_over_limit": "El número de créditos en el espacio actual supera el límite, por favor actualice su suscripción.\n", "subscribe_demonstrate": "Solicitud de presentación", "subscribe_disabled_seat": "El número de personas no puede ser inferior al plan original", + "subscribe_grade_business": "Negocio", "subscribe_grade_free": "Libre", "subscribe_grade_plus": "Más", "subscribe_grade_pro": "A favor", + "subscribe_grade_starter": "Inicio", "subscribe_label_tooltip": "Función espacial avanzada", "subscribe_new_choose_member": "Admite hasta ${member_num} miembros", "subscribe_new_choose_member_tips": "Este plan admite 1~${member_num} miembros para ingresar al espacio", @@ -17010,7 +17049,7 @@ "template_name_repetition_title": "\"${templateName}\" ya existe. ¿Quieres cambiarlo?", "template_no_template": "No hay plantilla", "template_not_found": "¿No puede encontrar las plantillas que desea? Dinos", - "template_recommend_title": "Caliente", + "template_recommend_title": "🌟 Hot", "template_type": "Modelo", "terms_of_service": "[términos de servicio]", "terms_of_service_pure_string": "Cláusulas de servicio", @@ -17156,6 +17195,7 @@ "timemachine_update_comment": "comentarios actualizados", "times_per_month_unit": "Teléfono / mes", "times_unit": "Teléfono", + "timing_rules": "Momento", "timor_leste": "Timor Oriental", "tip_del_success": "Puede recuperar su espacio compartido en 7 días", "tip_do_you_want_to_know_about_field_permission": "¿Quiere cifrar datos de campo? Más información sobre los permisos de campo", @@ -18576,6 +18616,7 @@ "automation_runs_this_month": "Fonctionne ce mois-ci", "automation_stay_tuned": "Restez à l'écoute", "automation_success": "Succès", + "automation_tips": "Le champ du bouton est mal configuré, veuillez vérifier et réessayer", "automation_updater_label": "Peut afficher l'historique d'exécution de l'automatisation", "automation_variabel_empty": "Aucune donnée ne peut être utilisée lors de l'étape préalable, veuillez ajuster et réessayer.", "automation_variable_datasheet": "Obtenir des données de ${NODE_NAME}", @@ -18611,6 +18652,7 @@ "bermuda": "Les îles Bermudes", "bhutan": "Bhoutan", "billing_over_limit_tip_common": "L'utilisation de l'espace a dépassé la limite et vous pouvez profiter d'un montant plus élevé après la mise à niveau.", + "billing_over_limit_tip_forbidden": "Votre durée d’essai ou votre période d’abonnement a expiré. Veuillez contacter le conseiller commercial pour renouveler.", "billing_over_limit_tip_widget": "Le nombre d'installations de widgets a dépassé la limite et vous pouvez effectuer une mise à niveau pour obtenir une utilisation plus élevée.", "billing_period": "Période de facturation : ${period}", "billing_subscription_warning": "Expérience des fonctionnalités", @@ -18670,10 +18712,14 @@ "button_text": "Texte du bouton", "button_text_click_start": "Cliquez pour démarrer", "button_type": "Type de bouton", + "by_days": "Jours", "by_field_id": "Utiliser l'ID du champ", + "by_hours": "Heures", + "by_months": "Mois", "by_the_day": "Par jour", "by_the_month": "Mensuel", "by_the_year": "Annuel", + "by_weeks": "Semaines", "calendar_add_date_time_field": "Créer le champ Date", "calendar_color_more": "Plus de couleurs", "calendar_const_detail_weeks": "[\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\",\"dimanche\"]", @@ -19528,7 +19574,7 @@ "expired": "Expiré", "export": "Exportation en cours...", "export_brand_desc": "Propulsé par", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Exporter vers un fichier .png", "export_gantt_chart": "Exporter le diagramme gantt", "export_to_excel": "Exporter les données", @@ -20233,6 +20279,8 @@ "guests_per_space": "Invités par Espace", "guide_1": "啊这", "guide_2": "Il ne faut que quelques minutes pour apprendre les fonctions de base. Travaillez de manière plus productive dès maintenant !", + "guide_flow_modal_contact_sales": "Contacter le service commercial", + "guide_flow_modal_get_started": "Commencer", "guide_flow_of_catalog_step1": "Voici un catalogue fonctionnel où sont stockés tous les dossiers et fichiers de l'espace.", "guide_flow_of_catalog_step2": "Dans le catalogue fonctionnel, vous pouvez créer une feuille de données ou un dossier si nécessaire.", "guide_flow_of_click_add_view_step1": "En plus d'une vue de base, il est fortement recommandé de créer une vue d'album si vous avez des pièces jointes au format image.", @@ -20619,6 +20667,7 @@ "lark_version_enterprise": "Plan d'entreprise avec Lark", "lark_version_standard": "Plan standard avec Lark", "lark_versions_free": "Plan de base avec Lark", + "last_day": "Dernier jour", "last_modified_by_select_modal_desc": "Si l'un des champs que vous sélectionnez ci-dessous est modifié, le membre qui a modifié le plus récemment sera affiché dans la dernière édition par champ", "last_modified_time_select_modal_desc": "Si l'un des champs que vous sélectionnez ci-dessous est modifié, la date de modification la plus récente s'affichera dans le dernier champ de temps modifié", "last_step": "Précédent", @@ -21536,7 +21585,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- mises à jour\", \"enfants\": \"

🚀 Introduction de nouvelles fonctions

\\n
  • Un nouveau type de champ \"Cascader\" est lancé, facilitant la sélection parmi une hiérarchie d'options sur les formulaires.
  • Le widget \"Script\" est sorti, moins de code pour plus de personnalisation
  • Déclenchez l'automatisation pour envoyer des e-mails et recevoir des notifications rapides
  • Déclenchez l'automatisation pour envoyer un message à Slack et informer votre équipe à temps
  • Explorer l'IA : lancement du widget \"Générateur de contenu GPT\"
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"Comment utiliser un modèle\", \n\"description\": \"Cliquez sur le bouton à gauche pour utiliser le modèle\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introduction au AI agent\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introduction au AI agent\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>. nt-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"Comment utiliser un modèle\", \n\"description\": \"Sélectionnez où mettre le modèle\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"nom\": \"réponse1\",\n \"titre\": \"Quel genre de questions êtes-vous impatient de résoudre par vikadata? ,\n \"type\": \"checkbox\",\n \"réponses\": [\n \"Planification de travail\",\n \"Service client\",\n \"Gestion de projet\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"Opération e-commerce\",\n \"Planification d'événement\",\n \"Ressources humaines\",\n \"Administration\",\n \"Gestion financière\",\n \"Webcast\",\n \"Gestion des instituts éducatifs\",\n \"Autre\"\n ],\n \"lastAllowInput\": vrai\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Votre titre d'emploi est______\",\n \"type\": \"radio\",\n \"réponses\": [\n \"Directeur Général\",\n \"Chef de projet\",\n \"Gestionnaire de produits\",\n \"Designer\",\n \"Ingénieur R&D \",\n \"Opérateur, éditeur\",\n ventes, service à la clientèle\",\n \"Ressources humaines, administration \",\n \"Finance\", comptable\",\n \"Avocat, affaires juridiques\",\n \"Marketing\",\n \"Professeur\",\n \"Étudiant\",\n \"Autre\"\n ],\n \"lastAllowInput\": vrai\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"Quel est le nom de votre entreprise? ,\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"titre\": \"Veuillez laisser votre adresse e-mail/ numéro de téléphone/ compte Wechat ci-dessous afin que nous puissions vous joindre à temps lorsque vous avez besoin d'aide. ,\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"titre\": \"Merci d'avoir rempli le formulaire, vous pouvez ajouter notre service à la clientèle en cas de besoin\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u. ika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -21566,13 +21615,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"Vous pouvez rapidement créer un formulaire à partir de la vue actuelle. Le nombre et l'ordre des champs dans le formulaire sont compatibles avec la vue.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR . tyle_help__1sXEA\", \n\"placement\": \"rightBais\",\n \"title\": \"Conseil\", \n\"offsetY\":5,\n\"description\": \"Vous pouvez trouver votre assistant Vikaby à partir de l'icône \"Aide\" à gauche\", \"enfants\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Vous voulez utiliser et visualiser vos données de manière plus riche? Essayez le widget ! , \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"élément\": \". tyle_widgetPanelContainer__1l2ZV\",\n\"placement\": \"centre gauche\",\n \"titre\": \"Qu'est-ce qu'un widget\", \n\"description\": \"Les widgets Vika sont une application étendue de vikadonnées qui se caractérise par une visualisation de données plus riche, le transfert de données, le nettoyage de données, et plus encore. En installant des widgets dans le tableau des widgets, vous pouvez faciliter le travail.\", \"enfants\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"hiérarchie de Vikadata\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officiellement recommandé et personnalisés widgets sont publiés ici. Vous pouvez installer n'importe quel widget que vous voulez sur un tableau de bord ou dans un widget de n'importe quelle feuille de données.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 bouton\",\n\"placement\": \"rightBottom\",\n \"title\": \"Installer le widget\", \n\"description\": \"Installons ce widget \"Graphique\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -21669,6 +21718,7 @@ "preview_guide_click_to_restart": "Appuyez sur le bouton ci-dessous pour prévisualiser à nouveau", "preview_guide_enable_it": "Appuyez sur le bouton ci-dessous pour activer cette fonction", "preview_guide_open_office_preview": "Pour visualiser ce fichier, veuillez activer la fonction \"Prévisualisation bureautique\"", + "preview_next_automation_execution_time": "Aperçu des 5 prochaines heures d'exécution", "preview_not_support_video_codecs": "Seules les vidéos MP4 avec des codecs H.264 peuvent être prévisualisées", "preview_revision": "Aperçu", "preview_see_more": "Vous voulez en savoir plus sur la fonction \"aperçu des dossiers de bureau\" ? Veuillez cliquer ici", @@ -22220,6 +22270,7 @@ "scan_to_login": "Scanner pour se connecter", "scan_to_login_by_method": "Veuillez scanner ${method} pour suivre le compte officiel pour vous connecter", "scatter_chart": "Graphique de dispersion", + "schedule_type": "Type d'horaire", "science_and_technology": "Science et technologie", "scroll_screen_down": "Faire défiler un écran vers le bas", "scroll_screen_left": "Faire défiler un écran vers la gauche", @@ -22785,9 +22836,11 @@ "subscribe_credit_usage_over_limit": "Le nombre de crédits dans l'espace actuel dépasse la limite, veuillez mettre à jour votre abonnement.\n", "subscribe_demonstrate": "Demander des démos", "subscribe_disabled_seat": "Le nombre de personnes ne peut pas être inférieur au programme original", + "subscribe_grade_business": "Entreprise", "subscribe_grade_free": "Gratuit", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Approuvé", + "subscribe_grade_starter": "Entrée", "subscribe_label_tooltip": "Fonctionnalités de l'espace avancé", "subscribe_new_choose_member": "Prend en charge jusqu'à ${member_num} membres", "subscribe_new_choose_member_tips": "Ce forfait permet à 1 ~ ${member_num} membres d'accéder à l'espace", @@ -22924,7 +22977,7 @@ "template_name_repetition_title": "\"${templateName}\" existe déjà. Voulez-vous le remplacer?", "template_no_template": "Aucun modèle", "template_not_found": "Vous ne trouvez pas de modèles que vous voulez ? Dites-nous", - "template_recommend_title": "Chaud", + "template_recommend_title": "🌟 Hot", "template_type": "Gabarit", "terms_of_service": "< conditions d'utilisation >", "terms_of_service_pure_string": "Conditions d'utilisation", @@ -23070,6 +23123,7 @@ "timemachine_update_comment": "commentaire(s) mis à jour", "times_per_month_unit": "appel(s)/mois", "times_unit": " appel(s)", + "timing_rules": "Horaire", "timor_leste": "Timor oriental", "tip_del_success": "Vous pouvez restaurer votre Espace dans les 7 jours", "tip_do_you_want_to_know_about_field_permission": "Vous voulez chiffrer les données des champs ? En savoir plus sur les autorisations des champs", @@ -24490,6 +24544,7 @@ "automation_runs_this_month": "Esce questo mese", "automation_stay_tuned": "Rimani sintonizzato", "automation_success": "Successo", + "automation_tips": "Il campo del pulsante non è configurato correttamente, controlla e riprova", "automation_updater_label": "Può visualizzare la cronologia di esecuzione dell'automazione", "automation_variabel_empty": "Non ci sono dati che possano essere utilizzati nel passaggio preliminare, modificali e riprova.", "automation_variable_datasheet": "Ottieni dati da ${NODE_NAME}", @@ -24525,6 +24580,7 @@ "bermuda": "Bermude", "bhutan": "Bhutan", "billing_over_limit_tip_common": "L'utilizzo dello spazio ha superato il limite e potrai usufruire di un importo maggiore dopo l'aggiornamento.", + "billing_over_limit_tip_forbidden": "La durata della prova o il periodo di abbonamento sono scaduti. Si prega di contattare il consulente di vendita per rinnovare.", "billing_over_limit_tip_widget": "Il numero di installazioni di widget ha superato il limite ed è possibile eseguire l'aggiornamento per ottenere un utilizzo maggiore.", "billing_period": "Periodo di fatturazione: ${period}", "billing_subscription_warning": "Esperienza caratteristica", @@ -24584,10 +24640,14 @@ "button_text": "Testo del pulsante", "button_text_click_start": "Fare clic per iniziare", "button_type": "Tipo di pulsante", + "by_days": "Giorni", "by_field_id": "Usa ID campo", + "by_hours": "Ore", + "by_months": "Mesi", "by_the_day": "Di giorno", "by_the_month": "Mensile", "by_the_year": "Annuale", + "by_weeks": "Settimane", "calendar_add_date_time_field": "Crea campo data", "calendar_color_more": "Altri colori", "calendar_const_detail_weeks": "[\"lunedì\",\"martedì\",\"mercoledì\",\"giovedì\",\"venerdì\",\"sabato\",\"domenica\"]", @@ -25442,7 +25502,7 @@ "expired": "Scaduto", "export": "Esportazione...", "export_brand_desc": "Offerto da", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Esporta in un file .png", "export_gantt_chart": "Esporta il grafico gantt", "export_to_excel": "Esporta dati", @@ -26147,6 +26207,8 @@ "guests_per_space": "Ospiti per spazio", "guide_1": "啊这", "guide_2": "Ci vogliono solo pochi minuti per imparare le funzioni di base. Lavora in modo più produttivo da questo momento in poi!", + "guide_flow_modal_contact_sales": "Contatta l'ufficio vendite", + "guide_flow_modal_get_started": "Iniziare", "guide_flow_of_catalog_step1": "Qui è il catalogo di lavoro in cui tutte le cartelle e i file dello spazio sono memorizzati.", "guide_flow_of_catalog_step2": "Nel catalogo di lavoro è possibile creare un foglio dati o una cartella a seconda delle necessità.", "guide_flow_of_click_add_view_step1": "Oltre ad alcune viste di base, si consiglia vivamente di creare una vista album se si dispone di allegati in formato immagine.", @@ -26533,6 +26595,7 @@ "lark_version_enterprise": "Piano d'impresa con Lark", "lark_version_standard": "Piano standard con Lark", "lark_versions_free": "Piano di base con Lark", + "last_day": "Ultimo giorno", "last_modified_by_select_modal_desc": "Se uno dei campi selezionati di seguito viene modificato, il membro che ha modificato di recente verrà visualizzato nell'ultimo campo modificato", "last_modified_time_select_modal_desc": "Se uno dei campi selezionati di seguito viene modificato, l'ora modificata più recente verrà visualizzata nel campo dell'ultima modifica", "last_step": "Indietro", @@ -27450,7 +27513,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- aggiornamenti\", \"bambini\": \"

🚀 Introduzione di nuove funzionalità

\\N
  • Viene lanciato il nuovo tipo di campo \"Cascader\", rendendo più semplice la selezione da una gerarchia di opzioni sui moduli
  • Viene rilasciato il widget \"Script\", meno codice per una maggiore personalizzazione
  • Attiva l'automazione per inviare e-mail e ricevere notifiche rapide
  • Attiva l'automazione per inviare un messaggio a Slack e informare il tuo team in tempo
  • Esplorando l'intelligenza artificiale: rilasciato il widget \"Generatore di contenuti GPT\".
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Introduzione agente AI\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Introduzione agente AI\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -27480,13 +27543,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -27583,6 +27646,7 @@ "preview_guide_click_to_restart": "Premere il pulsante qui sotto per visualizzare nuovamente l'anteprima", "preview_guide_enable_it": "Premere il pulsante qui sotto per attivare questa funzione", "preview_guide_open_office_preview": "Per visualizzare l'anteprima di questo file, attivare la funzione \"anteprima ufficio\"", + "preview_next_automation_execution_time": "Anteprima dei prossimi 5 tempi di esecuzione", "preview_not_support_video_codecs": "Solo i video MP4 con codec video H.264 possono essere visualizzati in anteprima", "preview_revision": "Anteprima", "preview_see_more": "Vuoi saperne di più sulla funzione \"anteprima file di ufficio\"? Clicca qui", @@ -28134,6 +28198,7 @@ "scan_to_login": "Scansiona per accedere", "scan_to_login_by_method": "Scansiona ${method} per seguire l'account ufficiale per accedere", "scatter_chart": "Grafico a dispersione", + "schedule_type": "Tipo di pianificazione", "science_and_technology": "Scienza e tecnologia", "scroll_screen_down": "Scorri uno schermo verso il basso", "scroll_screen_left": "Scorri uno schermo a sinistra", @@ -28699,9 +28764,11 @@ "subscribe_credit_usage_over_limit": "Il numero di crediti nello spazio corrente supera il limite, si prega di aggiornare il vostro abbonamento.\n", "subscribe_demonstrate": "Richiedi demo", "subscribe_disabled_seat": "Il numero di persone non può essere inferiore al programma originale", + "subscribe_grade_business": "Attività commerciale", "subscribe_grade_free": "Gratis", "subscribe_grade_plus": "Più", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Antipasto", "subscribe_label_tooltip": "Caratteristiche avanzate dello spazio", "subscribe_new_choose_member": "Supporta fino a ${member_num} membri", "subscribe_new_choose_member_tips": "Questo piano supporta 1~${member_num} membri per entrare nello spazio", @@ -28838,7 +28905,7 @@ "template_name_repetition_title": "\"${templateName}\" esiste già. Vuoi sostituirlo?", "template_no_template": "Nessun modello", "template_not_found": "Non riesci a trovare i modelli che desideri? Dicci", - "template_recommend_title": "Caldo", + "template_recommend_title": "🌟 Hot", "template_type": "Modello", "terms_of_service": "", "terms_of_service_pure_string": "Condizioni di servizio", @@ -28984,6 +29051,7 @@ "timemachine_update_comment": "commenti aggiornati", "times_per_month_unit": "invito/mese", "times_unit": "call(s)", + "timing_rules": "Tempistica", "timor_leste": "Timor-Est", "tip_del_success": "Puoi ripristinare il tuo spazio entro 7 giorni", "tip_do_you_want_to_know_about_field_permission": "Vuoi crittografare i dati del campo? Informazioni sulle autorizzazioni dei campi", @@ -30404,6 +30472,7 @@ "automation_runs_this_month": "今月の運行", "automation_stay_tuned": "乞うご期待", "automation_success": "成功", + "automation_tips": "ボタンフィールドの設定が間違っています。確認してもう一度お試しください。", "automation_updater_label": "オートメーションの実行履歴を表示できます", "automation_variabel_empty": "前段階で使用できるデータがありません。調整して再試行してください。", "automation_variable_datasheet": "${NODE_NAME} からデータを取得する", @@ -30439,6 +30508,7 @@ "bermuda": "バミューダ諸島", "bhutan": "ブータン", "billing_over_limit_tip_common": "容量の使用量が制限を超えているため、アップグレード後はより多くの量をお楽しみいただけます。", + "billing_over_limit_tip_forbidden": "試用期間またはサブスクリプション期間が終了しました。更新するには販売コンサルタントにご連絡ください。", "billing_over_limit_tip_widget": "ウィジェットのインストール数が制限を超えているため、アップグレードして使用量を増やすことができます。", "billing_period": "請求期間: ${period}", "billing_subscription_warning": "機能性", @@ -30498,10 +30568,14 @@ "button_text": "ボタンのテキスト", "button_text_click_start": "クリックして開始", "button_type": "ボタンの種類", + "by_days": "日々", "by_field_id": "フィールドIDの使用", + "by_hours": "時間", + "by_months": "月", "by_the_day": "日単位", "by_the_month": "月刊誌", "by_the_year": "毎年", + "by_weeks": "週間", "calendar_add_date_time_field": "作成日フィールド", "calendar_color_more": "その他の色", "calendar_const_detail_weeks": "[\"月曜日\",\"火曜日\",\"水曜日\",\"木曜日\",\"金曜日\",\"土曜日\",\"日曜日\"]", @@ -31356,7 +31430,7 @@ "expired": "期限が切れる", "export": "エクスポート中。。。", "export_brand_desc": "テクニカルサポート", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": ".pngファイルにエクスポート", "export_gantt_chart": "ガントチャートのエクスポート", "export_to_excel": "データのエクスポート", @@ -32061,6 +32135,8 @@ "guests_per_space": "各スペースのお客様", "guide_1": "啊这", "guide_2": "基本機能を学ぶのに数分しかかかりません。この瞬間から、仕事の効率がさらにアップ!", + "guide_flow_modal_contact_sales": "営業担当者へのお問い合わせ", + "guide_flow_modal_get_started": "始めましょう", "guide_flow_of_catalog_step1": "これは作業ディレクトリで、スペースのすべてのフォルダとファイルが格納されています。", "guide_flow_of_catalog_step2": "作業ディレクトリでは、必要に応じてデータテーブルまたはフォルダを作成できます。", "guide_flow_of_click_add_view_step1": "基本ビューのほかに、画像形式の添付ファイルがある場合は、アルバムビューを作成することを強くお勧めします。", @@ -32447,6 +32523,7 @@ "lark_version_enterprise": "Larkのエンタープライズ計画", "lark_version_standard": "Lark標準平面図", "lark_versions_free": "Larkの基本平面図", + "last_day": "最終日", "last_modified_by_select_modal_desc": "下で選択したフィールドを編集すると、最後に編集したメンバーが最後に編集したフィールドに表示されます", "last_modified_time_select_modal_desc": "下で選択したフィールドを編集すると、最後に編集した時刻が最後に編集した時刻フィールドに表示されます", "last_step": "リターンマッチ", @@ -33364,7 +33441,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-更新\"、\"子\": \"

🚀 新機能のご紹介

\\n
  • 新しいフィールド タイプ「Cascader」がリリースされ、フォーム上のオプションの階層からの選択が容易になります。
  • 「スクリプト」ウィジェットがリリースされ、より少ないコードでよりカスタマイズ可能に
  • 自動化をトリガーして電子メールを送信し、迅速な通知を受け取ります
  • 自動化をトリガーして Slack にメッセージを送信し、時間内にチームに通知します
  • AIの探求:「GPT Content Generator」ウィジェットをリリース
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AIエージェント入門\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AIエージェント入門\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -33394,13 +33471,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -33497,6 +33574,7 @@ "preview_guide_click_to_restart": "下のボタンを押して再度プレビュー", "preview_guide_enable_it": "次のボタンを押してこの機能を開きます", "preview_guide_open_office_preview": "このファイルをプレビューするには、「オフィスプレビュー」機能を開きます", + "preview_next_automation_execution_time": "次の 5 回の実行時間をプレビューする", "preview_not_support_video_codecs": "H.264ビデオコーデック付きMP 4ビデオのみプレビュー可能", "preview_revision": "プレビュー", "preview_see_more": "オフィスファイルプレビュー機能の詳細について知りたいですか?ここをクリックしてください", @@ -34048,6 +34126,7 @@ "scan_to_login": "スキャンログイン", "scan_to_login_by_method": "${method} をスキャンして公式アカウントをフォローしてログインしてください", "scatter_chart": "さんぷず", + "schedule_type": "スケジュールの種類", "science_and_technology": "科学と技術", "scroll_screen_down": "画面を下にスクロール", "scroll_screen_left": "画面を左にスクロール", @@ -34613,9 +34692,11 @@ "subscribe_credit_usage_over_limit": "現在の空間のポイント数が制限を超えていますので、購読をアップグレードしてください。\n", "subscribe_demonstrate": "デモンストレーションのリクエスト", "subscribe_disabled_seat": "人数は当初の計画を下回ってはならない", + "subscribe_grade_business": "仕事", "subscribe_grade_free": "フリー", "subscribe_grade_plus": "プラス", "subscribe_grade_pro": "プロ", + "subscribe_grade_starter": "スターター", "subscribe_label_tooltip": "高度なスペース機能", "subscribe_new_choose_member": "最大 ${member_num} 人のメンバーをサポート", "subscribe_new_choose_member_tips": "このプランでは 1~${member_num} 名のメンバーがスペースに入場できます", @@ -34752,7 +34833,7 @@ "template_name_repetition_title": "「${templateName}」はすでに存在します。取り替えたいですか?", "template_no_template": "テンプレートなし", "template_not_found": "希望するテンプレートが見つかりませんでしたか?教えて", - "template_recommend_title": "あつい", + "template_recommend_title": "🌟 Hot", "template_type": "テンプレート", "terms_of_service": "<サービス約款>", "terms_of_service_pure_string": "サービス条件", @@ -34898,6 +34979,7 @@ "timemachine_update_comment": "コメントを更新しました", "times_per_month_unit": "コール/月", "times_unit": "コール数", + "timing_rules": "タイミング", "timor_leste": "東ティモール", "tip_del_success": "7日以内に共有スペースをリカバリできます", "tip_do_you_want_to_know_about_field_permission": "フィールドデータを暗号化しますか?フィールド権限の理解", @@ -36318,6 +36400,7 @@ "automation_runs_this_month": "이번 달에 실행", "automation_stay_tuned": "계속 지켜봐 주시기 바랍니다", "automation_success": "성공", + "automation_tips": "버튼 필드가 잘못 구성되었습니다. 확인하고 다시 시도해 주세요.", "automation_updater_label": "자동화의 실행 기록을 볼 수 있습니다.", "automation_variabel_empty": "사전 단계에서 사용할 수 있는 데이터가 없습니다. 조정 후 다시 시도해 주세요.", "automation_variable_datasheet": "${NODE_NAME}에서 데이터 가져오기", @@ -36353,6 +36436,7 @@ "bermuda": "버뮤다 제도", "bhutan": "부탄", "billing_over_limit_tip_common": "공간 사용량이 한도를 초과했으며, 업그레이드 후 더 많은 양을 즐기실 수 있습니다.", + "billing_over_limit_tip_forbidden": "평가판 기간 또는 구독 기간이 만료되었습니다. 갱신하려면 영업 컨설턴트에게 문의하세요.", "billing_over_limit_tip_widget": "위젯 설치 수가 한도를 초과했습니다. 업그레이드하여 사용량을 늘릴 수 있습니다.", "billing_period": "청구 기간: ${period}", "billing_subscription_warning": "기능 경험", @@ -36412,10 +36496,14 @@ "button_text": "버튼 텍스트", "button_text_click_start": "시작하려면 클릭하세요", "button_type": "버튼 유형", + "by_days": "날", "by_field_id": "필드 ID 사용", + "by_hours": "시간", + "by_months": "개월", "by_the_day": "일별", "by_the_month": "월간", "by_the_year": "매년의", + "by_weeks": "주", "calendar_add_date_time_field": "만든 날짜 필드", "calendar_color_more": "추가 색상", "calendar_const_detail_weeks": "[\"월요일\",\"화요일\",\"수요일\",\"목요일\",\"금요일\",\"토요일\",\"일요일\"]", @@ -37270,7 +37358,7 @@ "expired": "만기", "export": "내보내는 중...", "export_brand_desc": "기술 지원", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": ".png 파일로 내보내기", "export_gantt_chart": "Gantt 차트 내보내기", "export_to_excel": "데이터 내보내기", @@ -37975,6 +38063,8 @@ "guests_per_space": "각 공간의 손님", "guide_1": "啊这", "guide_2": "기본 기능을 학습하는 데 몇 분밖에 걸리지 않습니다.이 순간부터 생산성 향상!", + "guide_flow_modal_contact_sales": "영업팀에 문의", + "guide_flow_modal_get_started": "시작하다", "guide_flow_of_catalog_step1": "Space의 모든 폴더와 파일이 저장된 작업 디렉토리입니다.", "guide_flow_of_catalog_step2": "작업 디렉토리에서 필요에 따라 데이터 테이블이나 폴더를 만들 수 있습니다.", "guide_flow_of_click_add_view_step1": "일부 기본 보기 외에 그림 형식의 첨부 파일이 있으면 앨범 보기를 만드는 것이 좋습니다.", @@ -38361,6 +38451,7 @@ "lark_version_enterprise": "Lark의 엔터프라이즈 프로그램", "lark_version_standard": "Lark 표준 평면도", "lark_versions_free": "Lark의 기본 평면도", + "last_day": "마지막 날", "last_modified_by_select_modal_desc": "아래에서 선택한 필드를 편집하면 최근에 편집한 구성원이 마지막으로 편집한 필드에 표시됩니다.", "last_modified_time_select_modal_desc": "아래에서 선택한 필드를 편집하면 가장 최근에 편집한 시간이 마지막으로 편집한 시간 필드에 표시됩니다.", "last_step": "반환", @@ -39278,7 +39369,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- 업데이트\", \"어린이\": \"

🚀 새로운 기능 소개

\\N
  • 새로운 필드 유형 \"캐스케이더\"가 출시되어 양식의 옵션 계층 구조에서 더 쉽게 선택할 수 있습니다.
  • \"스크립트\" 위젯이 출시되었습니다. 더 적은 코드로 더 많은 사용자 정의 가능
  • 자동화를 실행하여 이메일을 보내고 빠른 알림 받기
  • 자동화를 실행하여 Slack에 메시지를 보내고 적시에 팀에 알립니다.
  • AI 탐색: \"GPT 콘텐츠 생성기\" 위젯 출시
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 프록시 프로필\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 프록시 프로필\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -39308,13 +39399,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -39411,6 +39502,7 @@ "preview_guide_click_to_restart": "아래 버튼을 눌러 다시 미리보기", "preview_guide_enable_it": "아래 버튼을 눌러 이 기능을 엽니다.", "preview_guide_open_office_preview": "이 파일을 미리 보려면 사무실 미리 보기 기능을 엽니다.", + "preview_next_automation_execution_time": "다음 5개의 실행 시간 미리보기", "preview_not_support_video_codecs": "H.264 비디오 코덱이 있는 MP4 비디오만 미리 볼 수 있습니다.", "preview_revision": "미리 보기", "preview_see_more": "오피스 파일 미리보기 기능에 대해 더 알고 싶으십니까?여기를 클릭하십시오.", @@ -39962,6 +40054,7 @@ "scan_to_login": "로그인 검색", "scan_to_login_by_method": "로그인하려면 ${method}를 스캔하여 공식 계정을 팔로우하세요.", "scatter_chart": "산포도", + "schedule_type": "일정 유형", "science_and_technology": "과학과 기술", "scroll_screen_down": "화면 아래로 스크롤", "scroll_screen_left": "왼쪽으로 화면 스크롤", @@ -40527,9 +40620,11 @@ "subscribe_credit_usage_over_limit": "현재 스페이스의 포인트 수가 제한을 초과합니다. 서브스크립션을 업그레이드하십시오.\n", "subscribe_demonstrate": "요청 프레젠테이션", "subscribe_disabled_seat": "인원수는 원래 계획보다 낮아서는 안 된다.", + "subscribe_grade_business": "사업", "subscribe_grade_free": "자유의", "subscribe_grade_plus": "더하기", "subscribe_grade_pro": "찬성", + "subscribe_grade_starter": "기동기", "subscribe_label_tooltip": "고급 공간 기능", "subscribe_new_choose_member": "최대 ${member_num}명의 회원 지원", "subscribe_new_choose_member_tips": "이 플랜은 1~${member_num}명의 멤버가 공간에 입장할 수 있도록 지원합니다.", @@ -40666,7 +40761,7 @@ "template_name_repetition_title": "\"${templateName}\"이(가) 이미 존재합니다. 교체하시겠습니까?", "template_no_template": "템플릿 없음", "template_not_found": "원하는 템플릿을 찾을 수 없습니까?알려주세요", - "template_recommend_title": "더웠어", + "template_recommend_title": "🌟 Hot", "template_type": "템플릿", "terms_of_service": "<서비스 약관>", "terms_of_service_pure_string": "서비스 약관", @@ -40812,6 +40907,7 @@ "timemachine_update_comment": "업데이트된 댓글", "times_per_month_unit": "전화 / 월", "times_unit": "전화기", + "timing_rules": "타이밍", "timor_leste": "동티모르", "tip_del_success": "7일 이내에 공유 공간을 복구할 수 있습니다.", "tip_do_you_want_to_know_about_field_permission": "필드 데이터를 암호화하시겠습니까?필드 권한 이해", @@ -42232,6 +42328,7 @@ "automation_runs_this_month": "Работает в этом месяце", "automation_stay_tuned": "Следите за обновлениями", "automation_success": "Успех", + "automation_tips": "Поле кнопки настроено неправильно. Проверьте и повторите попытку.", "automation_updater_label": "Можно просмотреть историю запуска автоматизации.", "automation_variabel_empty": "Нет данных, которые можно было бы использовать на предварительном этапе. Измените настройки и повторите попытку.", "automation_variable_datasheet": "Получить данные из ${NODE_NAME}", @@ -42267,6 +42364,7 @@ "bermuda": "Бермудскиеострова", "bhutan": "Бутан", "billing_over_limit_tip_common": "Использование пространства превысило лимит, и после обновления вы сможете получить больший объем.", + "billing_over_limit_tip_forbidden": "Срок действия пробной версии или подписки истек. Пожалуйста, свяжитесь с продавцом-консультантом для продления.", "billing_over_limit_tip_widget": "Количество установок виджетов превысило лимит, и вы можете обновить их, чтобы увеличить использование.", "billing_period": "Расчетный период: ${period}", "billing_subscription_warning": "Функциональный опыт", @@ -42326,10 +42424,14 @@ "button_text": "Текст кнопки", "button_text_click_start": "Нажмите, чтобы начать", "button_type": "Тип кнопки", + "by_days": "Дни", "by_field_id": "Использовать идентификатор поля", + "by_hours": "Часы", + "by_months": "Месяцы", "by_the_day": "По дням", "by_the_month": "Ежемесячный журнал", "by_the_year": "Ежегодно", + "by_weeks": "Недели", "calendar_add_date_time_field": "Создать поле даты", "calendar_color_more": "Больше цветов", "calendar_const_detail_weeks": "[\"понедельник\",\"вторник\",\"среда\",\"четверг\",\"пятница\",\"суббота\",\"воскресенье\"]", @@ -43184,7 +43286,7 @@ "expired": "Срок действия", "export": "Проводится экспорт.", "export_brand_desc": "Техническая поддержка", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Экспорт в файл.png", "export_gantt_chart": "Экспорт диаграммы Ганта", "export_to_excel": "Экспорт данных", @@ -43889,6 +43991,8 @@ "guests_per_space": "Гости в каждом пространстве", "guide_1": "啊这", "guide_2": "Изучение основных функций занимает всего несколько минут. С этого момента работа становится эффективнее!", + "guide_flow_modal_contact_sales": "Свяжитесь с отделом продаж", + "guide_flow_modal_get_started": "Начать", "guide_flow_of_catalog_step1": "Это рабочий каталог, в котором хранятся все папки и файлы Space.", "guide_flow_of_catalog_step2": "В рабочем каталоге вы можете создавать таблицы данных или папки по мере необходимости.", "guide_flow_of_click_add_view_step1": "В дополнение к некоторым основным видам, если у вас есть вложения в формате изображения, настоятельно рекомендуется создать вид альбома.", @@ -44275,6 +44379,7 @@ "lark_version_enterprise": "Бизнес - план Ларка", "lark_version_standard": "Стандартный план Ларка", "lark_versions_free": "Основные планы Ларка", + "last_day": "Последний день", "last_modified_by_select_modal_desc": "Если какое - либо поле, выбранное ниже, будет отредактировано, последний член редактора будет показан в поле последнего редактирования", "last_modified_time_select_modal_desc": "Если вы отредактировали любое поле, выбранное ниже, время последнего редактирования будет показано в поле времени последнего редактирования", "last_step": "Возвращение", @@ -45192,7 +45297,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- обновления\", \"дети\": \"

🚀 Введение новых функций

\\п
  • Запущен новый тип поля «Каскад», упрощающий выбор из иерархии параметров в формах.
  • Выпущен виджет «Скрипт», меньше кода для большей настройки
  • Запустите автоматизацию для отправки электронных писем и быстрого получения уведомлений.
  • Запустите автоматизацию, чтобы отправить сообщение в Slack и вовремя проинформировать свою команду.
  • Исследование искусственного интеллекта: выпущен виджет «GPT Content Generator»
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Введение AI-агент\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Введение AI-агент\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -45222,13 +45327,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -45325,6 +45430,7 @@ "preview_guide_click_to_restart": "Нажмите кнопку ниже для просмотра", "preview_guide_enable_it": "Нажмите кнопку ниже, чтобы открыть эту функцию", "preview_guide_open_office_preview": "Для предварительного просмотра этого файла откройте функцию \"Office Preview\"", + "preview_next_automation_execution_time": "Предварительный просмотр следующих 5 раз выполнения", "preview_not_support_video_codecs": "Просмотр только видео MP4 с видеокодеком H.264", "preview_revision": "Предварительный просмотр", "preview_see_more": "Хотите узнать больше о функции « Предварительный просмотр офисных документов»? Пожалуйста, нажмите здесь.", @@ -45876,6 +45982,7 @@ "scan_to_login": "Сканирование записей", "scan_to_login_by_method": "Отсканируйте ${method}, чтобы войти в официальный аккаунт", "scatter_chart": "Диаграмма распространения", + "schedule_type": "Тип расписания", "science_and_technology": "Наука и техника", "scroll_screen_down": "Прокрутить экран вниз", "scroll_screen_left": "Прокрутить экран влево", @@ -46441,9 +46548,11 @@ "subscribe_credit_usage_over_limit": "количество кредитов в текущем пространстве превышает лимит, пожалуйста, обновите подписку.\n", "subscribe_demonstrate": "Запросить демонстрацию", "subscribe_disabled_seat": "Численность не должна быть ниже запланированной.", + "subscribe_grade_business": "Бизнес", "subscribe_grade_free": "Свободный", "subscribe_grade_plus": "А", "subscribe_grade_pro": "Согласен.", + "subscribe_grade_starter": "Стартер", "subscribe_label_tooltip": "Расширенные пространственные функции", "subscribe_new_choose_member": "Поддерживает до ${member_num} участников", "subscribe_new_choose_member_tips": "Этот план поддерживает 1~${member_num} участников для входа в пространство", @@ -46580,7 +46689,7 @@ "template_name_repetition_title": "\"${templateName}\" уже существует. Вы хотите заменить это?", "template_no_template": "Нет шаблонов", "template_not_found": "Не нашли нужный шаблон? Скажи нам.", - "template_recommend_title": "Горячий", + "template_recommend_title": "🌟 Hot", "template_type": "Образец", "terms_of_service": "< Условия обслуживания >", "terms_of_service_pure_string": "Условия предоставления услуг", @@ -46726,6 +46835,7 @@ "timemachine_update_comment": "Обновлены комментарии", "times_per_month_unit": "Телефон / месяц", "times_unit": "Телефон", + "timing_rules": "Тайминг", "timor_leste": "Тимор - Лешти", "tip_del_success": "Вы можете восстановить свое общее пространство за 7 дней.", "tip_do_you_want_to_know_about_field_permission": "Хотите зашифровать данные поля? Права доступа к полю", @@ -47857,6 +47967,7 @@ "api_params_updatedby_can_not_operate": "修改人列的值由系统自动生成,不允许编辑", "api_params_views_max_count_error": "", "api_params_widget_package_id_error": "widgetPackageId 不能为空", + "api_params_workdoc_can_not_operate": "WorkDoc field can't be edited", "api_query_params_invalid_fields": "传入的 fields 不存在:{fields}", "api_query_params_view_id_not_exists": "查询的视图({viewId}) 不存在 ", "api_request_success": "成功", @@ -47964,7 +48075,7 @@ "assistant_activity_train_camp": "限时福利", "assistant_beginner_task": "新手任务", "assistant_beginner_task_1_what_is_datasheet": "什么是 APITable", - "assistant_beginner_task_2_quick_start": "一分钟快速入门", + "assistant_beginner_task_2_quick_start": "VIKA产品演示", "assistant_beginner_task_3_how_to_use_datasheet": "玩转一张维格表", "assistant_beginner_task_4_share_and_invite": "分享和邀请成员", "assistant_beginner_task_5_onboarding": "智能引导", @@ -48225,7 +48336,7 @@ "button_bind_now": "立即绑定", "button_change_phone": "修改手机", "button_check_history": "查看运行历史", - "button_check_history_end": "", + "button_check_history_end": ".", "button_click_trigger_explanation": "\"按钮被点击时\" 是一个触发条件,当用户点击你新建的按钮列时,它会被触发", "button_color": "按钮颜色", "button_combine": "按钮组合", @@ -48241,10 +48352,14 @@ "button_text": "按钮文案", "button_text_click_start": "点击开始", "button_type": "按钮类型", + "by_days": "按天", "by_field_id": "使用 Field ID", + "by_hours": "按小时", + "by_months": "按月", "by_the_day": "按天", "by_the_month": "按月", "by_the_year": "按年", + "by_weeks": "按周", "calendar_add_date_time_field": "创建日期", "calendar_color_more": "更多颜色", "calendar_const_detail_weeks": "[\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\",\"星期天\"]", @@ -49806,6 +49921,8 @@ "guests_per_space": "外部访客", "guide_1": "来呀互相伤害呀", "guide_2": "花费几分钟跟随我们的指引,学习一下维格表的常规功能,可以让您事半功倍哦!", + "guide_flow_modal_contact_sales": "预约销售", + "guide_flow_modal_get_started": "立刻使用", "guide_flow_of_catalog_step1": "这是工作目录,里边存放的是空间站的所有文件夹和文件", "guide_flow_of_catalog_step2": "工作目录里面,除了可以单独创建维格表,也可以单独创建文件夹", "guide_flow_of_click_add_view_step1": "除了基本的表格视图之外,我们支持创建相册视图,如果你有图片附件的话,我建议你创建个相册视图试试", @@ -49861,6 +49978,7 @@ "hide_uneditable_automation_node": "隐藏无编辑权限的自动化节点", "hide_unmanage_sheet": "隐藏无管理权限的文件", "hide_unmanageable_files": "隐藏无管理权限的文件", + "hide_unmanaged_sheet": "Hide unmanageable resource", "hide_unusable_sheet": "隐藏无编辑权限的文件", "highlight": "高亮", "hint": "提示", @@ -50192,6 +50310,7 @@ "lark_version_enterprise": "飞书企业版", "lark_version_standard": "飞书标准版", "lark_versions_free": "飞书基础版", + "last_day": "最后一天", "last_modified_by_select_modal_desc": "由于该维格列类型的特殊性,下方只展示可编辑的列,每当有人在指定的列进行过修改,则会更新当前的修改人", "last_modified_time_select_modal_desc": "由于该维格列类型的特殊性,下方只展示可编辑的列,每当有人在指定的列进行过修改,则会更新当前的修改时间", "last_step": "上一步", @@ -51104,12 +51223,12 @@ "player_step_ui_config_163": "", "player_step_ui_config_164": "", "player_step_ui_config_165": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/03/16/8374ca1295664675bd1155b077555113\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-03-16-updates\",\n \"children\": \"

🚀 新功能介绍

\\n
  • 镜像功能再次升级,可禁止查看已隐藏的字段
  • 个人设置追加时区信息,日期字段可指定时区
  • 「全局搜索」优化,新增搜索结果分类
  • 神奇表单支持隐藏官方标识
  • API 性能优化,大幅提高请求速度
\"\n}", - "player_step_ui_config_166": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Enterprise版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 500,000,000 行\",\n \"空间站附件容量数提高至 50 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://aitable.ai/management/upgrade\n}", + "player_step_ui_config_166": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Enterprise版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 500,000,000 行\",\n \"空间站附件容量数提高至 50 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://aitable.ai/management/upgrade\"\n}", "player_step_ui_config_167": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通过 APITable 解决哪些问题?\",\n \"type\": \"multiButton\",\n \"answers\": [\n \"IT 运维支持\",\n \"教育\",\n \"项目管理\",\n \"市场营销\",\n \"产品管理\",\n \"招聘管理\",\n \"运营\",\n \"金融财务\",\n \"销售 & 客户管理\",\n \"软件开发\",\n \"人力资源 & 合规\",\n \"设计 & 创意\",\n \"非盈利组织\",\n \"制造业\",\n \"其他\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作岗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"企业主\",\n \"团队负责人\",\n \"团队成员\",\n \"自由职业者\",\n \"主管\",\n \"高管层\",\n \"副总裁\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的团队规模是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"只有我\",\n \"2-5\",\n \"6-10\",\n \"11-15\",\n \"16-25\",\n \"25-50\",\n \"51-100\",\n \"101-500\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"您的公司规模是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"1-19\",\n \"20-49\",\n \"50-99\",\n \"100-250\",\n \"251-500\",\n \"501-1500\",\n \"1500+\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 5,\n \"name\": \"answer5\",\n \"title\": \"您从哪种途径了解到我们?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"搜索引擎\",\n \"YouTube\",\n \"Product Hunt\",\n \"Github\",\n \"推特\",\n \"领英\",\n \"朋友推荐\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 6,\n \"name\": \"answer6\",\n \"title\": \"加入我们的Discord社区,和全世界 APITable 的使用者一起讨论使用心得吧!在使用过程中如果遇到任何问题,可以随时在社区获得解答和帮助。\",\n \"type\": \"joinUs\",\n \"url\": \"https://discord.gg/2UXAbDTJTX\",\n \"confirmText\": \"加入社区\",\n \"skipText\": \"跳过\",\n \"submit\": true\n }\n ]\n}", "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 新功能介绍

\\n
  • 推出新字段类型「多级联动」,神奇表单支持多级选项
  • 脚本小程序上架,少少代码满足多多定制化
  • 维格表自动化支持「发送邮件」
  • 维格表自动化支持「发送到Slack」
  • 维格表的AI探索,「GPT 内容生成」小程序发布
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"使用模板教程\", \n\"description\": \"点击左侧按钮使用模板\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 助手介绍\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 助手介绍\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"使用模板教程\", \n\"description\": \"选择模板要存放的位置\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通过维格表解决哪些问题?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"工作规划\",\n \"客户服务\",\n \"项目管理\",\n \"采购供应\",\n \"内容生产\",\n \"电商运营\",\n \"活动策划\",\n \"人力资源\",\n \"行政管理\",\n \"财务管理\",\n \"网络直播\",\n \"高校管理\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作岗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"管理者\",\n \"项目经理\",\n \"产品经理\",\n \"设计师\",\n \"研发、工程师\",\n \"运营、编辑\",\n \"销售、客服\",\n \"人事、行政\",\n \"财务、会计\",\n \"律师、法务\",\n \"市场\",\n \"教师\",\n \"学生\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的公司名称是?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"请留下你的邮箱/手机/微信号,以便我们及时提供帮助。\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"感谢你的填写,请加一下客服号以备不时之需\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -51139,13 +51258,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"神奇表单\", \n\"description\": \"在这里可以快速生成当前视图的神奇表单,神奇表单的字段是依照视图的维格列数量以及顺序来生成的哦\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"小提示\", \n\"offsetY\":5,\n\"description\": \"你可以在左侧的「帮助中心」找回你的维格小助手\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"新功能\", \n\"description\": \"小程序上线!想要让沉淀下来的数据得到更好的运用吗?那就赶紧来体验一下吧\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"什么是小程序\", \n\"description\": \"维格小程序是维格表的一种扩展应用,可实现数据可视化、数据传输、数据清洗等等额外功能。通过在小程序面板安装适合团队的小程序,可以让工作事半功倍\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_5": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"小程序中心\", \n\"description\": \"官方推荐和空间站自建的小程序会发布到这里。你可以根据场景,在这里挑选合适的小程序放置到仪表盘或小程序面板里\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"安装小程序\", \n\"description\": \"我们安装这个「图表」小程序看看吧\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -51198,6 +51317,7 @@ "player_step_ui_config_95": "", "player_step_ui_config_97": "{\n\t\"vikaby\": {\n\t\t\"title\": \"你好\",\n\t\t\"description\": \"如果在使用过程中遇到问题,请扫描右侧二维码联系我解决\",\n\t\t\"list\": \"
  • 刚注册维格表,不知道怎么用
  • 维格表可以实现我想要的效果吗
  • 使用过程出现异常问题
  • 后续支持的功能有哪些
  • 获取官方邀请码
\",\n\t\t\"tip\": \"扫码添加客服\"\n\t},\n\t\"questionnaire\": {\n\t\t\"title\": \"您好,我是维格表数字化顾问\",\n\t\t\"list\": \"[{\\\"title\\\": \\\"Bug 吐槽\\\", \\\"icon\\\": \\\"BugOutlined\\\"}, {\\\"title\\\": \\\"需求反馈\\\", \\\"icon\\\": \\\"AdviseSmallOutlined\\\"}, {\\\"title\\\": \\\"服务支持\\\", \\\"icon\\\": \\\"ServeOutlined\\\"}, {\\\"title\\\": \\\"案例推荐\\\", \\\"icon\\\": \\\"ZanOutlined\\\"}, {\\\"title\\\": \\\"解决方案\\\", \\\"icon\\\": \\\"SolutionSmallOutlined\\\"}, {\\\"title\\\": \\\"产品答疑\\\", \\\"icon\\\": \\\"InformationLargeOutlined\\\"}]\",\n\t\t\"tip\": \"扫码添加微信,获得更多专属服务\"\n\t},\n\t\"website\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/59f4cc8e0b2b4395bf0fcd133d208e63\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/defbf55d1e9646eb929f9f5d11d5c119\"\n\t},\n\t\"dingtalk\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/964be5e3217b4fa8bfa74ef47a980093?attname=dingtalk-questionnaire.png\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/964be5e3217b4fa8bfa74ef47a980093?attname=dingtalk-vikaby.png\",\n\"tip\": \"请使用钉钉扫码,加入交流群\"\n\t},\n\t\"wecom\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/1346d5efbd5043efb2bfcba0075c0ee9\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/09401a8f2d8e491a9097b9bac8b5a4e4\"\n\t},\n\t\"feishu\": {\n\t\t\"title\": \"扫码添加客服\",\n\t\t\"tip\": \"请使用飞书扫码,添加客服号备用\",\n\t\t\"description\": \"以便使用过程中遇到问题,可以随时获得服务和解答\",\n\t\t\"originUrl\": \"https://u.vika.cn/z9ygm\"\n\t}\n}", "player_step_ui_config_99": "", + "player_step_ui_config_automation_1": "{\n \"element\": \"#AUTOMATION_ADD_TRIGGER_BTN\", \"title\":\"title\", \"description\": \"description\" \n} ", "player_step_ui_config_button_field_action_create": "{\n \"element\": \"#CONST_ROBOT_ACTION_CREATE\", \"placement\": \"topCenter\", \"title\": \"\", \"description\": \"现在你应该添加一个或多个 Action,以定义按钮点击后应执行的具体动作\" \n} ", "player_step_ui_config_button_field_bound_datasheet": "{\n \"element\": \"#AUTOMATION_BOUND_DATASHEET\", \"title\": \"\", \"description\": \"“按钮被点击时” 需要绑定表格和字段,以便知道哪里发生的点击行为,这里已经为你设置好\" \n} ", "player_step_ui_config_button_field_node": "{\n \"element\": \".TREE_NODE_ACTIVE_ONE\", \"title\": \"\", \"description\": \"自动化节点是自动化流程的起点,你可以在这里设置触发条件和相关动作\" \n} ", @@ -51242,6 +51362,7 @@ "preview_guide_click_to_restart": "点击下方按钮重新预览", "preview_guide_enable_it": "你可以点击下方按钮去启用此功能", "preview_guide_open_office_preview": "开启「office预览」功能后即可预览该文件", + "preview_next_automation_execution_time": "预览最近5次执行时间", "preview_not_support_video_codecs": "当前仅支持预览编码为H.264的MP4视频", "preview_revision": "预览此版本", "preview_see_more": "想要了解更多「office 文件预览」功能?请点击这里", @@ -51793,6 +51914,7 @@ "scan_to_login": "扫码登录", "scan_to_login_by_method": "请使用${method}关注公众号即可安全登录", "scatter_chart": "散点图", + "schedule_type": "定时类型", "science_and_technology": "科学技术", "scroll_screen_down": "向下滚动一屏", "scroll_screen_left": "向左滚动一屏", @@ -52358,9 +52480,11 @@ "subscribe_credit_usage_over_limit": "空间站的算力点数量已耗尽,请升级你的空间站。", "subscribe_demonstrate": "预约演示", "subscribe_disabled_seat": "人数不可低于原方案", + "subscribe_grade_business": "Business", "subscribe_grade_free": "免费版", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Starter", "subscribe_label_tooltip": "${grade}以上空间站专享功能", "subscribe_new_choose_member": "最高支持 ${member_num} 人", "subscribe_new_choose_member_tips": "本方案支持 1~${member_num} 名成员进入空间站使用", @@ -52497,7 +52621,7 @@ "template_name_repetition_title": "“${templateName}”已存在,确定要替换它吗?", "template_no_template": "暂无模板", "template_not_found": "找不到想要的模板? 请告诉我们~", - "template_recommend_title": "热门推荐", + "template_recommend_title": "🌟 热门推荐", "template_type": "模板", "terms_of_service": "《服务条款》", "terms_of_service_pure_string": " 服务条款", @@ -52643,6 +52767,7 @@ "timemachine_update_comment": "更新了评论", "times_per_month_unit": "次/月", "times_unit": "次", + "timing_rules": "定时规则", "timor_leste": "东帝汶", "tip_del_success": "我们将对您的空间站数据保留七天,七天内可随时撤销删除操作。", "tip_do_you_want_to_know_about_field_permission": "想对列数据加密吗?了解列权限", @@ -52902,7 +53027,7 @@ "vikaby_menu_hidden_vikaby": "取消悬浮", "vikaby_menu_releases_history": "历史更新", "vikaby_todo_menu1": "什么是维格表", - "vikaby_todo_menu2": "一分钟快速入门", + "vikaby_todo_menu2": "VIKA产品演示", "vikaby_todo_menu3": "玩转一张维格表", "vikaby_todo_menu4": "分享和邀请成员", "vikaby_todo_menu5": "智能引导", @@ -52987,7 +53112,7 @@ "weixin_share_card_title": "", "welcome_interface": "欢迎界面", "welcome_module1": "什么是 APITable", - "welcome_module2": "一分钟快速入门", + "welcome_module2": "VIKA产品演示", "welcome_module3": "玩转一张维格表", "welcome_module4": "内容日历", "welcome_module5": "项目管理", @@ -54063,6 +54188,7 @@ "automation_runs_this_month": "Runs this month", "automation_stay_tuned": "Stay tuned", "automation_success": "成功", + "automation_tips": "按鈕欄位配置錯誤,請檢查並重試", "automation_updater_label": "可以查看自動化的運行歷史記錄", "automation_variabel_empty": "前一步沒有可以使用的數據,請調整後重試。", "automation_variable_datasheet": "從 ${NODE_NAME} 取得數據", @@ -54098,6 +54224,7 @@ "bermuda": "百慕大群島", "bhutan": "不丹", "billing_over_limit_tip_common": "空間使用量已超過限制,升級後可享有更高的空間使用量。", + "billing_over_limit_tip_forbidden": "您的試用期或訂閱期已過期。請聯絡銷售顧問續訂。", "billing_over_limit_tip_widget": "小組件安裝數量已超出限制,您可以升級以獲得更高的使用量。", "billing_period": "計費周期:${period}", "billing_subscription_warning": "功能體驗", @@ -54157,10 +54284,14 @@ "button_text": "按鈕文字", "button_text_click_start": "點擊開始", "button_type": "按鈕類型", + "by_days": "天", "by_field_id": "使用 Field ID", + "by_hours": "小時", + "by_months": "幾個月", "by_the_day": "按天", "by_the_month": "按月", "by_the_year": "每年", + "by_weeks": "週數", "calendar_add_date_time_field": "創建日期", "calendar_color_more": "更多顏色", "calendar_const_detail_weeks": "[\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\",\"星期天\"]", @@ -55015,7 +55146,7 @@ "expired": "已過期", "export": "正在導出…", "export_brand_desc": "提供技術支持", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "導出為圖片", "export_gantt_chart": "導出甘特圖", "export_to_excel": "導出為 Excel 文件", @@ -55720,6 +55851,8 @@ "guests_per_space": "外部訪客", "guide_1": "來呀互相傷害呀", "guide_2": "花費幾分鐘跟隨我們的指引,學習一下維格表的常規功能,可以讓您事半功倍哦!", + "guide_flow_modal_contact_sales": "聯繫銷售人員", + "guide_flow_modal_get_started": "開始使用", "guide_flow_of_catalog_step1": "這是工作目錄,裡邊存放的是空間站的所有文件夾和文件", "guide_flow_of_catalog_step2": "工作目錄裡面,除了可以單獨創建維格表,也可以單獨創建文件夾", "guide_flow_of_click_add_view_step1": "除了基本的維格視圖之外,我們支持創建相冊視圖,如果你有圖片附件的話,我建議你創建個相冊視圖試試", @@ -56106,6 +56239,7 @@ "lark_version_enterprise": "飛書企業版", "lark_version_standard": "飛書標準版", "lark_versions_free": "飛書基礎版", + "last_day": "最後一天", "last_modified_by_select_modal_desc": "由於該維格列類型的特殊性,下方只展示可編輯的列,每當有人在指定的列進行過修改,則會更新當前的修改人", "last_modified_time_select_modal_desc": "由於該維格列類型的特殊性,下方只展示可編輯的列,每當有人在指定的列進行過修改,則會更新當前的修改時間", "last_step": "上一步", @@ -57018,12 +57152,12 @@ "player_step_ui_config_163": "", "player_step_ui_config_164": "", "player_step_ui_config_165": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/03/16/8374ca1295664675bd1155b077555113\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-03-16-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • The mirror is upgraded again, hiding sensitive fields and collaborating with peace of mind
  • The time zone of the user account is online, and the time zone of the date list can be set independently, making cross-time zone cooperation smoother.
  • \"Global Search\" experience optimization, new search result categories
  • Gold-level space station benefits are increased, and the sharing form supports hiding official logos
  • API interface performance optimization, greatly improving call efficiency
\"\n}", - "player_step_ui_config_166": "{\n \"title\": \"恭喜你!獲得試用權益\",\n \"description\": \"你獲得了14天Enterprise版本的試用權益,你可以點擊按鈕查看詳情\", \n \"listHeader\": \"試用權益:\",\n \"listContent\": [\n \"空間站記錄總數上限提高至500,000,000 行\",\n \"空間站附件容量數提高至50 GB\",\n \"支持調用所有高級API\"\n ],\n \"listFooter\": \"更多權益\",\n \"url\": \"https://aitable.ai/management/upgrade\n}", + "player_step_ui_config_166": "{\n \"title\": \"恭喜你!獲得試用權益\",\n \"description\": \"你獲得了14天Enterprise版本的試用權益,你可以點擊按鈕查看詳情\", \n \"listHeader\": \"試用權益:\",\n \"listContent\": [\n \"空間站記錄總數上限提高至500,000,000 行\",\n \"空間站附件容量數提高至50 GB\",\n \"支持調用所有高級API\"\n ],\n \"listFooter\": \"更多權益\",\n \"url\": \"https://aitable.ai/management/upgrade\"\n}", "player_step_ui_config_167": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"How do you want to use APITable?\",\n \"type\": \"multiButton\",\n \"answers\": [\n \"IT & Support\",\n \"Education\",\n \"Project Management\",\n \"Marketing\",\n \"Product Management\",\n \"HR & Recruiting\",\n \"Operations\",\n \"Finance\",\n \"Sales & CRM\",\n \"Software Development\",\n \"HR & Legal\",\n \"Design & Creative\",\n \"Nonprofit\",\n \"Manufacture\",\n \"Other Things\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"What best describes your current role?\",\n \"type\": \"radio\",\n \"answers\": [\n \"Business Owner\",\n \"Team Leader\",\n \"Team Member\",\n \"Freelancer\",\n \"Director\",\n \"C-level\",\n \"VP\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"How many people are on your team? \",\n \"type\": \"radio\",\n \"answers\": [\n \"Just me\",\n \"2-5\",\n \"6-10\",\n \"11-15\",\n \"16-25\",\n \"25-50\",\n \"51-100\",\n \"101-500\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"How many people work at your company? \",\n \"type\": \"radio\",\n \"answers\": [\n \"1-19\",\n \"20-49\",\n \"50-99\",\n \"100-250\",\n \"251-500\",\n \"501-1500\",\n \"1500+\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 5,\n \"name\": \"answer5\",\n \"title\": \"How did you hear about us? \",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Search Engine\",\n \"YouTube\",\n \"Product Hunt\",\n \"Github\",\n \"Twitter\",\n \"LinkedIn\",\n \"Through a friend\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 6,\n \"name\": \"answer6\",\n \"title\": \"We host a Discord channel as a place for discussion with APITable fans, come and join us!\",\n \"type\": \"joinUs\",\n \"url\": \"https://discord.gg/2UXAbDTJTX\",\n \"confirmText\": \"Join Our Community\",\n \"skipText\": \"skip\",\n \"submit\": true\n }\n ]\n}", "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • New field type \"Cascader\" is launched, making selection from a hierarchy of options on forms easier
  • \"Script\" widget is released, less code for more customization
  • Trigger Robot to send Emails, and get fast notifications
  • Trigger Robot to send a message to Slack, and inform your team in time
  • Exploring AI: \"GPT Content Generator\" Widget Released
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"使用模板教程\", \n\"description\": \"點擊左側按鈕使用模板\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 助手介紹\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 助手介紹\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"使用模板教程\", \n\"description\": \"選擇模板要存放的位置\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通過維格表解決哪些問題?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"工作規劃\",\n \"客戶服務\",\n \"項目管理\",\n \"採購供應\",\n \"內容生產\",\n \"電商運營\",\n \"活動策劃\",\n \"人力資源\",\n \"行政管理\",\n \"財務管理\",\n \"網絡直播\",\n \"高校管理\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作崗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"管理者\",\n \"項目經理\",\n \"產品經理\",\n \"設計師\",\n \"研發、工程師\",\n \"運營、編輯\",\n \"銷售、客服\",\n \"人事、行政\",\n \"財務、會計\",\n \"律師、法務\",\n \"市場\",\n \"教師\",\n \"學生\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的公司名稱是?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"請留下你的郵箱/手機/微信號,以便我們及時提供幫助。\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"感謝你的填寫,請加一下客服號以備不時之需\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -57053,13 +57187,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"神奇表單\", \n\"description\": \"在這裡可以快速生成當前視圖的神奇表單,神奇表單的字段是依照視圖的維格列數量以及順序來生成的哦\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"小提示\", \n\"offsetY\":5,\n\"description\": \"你可以在左側的「幫助中心」找回你的維格小助手\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"新功能\", \n\"description\": \"小程序上線!想要讓沉澱下來的數據得到更好的運用嗎?那就趕緊來體驗一下吧\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"什麼是小程序\", \n\"description\": \"維格小程序是維格表的一種擴展應用,可實現數據可視化、數據傳輸、數據清洗等等額外功能。通過在小程序面板安裝適合團隊的小程序,可以讓工作事半功倍\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_5": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"小程序中心\", \n\"description\": \"官方推薦和空間站自建的小程序會發佈到這裡。你可以根據場景,在這裡挑選合適的小程序放置到儀錶盤或小程序面板裡\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"安裝小程序\", \n\"description\": \"我們安裝這個「圖表」小程序看看吧\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -57156,6 +57290,7 @@ "preview_guide_click_to_restart": "點擊下方按鈕重新預覽", "preview_guide_enable_it": "你可以點擊下方按鈕去啟用此功能", "preview_guide_open_office_preview": "開啟「office預覽」功能後即可預覽該文件", + "preview_next_automation_execution_time": "預覽接下來 5 個執行時間", "preview_not_support_video_codecs": "當前僅支持預覽編碼為H.264的MP4視頻", "preview_revision": "預覽此版本", "preview_see_more": "想要了解更多「office 文件預覽」功能?請點擊這裡", @@ -57707,6 +57842,7 @@ "scan_to_login": "掃碼登錄", "scan_to_login_by_method": "請使用${method}關注公眾號即可安全登錄", "scatter_chart": "散點圖", + "schedule_type": "時間表類型", "science_and_technology": "科學技術", "scroll_screen_down": "向下滾動一屏", "scroll_screen_left": "向左滾動一屏", @@ -58272,9 +58408,11 @@ "subscribe_credit_usage_over_limit": "當前空間中的積分數量超過限制,請升級您的訂閱。\n", "subscribe_demonstrate": "預約演示", "subscribe_disabled_seat": "人數不可低於原方案", + "subscribe_grade_business": "商業", "subscribe_grade_free": "免費版", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "起動機", "subscribe_label_tooltip": "${grade}以上空間站專享功能", "subscribe_new_choose_member": "最高支持 ${member_num} 人", "subscribe_new_choose_member_tips": "本方案支持 1~${member_num} 名成員進入空間站使用", @@ -58411,7 +58549,7 @@ "template_name_repetition_title": "“${templateName}”已存在,確定要替換它嗎?", "template_no_template": "暫無模板", "template_not_found": "找不到想要的模板? 請告訴我們~", - "template_recommend_title": "熱門推薦", + "template_recommend_title": "🌟 熱門推薦", "template_type": "模板", "terms_of_service": "《服務條款》", "terms_of_service_pure_string": " 服務條款", @@ -58557,6 +58695,7 @@ "timemachine_update_comment": "Updated comments", "times_per_month_unit": "次/月", "times_unit": "次", + "timing_rules": "定時", "timor_leste": "東帝汶", "tip_del_success": "我們將對您的空間站數據保留七天,七天內可隨時撤銷刪除操作。", "tip_do_you_want_to_know_about_field_permission": "想對列數據加密嗎?了解列權限", diff --git a/packages/datasheet/public/file/langs/strings.ko-KR.json b/packages/datasheet/public/file/langs/strings.ko-KR.json index 46d46f9f79..5fff67b8c1 100644 --- a/packages/datasheet/public/file/langs/strings.ko-KR.json +++ b/packages/datasheet/public/file/langs/strings.ko-KR.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "이번 달에 실행", "automation_stay_tuned": "계속 지켜봐 주시기 바랍니다", "automation_success": "성공", + "automation_tips": "버튼 필드가 잘못 구성되었습니다. 확인하고 다시 시도해 주세요.", "automation_updater_label": "자동화의 실행 기록을 볼 수 있습니다.", "automation_variabel_empty": "사전 단계에서 사용할 수 있는 데이터가 없습니다. 조정 후 다시 시도해 주세요.", "automation_variable_datasheet": "${NODE_NAME}에서 데이터 가져오기", @@ -869,6 +870,7 @@ "bermuda": "버뮤다 제도", "bhutan": "부탄", "billing_over_limit_tip_common": "공간 사용량이 한도를 초과했으며, 업그레이드 후 더 많은 양을 즐기실 수 있습니다.", + "billing_over_limit_tip_forbidden": "평가판 기간 또는 구독 기간이 만료되었습니다. 갱신하려면 영업 컨설턴트에게 문의하세요.", "billing_over_limit_tip_widget": "위젯 설치 수가 한도를 초과했습니다. 업그레이드하여 사용량을 늘릴 수 있습니다.", "billing_period": "청구 기간: ${period}", "billing_subscription_warning": "기능 경험", @@ -928,10 +930,14 @@ "button_text": "버튼 텍스트", "button_text_click_start": "시작하려면 클릭하세요", "button_type": "버튼 유형", + "by_days": "날", "by_field_id": "필드 ID 사용", + "by_hours": "시간", + "by_months": "개월", "by_the_day": "일별", "by_the_month": "월간", "by_the_year": "매년의", + "by_weeks": "주", "calendar_add_date_time_field": "만든 날짜 필드", "calendar_color_more": "추가 색상", "calendar_const_detail_weeks": "[\"월요일\",\"화요일\",\"수요일\",\"목요일\",\"금요일\",\"토요일\",\"일요일\"]", @@ -1786,7 +1792,7 @@ "expired": "만기", "export": "내보내는 중...", "export_brand_desc": "기술 지원", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": ".png 파일로 내보내기", "export_gantt_chart": "Gantt 차트 내보내기", "export_to_excel": "데이터 내보내기", @@ -2491,6 +2497,8 @@ "guests_per_space": "각 공간의 손님", "guide_1": "啊这", "guide_2": "기본 기능을 학습하는 데 몇 분밖에 걸리지 않습니다.이 순간부터 생산성 향상!", + "guide_flow_modal_contact_sales": "영업팀에 문의", + "guide_flow_modal_get_started": "시작하다", "guide_flow_of_catalog_step1": "Space의 모든 폴더와 파일이 저장된 작업 디렉토리입니다.", "guide_flow_of_catalog_step2": "작업 디렉토리에서 필요에 따라 데이터 테이블이나 폴더를 만들 수 있습니다.", "guide_flow_of_click_add_view_step1": "일부 기본 보기 외에 그림 형식의 첨부 파일이 있으면 앨범 보기를 만드는 것이 좋습니다.", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "Lark의 엔터프라이즈 프로그램", "lark_version_standard": "Lark 표준 평면도", "lark_versions_free": "Lark의 기본 평면도", + "last_day": "마지막 날", "last_modified_by_select_modal_desc": "아래에서 선택한 필드를 편집하면 최근에 편집한 구성원이 마지막으로 편집한 필드에 표시됩니다.", "last_modified_time_select_modal_desc": "아래에서 선택한 필드를 편집하면 가장 최근에 편집한 시간이 마지막으로 편집한 시간 필드에 표시됩니다.", "last_step": "반환", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- 업데이트\", \"어린이\": \"

🚀 새로운 기능 소개

\\N
  • 새로운 필드 유형 \"캐스케이더\"가 출시되어 양식의 옵션 계층 구조에서 더 쉽게 선택할 수 있습니다.
  • \"스크립트\" 위젯이 출시되었습니다. 더 적은 코드로 더 많은 사용자 정의 가능
  • 자동화를 실행하여 이메일을 보내고 빠른 알림 받기
  • 자동화를 실행하여 Slack에 메시지를 보내고 적시에 팀에 알립니다.
  • AI 탐색: \"GPT 콘텐츠 생성기\" 위젯 출시
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 프록시 프로필\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 프록시 프로필\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "아래 버튼을 눌러 다시 미리보기", "preview_guide_enable_it": "아래 버튼을 눌러 이 기능을 엽니다.", "preview_guide_open_office_preview": "이 파일을 미리 보려면 사무실 미리 보기 기능을 엽니다.", + "preview_next_automation_execution_time": "다음 5개의 실행 시간 미리보기", "preview_not_support_video_codecs": "H.264 비디오 코덱이 있는 MP4 비디오만 미리 볼 수 있습니다.", "preview_revision": "미리 보기", "preview_see_more": "오피스 파일 미리보기 기능에 대해 더 알고 싶으십니까?여기를 클릭하십시오.", @@ -4478,6 +4488,7 @@ "scan_to_login": "로그인 검색", "scan_to_login_by_method": "로그인하려면 ${method}를 스캔하여 공식 계정을 팔로우하세요.", "scatter_chart": "산포도", + "schedule_type": "일정 유형", "science_and_technology": "과학과 기술", "scroll_screen_down": "화면 아래로 스크롤", "scroll_screen_left": "왼쪽으로 화면 스크롤", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "현재 스페이스의 포인트 수가 제한을 초과합니다. 서브스크립션을 업그레이드하십시오.\n", "subscribe_demonstrate": "요청 프레젠테이션", "subscribe_disabled_seat": "인원수는 원래 계획보다 낮아서는 안 된다.", + "subscribe_grade_business": "사업", "subscribe_grade_free": "자유의", "subscribe_grade_plus": "더하기", "subscribe_grade_pro": "찬성", + "subscribe_grade_starter": "기동기", "subscribe_label_tooltip": "고급 공간 기능", "subscribe_new_choose_member": "최대 ${member_num}명의 회원 지원", "subscribe_new_choose_member_tips": "이 플랜은 1~${member_num}명의 멤버가 공간에 입장할 수 있도록 지원합니다.", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "\"${templateName}\"이(가) 이미 존재합니다. 교체하시겠습니까?", "template_no_template": "템플릿 없음", "template_not_found": "원하는 템플릿을 찾을 수 없습니까?알려주세요", - "template_recommend_title": "더웠어", + "template_recommend_title": "🌟 Hot", "template_type": "템플릿", "terms_of_service": "<서비스 약관>", "terms_of_service_pure_string": "서비스 약관", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "업데이트된 댓글", "times_per_month_unit": "전화 / 월", "times_unit": "전화기", + "timing_rules": "타이밍", "timor_leste": "동티모르", "tip_del_success": "7일 이내에 공유 공간을 복구할 수 있습니다.", "tip_do_you_want_to_know_about_field_permission": "필드 데이터를 암호화하시겠습니까?필드 권한 이해", diff --git a/packages/datasheet/public/file/langs/strings.ru-RU.json b/packages/datasheet/public/file/langs/strings.ru-RU.json index 7582546f60..bb5808a3b0 100644 --- a/packages/datasheet/public/file/langs/strings.ru-RU.json +++ b/packages/datasheet/public/file/langs/strings.ru-RU.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "Работает в этом месяце", "automation_stay_tuned": "Следите за обновлениями", "automation_success": "Успех", + "automation_tips": "Поле кнопки настроено неправильно. Проверьте и повторите попытку.", "automation_updater_label": "Можно просмотреть историю запуска автоматизации.", "automation_variabel_empty": "Нет данных, которые можно было бы использовать на предварительном этапе. Измените настройки и повторите попытку.", "automation_variable_datasheet": "Получить данные из ${NODE_NAME}", @@ -869,6 +870,7 @@ "bermuda": "Бермудскиеострова", "bhutan": "Бутан", "billing_over_limit_tip_common": "Использование пространства превысило лимит, и после обновления вы сможете получить больший объем.", + "billing_over_limit_tip_forbidden": "Срок действия пробной версии или подписки истек. Пожалуйста, свяжитесь с продавцом-консультантом для продления.", "billing_over_limit_tip_widget": "Количество установок виджетов превысило лимит, и вы можете обновить их, чтобы увеличить использование.", "billing_period": "Расчетный период: ${period}", "billing_subscription_warning": "Функциональный опыт", @@ -928,10 +930,14 @@ "button_text": "Текст кнопки", "button_text_click_start": "Нажмите, чтобы начать", "button_type": "Тип кнопки", + "by_days": "Дни", "by_field_id": "Использовать идентификатор поля", + "by_hours": "Часы", + "by_months": "Месяцы", "by_the_day": "По дням", "by_the_month": "Ежемесячный журнал", "by_the_year": "Ежегодно", + "by_weeks": "Недели", "calendar_add_date_time_field": "Создать поле даты", "calendar_color_more": "Больше цветов", "calendar_const_detail_weeks": "[\"понедельник\",\"вторник\",\"среда\",\"четверг\",\"пятница\",\"суббота\",\"воскресенье\"]", @@ -1786,7 +1792,7 @@ "expired": "Срок действия", "export": "Проводится экспорт.", "export_brand_desc": "Техническая поддержка", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "Экспорт в файл.png", "export_gantt_chart": "Экспорт диаграммы Ганта", "export_to_excel": "Экспорт данных", @@ -2491,6 +2497,8 @@ "guests_per_space": "Гости в каждом пространстве", "guide_1": "啊这", "guide_2": "Изучение основных функций занимает всего несколько минут. С этого момента работа становится эффективнее!", + "guide_flow_modal_contact_sales": "Свяжитесь с отделом продаж", + "guide_flow_modal_get_started": "Начать", "guide_flow_of_catalog_step1": "Это рабочий каталог, в котором хранятся все папки и файлы Space.", "guide_flow_of_catalog_step2": "В рабочем каталоге вы можете создавать таблицы данных или папки по мере необходимости.", "guide_flow_of_click_add_view_step1": "В дополнение к некоторым основным видам, если у вас есть вложения в формате изображения, настоятельно рекомендуется создать вид альбома.", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "Бизнес - план Ларка", "lark_version_standard": "Стандартный план Ларка", "lark_versions_free": "Основные планы Ларка", + "last_day": "Последний день", "last_modified_by_select_modal_desc": "Если какое - либо поле, выбранное ниже, будет отредактировано, последний член редактора будет показан в поле последнего редактирования", "last_modified_time_select_modal_desc": "Если вы отредактировали любое поле, выбранное ниже, время последнего редактирования будет показано в поле времени последнего редактирования", "last_step": "Возвращение", @@ -3794,7 +3803,7 @@ "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{ \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\", \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10- обновления\", \"дети\": \"

🚀 Введение новых функций

\\п
  • Запущен новый тип поля «Каскад», упрощающий выбор из иерархии параметров в формах.
  • Выпущен виджет «Скрипт», меньше кода для большей настройки
  • Запустите автоматизацию для отправки электронных писем и быстрого получения уведомлений.
  • Запустите автоматизацию, чтобы отправить сообщение в Slack и вовремя проинформировать свою команду.
  • Исследование искусственного интеллекта: выпущен виджет «GPT Content Generator»
\" }", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"How to use a template\", \n\"description\": \"Click the button on the left to use the template\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"Введение AI-агент\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"Введение AI-агент\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"How to use a template\", \n\"description\": \"Select where to put the template\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"What kind of issues are you looking forward to solved by vikadata?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Work Planning\",\n \"Customer Service\",\n \"Project Management\",\n \"Sourcing Supply\",\n \"Content Production\",\n \"E-commerce operation\",\n \"Event Planning\",\n \"Human Resources\",\n \"Administration\",\n \"Financial Management\",\n \"Webcast\",\n \"Educational institutes Management\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"Your job title is______\",\n \"type\": \"radio\",\n \"answers\": [\n \"General manager \",\n \"Project manager\",\n \"Product manager\",\n \"Designer\",\n \"R&D engineer\",\n \"Operator, editor\",\n \"Sales, customer service\",\n \"Human resource, administration \",\n \"Finance, accountant\",\n \"Lawyer, legal affairs\",\n \"Marketing\",\n \"Teacher\",\n \"Student\",\n \"Other\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"What is the name of your company?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"Please leave your email address/ phone number/ Wechat account below so we can reach you in time when you need help.\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"Thank you for filling out the form, you can add our customer service in case of need\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"Form\", \n\"description\": \"You can quickly create a form from the current view. The number and order of the fields in the form is consistent with the view.\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"Tip\", \n\"offsetY\":5,\n\"description\": \"You can find your Vikaby assistant from the \"Help\" icon on the left\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"Widget\", \n\"description\": \"Want to use and view your data in a richer way? Try the widget!\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"What is a widget\", \n\"description\": \"Vika widgets are an extended application of vikadata that features in richer data visualization, data transfer, data cleansing, and more. By installing widgets in the widget board, you can make work a lot easier.\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", + "player_step_ui_config_5": "{\n\"title\":\"Vikadata's hierarchy\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"Widget Center\", \n\"description\": \"Officially recommended and custom widgets are published here. You can install any widget you want onto a dashboard or into a widget board of any datasheet.\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"Install widget\", \n\"description\": \"Let's install this \"Chart\" widget\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "Нажмите кнопку ниже для просмотра", "preview_guide_enable_it": "Нажмите кнопку ниже, чтобы открыть эту функцию", "preview_guide_open_office_preview": "Для предварительного просмотра этого файла откройте функцию \"Office Preview\"", + "preview_next_automation_execution_time": "Предварительный просмотр следующих 5 раз выполнения", "preview_not_support_video_codecs": "Просмотр только видео MP4 с видеокодеком H.264", "preview_revision": "Предварительный просмотр", "preview_see_more": "Хотите узнать больше о функции « Предварительный просмотр офисных документов»? Пожалуйста, нажмите здесь.", @@ -4478,6 +4488,7 @@ "scan_to_login": "Сканирование записей", "scan_to_login_by_method": "Отсканируйте ${method}, чтобы войти в официальный аккаунт", "scatter_chart": "Диаграмма распространения", + "schedule_type": "Тип расписания", "science_and_technology": "Наука и техника", "scroll_screen_down": "Прокрутить экран вниз", "scroll_screen_left": "Прокрутить экран влево", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "количество кредитов в текущем пространстве превышает лимит, пожалуйста, обновите подписку.\n", "subscribe_demonstrate": "Запросить демонстрацию", "subscribe_disabled_seat": "Численность не должна быть ниже запланированной.", + "subscribe_grade_business": "Бизнес", "subscribe_grade_free": "Свободный", "subscribe_grade_plus": "А", "subscribe_grade_pro": "Согласен.", + "subscribe_grade_starter": "Стартер", "subscribe_label_tooltip": "Расширенные пространственные функции", "subscribe_new_choose_member": "Поддерживает до ${member_num} участников", "subscribe_new_choose_member_tips": "Этот план поддерживает 1~${member_num} участников для входа в пространство", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "\"${templateName}\" уже существует. Вы хотите заменить это?", "template_no_template": "Нет шаблонов", "template_not_found": "Не нашли нужный шаблон? Скажи нам.", - "template_recommend_title": "Горячий", + "template_recommend_title": "🌟 Hot", "template_type": "Образец", "terms_of_service": "< Условия обслуживания >", "terms_of_service_pure_string": "Условия предоставления услуг", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "Обновлены комментарии", "times_per_month_unit": "Телефон / месяц", "times_unit": "Телефон", + "timing_rules": "Тайминг", "timor_leste": "Тимор - Лешти", "tip_del_success": "Вы можете восстановить свое общее пространство за 7 дней.", "tip_do_you_want_to_know_about_field_permission": "Хотите зашифровать данные поля? Права доступа к полю", diff --git a/packages/datasheet/public/file/langs/strings.zh-CN.json b/packages/datasheet/public/file/langs/strings.zh-CN.json index f8eb01d849..aa97855266 100644 --- a/packages/datasheet/public/file/langs/strings.zh-CN.json +++ b/packages/datasheet/public/file/langs/strings.zh-CN.json @@ -545,6 +545,7 @@ "api_params_updatedby_can_not_operate": "修改人列的值由系统自动生成,不允许编辑", "api_params_views_max_count_error": "", "api_params_widget_package_id_error": "widgetPackageId 不能为空", + "api_params_workdoc_can_not_operate": "WorkDoc field can't be edited", "api_query_params_invalid_fields": "传入的 fields 不存在:{fields}", "api_query_params_view_id_not_exists": "查询的视图({viewId}) 不存在 ", "api_request_success": "成功", @@ -652,7 +653,7 @@ "assistant_activity_train_camp": "限时福利", "assistant_beginner_task": "新手任务", "assistant_beginner_task_1_what_is_datasheet": "什么是 APITable", - "assistant_beginner_task_2_quick_start": "一分钟快速入门", + "assistant_beginner_task_2_quick_start": "VIKA产品演示", "assistant_beginner_task_3_how_to_use_datasheet": "玩转一张维格表", "assistant_beginner_task_4_share_and_invite": "分享和邀请成员", "assistant_beginner_task_5_onboarding": "智能引导", @@ -913,7 +914,7 @@ "button_bind_now": "立即绑定", "button_change_phone": "修改手机", "button_check_history": "查看运行历史", - "button_check_history_end": "", + "button_check_history_end": ".", "button_click_trigger_explanation": "\"按钮被点击时\" 是一个触发条件,当用户点击你新建的按钮列时,它会被触发", "button_color": "按钮颜色", "button_combine": "按钮组合", @@ -929,10 +930,14 @@ "button_text": "按钮文案", "button_text_click_start": "点击开始", "button_type": "按钮类型", + "by_days": "按天", "by_field_id": "使用 Field ID", + "by_hours": "按小时", + "by_months": "按月", "by_the_day": "按天", "by_the_month": "按月", "by_the_year": "按年", + "by_weeks": "按周", "calendar_add_date_time_field": "创建日期", "calendar_color_more": "更多颜色", "calendar_const_detail_weeks": "[\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\",\"星期天\"]", @@ -2494,6 +2499,8 @@ "guests_per_space": "外部访客", "guide_1": "来呀互相伤害呀", "guide_2": "花费几分钟跟随我们的指引,学习一下维格表的常规功能,可以让您事半功倍哦!", + "guide_flow_modal_contact_sales": "预约销售", + "guide_flow_modal_get_started": "立刻使用", "guide_flow_of_catalog_step1": "这是工作目录,里边存放的是空间站的所有文件夹和文件", "guide_flow_of_catalog_step2": "工作目录里面,除了可以单独创建维格表,也可以单独创建文件夹", "guide_flow_of_click_add_view_step1": "除了基本的表格视图之外,我们支持创建相册视图,如果你有图片附件的话,我建议你创建个相册视图试试", @@ -2549,6 +2556,7 @@ "hide_uneditable_automation_node": "隐藏无编辑权限的自动化节点", "hide_unmanage_sheet": "隐藏无管理权限的文件", "hide_unmanageable_files": "隐藏无管理权限的文件", + "hide_unmanaged_sheet": "Hide unmanageable resource", "hide_unusable_sheet": "隐藏无编辑权限的文件", "highlight": "高亮", "hint": "提示", @@ -2880,6 +2888,7 @@ "lark_version_enterprise": "飞书企业版", "lark_version_standard": "飞书标准版", "lark_versions_free": "飞书基础版", + "last_day": "最后一天", "last_modified_by_select_modal_desc": "由于该维格列类型的特殊性,下方只展示可编辑的列,每当有人在指定的列进行过修改,则会更新当前的修改人", "last_modified_time_select_modal_desc": "由于该维格列类型的特殊性,下方只展示可编辑的列,每当有人在指定的列进行过修改,则会更新当前的修改时间", "last_step": "上一步", @@ -3792,12 +3801,12 @@ "player_step_ui_config_163": "", "player_step_ui_config_164": "", "player_step_ui_config_165": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/03/16/8374ca1295664675bd1155b077555113\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-03-16-updates\",\n \"children\": \"

🚀 新功能介绍

\\n
  • 镜像功能再次升级,可禁止查看已隐藏的字段
  • 个人设置追加时区信息,日期字段可指定时区
  • 「全局搜索」优化,新增搜索结果分类
  • 神奇表单支持隐藏官方标识
  • API 性能优化,大幅提高请求速度
\"\n}", - "player_step_ui_config_166": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Enterprise版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 500,000,000 行\",\n \"空间站附件容量数提高至 50 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://aitable.ai/management/upgrade\n}", + "player_step_ui_config_166": "{\n \"title\": \"恭喜你!获得试用权益\",\n \"description\": \"你获得了14天Enterprise版本的试用权益,你可以点击按钮查看详情\",\n \"listHeader\": \"试用权益:\",\n \"listContent\": [\n \"空间站记录总数上限提高至 500,000,000 行\",\n \"空间站附件容量数提高至 50 GB\",\n \"支持调用所有高级 API\"\n ],\n \"listFooter\": \"更多权益\",\n \"url\": \"https://aitable.ai/management/upgrade\"\n}", "player_step_ui_config_167": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通过 APITable 解决哪些问题?\",\n \"type\": \"multiButton\",\n \"answers\": [\n \"IT 运维支持\",\n \"教育\",\n \"项目管理\",\n \"市场营销\",\n \"产品管理\",\n \"招聘管理\",\n \"运营\",\n \"金融财务\",\n \"销售 & 客户管理\",\n \"软件开发\",\n \"人力资源 & 合规\",\n \"设计 & 创意\",\n \"非盈利组织\",\n \"制造业\",\n \"其他\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作岗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"企业主\",\n \"团队负责人\",\n \"团队成员\",\n \"自由职业者\",\n \"主管\",\n \"高管层\",\n \"副总裁\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的团队规模是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"只有我\",\n \"2-5\",\n \"6-10\",\n \"11-15\",\n \"16-25\",\n \"25-50\",\n \"51-100\",\n \"101-500\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"您的公司规模是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"1-19\",\n \"20-49\",\n \"50-99\",\n \"100-250\",\n \"251-500\",\n \"501-1500\",\n \"1500+\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 5,\n \"name\": \"answer5\",\n \"title\": \"您从哪种途径了解到我们?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"搜索引擎\",\n \"YouTube\",\n \"Product Hunt\",\n \"Github\",\n \"推特\",\n \"领英\",\n \"朋友推荐\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 6,\n \"name\": \"answer6\",\n \"title\": \"加入我们的Discord社区,和全世界 APITable 的使用者一起讨论使用心得吧!在使用过程中如果遇到任何问题,可以随时在社区获得解答和帮助。\",\n \"type\": \"joinUs\",\n \"url\": \"https://discord.gg/2UXAbDTJTX\",\n \"confirmText\": \"加入社区\",\n \"skipText\": \"跳过\",\n \"submit\": true\n }\n ]\n}", "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 新功能介绍

\\n
  • 推出新字段类型「多级联动」,神奇表单支持多级选项
  • 脚本小程序上架,少少代码满足多多定制化
  • 维格表自动化支持「发送邮件」
  • 维格表自动化支持「发送到Slack」
  • 维格表的AI探索,「GPT 内容生成」小程序发布
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"使用模板教程\", \n\"description\": \"点击左侧按钮使用模板\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 助手介绍\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 助手介绍\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"使用模板教程\", \n\"description\": \"选择模板要存放的位置\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通过维格表解决哪些问题?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"工作规划\",\n \"客户服务\",\n \"项目管理\",\n \"采购供应\",\n \"内容生产\",\n \"电商运营\",\n \"活动策划\",\n \"人力资源\",\n \"行政管理\",\n \"财务管理\",\n \"网络直播\",\n \"高校管理\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作岗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"管理者\",\n \"项目经理\",\n \"产品经理\",\n \"设计师\",\n \"研发、工程师\",\n \"运营、编辑\",\n \"销售、客服\",\n \"人事、行政\",\n \"财务、会计\",\n \"律师、法务\",\n \"市场\",\n \"教师\",\n \"学生\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的公司名称是?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"请留下你的邮箱/手机/微信号,以便我们及时提供帮助。\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"感谢你的填写,请加一下客服号以备不时之需\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3827,13 +3836,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"神奇表单\", \n\"description\": \"在这里可以快速生成当前视图的神奇表单,神奇表单的字段是依照视图的维格列数量以及顺序来生成的哦\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"小提示\", \n\"offsetY\":5,\n\"description\": \"你可以在左侧的「帮助中心」找回你的维格小助手\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"新功能\", \n\"description\": \"小程序上线!想要让沉淀下来的数据得到更好的运用吗?那就赶紧来体验一下吧\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"什么是小程序\", \n\"description\": \"维格小程序是维格表的一种扩展应用,可实现数据可视化、数据传输、数据清洗等等额外功能。通过在小程序面板安装适合团队的小程序,可以让工作事半功倍\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"一分钟快速入门\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_5": "{\n\"title\":\"VIKA产品演示\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"小程序中心\", \n\"description\": \"官方推荐和空间站自建的小程序会发布到这里。你可以根据场景,在这里挑选合适的小程序放置到仪表盘或小程序面板里\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"安装小程序\", \n\"description\": \"我们安装这个「图表」小程序看看吧\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3886,6 +3895,7 @@ "player_step_ui_config_95": "", "player_step_ui_config_97": "{\n\t\"vikaby\": {\n\t\t\"title\": \"你好\",\n\t\t\"description\": \"如果在使用过程中遇到问题,请扫描右侧二维码联系我解决\",\n\t\t\"list\": \"
  • 刚注册维格表,不知道怎么用
  • 维格表可以实现我想要的效果吗
  • 使用过程出现异常问题
  • 后续支持的功能有哪些
  • 获取官方邀请码
\",\n\t\t\"tip\": \"扫码添加客服\"\n\t},\n\t\"questionnaire\": {\n\t\t\"title\": \"您好,我是维格表数字化顾问\",\n\t\t\"list\": \"[{\\\"title\\\": \\\"Bug 吐槽\\\", \\\"icon\\\": \\\"BugOutlined\\\"}, {\\\"title\\\": \\\"需求反馈\\\", \\\"icon\\\": \\\"AdviseSmallOutlined\\\"}, {\\\"title\\\": \\\"服务支持\\\", \\\"icon\\\": \\\"ServeOutlined\\\"}, {\\\"title\\\": \\\"案例推荐\\\", \\\"icon\\\": \\\"ZanOutlined\\\"}, {\\\"title\\\": \\\"解决方案\\\", \\\"icon\\\": \\\"SolutionSmallOutlined\\\"}, {\\\"title\\\": \\\"产品答疑\\\", \\\"icon\\\": \\\"InformationLargeOutlined\\\"}]\",\n\t\t\"tip\": \"扫码添加微信,获得更多专属服务\"\n\t},\n\t\"website\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/59f4cc8e0b2b4395bf0fcd133d208e63\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/defbf55d1e9646eb929f9f5d11d5c119\"\n\t},\n\t\"dingtalk\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/964be5e3217b4fa8bfa74ef47a980093?attname=dingtalk-questionnaire.png\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/964be5e3217b4fa8bfa74ef47a980093?attname=dingtalk-vikaby.png\",\n\"tip\": \"请使用钉钉扫码,加入交流群\"\n\t},\n\t\"wecom\": {\n\t\t\"questionnaire\": \"https://s4.vika.cn/space/2023/03/02/1346d5efbd5043efb2bfcba0075c0ee9\",\n\t\t\"vikaby\": \"https://s4.vika.cn/space/2023/03/02/09401a8f2d8e491a9097b9bac8b5a4e4\"\n\t},\n\t\"feishu\": {\n\t\t\"title\": \"扫码添加客服\",\n\t\t\"tip\": \"请使用飞书扫码,添加客服号备用\",\n\t\t\"description\": \"以便使用过程中遇到问题,可以随时获得服务和解答\",\n\t\t\"originUrl\": \"https://u.vika.cn/z9ygm\"\n\t}\n}", "player_step_ui_config_99": "", + "player_step_ui_config_automation_1": "{\n \"element\": \"#AUTOMATION_ADD_TRIGGER_BTN\", \"title\":\"title\", \"description\": \"description\" \n} ", "player_step_ui_config_button_field_action_create": "{\n \"element\": \"#CONST_ROBOT_ACTION_CREATE\", \"placement\": \"topCenter\", \"title\": \"\", \"description\": \"现在你应该添加一个或多个 Action,以定义按钮点击后应执行的具体动作\" \n} ", "player_step_ui_config_button_field_bound_datasheet": "{\n \"element\": \"#AUTOMATION_BOUND_DATASHEET\", \"title\": \"\", \"description\": \"“按钮被点击时” 需要绑定表格和字段,以便知道哪里发生的点击行为,这里已经为你设置好\" \n} ", "player_step_ui_config_button_field_node": "{\n \"element\": \".TREE_NODE_ACTIVE_ONE\", \"title\": \"\", \"description\": \"自动化节点是自动化流程的起点,你可以在这里设置触发条件和相关动作\" \n} ", @@ -3930,6 +3940,7 @@ "preview_guide_click_to_restart": "点击下方按钮重新预览", "preview_guide_enable_it": "你可以点击下方按钮去启用此功能", "preview_guide_open_office_preview": "开启「office预览」功能后即可预览该文件", + "preview_next_automation_execution_time": "预览最近5次执行时间", "preview_not_support_video_codecs": "当前仅支持预览编码为H.264的MP4视频", "preview_revision": "预览此版本", "preview_see_more": "想要了解更多「office 文件预览」功能?请点击这里", @@ -4481,6 +4492,7 @@ "scan_to_login": "扫码登录", "scan_to_login_by_method": "请使用${method}关注公众号即可安全登录", "scatter_chart": "散点图", + "schedule_type": "定时类型", "science_and_technology": "科学技术", "scroll_screen_down": "向下滚动一屏", "scroll_screen_left": "向左滚动一屏", @@ -5046,9 +5058,11 @@ "subscribe_credit_usage_over_limit": "空间站的算力点数量已耗尽,请升级你的空间站。", "subscribe_demonstrate": "预约演示", "subscribe_disabled_seat": "人数不可低于原方案", + "subscribe_grade_business": "Business", "subscribe_grade_free": "免费版", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "Starter", "subscribe_label_tooltip": "${grade}以上空间站专享功能", "subscribe_new_choose_member": "最高支持 ${member_num} 人", "subscribe_new_choose_member_tips": "本方案支持 1~${member_num} 名成员进入空间站使用", @@ -5185,7 +5199,7 @@ "template_name_repetition_title": "“${templateName}”已存在,确定要替换它吗?", "template_no_template": "暂无模板", "template_not_found": "找不到想要的模板? 请告诉我们~", - "template_recommend_title": "热门推荐", + "template_recommend_title": "🌟 热门推荐", "template_type": "模板", "terms_of_service": "《服务条款》", "terms_of_service_pure_string": " 服务条款", @@ -5331,6 +5345,7 @@ "timemachine_update_comment": "更新了评论", "times_per_month_unit": "次/月", "times_unit": "次", + "timing_rules": "定时规则", "timor_leste": "东帝汶", "tip_del_success": "我们将对您的空间站数据保留七天,七天内可随时撤销删除操作。", "tip_do_you_want_to_know_about_field_permission": "想对列数据加密吗?了解列权限", @@ -5590,7 +5605,7 @@ "vikaby_menu_hidden_vikaby": "取消悬浮", "vikaby_menu_releases_history": "历史更新", "vikaby_todo_menu1": "什么是维格表", - "vikaby_todo_menu2": "一分钟快速入门", + "vikaby_todo_menu2": "VIKA产品演示", "vikaby_todo_menu3": "玩转一张维格表", "vikaby_todo_menu4": "分享和邀请成员", "vikaby_todo_menu5": "智能引导", @@ -5675,7 +5690,7 @@ "weixin_share_card_title": "", "welcome_interface": "欢迎界面", "welcome_module1": "什么是 APITable", - "welcome_module2": "一分钟快速入门", + "welcome_module2": "VIKA产品演示", "welcome_module3": "玩转一张维格表", "welcome_module4": "内容日历", "welcome_module5": "项目管理", diff --git a/packages/datasheet/public/file/langs/strings.zh-HK.json b/packages/datasheet/public/file/langs/strings.zh-HK.json index 688d3034e8..499b360043 100644 --- a/packages/datasheet/public/file/langs/strings.zh-HK.json +++ b/packages/datasheet/public/file/langs/strings.zh-HK.json @@ -834,6 +834,7 @@ "automation_runs_this_month": "Runs this month", "automation_stay_tuned": "Stay tuned", "automation_success": "成功", + "automation_tips": "按鈕欄位配置錯誤,請檢查並重試", "automation_updater_label": "可以查看自動化的運行歷史記錄", "automation_variabel_empty": "前一步沒有可以使用的數據,請調整後重試。", "automation_variable_datasheet": "從 ${NODE_NAME} 取得數據", @@ -869,6 +870,7 @@ "bermuda": "百慕大群島", "bhutan": "不丹", "billing_over_limit_tip_common": "空間使用量已超過限制,升級後可享有更高的空間使用量。", + "billing_over_limit_tip_forbidden": "您的試用期或訂閱期已過期。請聯絡銷售顧問續訂。", "billing_over_limit_tip_widget": "小組件安裝數量已超出限制,您可以升級以獲得更高的使用量。", "billing_period": "計費周期:${period}", "billing_subscription_warning": "功能體驗", @@ -928,10 +930,14 @@ "button_text": "按鈕文字", "button_text_click_start": "點擊開始", "button_type": "按鈕類型", + "by_days": "天", "by_field_id": "使用 Field ID", + "by_hours": "小時", + "by_months": "幾個月", "by_the_day": "按天", "by_the_month": "按月", "by_the_year": "每年", + "by_weeks": "週數", "calendar_add_date_time_field": "創建日期", "calendar_color_more": "更多顏色", "calendar_const_detail_weeks": "[\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\",\"星期六\",\"星期天\"]", @@ -1786,7 +1792,7 @@ "expired": "已過期", "export": "正在導出…", "export_brand_desc": "提供技術支持", - "export_current_preview_view_data": "", + "export_current_preview_view_data": "Export current preview view data", "export_gantt_button_tips": "導出為圖片", "export_gantt_chart": "導出甘特圖", "export_to_excel": "導出為 Excel 文件", @@ -2491,6 +2497,8 @@ "guests_per_space": "外部訪客", "guide_1": "來呀互相傷害呀", "guide_2": "花費幾分鐘跟隨我們的指引,學習一下維格表的常規功能,可以讓您事半功倍哦!", + "guide_flow_modal_contact_sales": "聯繫銷售人員", + "guide_flow_modal_get_started": "開始使用", "guide_flow_of_catalog_step1": "這是工作目錄,裡邊存放的是空間站的所有文件夾和文件", "guide_flow_of_catalog_step2": "工作目錄裡面,除了可以單獨創建維格表,也可以單獨創建文件夾", "guide_flow_of_click_add_view_step1": "除了基本的維格視圖之外,我們支持創建相冊視圖,如果你有圖片附件的話,我建議你創建個相冊視圖試試", @@ -2877,6 +2885,7 @@ "lark_version_enterprise": "飛書企業版", "lark_version_standard": "飛書標準版", "lark_versions_free": "飛書基礎版", + "last_day": "最後一天", "last_modified_by_select_modal_desc": "由於該維格列類型的特殊性,下方只展示可編輯的列,每當有人在指定的列進行過修改,則會更新當前的修改人", "last_modified_time_select_modal_desc": "由於該維格列類型的特殊性,下方只展示可編輯的列,每當有人在指定的列進行過修改,則會更新當前的修改時間", "last_step": "上一步", @@ -3789,12 +3798,12 @@ "player_step_ui_config_163": "", "player_step_ui_config_164": "", "player_step_ui_config_165": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/03/16/8374ca1295664675bd1155b077555113\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-03-16-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • The mirror is upgraded again, hiding sensitive fields and collaborating with peace of mind
  • The time zone of the user account is online, and the time zone of the date list can be set independently, making cross-time zone cooperation smoother.
  • \"Global Search\" experience optimization, new search result categories
  • Gold-level space station benefits are increased, and the sharing form supports hiding official logos
  • API interface performance optimization, greatly improving call efficiency
\"\n}", - "player_step_ui_config_166": "{\n \"title\": \"恭喜你!獲得試用權益\",\n \"description\": \"你獲得了14天Enterprise版本的試用權益,你可以點擊按鈕查看詳情\", \n \"listHeader\": \"試用權益:\",\n \"listContent\": [\n \"空間站記錄總數上限提高至500,000,000 行\",\n \"空間站附件容量數提高至50 GB\",\n \"支持調用所有高級API\"\n ],\n \"listFooter\": \"更多權益\",\n \"url\": \"https://aitable.ai/management/upgrade\n}", + "player_step_ui_config_166": "{\n \"title\": \"恭喜你!獲得試用權益\",\n \"description\": \"你獲得了14天Enterprise版本的試用權益,你可以點擊按鈕查看詳情\", \n \"listHeader\": \"試用權益:\",\n \"listContent\": [\n \"空間站記錄總數上限提高至500,000,000 行\",\n \"空間站附件容量數提高至50 GB\",\n \"支持調用所有高級API\"\n ],\n \"listFooter\": \"更多權益\",\n \"url\": \"https://aitable.ai/management/upgrade\"\n}", "player_step_ui_config_167": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"How do you want to use APITable?\",\n \"type\": \"multiButton\",\n \"answers\": [\n \"IT & Support\",\n \"Education\",\n \"Project Management\",\n \"Marketing\",\n \"Product Management\",\n \"HR & Recruiting\",\n \"Operations\",\n \"Finance\",\n \"Sales & CRM\",\n \"Software Development\",\n \"HR & Legal\",\n \"Design & Creative\",\n \"Nonprofit\",\n \"Manufacture\",\n \"Other Things\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"What best describes your current role?\",\n \"type\": \"radio\",\n \"answers\": [\n \"Business Owner\",\n \"Team Leader\",\n \"Team Member\",\n \"Freelancer\",\n \"Director\",\n \"C-level\",\n \"VP\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"How many people are on your team? \",\n \"type\": \"radio\",\n \"answers\": [\n \"Just me\",\n \"2-5\",\n \"6-10\",\n \"11-15\",\n \"16-25\",\n \"25-50\",\n \"51-100\",\n \"101-500\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"How many people work at your company? \",\n \"type\": \"radio\",\n \"answers\": [\n \"1-19\",\n \"20-49\",\n \"50-99\",\n \"100-250\",\n \"251-500\",\n \"501-1500\",\n \"1500+\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 5,\n \"name\": \"answer5\",\n \"title\": \"How did you hear about us? \",\n \"type\": \"checkbox\",\n \"answers\": [\n \"Search Engine\",\n \"YouTube\",\n \"Product Hunt\",\n \"Github\",\n \"Twitter\",\n \"LinkedIn\",\n \"Through a friend\"\n ],\n \"lastAllowInput\": false\n },\n {\n \"key\": 6,\n \"name\": \"answer6\",\n \"title\": \"We host a Discord channel as a place for discussion with APITable fans, come and join us!\",\n \"type\": \"joinUs\",\n \"url\": \"https://discord.gg/2UXAbDTJTX\",\n \"confirmText\": \"Join Our Community\",\n \"skipText\": \"skip\",\n \"submit\": true\n }\n ]\n}", "player_step_ui_config_168": "{\n\"templateKey\":\"createMirrorTip\"\n}", "player_step_ui_config_169": "{\n \"headerImg\": \"https://s4.vika.cn/space/2023/04/04/bcf0695cf35840e6b85e032a8e5ea0a1\",\n \"readMoreUrl\": \"https://help.vika.cn/changelog/23-04-10-updates\",\n \"children\": \"

🚀 Introduction of new functions

\\n
  • New field type \"Cascader\" is launched, making selection from a hierarchy of options on forms easier
  • \"Script\" widget is released, less code for more customization
  • Trigger Robot to send Emails, and get fast notifications
  • Trigger Robot to send a message to Slack, and inform your team in time
  • Exploring AI: \"GPT Content Generator\" Widget Released
\"\n}", "player_step_ui_config_17": "{\n \"element\": \"#TEMPLATE_CENTER_USE_TEMPLATE_BTN>button\", \n\"placement\": \"rightBottom\",\n\"offsetY\": 20,\n \"title\": \"使用模板教程\", \n\"description\": \"點擊左側按鈕使用模板\", \"children\":\"\" \n}", - "player_step_ui_config_176": "{\"title\":\"AI 助手介紹\",\"video\":\"https://www.youtube.com/embed/cjds1r_roG8?si=irKUpMhwDlOEb8Hc\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", + "player_step_ui_config_176": "{\"title\":\"AI 助手介紹\",\"video\":\"https://www.youtube.com/embed/kGxMyEEo3OU\",\"videoId\":\"VIKA_GUIDE_VIDEO_FOR_AI\",\"autoPlay\":true}", "player_step_ui_config_18": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select>.ant-select-selector\", \n\"placement\": \"bottomLeft\",\n \"title\": \"使用模板教程\", \n\"description\": \"選擇模板要存放的位置\", \"children\":\"\" \n}", "player_step_ui_config_19": "{\n \"element\": \".style_usingTemplateWrapper__2vLm0 .ant-select .ant-select-selector\"\n}", "player_step_ui_config_2": "{\n \"config\": [\n {\n \"key\": 1,\n \"name\": \"answer1\",\n \"title\": \"您希望通過維格表解決哪些問題?\",\n \"type\": \"checkbox\",\n \"answers\": [\n \"工作規劃\",\n \"客戶服務\",\n \"項目管理\",\n \"採購供應\",\n \"內容生產\",\n \"電商運營\",\n \"活動策劃\",\n \"人力資源\",\n \"行政管理\",\n \"財務管理\",\n \"網絡直播\",\n \"高校管理\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 2,\n \"name\": \"answer2\",\n \"title\": \"您的工作崗位是?\",\n \"type\": \"radio\",\n \"answers\": [\n \"管理者\",\n \"項目經理\",\n \"產品經理\",\n \"設計師\",\n \"研發、工程師\",\n \"運營、編輯\",\n \"銷售、客服\",\n \"人事、行政\",\n \"財務、會計\",\n \"律師、法務\",\n \"市場\",\n \"教師\",\n \"學生\",\n \"其它\"\n ],\n \"lastAllowInput\": true\n },\n {\n \"key\": 3,\n \"name\": \"answer3\",\n \"title\": \"您的公司名稱是?\",\n \"type\": \"input\",\n \"submit\": false\n },\n {\n \"key\": 4,\n \"name\": \"answer4\",\n \"title\": \"請留下你的郵箱/手機/微信號,以便我們及時提供幫助。\",\n \"type\": \"input\",\n \"submit\": true\n },\n {\n \"key\": 5,\n \"title\": \"感謝你的填寫,請加一下客服號以備不時之需\",\n \"platform\": {\n \"website\": \"https://s4.vika.cn/space/2023/03/02/b34e3205a9154463be16f497524f1327\",\n \"dingtalk\": \"https://s4.vika.cn/space/2023/03/02/4b16cef6602a4586a21d6346bf25d300\",\n \"wecom\": \"https://s4.vika.cn/space/2023/03/02/60119b1b69b64aa887bd1be6a2928bec\",\n \"feishu\": \"https://u.vika.cn/z9ygm\"\n },\n \"type\": \"contactUs\",\n \"next\": true\n }\n ]\n}\n", @@ -3824,13 +3833,13 @@ "player_step_ui_config_41": "", "player_step_ui_config_42": "{\n \"element\": \"#DATASHEET_FORM_LIST_PANEL\", \n\"placement\": \"leftTop\",\n \"title\": \"神奇表單\", \n\"description\": \"在這裡可以快速生成當前視圖的神奇表單,神奇表單的字段是依照視圖的維格列數量以及順序來生成的哦\", \"children\":\"\" \n}", "player_step_ui_config_43": "{\n \"element\": \".style_navigation__1U5cR .style_help__1sXEA\", \n\"placement\": \"rightBottom\",\n \"title\": \"小提示\", \n\"offsetY\":5,\n\"description\": \"你可以在左側的「幫助中心」找回你的維格小助手\", \"children\":\"\" \n}", - "player_step_ui_config_44": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_44": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_NEW_USER\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_45": "", "player_step_ui_config_46": "", "player_step_ui_config_47": "{\n \"element\": \"#DATASHEET_WIDGET_BTN\",\n\"placement\": \"bottomRight\",\n \"title\": \"新功能\", \n\"description\": \"小程序上線!想要讓沉澱下來的數據得到更好的運用嗎?那就趕緊來體驗一下吧\", \"children\":\"\" \n}", "player_step_ui_config_48": "", "player_step_ui_config_49": "{\n \"element\": \".style_widgetPanelContainer__1l2ZV\",\n\"placement\": \"leftCenter\",\n \"title\": \"什麼是小程序\", \n\"description\": \"維格小程序是維格表的一種擴展應用,可實現數據可視化、數據傳輸、數據清洗等等額外功能。通過在小程序面板安裝適合團隊的小程序,可以讓工作事半功倍\", \"children\":\"\" \n}", - "player_step_ui_config_5": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2021/03/10/a68dbf1e2e7943b09b1550175253fdab\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", + "player_step_ui_config_5": "{\n\"title\":\"一分鐘快速入門\",\n\"video\":\"space/2023/12/12/8e870a50d98646f0a4cc2f76e3cd6d46\",\n\"videoId\":\"VIKA_GUIDE_VIDEO_2\",\n\"autoPlay\":true\n}\n", "player_step_ui_config_50": "{\n \"element\": \".style_widgetModal__eXmdB\",\n\"placement\": \"leftTop\",\n \"title\": \"小程序中心\", \n\"description\": \"官方推薦和空間站自建的小程序會發佈到這裡。你可以根據場景,在這裡挑選合適的小程序放置到儀錶盤或小程序面板裡\", \"children\":\"\" \n}", "player_step_ui_config_51": "{\n \"element\": \".style_widgetModal__eXmdB .style_widgetItem__3Pl-1 button\",\n\"placement\": \"rightBottom\",\n \"title\": \"安裝小程序\", \n\"description\": \"我們安裝這個「圖表」小程序看看吧\", \"children\":\"\" \n}", "player_step_ui_config_52": "", @@ -3927,6 +3936,7 @@ "preview_guide_click_to_restart": "點擊下方按鈕重新預覽", "preview_guide_enable_it": "你可以點擊下方按鈕去啟用此功能", "preview_guide_open_office_preview": "開啟「office預覽」功能後即可預覽該文件", + "preview_next_automation_execution_time": "預覽接下來 5 個執行時間", "preview_not_support_video_codecs": "當前僅支持預覽編碼為H.264的MP4視頻", "preview_revision": "預覽此版本", "preview_see_more": "想要了解更多「office 文件預覽」功能?請點擊這裡", @@ -4478,6 +4488,7 @@ "scan_to_login": "掃碼登錄", "scan_to_login_by_method": "請使用${method}關注公眾號即可安全登錄", "scatter_chart": "散點圖", + "schedule_type": "時間表類型", "science_and_technology": "科學技術", "scroll_screen_down": "向下滾動一屏", "scroll_screen_left": "向左滾動一屏", @@ -5043,9 +5054,11 @@ "subscribe_credit_usage_over_limit": "當前空間中的積分數量超過限制,請升級您的訂閱。\n", "subscribe_demonstrate": "預約演示", "subscribe_disabled_seat": "人數不可低於原方案", + "subscribe_grade_business": "商業", "subscribe_grade_free": "免費版", "subscribe_grade_plus": "Plus", "subscribe_grade_pro": "Pro", + "subscribe_grade_starter": "起動機", "subscribe_label_tooltip": "${grade}以上空間站專享功能", "subscribe_new_choose_member": "最高支持 ${member_num} 人", "subscribe_new_choose_member_tips": "本方案支持 1~${member_num} 名成員進入空間站使用", @@ -5182,7 +5195,7 @@ "template_name_repetition_title": "“${templateName}”已存在,確定要替換它嗎?", "template_no_template": "暫無模板", "template_not_found": "找不到想要的模板? 請告訴我們~", - "template_recommend_title": "熱門推薦", + "template_recommend_title": "🌟 熱門推薦", "template_type": "模板", "terms_of_service": "《服務條款》", "terms_of_service_pure_string": " 服務條款", @@ -5328,6 +5341,7 @@ "timemachine_update_comment": "Updated comments", "times_per_month_unit": "次/月", "times_unit": "次", + "timing_rules": "定時", "timor_leste": "東帝汶", "tip_del_success": "我們將對您的空間站數據保留七天,七天內可隨時撤銷刪除操作。", "tip_do_you_want_to_know_about_field_permission": "想對列數據加密嗎?了解列權限", diff --git a/packages/datasheet/src/modules/api/utils/init_axios.tsx b/packages/datasheet/src/modules/api/utils/init_axios.tsx index 18bf919312..1f21fcdcbc 100644 --- a/packages/datasheet/src/modules/api/utils/init_axios.tsx +++ b/packages/datasheet/src/modules/api/utils/init_axios.tsx @@ -39,7 +39,7 @@ export function redirectIfUserApplyLogout() { } export function handleResponse(response, headers: any | undefined, url: string | undefined) { - const { success, code, data, message = 'Error' } = response; + const { success, code, message = 'Error' } = response; // const IGNORE_PATH_REG = /^\/(share|template|notify|embed)/; // if (success && data && url?.startsWith('/nest/v1/') && !IGNORE_PATH_REG.test(location.pathname)) { @@ -194,7 +194,9 @@ export function initAxios(store: Store) { axios.interceptors.response.use((response) => { if (!response) return response; - if (response.config && response.config.url && response.config.url?.includes('/client/info')) { + if (response.config && response.config.url && + (response.config.url?.includes('/client/info') || response.config.url?.includes('/user/me')) + ) { return response; } return handleResponse(response.data, response, response?.config?.url); diff --git a/packages/datasheet/src/modules/shared/shortcut_key/shortcut_actions/append_row.ts b/packages/datasheet/src/modules/shared/shortcut_key/shortcut_actions/append_row.ts index 2dfa5ca199..08c319d999 100644 --- a/packages/datasheet/src/modules/shared/shortcut_key/shortcut_actions/append_row.ts +++ b/packages/datasheet/src/modules/shared/shortcut_key/shortcut_actions/append_row.ts @@ -17,7 +17,7 @@ */ /** - * https://www.notion.so/vikadata/9ac1f271807f4d99a30c1b5cae32437a + * https://www.notion.so/9ac1f271807f4d99a30c1b5cae32437a */ import { CollaCommandName, diff --git a/packages/datasheet/src/pc/components/automation/controller/hooks/use_robot_fields.ts b/packages/datasheet/src/pc/components/automation/controller/hooks/use_robot_fields.ts index 27775e5214..c9d7d53f02 100644 --- a/packages/datasheet/src/pc/components/automation/controller/hooks/use_robot_fields.ts +++ b/packages/datasheet/src/pc/components/automation/controller/hooks/use_robot_fields.ts @@ -40,51 +40,17 @@ export const getTriggerDatasheetId: (triggers: IRobotTrigger[]) => Promise { - - const automationTrigger = useAtomValue(automationTriggerAtom); - const automationState = useAtomValue(automationStateAtom); - const data = useMemo(() => ({ - formId: getFormId(automationTrigger), - datasheetId: getDatasheetId(automationTrigger) - }), [automationTrigger]); - - const formMeta = useAtomValue(loadableFormMeta); - - const dispatch = useAppDispatch(); - useEffect(() => { - // @ts-ignore - const dId = formMeta?.data?.sourceInfo?.datasheetId; - if (dId) { - dispatch(StoreActions.fetchDatasheet(dId)); - } - - }, [dispatch, formMeta]); - - if (data.datasheetId) { - return data.datasheetId; - } - - if (automationState?.scenario === AutomationScenario.datasheet) { - return activeDatasheetId; - } - // @ts-ignore - return formMeta?.data?.sourceInfo?.datasheetId; -}; - -export const useAutomationRobotFields = (dstId: string) => { - const fieldPermissionMap = useSelector((state: IReduxState) => { - return Selectors.getFieldPermissionMap(state, dstId); - }); - const fields = useAllFieldsByDstId(dstId); - return { fields, fieldPermissionMap }; +export const getTriggerDatasheetId2: (triggers: string[]) => Promise = async (triggers: string[]) => { + const arr = triggers.map(item=> getTriggerDstId(item ?? '')); + const list = await Promise.all(arr); + return list; }; -export const useAutomationFieldInfo = (triggers: IRobotTrigger[], dstIds: IFetchedDatasheet[]) => { +export const useAutomationFieldInfo = (triggers: string[]) => { const fieldPermissionMap = useSelector((state: IReduxState) => { - return triggers.map((trigger, index) => ({ - fields: getAllFieldsByDstIdFp(state, dstIds[index]), - fieldPermissionMap: Selectors.getFieldPermissionMap(state, dstIds[index]) + return triggers.map((trigger) => ({ + fields: getAllFieldsByDstIdFp(state, trigger), + fieldPermissionMap: Selectors.getFieldPermissionMap(state, trigger) })); }); diff --git a/packages/datasheet/src/pc/components/catalog/node_context_menu/utils.ts b/packages/datasheet/src/pc/components/catalog/node_context_menu/utils.ts index 594fbf3881..2780108876 100644 --- a/packages/datasheet/src/pc/components/catalog/node_context_menu/utils.ts +++ b/packages/datasheet/src/pc/components/catalog/node_context_menu/utils.ts @@ -5,12 +5,5 @@ export const judgeShowAIEntrance = () => { }; export const getAIOpenFormUrl = () => { - const env = getEnvVariables(); - // if (env.ENV === 'apitable-integration') { - // return 'https://integration.aitable.ai/share/shrs5C6Gw4shPl826fjeD/fomAEFm52XjVGctUx4'; - // } - if (env.ENV === 'vika-integration') { - return 'https://integration.vika.ltd/share/shrBUWrYskgQKxzGT4rtz/fom0zfvUnZkPwp9nrC'; - } - return env.AI_OPEN_FORM; + return getEnvVariables().AI_OPEN_FORM; }; diff --git a/packages/datasheet/src/pc/components/common/record_card/style.module.less b/packages/datasheet/src/pc/components/common/record_card/style.module.less index c55eeb96f7..e9232770ce 100644 --- a/packages/datasheet/src/pc/components/common/record_card/style.module.less +++ b/packages/datasheet/src/pc/components/common/record_card/style.module.less @@ -67,6 +67,19 @@ height: 31px; display: flex; align-items: center; + :global { + .expandWorkdoc { + padding: 0; + } + .workdocBtn { + max-width: 94px; + padding: 0 2px; + cursor: default; + &:hover{ + background-color: var(--bgBrandLightDefault); + } + } + } .cellHolder { border: solid 1px var(--fourthLevelText); diff --git a/packages/datasheet/src/pc/components/common_side/address_side/address_side.tsx b/packages/datasheet/src/pc/components/common_side/address_side/address_side.tsx index 0be71b8344..e4cfd54059 100644 --- a/packages/datasheet/src/pc/components/common_side/address_side/address_side.tsx +++ b/packages/datasheet/src/pc/components/common_side/address_side/address_side.tsx @@ -42,22 +42,21 @@ import { expandMemberInfo } from 'pc/components/address_list/expand_member_info' import { expandUnitModal, SelectUnitSource } from 'pc/components/catalog/permission_settings/permission/select_unit_modal'; import { SearchTeamAndMember } from 'pc/components/common'; import { ComponentDisplay, ScreenSize } from 'pc/components/common/component_display'; +import { SpaceInfo } from 'pc/components/common_side/workbench_side/space-info'; import { expandInviteModal } from 'pc/components/invite'; -import { OrganizationHead } from 'pc/components/organization_head'; import { Router } from 'pc/components/route_manager/router'; import { useRequest, useResponsive, useSideBarVisible, useUserRequest } from 'pc/hooks'; import { useAppDispatch } from 'pc/hooks/use_app_dispatch'; +import { useAppSelector } from 'pc/store/react-redux'; import { stopPropagation } from 'pc/utils'; import { getEnvVariables } from 'pc/utils/env'; import { AddressTreeMenu } from '../../address_list/address_tree_menu'; // @ts-ignore -import { syncOrgMember } from 'enterprise/organization/utils/index'; -// @ts-ignore import { isSocialPlatformEnabled } from 'enterprise/home/social_platform/utils'; +// @ts-ignore +import { syncOrgMember } from 'enterprise/organization/utils/index'; import styles from './style.module.less'; -import {useAppSelector} from "pc/store/react-redux"; - export const AddressSide: React.FC> = () => { const { teamList, spaceId, userInfo } = useAppSelector( (state: IReduxState) => ({ @@ -185,7 +184,9 @@ export const AddressSide: React.FC> = () => { return (
- +
+ +
{t(Strings.contacts)} diff --git a/packages/datasheet/src/pc/components/common_side/address_side/style.module.less b/packages/datasheet/src/pc/components/common_side/address_side/style.module.less index 0d2f75decd..d3c962c8e3 100644 --- a/packages/datasheet/src/pc/components/common_side/address_side/style.module.less +++ b/packages/datasheet/src/pc/components/common_side/address_side/style.module.less @@ -8,7 +8,12 @@ overflow: hidden; display: flex; flex-direction: column; - // padding: 0 12px; + + .header { + display: flex; + align-items: center; + height: 50px; + } button { margin: 8px auto 16px; diff --git a/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/space-info.tsx b/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/space-info.tsx index 98f944d685..d89adb96d5 100644 --- a/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/space-info.tsx +++ b/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/space-info.tsx @@ -23,10 +23,10 @@ import { ComponentDisplay, ScreenSize } from 'pc/components/common/component_dis import { OrganizationHead } from 'pc/components/organization_head'; import { ISpaceLevelType, LevelType } from 'pc/components/space_manage/space_info/interface'; import { SpaceLevelInfo } from 'pc/components/space_manage/space_info/utils'; +import { useAppSelector } from 'pc/store/react-redux'; import { SpaceInfoPopover } from './space-info-popover'; import styles from './style.module.less'; -import {useAppSelector} from "pc/store/react-redux"; const Content: FC> = () => { const subscription = useAppSelector((state) => state.billing?.subscription, shallowEqual); @@ -56,13 +56,13 @@ export const SpaceInfo: FC> = () => { content={} overlayClassName={styles.popover} > -
+
-
+
diff --git a/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/style.module.less b/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/style.module.less index de8fc7b3d6..f758c9066f 100644 --- a/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/style.module.less +++ b/packages/datasheet/src/pc/components/common_side/workbench_side/space-info/style.module.less @@ -1,7 +1,6 @@ -.left { - max-width: calc(100% - 48px); - position: absolute; +.spaceInfo { + position: relative; display: flex; align-items: center; overflow: hidden; diff --git a/packages/datasheet/src/pc/components/common_side/workbench_side/style.module.less b/packages/datasheet/src/pc/components/common_side/workbench_side/style.module.less index 06e798ef30..fdc7af5ef1 100644 --- a/packages/datasheet/src/pc/components/common_side/workbench_side/style.module.less +++ b/packages/datasheet/src/pc/components/common_side/workbench_side/style.module.less @@ -21,6 +21,14 @@ align-items: center; height: 50px; + .left { + max-width: calc(100% - 48px); + position: absolute; + display: flex; + align-items: center; + overflow: hidden; + } + .search { padding: 0 12px; flex: 1; diff --git a/packages/datasheet/src/pc/components/common_side/workbench_side/workbench_side.tsx b/packages/datasheet/src/pc/components/common_side/workbench_side/workbench_side.tsx index 0e09f763b7..64e006322b 100644 --- a/packages/datasheet/src/pc/components/common_side/workbench_side/workbench_side.tsx +++ b/packages/datasheet/src/pc/components/common_side/workbench_side/workbench_side.tsx @@ -304,7 +304,9 @@ export const WorkbenchSide: FC> = () => {
- +
+ +
; // (1106, 'The automation not activated'); // (1107, 'The automation trigger not exits'); // (1108, 'The automation trigger invalid'); -const CONST_AUTOMATION_ERROR =[444, 445, 1106, 1107, 1108]; +const CONST_AUTOMATION_ERROR = [444, 445, 1106, 1107, 1108]; const StyledTypographyNoMargin = styled(Typography)` margin-bottom: 0 !important; - `; - -const StyledTypography = styled(Typography)<{defaultColor: string}>` +`; +const StyledTypography = styled(Typography)<{ defaultColor: string }>` margin-bottom: 0 !important; - - ${props => css` + + ${(props) => css` &:hover { color: ${getColorValue(props.defaultColor, 0.8)} !important; } @@ -56,319 +46,307 @@ const StyledTypography = styled(Typography)<{defaultColor: string}>` color: ${getColorValue(props.defaultColor, 0.6)} !important; } `} - `; +`; -const StyledBox = styled(Box)<{color?: string, disabled?: boolean, loading: boolean}>` - cursor: pointer; - user-select: none; - ${props => props.loading && css` - cursor: not-allowed !important; - `} - ${props => props.disabled && css` - cursor: default !important; - `} +const StyledBox = styled(Box)<{ color?: string; disabled?: boolean; loading: boolean }>` + cursor: pointer; + user-select: none; + ${(props) => + props.loading && + css` + cursor: not-allowed !important; + `} + ${(props) => + props.disabled && + css` + cursor: default !important; + `} `; -const StyledBgBox = styled(Box)<{defaultColor: string, disabled?: boolean, loading: boolean}>` - cursor: pointer; - user-select: none; +const StyledBgBox = styled(Box)<{ defaultColor: string; disabled?: boolean; loading: boolean }>` + cursor: pointer; + user-select: none; + + ${(props) => + props.disabled && + css` + cursor: default !important; + `} + + ${(props) => + props.loading && + css` + cursor: not-allowed !important; + `} - ${props => props.disabled && css` - cursor: default !important; - `} + ${(props) => css` + background-color: ${props.defaultColor}; + + &:hover { + background-color: ${getColorValue(props.defaultColor, 0.8)}; + } - ${props => props.loading && css` - cursor: not-allowed !important; + &:active { + background-color: ${getColorValue(props.defaultColor, 0.6)}; + } `} - - ${props => css` - background-color: ${props.defaultColor}; - - &:hover { - background-color: ${getColorValue(props.defaultColor, 0.8)}; - } - - &:active { - background-color: ${getColorValue(props.defaultColor, 0.6)}; - } - `} `; export const StyledLinkButton = styled(LinkButton)` - margin-left: 4px; + margin-left: 4px; font-size: 12px !important; - margin-right: 4px; + margin-right: 4px; `; -export const ButtonFieldItem: FunctionComponent<{field: IButtonField, - height?: string; - maxWidth?: string; - recordId: string, record:IRecord }> = ({ field, recordId, maxWidth, record, height }) => { - - const setAutomationStateAtom = useSetAtom(automationStateAtom); - - const state = useAppSelector((state) => state); - - const datasheetId = useAppSelector(Selectors.getActiveDatasheetId); - - const automationTaskMapData = useAtomValue(automationTaskMap); - - const colors = useCssColors(); - - const setAutomationHistoryPanel = useSetAtom(automationHistoryAtom); - const key = `${recordId}-${field.id}`; - const taskStatus: AutomationTaskStatus = automationTaskMapData.get(key) ?? 'initial'; - - const { handleTaskStart } = useJobTaskContext(); +export const ButtonFieldItem: FunctionComponent<{ field: IButtonField; height?: string; maxWidth?: string; recordId: string; record: IRecord }> = ({ + field, + recordId, + maxWidth, + record, + height, +}) => { + const setAutomationStateAtom = useSetAtom(automationStateAtom); + + const state = useAppSelector((state) => state); + + const datasheetId = useAppSelector(Selectors.getActiveDatasheetId); + + const automationTaskMapData = useAtomValue(automationTaskMap); + + const colors = useCssColors(); + + const setAutomationHistoryPanel = useSetAtom(automationHistoryAtom); + const key = `${recordId}-${field.id}`; + const taskStatus: AutomationTaskStatus = automationTaskMapData.get(key) ?? 'initial'; + + const { handleTaskStart } = useJobTaskContext(); + + return ( + { + if (!datasheetId) { + return; + } + if (taskStatus === 'success') { + return; + } - return ( - { - if (!datasheetId) { - return; - } - if(taskStatus ==='success') { - return; - } + if (isNil(field.property.action?.type)) { + Message.error({ content: t(Strings.automation_tips) }); + return; + } - if(isNil(field.property.action?.type)) { - Message.error({ content: t(Strings.automation_tips) }); - return; - } + if (field.property.action.type === ButtonActionType.OpenLink) { + runAutomationUrl(datasheetId, record, state, recordId, field.id, field); + return; + } - if(field.property.action.type === ButtonActionType.OpenLink) { - runAutomationUrl(datasheetId, record, state, recordId, field.id, field); + const task: () => Promise<{ success: boolean }> = () => + runAutomationButton(datasheetId, record, state, recordId, field.id, field, (success, code, message) => { + if (!success && code && CONST_AUTOMATION_ERROR.includes(code) && message) { + Message.error({ content: message }); return; } - - const task =( ) => runAutomationButton(datasheetId, record, state, recordId, field.id, field, - (success, code, message) => { - if(!success && code && CONST_AUTOMATION_ERROR.includes(code) && message) { - Message.error({ content: message }); - return; - } - if(!success) { - Message.error({ content: <> + if (!success) { + Message.error({ + content: ( + <> {t(Strings.button_execute_error)} - { - const automationId = field.property.action.automation?.automationId; - const data1 = await getRobotDetail(automationId ?? '', - '' - ); + const data1 = await getRobotDetail(automationId ?? '', ''); - if(data1 instanceof ResponseDataAutomationVO) { - if(data1?.success) { + if (data1 instanceof ResponseDataAutomationVO) { + if (data1?.success) { setAutomationStateAtom({ currentRobotId: data1?.data?.robotId, resourceId: automationId, scenario: AutomationScenario.node, // @ts-ignore - robot: data1.data + robot: data1.data, }); setAutomationHistoryPanel({ dialogVisible: true, }); - }else { + } else { Message.error({ content: data1?.message ?? '' }); } - }else { + } else { Message.error({ content: data1?.message ?? '' }); } - }}>{t(Strings.button_check_history)} + }} + > + {t(Strings.button_check_history)} + {t(Strings.button_check_history_end)} - }); - } + ), }); + } + }); - handleTaskStart(recordId, field.id, task); - - } } /> - ); - }; + handleTaskStart(recordId, field.id, task); + }} + /> + ); +}; const marginTop = '0'; -const itemHeight= '22px'; - -export const ButtonItem: FunctionComponent<{field: IButtonField, - maxWidth?: string; - taskStatus: AutomationTaskStatus; - height?: string; - onStart: () => void; - isLoading: boolean}> = ({ field, taskStatus, onStart, isLoading, height, maxWidth }) => { - const cacheTheme = useAppSelector(Selectors.getTheme); - const colors = useThemeColors(); - const cssColors = useCssColors(); - - const bg = field.property.style.color ? setColor(field.property.style.color, cacheTheme) : colors.defaultBg; - // const isValidResp = { - // fieldId: field.id, - // isLoading: false, - // result: true, - // }; - // useButtonFieldValid(field); - const isValid = true; - // isValidResp.isLoading ? (getIsValid(isValidResp.fieldId) ?? true) : isValidResp.result; - - let textColor: string = colors.textStaticPrimary; - if(field.property.style.type === ButtonStyleType.Background) { - if(cacheTheme === 'dark') { - if(field.property.style.color === AutomationConstant.whiteColor) { - textColor = colors.textReverseDefault; - } - } - } - if(field.property.style.type === ButtonStyleType.OnlyText) { - if(!isValid){ - return ( - - - - {field.property.text} - - - - ); - - } - return ( - { - stopPropagation(e); - onStart(); - }} - maxWidth={maxWidth?? '100%'} - paddingX={'10px'} - marginTop={marginTop} - display={'inline-flex'} alignItems={'center'}> - <> - { - taskStatus === 'running' && ( - - ) - } - - { - taskStatus === 'success' && ( - - ) - } - - { - taskStatus === 'initial' && ( - - - {field.property.text} - - - ) - } - - - ); - } - - if(!isValid) { - return ( - - <> - { - - taskStatus === 'running' && ( - - ) - } - { - - taskStatus === 'success' && ( - - ) - } - - { - - taskStatus ==='initial' && - ( - - - {field.property.text} - - - ) - } - - - - ); - +const itemHeight = '22px'; + +export const ButtonItem: FunctionComponent<{ + field: IButtonField; + maxWidth?: string; + taskStatus: AutomationTaskStatus; + height?: string; + onStart: () => void; + isLoading: boolean; +}> = ({ field, taskStatus, onStart, isLoading, height, maxWidth }) => { + const cacheTheme = useAppSelector(Selectors.getTheme); + const colors = useThemeColors(); + const cssColors = useCssColors(); + + const bg = field.property.style.color ? setColor(field.property.style.color, cacheTheme) : colors.defaultBg; + // const isValidResp = { + // fieldId: field.id, + // isLoading: false, + // result: true, + // }; + // useButtonFieldValid(field); + const isValid = true; + // isValidResp.isLoading ? (getIsValid(isValidResp.fieldId) ?? true) : isValidResp.result; + + let textColor: string = colors.textStaticPrimary; + if (field.property.style.type === ButtonStyleType.Background) { + if (cacheTheme === 'dark') { + if (field.property.style.color === AutomationConstant.whiteColor) { + textColor = colors.textReverseDefault; } + } + } + if (field.property.style.type === ButtonStyleType.OnlyText) { + if (!isValid) { return ( - { - stopPropagation(e); - onStart(); - }} height={height ?? itemHeight} - maxWidth={maxWidth?? '100%'} + maxWidth={maxWidth ?? '100%'} marginTop={marginTop} - cursor={isValid? 'cursor': 'not-allowed'} - display={'inline-flex'} alignItems={'center'}> - - <> - { - taskStatus === 'success' && ( - - - ) - } - { - taskStatus === 'running' && ( - - - ) - } - { - taskStatus ==='initial' && ( - - - {field.property.text} - - - ) - - } - - + display={'inline-flex'} + alignItems={'center'} + > + + + {field.property.text} + + + ); - }; + } + return ( + { + stopPropagation(e); + onStart(); + }} + maxWidth={maxWidth ?? '100%'} + paddingX={'10px'} + marginTop={marginTop} + display={'inline-flex'} + alignItems={'center'} + > + <> + {taskStatus === 'running' && } + + {taskStatus === 'success' && } + + {taskStatus === 'initial' && ( + + + {field.property.text} + + + )} + + + ); + } + + if (!isValid) { + return ( + + <> + {taskStatus === 'running' && } + {taskStatus === 'success' && } + + {taskStatus === 'initial' && ( + + + {field.property.text} + + + )} + + + ); + } + return ( + { + stopPropagation(e); + onStart(); + }} + height={height ?? itemHeight} + maxWidth={maxWidth ?? '100%'} + marginTop={marginTop} + cursor={isValid ? 'cursor' : 'not-allowed'} + display={'inline-flex'} + alignItems={'center'} + > + <> + {taskStatus === 'success' && } + {taskStatus === 'running' && } + {taskStatus === 'initial' && ( + + + {field.property.text} + + + )} + + + ); +}; diff --git a/packages/datasheet/src/pc/components/editors/button_editor/index.tsx b/packages/datasheet/src/pc/components/editors/button_editor/index.tsx index 046966a7b9..cdb5d3863b 100644 --- a/packages/datasheet/src/pc/components/editors/button_editor/index.tsx +++ b/packages/datasheet/src/pc/components/editors/button_editor/index.tsx @@ -80,9 +80,11 @@ export const runAutomationUrl = (datasheetId: string, record: any, state: IRedux export const runAutomationButton = async (datasheetId: string, record: any, state: IReduxState, recordId: string, fieldId: string, field: IButtonField, callback: (success?: boolean, code?: number, message?: string) => void -) : Promise=> { +) : Promise<{success: boolean}>=> { if(field.property.action.type === ButtonActionType.OpenLink) { - return; + return { + success: true, + }; } try { const respTrigger = await reqDatasheetButtonTrigger({ @@ -92,10 +94,12 @@ export const runAutomationButton = async (datasheetId: string, record: any, stat }) as unknown as {data : {success: boolean, code: number, message: string}}; const success = respTrigger?.data?.success ?? false; callback(success, respTrigger?.data?.code, respTrigger?.data?.message ); - return respTrigger; + return respTrigger?.data; } catch (e) { callback(false); - return undefined; + return { + success: false, + }; } }; diff --git a/packages/datasheet/src/pc/components/editors/button_editor/job_task.ts b/packages/datasheet/src/pc/components/editors/button_editor/job_task.ts index 182b7b809c..a0e364f043 100644 --- a/packages/datasheet/src/pc/components/editors/button_editor/job_task.ts +++ b/packages/datasheet/src/pc/components/editors/button_editor/job_task.ts @@ -26,7 +26,7 @@ import { automationTaskMap } from 'pc/components/editors/button_editor/automatio type Job = { jobId: string; - task: () => Promise + task: () => Promise<{success:boolean}> }; export const useButtonJobTask = () => { @@ -52,17 +52,23 @@ export const useButtonJobTask = () => { if (taskQueue.length > 0) { const { jobId, task } = taskQueue[0]; runningRef.current = true; - task().then(() => { + task().then((resp) => { setTaskQueue((prevQueue) => prevQueue.slice(1)); setAutomationTaskMap(d => produce(d, draft => { - draft.set(jobId, 'success'); + if(resp.success) { + draft.set(jobId, 'success'); + }else { + draft.set(jobId, 'initial'); + } })); runningRef.current = false; - setTimeout(() => { - setAutomationTaskMap(d => produce(d, draft => { - draft.set(jobId, 'initial'); - })); - }, 1200); + if(resp.success) { + setTimeout(() => { + setAutomationTaskMap(d => produce(d, draft => { + draft.set(jobId, 'initial'); + })); + }, 1200); + } refreshTick(); }).catch(() => { setTaskQueue((prevQueue) => prevQueue.slice(1)); @@ -75,7 +81,7 @@ export const useButtonJobTask = () => { } }, [setAutomationTaskMap, taskQueue, refreshTick]); - const handleTaskStart = useCallback((recordId: string, fieldId: string, task: () => Promise) => { + const handleTaskStart = useCallback((recordId: string, fieldId: string, task: () => Promise<{success: boolean}>) => { const key = `${recordId}-${fieldId}`; setAutomationTaskMap(d => produce(d, draft => { diff --git a/packages/datasheet/src/pc/components/expand_record/expand_record.tsx b/packages/datasheet/src/pc/components/expand_record/expand_record.tsx index 6e7760b3d5..554e62c7cf 100644 --- a/packages/datasheet/src/pc/components/expand_record/expand_record.tsx +++ b/packages/datasheet/src/pc/components/expand_record/expand_record.tsx @@ -20,8 +20,6 @@ import { ErrorBoundary } from '@sentry/nextjs'; import { useLocalStorageState, useMount, useToggle, useUpdateEffect } from 'ahooks'; import classNames from 'classnames'; import { last } from 'lodash'; -import { expandRecordManager } from 'modules/database/expand_record_manager'; -import { ShortcutActionManager, ShortcutActionName } from 'modules/shared/shortcut_key'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import * as React from 'react'; import { createRoot } from 'react-dom/client'; @@ -44,6 +42,8 @@ import { t, } from '@apitable/core'; import { AttentionOutlined, CommentOutlined, NarrowOutlined } from '@apitable/icons'; +import { expandRecordManager } from 'modules/database/expand_record_manager'; +import { ShortcutActionManager, ShortcutActionName } from 'modules/shared/shortcut_key'; // eslint-disable-next-line no-restricted-imports import { Message } from 'pc/components/common/message'; @@ -73,6 +73,7 @@ import { getStorage, StorageName } from 'pc/utils/storage'; import { dispatch } from 'pc/worker/store'; import { ComponentDisplay, ScreenSize } from '../common/component_display'; import { IModalReturn } from '../common/modal/modal/modal.interface'; +import { JobTaskProvider } from '../editors/button_editor/job_task'; import { ActivityPane } from './activity_pane'; import { ICacheType } from './activity_pane/interface'; import { EditorContainer } from './editor_container'; @@ -195,26 +196,28 @@ export const expandRecordInner = (props: IExpandRecordInnerProp) => { root.render( - - { - clearExpandModal(); - setTimeout(() => Api.keepTabbar({}), 500); - }} - beforeCapture={(scope) => { - scope.setTag('catcher', 'expandRecordCrash'); - }} - > - - -
{ - document.body.onkeydown = monitorBodyFocus; - }} - /> - + + + { + clearExpandModal(); + setTimeout(() => Api.keepTabbar({}), 500); + }} + beforeCapture={(scope) => { + scope.setTag('catcher', 'expandRecordCrash'); + }} + > + + +
{ + document.body.onkeydown = monitorBodyFocus; + }} + /> + + , ); }; diff --git a/packages/datasheet/src/pc/components/form_container/form_container.tsx b/packages/datasheet/src/pc/components/form_container/form_container.tsx index cebbb9c8c1..cbb818bc83 100644 --- a/packages/datasheet/src/pc/components/form_container/form_container.tsx +++ b/packages/datasheet/src/pc/components/form_container/form_container.tsx @@ -627,7 +627,7 @@ export const FormContainer: React.FC< const newSnapshot = produce(preSnapshot, (draft) => { const view = draft.meta.views.find((view) => view.id === viewId); if (view) { - if (!view.rows.find((row) => row.recordId === recordId)) { + if (!view.rows.find((row) => row.recordId === recordId) && !recordId.endsWith('_temp')) { view.rows.push({ recordId }); } draft.recordMap[recordId] = record; diff --git a/packages/datasheet/src/pc/components/kanban_view/kanban_group/kanban_group.tsx b/packages/datasheet/src/pc/components/kanban_view/kanban_group/kanban_group.tsx index 77a4525c5e..8bfd5eee6f 100644 --- a/packages/datasheet/src/pc/components/kanban_view/kanban_group/kanban_group.tsx +++ b/packages/datasheet/src/pc/components/kanban_view/kanban_group/kanban_group.tsx @@ -129,6 +129,7 @@ export const KanbanGroup: React.FC> = const fieldPermissionMap = Selectors.getFieldPermissionMap(state); return Selectors.getFieldRoleByFieldId(fieldPermissionMap, kanbanFieldId); }); + const visibleFields = useAppSelector(Selectors.getVisibleColumns); const _rowCreatable = useAppSelector((state) => Selectors.getPermissions(state).rowCreatable); const rowCreatable = _rowCreatable && (!fieldRole || fieldRole === ConfigConstant.Role.Editor); const keepSort = @@ -276,7 +277,7 @@ export const KanbanGroup: React.FC> =
cardHeight(rowIndex, MARGIN_DISTANCE)} diff --git a/packages/datasheet/src/pc/components/multi_grid/cell/cell_member/cell_member.tsx b/packages/datasheet/src/pc/components/multi_grid/cell/cell_member/cell_member.tsx index 811b8ccd54..d9d00dc327 100644 --- a/packages/datasheet/src/pc/components/multi_grid/cell/cell_member/cell_member.tsx +++ b/packages/datasheet/src/pc/components/multi_grid/cell/cell_member/cell_member.tsx @@ -83,7 +83,6 @@ export const CellMember: React.FC> = (props const isMulti = field?.property.isMulti; const cellValue = useMemo(() => { const unitIds = MemberField.polyfillOldData(cellValueIncludeOldData as IUnitIds); - // https://sentry.vika.ltd/organizations/vika/issues/6939/events/348bdf36c4c4437c8984d55f23c2d2bc/?project=7 return Array.isArray(unitIds) ? unitIds.flat() : null; }, [cellValueIncludeOldData]); diff --git a/packages/datasheet/src/pc/components/multi_grid/cell/cell_text/url_discern.tsx b/packages/datasheet/src/pc/components/multi_grid/cell/cell_text/url_discern.tsx index fc4e649395..80083ecb30 100644 --- a/packages/datasheet/src/pc/components/multi_grid/cell/cell_text/url_discern.tsx +++ b/packages/datasheet/src/pc/components/multi_grid/cell/cell_text/url_discern.tsx @@ -21,9 +21,11 @@ import { FieldType, ISegment, string2Segment, SegmentType } from '@apitable/core import { useEnhanceTextClick } from 'pc/components/multi_grid/cell/hooks/use_enhance_text_click'; import { stopPropagation } from 'pc/utils'; import styles from './style.module.less'; +import { Typography } from '@apitable/components'; interface IUrlDiscernProp { value?: string | null; + isTitle?: boolean; } /** * @@ -33,7 +35,7 @@ interface IUrlDiscernProp { * Splitting strings to add clickable functionality to URLs */ export const UrlDiscern: React.FC> = (props) => { - const { value = '' } = props; + const { value = '', isTitle } = props; const getValidValue = (originValue: string | null) => { if (originValue) { let segment: ISegment[] = []; @@ -66,7 +68,12 @@ export const UrlDiscern: React.FC> = (p ); default: - return {segment.text}; + return + {segment.text} + ; } })}
diff --git a/packages/datasheet/src/pc/components/preview_file/preview_file.tsx b/packages/datasheet/src/pc/components/preview_file/preview_file.tsx index 72547e575f..74a64d91dc 100644 --- a/packages/datasheet/src/pc/components/preview_file/preview_file.tsx +++ b/packages/datasheet/src/pc/components/preview_file/preview_file.tsx @@ -19,6 +19,7 @@ import { useKeyPress, useMount, useToggle, useUnmount } from 'ahooks'; import classNames from 'classnames'; +import { ContextName, ShortcutContext } from 'modules/shared/shortcut_key'; import * as React from 'react'; import { useCallback, useEffect, useMemo, useRef } from 'react'; import { createRoot } from 'react-dom/client'; @@ -26,10 +27,10 @@ import { Provider, shallowEqual } from 'react-redux'; import { stopPropagation, ThemeProvider } from '@apitable/components'; import { FieldType, handleNullArray, IAttachmentValue, IReduxState, Selectors, StoreActions } from '@apitable/core'; import { useGetSignatureAssertByToken } from '@apitable/widget-sdk'; -import { ContextName, ShortcutContext } from 'modules/shared/shortcut_key'; import { useResponsive } from 'pc/hooks'; import { useAppDispatch } from 'pc/hooks/use_app_dispatch'; import { store } from 'pc/store'; +import { useAppSelector } from 'pc/store/react-redux'; import { KeyCode } from 'pc/utils'; import { getEnvVariables } from 'pc/utils/env'; import { dispatch } from 'pc/worker/store'; @@ -37,11 +38,9 @@ import { ScreenSize } from '../common/component_display'; import { IExpandPreviewModalFuncProps } from './preview_file.interface'; import { PreviewMain } from './preview_main'; import { isFocusingInput } from './preview_main/util'; -import styles from './style.module.less'; // @ts-ignore import { OFFICE_APP_ID } from 'enterprise/marketing/marketing'; - -import {useAppSelector} from "pc/store/react-redux"; +import styles from './style.module.less'; interface IPreviewFileModal { onClose: () => void; @@ -87,8 +86,12 @@ const PreviewFileModal: React.FC> = ( const dispatch = useAppDispatch(); const { screenIsAtMost } = useResponsive(); const isMobile = screenIsAtMost(ScreenSize.md); + const { IS_ENTERPRISE } =getEnvVariables(); const _spaceId = spaceId || shareInfo?.spaceId || getEnvVariables().TEMPLATE_SPACE_ID!; + useEffect(() => { + IS_ENTERPRISE && spaceId && dispatch(StoreActions.fetchMarketplaceApps(spaceId)); + }, [dispatch, spaceId]); const officePreviewEnable = marketplaceApps.find((app) => app.appId === OFFICE_APP_ID)?.status ? true : false; diff --git a/packages/datasheet/src/pc/components/preview_file/preview_main/preview_main.tsx b/packages/datasheet/src/pc/components/preview_file/preview_main/preview_main.tsx index a8f370200f..f2bc38b512 100644 --- a/packages/datasheet/src/pc/components/preview_file/preview_main/preview_main.tsx +++ b/packages/datasheet/src/pc/components/preview_file/preview_main/preview_main.tsx @@ -26,6 +26,7 @@ import { RotateOutlined } from '@apitable/icons'; import { Message } from 'pc/components/common'; import { ComponentDisplay, ScreenSize } from 'pc/components/common/component_display'; import { useResponsive } from 'pc/hooks'; +import { useAppSelector } from 'pc/store/react-redux'; import { DOC_MIME_TYPE, getDownloadSrc, isSupportImage, KeyCode } from 'pc/utils'; import NextFilled from 'static/icon/common/next_filled.svg'; import PreviousFilled from 'static/icon/common/previous_filled.svg'; @@ -35,11 +36,9 @@ import { ITransFormInfo } from '../preview_file.interface'; import useFrameSetState from '../preview_type/preview_image/hooks/use_frame_state'; import { ToolBar } from '../tool_bar'; import { initTransformInfo, initTranslatePosition, MAX_SCALE, MIN_SCALE } from './constant'; -import styles from './style.module.less'; import { Swiper } from './swiper'; import { isFocusingInput } from './util'; - -import {useAppSelector} from "pc/store/react-redux"; +import styles from './style.module.less'; interface IPreviewMain { activeIndex: number; @@ -111,7 +110,7 @@ export const PreviewMain: React.FC> = (pro setOfficePreviewUrl(null); fetchPreviewUrl(); // eslint-disable-next-line - }, [activeIndex]); + }, [activeIndex,officePreviewEnable]); const handlePrev = useCallback( (e: any) => { diff --git a/packages/datasheet/src/pc/components/quick_search/search_base.tsx b/packages/datasheet/src/pc/components/quick_search/search_base.tsx index 2c276e9872..f99251256b 100644 --- a/packages/datasheet/src/pc/components/quick_search/search_base.tsx +++ b/packages/datasheet/src/pc/components/quick_search/search_base.tsx @@ -58,7 +58,7 @@ export const SearchBase: FC> = ({ classNam [ ShortcutActionName.QuickSearchEnter, () => { - jumpNode(nodeList[currentIndex].nodeId); + jumpNode(nodeList[currentIndex + 1].nodeId); }, ], [ diff --git a/packages/datasheet/src/pc/components/record_card/card_body.tsx b/packages/datasheet/src/pc/components/record_card/card_body.tsx index 8d9f7e9dde..e39a783023 100644 --- a/packages/datasheet/src/pc/components/record_card/card_body.tsx +++ b/packages/datasheet/src/pc/components/record_card/card_body.tsx @@ -79,7 +79,7 @@ export const CardBody: React.FC> if (index === 0) { return (
- +
); } diff --git a/packages/datasheet/src/pc/components/record_card/card_text/style.module.less b/packages/datasheet/src/pc/components/record_card/card_text/style.module.less index b2dbc41064..dfac323bf5 100644 --- a/packages/datasheet/src/pc/components/record_card/card_text/style.module.less +++ b/packages/datasheet/src/pc/components/record_card/card_text/style.module.less @@ -7,7 +7,11 @@ .multi { line-height: 24px; - .multiLineEllipsis(4) + .multiLineEllipsis(4); + + p { + line-height: 21px; + } } .isVirtual { diff --git a/packages/datasheet/src/pc/components/robot/helper.ts b/packages/datasheet/src/pc/components/robot/helper.ts index 8ce14d3188..b5360a17bc 100644 --- a/packages/datasheet/src/pc/components/robot/helper.ts +++ b/packages/datasheet/src/pc/components/robot/helper.ts @@ -40,6 +40,7 @@ import { getFieldTypeIcon, getFieldTypeIconOrNull } from '../multi_grid/field_se import { IActionType, IJsonSchema, INodeOutputSchema, INodeType, IRobotAction, IRobotTrigger, ITriggerType } from './interface'; // @ts-ignore import { isWecomFunc } from 'enterprise/home/social_platform/utils'; +import {TriggerDataSheetMap} from "pc/components/robot/robot_detail/magic_variable_container"; /** * The client parses the expression without context, skipping dynamic parameters. @@ -87,16 +88,16 @@ export const getNodeOutputSchemaList = (props: { triggers: IRobotTrigger[]; triggerTypes: ITriggerType[]; actionTypes: IActionType[]; - triggerDataSheetIds: IFetchedDatasheet[]; + triggerDataSheetMap: TriggerDataSheetMap; dataSheetMap: IDatasheetMap; }) => { - const { actionList, triggerTypes, actionTypes, triggers, dataSheetMap, triggerDataSheetIds } = props; + const { actionList, triggerTypes, actionTypes, triggers, dataSheetMap, triggerDataSheetMap } = props; const schemaList: INodeOutputSchema[] = []; const map = new Map(); triggers.forEach((trigger, index) => { - const resourceId = triggerDataSheetIds[index] as unknown as string; + const resourceId = triggerDataSheetMap[trigger.triggerId] as unknown as string; if (resourceId && checkIfDatasheetResourceValid(dataSheetMap, resourceId)) { const itemMap = map.get(resourceId) ?? []; map.set(resourceId, [...itemMap, index]); @@ -104,7 +105,7 @@ export const getNodeOutputSchemaList = (props: { }); triggers.forEach((trigger, index) => { - const resourceId = triggerDataSheetIds[index] as unknown as string; + const resourceId = triggerDataSheetMap[trigger.triggerId] as unknown as string; const triggerType = trigger && triggerTypes.find((triggerType) => triggerType.triggerTypeId === trigger?.triggerTypeId); if (triggerType) { if (checkIfDatasheetResourceValid(dataSheetMap, resourceId)) { @@ -115,7 +116,7 @@ export const getNodeOutputSchemaList = (props: { map.delete(resourceId); schemaList.push({ - id: trigger?.triggerId!, + id: resourceId, title: t(Strings.automation_variable_datasheet, { NODE_NAME: dataSheetMap[resourceId]?.datasheet?.name, }), diff --git a/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_action.tsx b/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_action.tsx index b6f457dfd3..50dc63fcbf 100644 --- a/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_action.tsx +++ b/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_action.tsx @@ -30,13 +30,12 @@ import { integrateCdnHost, IReduxState, Selectors, StoreActions, Strings, t } fr import { setSideBarVisible } from '@apitable/core/dist/modules/space/store/actions/space'; import { ChevronDownOutlined } from '@apitable/icons'; import { IFetchDatasheet } from '@apitable/widget-sdk/dist/message/interface'; -import { automationLocalMap, automationPanelAtom, automationStateAtom, PanelName } from 'pc/components/automation/controller'; +import { automationLocalMap, automationPanelAtom, automationStateAtom, PanelName, getResourceAutomationDetailIntegrated, useAutomationController } from 'pc/components/automation/controller'; import { getTriggerDatasheetId, IFetchedDatasheet } from 'pc/components/automation/controller/hooks/use_robot_fields'; import { Message, Modal } from 'pc/components/common'; import { useAppDispatch } from 'pc/hooks/use_app_dispatch'; import { useAppSelector } from 'pc/store/react-redux'; import { useResponsive } from '../../../../hooks'; -import { getResourceAutomationDetailIntegrated, useAutomationController } from '../../../automation/controller'; import { useAutomationResourcePermission } from '../../../automation/controller/use_automation_permission'; import { ScreenSize } from '../../../common/component_display'; import { ShareContext } from '../../../share'; @@ -89,7 +88,7 @@ export const RobotAction = memo((props: IRobotActionProps) => { const dataSheetMap = useAppSelector((state: IReduxState) => state.datasheetMap); useEffect(() => { - dataList?.forEach((item) => { + Array.from(new Set(dataList))?.forEach((item) => { if (isString(item) && !dataSheetMap[item]) { dispatch(StoreActions.fetchDatasheet(item) as any); } @@ -100,12 +99,20 @@ export const RobotAction = memo((props: IRobotActionProps) => { automationState?.scenario === AutomationScenario?.datasheet ? Array.from({ length: triggers.length }, () => activeDstId) : ((dataList ?? []) as IFetchedDatasheet[]); + + const triggerDataSheetMap : Record = triggers.map((trigger, index) => ({ trigger, index })).reduce((p, c) => { + return { + ...p, + [c.trigger.triggerId]: triggerDataSheetIds[c.index] + }; + }, {}); + const nodeOutputSchemaList = getNodeOutputSchemaList({ actionList, actionTypes: actionTypeList, triggerTypes: triggerTypes, triggers, - triggerDataSheetIds: triggerDataSheetIds, + triggerDataSheetMap, dataSheetMap, }); @@ -314,7 +321,7 @@ export const RobotAction = memo((props: IRobotActionProps) => { TextWidget: (props: any) => { return ( - + ); }, diff --git a/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_actions.tsx b/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_actions.tsx index 607f59d984..35622e1b7a 100644 --- a/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_actions.tsx +++ b/packages/datasheet/src/pc/components/robot/robot_detail/action/robot_actions.tsx @@ -66,12 +66,19 @@ export const RobotActions = ({ robotId, triggerTypes }: { robotId: string; trigg ? Array.from({ length: triggers.length }, () => activeDstId) : ((dataList1 ?? []) as IFetchedDatasheet[]); + const triggerDataSheetMap : Record = triggers.map((trigger, index) => ({ trigger, index })).reduce((p, c) => { + return { + ...p, + [c.trigger.triggerId]: triggerDataSheetIds[c.index] + }; + }, {}); + const nodeOutputSchemaList = getNodeOutputSchemaList({ actionList, actionTypes, triggerTypes, triggers, - triggerDataSheetIds, + triggerDataSheetMap, dataSheetMap, }); diff --git a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/helper.ts b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/helper.ts index a508c229e6..d318af2404 100644 --- a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/helper.ts +++ b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/helper.ts @@ -513,28 +513,6 @@ export const transformSlateValue = ( }; }; -export const modifyTriggerId = (triggerId: string, nodeItem: Node) => { - return produce(nodeItem, (draft) => { - // @ts-ignore - if (nodeItem.type === 'magicVariable') { - // @ts-ignore - nodeItem.children = [ - { - text: '', - }, - ]; - // @ts-ignore - const firstOperand = nodeItem.data.operands[0]; - // @ts-ignore - const firstOperandType = nodeItem.data.operands[0]?.type; - if (firstOperandType === 'Expression') { - const firstInnerOperand = firstOperand['value']?.operands[0]; - firstInnerOperand.value = triggerId; - } - } - }); -}; - export const withMagicVariable = (editor: any) => { const { isInline, isVoid, onChange } = editor; diff --git a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_text_field.tsx b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_text_field.tsx index 56f8acec84..c5be435601 100644 --- a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_text_field.tsx +++ b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_text_field.tsx @@ -29,7 +29,11 @@ import { Selectors } from '@apitable/core'; import { automationStateAtom } from 'pc/components/automation/controller'; import { map2Text } from 'pc/components/robot/robot_detail/magic_variable_container/config'; import { fixImeInputBug } from 'pc/components/slate_editor/slate_editor'; -import { getTriggerDatasheetId, IFetchedDatasheet, useAutomationFieldInfo } from '../../../automation/controller/hooks/use_robot_fields'; +import { + getTriggerDatasheetId2, + IFetchedDatasheet, + useAutomationFieldInfo +} from '../../../automation/controller/hooks/use_robot_fields'; import { AutomationScenario, INodeOutputSchema, ITriggerType } from '../../interface'; import { IWidgetProps } from '../node_form/core/interface'; import { enrichDatasheetTriggerOutputSchema, formData2SlateValue, insertMagicVariable, transformSlateValue, withMagicVariable } from './helper'; @@ -51,10 +55,13 @@ type IMagicTextFieldProps = IWidgetProps & { onChange?: (value: any) => void; isOneLine?: boolean; triggerType: ITriggerType | null; + triggerDataSheetMap: TriggerDataSheetMap }; +export type TriggerDataSheetMap = Record + export const MagicTextField = memo((props: IMagicTextFieldProps) => { - const { onChange, schema } = props; + const { onChange, schema, triggerDataSheetMap } = props; const isJSONField = (schema as any)?.format === 'json'; const [isOpen, setOpenState] = useState(false); const ref = useRef(null); @@ -121,23 +128,23 @@ export const MagicTextField = memo((props: IMagicTextFieldProps) => { setValue(value); }; - // const activeDatasheetId = useAppSelector(Selectors.getActiveDatasheetId); - const triggers = state?.robot?.triggers ?? []; - const { data: dataList } = useSWR(['getTriggersRelatedDatasheetId', triggers], () => getTriggerDatasheetId(triggers), {}); + + const { data: dataList2 } = useSWR(['getTriggersRelatedDatasheetId2', triggers], () => getTriggerDatasheetId2(props.nodeOutputSchemaList.map(r => r.id)), {}); const activeDstId = useSelector(Selectors.getActiveDatasheetId); const dataLis: IFetchedDatasheet[] = state?.scenario === AutomationScenario?.datasheet - ? Array.from({ length: triggers.length }, () => activeDstId) - : ((dataList ?? []) as IFetchedDatasheet[]); + ? Array.from({ length: props.nodeOutputSchemaList.length }, () => activeDstId) + : ((dataList2 ?? []) as IFetchedDatasheet[]); - const l = useAutomationFieldInfo(triggers, dataLis); + // @ts-ignore + const fieldInfoList = useAutomationFieldInfo(dataLis); const nodeOutputSchemaList = props.nodeOutputSchemaList.map((nodeOutputSchema, index) => { - const item = l[index]; + const item = fieldInfoList[index]; - if (nodeOutputSchema?.id.startsWith('atr') && item && item?.fields?.length && item.fieldPermissionMap) { + if (nodeOutputSchema?.id.startsWith('dst') && item && item?.fields?.length && item.fieldPermissionMap) { return enrichDatasheetTriggerOutputSchema(nodeOutputSchema, item.fields, item.fieldPermissionMap!); } return nodeOutputSchema; @@ -146,7 +153,7 @@ export const MagicTextField = memo((props: IMagicTextFieldProps) => { const renderElement = (props: any) => { switch (props.element.type) { case 'magicVariable': - return ; + return ; default: return ; } diff --git a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_container.tsx b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_container.tsx index 52c19bd92d..7379b9eeff 100644 --- a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_container.tsx +++ b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_container.tsx @@ -155,7 +155,7 @@ export const MagicVariableContainer = forwardRef((props: ISchemaMapProps, ref) = { title: t(Strings.robot_trigger_guide), - items: nodeOutputSchemaList.filter(item => item.id.startsWith('atr')).map(r => r.id), + items: nodeOutputSchemaList.filter(item => item.id.startsWith('dst')).map(r => r.id), }, { title: diff --git a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_element.tsx b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_element.tsx index 7b497e55cf..df7bfe5171 100644 --- a/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_element.tsx +++ b/packages/datasheet/src/pc/components/robot/robot_detail/magic_variable_container/magic_variable_element.tsx @@ -20,11 +20,14 @@ import { Box, useTheme, Typography } from '@apitable/components'; import { Strings, t } from '@apitable/core'; import { FormOutlined } from '@apitable/icons'; +import { TriggerDataSheetMap } from 'pc/components/robot/robot_detail/magic_variable_container/magic_text_field'; import { IJsonSchema, INodeOutputSchema } from '../../interface'; import { getExpressionChainList, IExpressionChainNode } from './helper'; -export const MagicVariableElement = (props: { nodeOutputSchemaList?: INodeOutputSchema[]; element?: any; children?: any }) => { - const { element, children } = props; +export const MagicVariableElement = (props: { nodeOutputSchemaList?: INodeOutputSchema[]; element?: any; children?: any, + triggerDataSheetMap: TriggerDataSheetMap +}) => { + const { element, children, triggerDataSheetMap } = props; const stringfyElement = btoa(JSON.stringify(element)); const theme = useTheme(); @@ -32,14 +35,23 @@ export const MagicVariableElement = (props: { nodeOutputSchemaList?: INodeOutput const chainList = getExpressionChainList(element.data).reverse(); - const nodeSchemaIndex = nodeOutputSchemaList.findIndex((item) => item.id === chainList[0].value); + const nodeSchemaIndex = nodeOutputSchemaList.findIndex((item) => { + if(chainList[0].value.startsWith('dst')) { + return item.id === chainList[0].value; + } + if(chainList[0].value.startsWith('atr')) { + const dst = triggerDataSheetMap[chainList?.[0]?.value]; + return item.id === dst; + } + return item.id === chainList[0].value; + }); + const nodeSchema = nodeOutputSchemaList[nodeSchemaIndex]; const stepIndexOriginal = nodeSchemaIndex + 1; let stepIndex = nodeSchemaIndex + 1; - - if(nodeSchema?.id?.startsWith('atr')) { + if(nodeSchema?.id?.startsWith('dst')) { stepIndex=1; } diff --git a/packages/datasheet/src/pc/components/route_manager/private_route.tsx b/packages/datasheet/src/pc/components/route_manager/private_route.tsx index a39a9595be..05a0efe866 100644 --- a/packages/datasheet/src/pc/components/route_manager/private_route.tsx +++ b/packages/datasheet/src/pc/components/route_manager/private_route.tsx @@ -18,31 +18,21 @@ import { useRouter } from 'next/router'; import { FC, useEffect } from 'react'; -import { shallowEqual, useDispatch } from 'react-redux'; -import { Api, Navigation, Selectors, StatusCode, StoreActions } from '@apitable/core'; +import { shallowEqual } from 'react-redux'; +import { Navigation, Selectors, StatusCode } from '@apitable/core'; import { NoAccess } from 'pc/components/invalid_page/no_access'; import { Router } from 'pc/components/route_manager/router'; -import { usePageParams, useRequest } from 'pc/hooks'; +import { usePageParams } from 'pc/hooks'; import { resourceService } from 'pc/resource_service'; +import { useAppSelector } from 'pc/store/react-redux'; import { getEnvVariables } from 'pc/utils/env'; -import {useAppSelector} from "pc/store/react-redux"; - export const PrivateRoute: FC> = ({ children }) => { const user = useAppSelector((state) => Selectors.getUserState(state), shallowEqual); - const dispatch = useDispatch(); const spaceId = useAppSelector((state) => state.space.activeId); - const { run: getLabsFeature } = useRequest(Api.getLabsFeature, { manual: true }); const router = useRouter(); usePageParams(); - useEffect(() => { - spaceId && - getLabsFeature(spaceId).then((res) => { - dispatch(StoreActions.setLabs(res?.data?.data?.keys ?? [])); - }); - }, [dispatch, getLabsFeature, spaceId]); - useEffect(() => { if (!user.info) { return; diff --git a/packages/datasheet/src/pc/components/route_manager/side_wrapper.tsx b/packages/datasheet/src/pc/components/route_manager/side_wrapper.tsx index 25f7ec5208..ce6f18aa92 100644 --- a/packages/datasheet/src/pc/components/route_manager/side_wrapper.tsx +++ b/packages/datasheet/src/pc/components/route_manager/side_wrapper.tsx @@ -29,7 +29,6 @@ import { ShortcutsPanel } from 'pc/components/shortcuts_panel'; import { useQuery } from 'pc/hooks'; import { useAppDispatch } from 'pc/hooks/use_app_dispatch'; import { useAppSelector } from 'pc/store/react-redux'; -import { getEnvVariables } from 'pc/utils/env'; import { useWxTitleMap } from '../konva_grid'; // @ts-ignore import { isDingtalkSkuPage } from 'enterprise/home/social_platform/utils'; @@ -40,7 +39,6 @@ import { WecomContactWrapper } from 'enterprise/wecom/wecom_contact_wrapper/weco export const SideWrapper = (props: { children: any }) => { const spaceId = useAppSelector((state: IReduxState) => state.space.activeId); - const { IS_ENTERPRISE } = getEnvVariables(); const dispatch = useAppDispatch(); const shortcutKeyPanelVisible = useAppSelector((state: IReduxState) => state.space.shortcutKeyPanelVisible); const query = useQuery(); @@ -61,7 +59,6 @@ export const SideWrapper = (props: { children: any }) => { useEffect(() => { if (!spaceId) return; - IS_ENTERPRISE && dispatch(StoreActions.fetchMarketplaceApps(spaceId)); dispatch(StoreActions.getSpaceInfo(spaceId)); }, [dispatch, spaceId]); diff --git a/packages/datasheet/src/pc/components/space_manage/space_info/components/level_card/level_card.tsx b/packages/datasheet/src/pc/components/space_manage/space_info/components/level_card/level_card.tsx index 2ea29a973a..fb53838fa8 100644 --- a/packages/datasheet/src/pc/components/space_manage/space_info/components/level_card/level_card.tsx +++ b/packages/datasheet/src/pc/components/space_manage/space_info/components/level_card/level_card.tsx @@ -36,7 +36,6 @@ import { SubscribePageType } from 'enterprise/subscribe_system/config'; import { showUpgradeContactUs } from 'enterprise/subscribe_system/order_modal/pay_order_success'; import styles from './style.module.less'; - interface ILevelCard { type: ISpaceLevelType; onUpgrade: () => void; @@ -124,7 +123,7 @@ export const LevelCard: FC> = ({ type, minHe ); } - if (type === LevelType.Free || type === LevelType.Plus || type === LevelType.Pro) { + if (type === LevelType.Free || type === LevelType.Plus || type === LevelType.Pro || type === LevelType.Starter || type === LevelType.Business) { return (