@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/README.md +10 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +2 -2
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.js +1 -1
  18. package/lib/auth/login-success-html.js +1 -1
  19. package/lib/auth/logout.js +1 -1
  20. package/lib/cli-flags.js +1 -1
  21. package/lib/cli.js +1 -1
  22. package/lib/commands/api/generate.js +1 -1
  23. package/lib/commands/api/index.js +1 -1
  24. package/lib/commands/api/list.js +1 -1
  25. package/lib/commands/api/pull.js +1 -1
  26. package/lib/commands/api/shared.js +1 -1
  27. package/lib/commands/app/detail.js +1 -1
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/design-context.js +1 -1
  79. package/lib/commands/dataset/design-start.js +1 -1
  80. package/lib/commands/dataset/design-status.js +1 -1
  81. package/lib/commands/dataset/design-sync-retry.js +1 -1
  82. package/lib/commands/dataset/design-sync-status.js +1 -1
  83. package/lib/commands/dataset/design-validate.js +1 -1
  84. package/lib/commands/dataset/detail.js +1 -1
  85. package/lib/commands/dataset/extend-update.js +1 -1
  86. package/lib/commands/dataset/field-restore.js +1 -1
  87. package/lib/commands/dataset/field-update.js +1 -1
  88. package/lib/commands/dataset/generate.js +1 -1
  89. package/lib/commands/dataset/index.js +1 -1
  90. package/lib/commands/dataset/list.js +1 -1
  91. package/lib/commands/dataset/operations.js +1 -1
  92. package/lib/commands/dataset/relation-audit.js +1 -1
  93. package/lib/commands/dataset/relation-create.js +1 -1
  94. package/lib/commands/dataset/relation-delete.js +1 -1
  95. package/lib/commands/dataset/relation-shared.js +1 -1
  96. package/lib/commands/dataset/relation-update.js +1 -1
  97. package/lib/commands/dataset/relations.js +1 -1
  98. package/lib/commands/dataset/rename.js +1 -1
  99. package/lib/commands/dataset/restore.js +1 -1
  100. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  101. package/lib/commands/db/analysis-batching.js +1 -1
  102. package/lib/commands/db/analyze-batch-plan.js +1 -1
  103. package/lib/commands/db/analyze-cancel.js +1 -1
  104. package/lib/commands/db/analyze-start.js +1 -1
  105. package/lib/commands/db/analyze-status.js +1 -1
  106. package/lib/commands/db/create.js +1 -1
  107. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  110. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  111. package/lib/commands/db/delete.js +1 -1
  112. package/lib/commands/db/detail.js +1 -1
  113. package/lib/commands/db/diff-refresh-start.js +1 -1
  114. package/lib/commands/db/diff-refresh-status.js +1 -1
  115. package/lib/commands/db/diff.js +1 -1
  116. package/lib/commands/db/index.js +1 -1
  117. package/lib/commands/db/list.js +1 -1
  118. package/lib/commands/db/shared.js +1 -1
  119. package/lib/commands/db/table-diff-shared.js +1 -1
  120. package/lib/commands/db/tables.js +1 -1
  121. package/lib/commands/db/test.js +1 -1
  122. package/lib/commands/db/update.js +1 -1
  123. package/lib/commands/deployment/index.js +1 -1
  124. package/lib/commands/deployment/sync-all.js +1 -1
  125. package/lib/commands/deployment/sync-jobs.js +1 -1
  126. package/lib/commands/deployment/sync-status.js +1 -1
  127. package/lib/commands/doctor.js +1 -1
  128. package/lib/commands/file/index.js +1 -1
  129. package/lib/commands/flow/create.js +1 -1
  130. package/lib/commands/flow/detail.js +1 -1
  131. package/lib/commands/flow/index.js +1 -1
  132. package/lib/commands/flow/list.js +1 -1
  133. package/lib/commands/flow/page-list.js +1 -1
  134. package/lib/commands/flow/publish.js +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.js +1 -1
  140. package/lib/commands/flow/update.js +1 -1
  141. package/lib/commands/flow/validate.js +1 -1
  142. package/lib/commands/instant-api-policy/current.js +1 -1
  143. package/lib/commands/instant-api-policy/index.js +1 -1
  144. package/lib/commands/instant-api-policy/init.js +1 -1
  145. package/lib/commands/instant-api-policy/publish.js +1 -1
  146. package/lib/commands/instant-api-policy/pull.js +1 -1
  147. package/lib/commands/instant-api-policy/revision.js +1 -1
  148. package/lib/commands/instant-api-policy/revisions.js +1 -1
  149. package/lib/commands/instant-api-policy/rollback.js +1 -1
  150. package/lib/commands/instant-api-policy/shared.js +1 -1
  151. package/lib/commands/instant-api-policy/validate.js +1 -1
  152. package/lib/commands/issue/context.d.ts +3 -0
  153. package/lib/commands/issue/context.js +1 -0
  154. package/lib/commands/issue/index.js +1 -1
  155. package/lib/commands/issue/nudge.js +1 -1
  156. package/lib/commands/issue/report.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/instant-api-policy/endpoints.js +1 -1
  304. package/lib/core/kb-management-client.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/utils/ai_config.js +1 -1
  355. package/lib/utils/apply-jq-filter.js +1 -1
  356. package/lib/utils/cdn-config.js +1 -1
  357. package/lib/utils/check-sdk-version.js +1 -1
  358. package/lib/utils/cli-version-check.js +1 -1
  359. package/lib/utils/cli-version-policy.js +1 -1
  360. package/lib/utils/config.js +1 -1
  361. package/lib/utils/entity-with-id.js +1 -1
  362. package/lib/utils/file-utils.js +1 -1
  363. package/lib/utils/guides-cdn.js +1 -1
  364. package/lib/utils/http-client.js +1 -1
  365. package/lib/utils/is-non-interactive.js +1 -1
  366. package/lib/utils/logger.js +1 -1
  367. package/lib/utils/params.js +1 -1
  368. package/lib/utils/platform.js +1 -1
  369. package/lib/utils/sleep.js +1 -1
  370. package/lib/utils/template-replacer.js +1 -1
  371. package/lib/utils/update-notice.js +1 -1
  372. package/lib/utils/version.js +1 -1
  373. package/lib/utils/with-active-cookie.js +1 -1
  374. package/lib/utils/write-cli-side-channel.js +1 -1
  375. package/package.json +2 -2
  376. package/skills/rabetbase/SKILL.md +2 -2
  377. package/skills/rabetbase/references/rabetbase-issue-report.md +4 -1
  378. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  379. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  380. package/skills/rabetbase.manifest.json +3 -3
  381. package/lib/commands/issue/shared.d.ts +0 -32
  382. package/lib/commands/issue/shared.js +0 -1
  383. package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
  384. package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
@@ -1 +1 @@
1
- const a199_0x2734df=a199_0xacc1;(function(_0x498f9f,_0x160b5b){const _0x4a7503=a199_0xacc1,_0x55fdff=_0x498f9f();while(!![]){try{const _0x45fe03=parseInt(_0x4a7503(0x11d))/0x1*(-parseInt(_0x4a7503(0x100))/0x2)+parseInt(_0x4a7503(0x11c))/0x3+-parseInt(_0x4a7503(0xe8))/0x4+-parseInt(_0x4a7503(0x10f))/0x5*(parseInt(_0x4a7503(0xe4))/0x6)+parseInt(_0x4a7503(0xf5))/0x7+-parseInt(_0x4a7503(0x110))/0x8*(parseInt(_0x4a7503(0x11e))/0x9)+-parseInt(_0x4a7503(0x108))/0xa*(-parseInt(_0x4a7503(0x116))/0xb);if(_0x45fe03===_0x160b5b)break;else _0x55fdff['push'](_0x55fdff['shift']());}catch(_0x4cd907){_0x55fdff['push'](_0x55fdff['shift']());}}}(a199_0x4c12,0xefc7e));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a199_0x4c12(){const _0x1b1d10=['parent-menu-id','page-pattern','str','createMenu','2sfGjBm','Invalid\x20Custom\x20Page\x20pattern:\x20','length','appCode','\x20and\x20its\x20menu\x20entry.','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','CUSTOM','page-dir','3442720kLDfmc','string','Custom_page_','isInteger','compress','create','POST','85URjLEX','9513544zIlARW','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Custom\x20Page\x20pattern\x20not\x20found:\x20','pageName\x20cannot\x20exceed\x20100\x20characters.','menuId','validation','99SrOpjg','DASHBOARD','Created\x20Custom\x20Page\x20','apiError','utf8','pageName','4271409zLDhJI','1896607JqXBTf','9kkZhkT','now','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','menuPath','page.create','Would\x20create\x20Custom\x20Page\x20','pageId','page','107436qFyzvL','isNaN','.json','num','5873320DhAKcF','/smartapi/webcode/page/create','version','number','trim','stringify','parse','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','files','parentMenuId','BLANK','page-type','9228961pClqUl','page-content','page\x20create\x20does\x20not\x20accept\x20--page-type.','name','keys','some','isArray'];a199_0x4c12=function(){return _0x1b1d10;};return a199_0x4c12();}import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x2734df(0xf3),'ONEPAGE',a199_0x2734df(0x117)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');export const pageCreate={'service':a199_0x2734df(0x125),'command':a199_0x2734df(0x10d),'description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':a199_0x2734df(0x10c),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x2734df(0xf4),'message':a199_0x2734df(0xf7),'hint':a199_0x2734df(0x111)},{'name':a199_0x2734df(0xf6),'message':a199_0x2734df(0x105),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a199_0x2734df(0x109),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a199_0x2734df(0xfc),'type':a199_0x2734df(0xeb),'description':'Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry'},{'name':a199_0x2734df(0xfd),'type':a199_0x2734df(0x109),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x2734df(0x107),'type':a199_0x2734df(0x109),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x319a00){await readValidatedPageSource(_0x319a00);},async 'dryRun'(_0x3cfc9e){const _0xa10e90=a199_0x2734df,_0x369b0a=readInput(_0x3cfc9e,await readValidatedPageSource(_0x3cfc9e));return{'method':_0xa10e90(0x10e),'url':_0xa10e90(0xe9),'body':{'appCode':_0x369b0a['appCode'],'pageName':_0x369b0a[_0xa10e90(0x11b)],..._0x369b0a['parentMenuId']!=null?{'parentMenuId':_0x369b0a[_0xa10e90(0xf2)]}:{},'createMenu':_0x369b0a[_0xa10e90(0xff)],'codeContent':_0x369b0a[_0xa10e90(0xf1)]},'description':_0xa10e90(0x123)+JSON[_0xa10e90(0xed)](_0x369b0a[_0xa10e90(0x11b)])+_0xa10e90(0x104)};},async 'execute'(_0x299e05){const _0x488267=a199_0x2734df,_0x57f427=readInput(_0x299e05,await readValidatedPageSource(_0x299e05)),_0x1c54e7=await createCustomPage(_0x57f427);if(!Number[_0x488267(0x10b)](_0x1c54e7[_0x488267(0x124)])||_0x1c54e7[_0x488267(0x124)]<=0x0)throw CliErrors[_0x488267(0x119)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x5a9635=buildCustomPageDevelopmentUrl(_0x57f427['appCode'],_0x1c54e7[_0x488267(0x121)]),_0x425b4a=buildCustomPageEditUrl(_0x57f427[_0x488267(0x103)],_0x1c54e7[_0x488267(0x124)]);return{'ok':!![],'data':{'operation':_0x488267(0x122),'pageType':_0x488267(0x106),'pagePattern':readPagePattern(_0x299e05),'selector':{'appCode':_0x57f427['appCode'],'pageName':_0x57f427['pageName']},'before':null,'after':{'pageId':_0x1c54e7[_0x488267(0x124)],'pageName':_0x1c54e7[_0x488267(0x11b)],'appCode':_0x1c54e7[_0x488267(0x103)],'version':_0x1c54e7[_0x488267(0xea)],'menuId':_0x1c54e7[_0x488267(0x114)],'menuPath':_0x1c54e7[_0x488267(0x121)],'files':_0x1c54e7[_0x488267(0xf1)]??Object[_0x488267(0xf9)](_0x57f427['files'])},'dryRun':![],'request':_0x57f427,..._0x5a9635?{'pageUrl':_0x5a9635}:{},..._0x425b4a?{'editPageUrl':_0x425b4a}:{},'warnings':_0x5a9635?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x488267(0x118)+_0x1c54e7['pageId']+'.'};}};function readPagePattern(_0x5b9eab){const _0x80cd5=a199_0x2734df,_0x6212ea=_0x5b9eab[_0x80cd5(0xfe)](_0x80cd5(0xfd))[_0x80cd5(0xec)](),_0x3d1c00=_0x5b9eab[_0x80cd5(0xfe)]('page-dir')[_0x80cd5(0xec)]();if(_0x6212ea&&_0x3d1c00)throw CliErrors['validation']('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x3d1c00)return null;if(!_0x6212ea)throw CliErrors[_0x80cd5(0x115)](_0x80cd5(0xf0));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x6212ea))throw CliErrors[_0x80cd5(0x115)](_0x80cd5(0x120));return _0x6212ea;}function a199_0xacc1(_0x85438d,_0x490c8b){_0x85438d=_0x85438d-0xe4;const _0x4c123e=a199_0x4c12();let _0xacc169=_0x4c123e[_0x85438d];return _0xacc169;}async function readPageSource(_0x4d2858){const _0xbab1dc=a199_0x2734df,_0x4f258f=_0x4d2858[_0xbab1dc(0xfe)](_0xbab1dc(0x107))[_0xbab1dc(0xec)](),_0x2981a8=readPagePattern(_0x4d2858);if(_0x2981a8===null){const _0x393cf4=await readCustomPageDirectory(_0x4f258f);if(Object[_0xbab1dc(0xf9)](_0x393cf4)[_0xbab1dc(0x102)]===0x0)throw CliErrors[_0xbab1dc(0x115)](_0xbab1dc(0xef));return _0x393cf4;}let _0x55d867;try{_0x55d867=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x2981a8['toLowerCase']()+_0xbab1dc(0xe6)),_0xbab1dc(0x11a));}catch{throw CliErrors[_0xbab1dc(0x115)](_0xbab1dc(0x112)+_0x2981a8+'.');}let _0x55f828;try{_0x55f828=JSON[_0xbab1dc(0xee)](_0x55d867);}catch{throw CliErrors['validation'](_0xbab1dc(0x101)+_0x2981a8+'.');}if(!_0x55f828||typeof _0x55f828!=='object'||Array[_0xbab1dc(0xfb)](_0x55f828)||Object['values'](_0x55f828)[_0xbab1dc(0xfa)](_0x172a1c=>typeof _0x172a1c!==_0xbab1dc(0x109)))throw CliErrors[_0xbab1dc(0x115)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x2981a8+'.');return _0x55f828;}async function readValidatedPageSource(_0x6c8025){const _0x462113=await readPageSource(_0x6c8025);return await validateCustomPageContent(_0x462113),_0x462113;}function readInput(_0x1e5750,_0x4fd9fb){const _0x579bfb=a199_0x2734df,_0x5bd7cb=_0x1e5750[_0x579bfb(0xfe)](_0x579bfb(0xf8))[_0x579bfb(0xec)]()||_0x579bfb(0x10a)+Date[_0x579bfb(0x11f)]();if(_0x5bd7cb[_0x579bfb(0x102)]>0x64)throw CliErrors['validation'](_0x579bfb(0x113));const _0x5a8c27=_0x1e5750[_0x579bfb(0xe7)](_0x579bfb(0xfc),NaN),_0x1c75db=!Number[_0x579bfb(0xe5)](_0x5a8c27);if(_0x1c75db&&(!Number[_0x579bfb(0x10b)](_0x5a8c27)||_0x5a8c27<=0x0))throw CliErrors[_0x579bfb(0x115)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x1e5750['appCode'],'pageName':_0x5bd7cb,..._0x1c75db?{'parentMenuId':_0x5a8c27}:{},'createMenu':!![],'files':_0x4fd9fb};}
1
+ const a199_0x4fa88c=a199_0x34ce;function a199_0x34ce(_0x62995a,_0x41d0c4){_0x62995a=_0x62995a-0x1ed;const _0x393693=a199_0x3936();let _0x34ce04=_0x393693[_0x62995a];return _0x34ce04;}(function(_0x50aac0,_0x4d52b2){const _0x3959a7=a199_0x34ce,_0x33540d=_0x50aac0();while(!![]){try{const _0x37c44c=-parseInt(_0x3959a7(0x222))/0x1*(parseInt(_0x3959a7(0x213))/0x2)+-parseInt(_0x3959a7(0x21c))/0x3*(parseInt(_0x3959a7(0x206))/0x4)+-parseInt(_0x3959a7(0x1f6))/0x5+-parseInt(_0x3959a7(0x225))/0x6*(parseInt(_0x3959a7(0x215))/0x7)+-parseInt(_0x3959a7(0x221))/0x8+-parseInt(_0x3959a7(0x1ff))/0x9*(-parseInt(_0x3959a7(0x217))/0xa)+-parseInt(_0x3959a7(0x227))/0xb*(-parseInt(_0x3959a7(0x219))/0xc);if(_0x37c44c===_0x4d52b2)break;else _0x33540d['push'](_0x33540d['shift']());}catch(_0x497086){_0x33540d['push'](_0x33540d['shift']());}}}(a199_0x3936,0x927ec));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x4fa88c(0x205),a199_0x4fa88c(0x229),a199_0x4fa88c(0x216)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x4fa88c(0x209));export const pageCreate={'service':a199_0x4fa88c(0x224),'command':a199_0x4fa88c(0x20f),'description':a199_0x4fa88c(0x20b),'risk':a199_0x4fa88c(0x1f3),'defaultOutputFormat':a199_0x4fa88c(0x223),'structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a199_0x4fa88c(0x1f0),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':a199_0x4fa88c(0x228),'message':a199_0x4fa88c(0x20e),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a199_0x4fa88c(0x212),'description':a199_0x4fa88c(0x208)},{'name':'parent-menu-id','type':a199_0x4fa88c(0x1fa),'description':a199_0x4fa88c(0x1f5)},{'name':'page-pattern','type':a199_0x4fa88c(0x212),'description':a199_0x4fa88c(0x22a),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x4fa88c(0x22d),'type':a199_0x4fa88c(0x212),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0xe9e8bd){await readValidatedPageSource(_0xe9e8bd);},async 'dryRun'(_0x3854fc){const _0x3b237f=a199_0x4fa88c,_0x518bd0=readInput(_0x3854fc,await readValidatedPageSource(_0x3854fc));return{'method':_0x3b237f(0x1ee),'url':_0x3b237f(0x21d),'body':{'appCode':_0x518bd0[_0x3b237f(0x1fe)],'pageName':_0x518bd0[_0x3b237f(0x214)],..._0x518bd0[_0x3b237f(0x202)]!=null?{'parentMenuId':_0x518bd0[_0x3b237f(0x202)]}:{},'createMenu':_0x518bd0[_0x3b237f(0x211)],'codeContent':_0x518bd0[_0x3b237f(0x200)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON['stringify'](_0x518bd0[_0x3b237f(0x214)])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0x256592){const _0x36ed42=a199_0x4fa88c,_0x943963=readInput(_0x256592,await readValidatedPageSource(_0x256592)),_0x67bfb1=await createCustomPage(_0x943963);if(!Number[_0x36ed42(0x21b)](_0x67bfb1[_0x36ed42(0x20d)])||_0x67bfb1[_0x36ed42(0x20d)]<=0x0)throw CliErrors[_0x36ed42(0x1f7)](_0x36ed42(0x1f8));const _0x5c0c8b=buildCustomPageDevelopmentUrl(_0x943963['appCode'],_0x67bfb1[_0x36ed42(0x1f1)]),_0x3e4cf4=buildCustomPageEditUrl(_0x943963[_0x36ed42(0x1fe)],_0x67bfb1[_0x36ed42(0x20d)]);return{'ok':!![],'data':{'operation':_0x36ed42(0x20c),'pageType':_0x36ed42(0x1fd),'pagePattern':readPagePattern(_0x256592),'selector':{'appCode':_0x943963[_0x36ed42(0x1fe)],'pageName':_0x943963['pageName']},'before':null,'after':{'pageId':_0x67bfb1[_0x36ed42(0x20d)],'pageName':_0x67bfb1['pageName'],'appCode':_0x67bfb1['appCode'],'version':_0x67bfb1[_0x36ed42(0x22b)],'menuId':_0x67bfb1[_0x36ed42(0x22e)],'menuPath':_0x67bfb1['menuPath'],'files':_0x67bfb1[_0x36ed42(0x200)]??Object['keys'](_0x943963['files'])},'dryRun':![],'request':_0x943963,..._0x5c0c8b?{'pageUrl':_0x5c0c8b}:{},..._0x3e4cf4?{'editPageUrl':_0x3e4cf4}:{},'warnings':_0x5c0c8b?[]:[_0x36ed42(0x203)]},'message':_0x36ed42(0x1fb)+_0x67bfb1[_0x36ed42(0x20d)]+'.'};}};function a199_0x3936(){const _0x351a85=['values','parentMenuId','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','isNaN','BLANK','20KjuykM','pageName\x20cannot\x20exceed\x20100\x20characters.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','../../../templates/custom-pages','parent-menu-id','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','page.create','pageId','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','create','trim','createMenu','string','2dmrXkF','pageName','7rmFyVt','DASHBOARD','68230fskePy','Custom_page_','12daatCd','validation','isInteger','361335pQLLyh','/smartapi/webcode/page/create','Invalid\x20Custom\x20Page\x20pattern:\x20','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','length','2120208ZSkhMH','592907UJVAHB','compress','page','1911534adFVaO','str','23664223jmiCZM','page-content','ONEPAGE','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','version','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','page-dir','menuId','parse','POST','name','page\x20create\x20does\x20not\x20accept\x20--page-type.','menuPath','keys','write','Custom\x20Page\x20pattern\x20not\x20found:\x20','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','4423255UGQvSq','apiError','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','number','Created\x20Custom\x20Page\x20','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','CUSTOM','appCode','1467FjIGmk','files'];a199_0x3936=function(){return _0x351a85;};return a199_0x3936();}function readPagePattern(_0x34bad3){const _0x52eba4=a199_0x4fa88c,_0x5ba8b3=_0x34bad3[_0x52eba4(0x226)]('page-pattern')['trim'](),_0x5474ca=_0x34bad3['str'](_0x52eba4(0x22d))['trim']();if(_0x5ba8b3&&_0x5474ca)throw CliErrors[_0x52eba4(0x21a)](_0x52eba4(0x1f9));if(_0x5474ca)return null;if(!_0x5ba8b3)throw CliErrors[_0x52eba4(0x21a)](_0x52eba4(0x22c));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x5ba8b3))throw CliErrors['validation'](_0x52eba4(0x1fc));return _0x5ba8b3;}async function readPageSource(_0x3b6f61){const _0x1b2361=a199_0x4fa88c,_0x14a668=_0x3b6f61[_0x1b2361(0x226)](_0x1b2361(0x22d))['trim'](),_0x2d1bf2=readPagePattern(_0x3b6f61);if(_0x2d1bf2===null){const _0x4efcbe=await readCustomPageDirectory(_0x14a668);if(Object[_0x1b2361(0x1f2)](_0x4efcbe)[_0x1b2361(0x220)]===0x0)throw CliErrors[_0x1b2361(0x21a)](_0x1b2361(0x21f));return _0x4efcbe;}let _0x5459e7;try{_0x5459e7=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x2d1bf2['toLowerCase']()+'.json'),'utf8');}catch{throw CliErrors[_0x1b2361(0x21a)](_0x1b2361(0x1f4)+_0x2d1bf2+'.');}let _0x2da6e4;try{_0x2da6e4=JSON[_0x1b2361(0x1ed)](_0x5459e7);}catch{throw CliErrors[_0x1b2361(0x21a)](_0x1b2361(0x21e)+_0x2d1bf2+'.');}if(!_0x2da6e4||typeof _0x2da6e4!=='object'||Array['isArray'](_0x2da6e4)||Object[_0x1b2361(0x201)](_0x2da6e4)['some'](_0x17607b=>typeof _0x17607b!=='string'))throw CliErrors[_0x1b2361(0x21a)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x2d1bf2+'.');return _0x2da6e4;}async function readValidatedPageSource(_0x142f54){const _0x3aba6d=await readPageSource(_0x142f54);return await validateCustomPageContent(_0x3aba6d),_0x3aba6d;}function readInput(_0x1e7fbb,_0x3bfb6d){const _0x8560bc=a199_0x4fa88c,_0x5e23f8=_0x1e7fbb['str'](_0x8560bc(0x1ef))[_0x8560bc(0x210)]()||_0x8560bc(0x218)+Date['now']();if(_0x5e23f8[_0x8560bc(0x220)]>0x64)throw CliErrors['validation'](_0x8560bc(0x207));const _0x38963d=_0x1e7fbb['num'](_0x8560bc(0x20a),NaN),_0x3fb59d=!Number[_0x8560bc(0x204)](_0x38963d);if(_0x3fb59d&&(!Number[_0x8560bc(0x21b)](_0x38963d)||_0x38963d<=0x0))throw CliErrors[_0x8560bc(0x21a)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x1e7fbb[_0x8560bc(0x1fe)],'pageName':_0x5e23f8,..._0x3fb59d?{'parentMenuId':_0x38963d}:{},'createMenu':!![],'files':_0x3bfb6d};}
@@ -1 +1 @@
1
- function a200_0x3b57(_0x51cf5f,_0x353187){_0x51cf5f=_0x51cf5f-0xed;const _0xc779ad=a200_0xc779();let _0x3b5706=_0xc779ad[_0x51cf5f];return _0x3b5706;}const a200_0x38b4dd=a200_0x3b57;(function(_0x201b6f,_0xc11895){const _0x3774c7=a200_0x3b57,_0x25cf8e=_0x201b6f();while(!![]){try{const _0x5c9be4=-parseInt(_0x3774c7(0x101))/0x1+parseInt(_0x3774c7(0x100))/0x2+parseInt(_0x3774c7(0xfd))/0x3*(-parseInt(_0x3774c7(0x108))/0x4)+-parseInt(_0x3774c7(0xf7))/0x5+-parseInt(_0x3774c7(0xff))/0x6*(parseInt(_0x3774c7(0x107))/0x7)+parseInt(_0x3774c7(0x102))/0x8*(parseInt(_0x3774c7(0x106))/0x9)+parseInt(_0x3774c7(0xf5))/0xa;if(_0x5c9be4===_0xc11895)break;else _0x25cf8e['push'](_0x25cf8e['shift']());}catch(_0x52dcca){_0x25cf8e['push'](_0x25cf8e['shift']());}}}(a200_0xc779,0x5e797));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x38b4dd(0xf8),'command':a200_0x38b4dd(0x10a),'description':a200_0x38b4dd(0xef),'risk':a200_0x38b4dd(0x109),'defaultOutputFormat':a200_0x38b4dd(0xee),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x38b4dd(0xf0),'required':!![],'description':a200_0x38b4dd(0xed)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4cdf25){readCustomPageId(_0x4cdf25);},async 'execute'(_0x411d68){const _0x5b559d=a200_0x38b4dd,_0x5cb06a=readCustomPageId(_0x411d68),_0x4aa540=await getCustomPageSource(_0x5cb06a),{bundle:_0x25f842,createTime:_0x294b78,updateTime:_0x4721c9,..._0xe1ffb7}=_0x4aa540,_0x16d1de=_0x4aa540['id']??_0x5cb06a,_0x3687e9=_0x4aa540[_0x5b559d(0xfc)]?.[_0x5b559d(0x105)]()||_0x411d68['str']('appcode')[_0x5b559d(0x105)](),_0x4e5dfc=buildCustomPageRuntimeUrl(_0x3687e9,_0x4aa540[_0x5b559d(0xf1)]),_0x1504c8=buildCustomPageEditUrl(_0x3687e9,_0x16d1de),_0x8e3e3d=await resolveCustomPageDevelopmentUrl(_0x3687e9,_0x16d1de,_0x411d68[_0x5b559d(0x10b)]);return{'ok':!![],'data':{..._0xe1ffb7,..._0x4e5dfc?{'runtimePageUrl':_0x4e5dfc}:{},..._0x8e3e3d?{'pageUrl':_0x8e3e3d}:{},..._0x1504c8?{'editPageUrl':_0x1504c8}:{},..._0x294b78==null?{}:{'createTime':formatTime(_0x294b78)},..._0x4721c9==null?{}:{'updateTime':formatTime(_0x4721c9)}},'message':_0x5b559d(0xf6)+_0x5cb06a+'.'};}};function formatTime(_0x506b76){const _0x259066=a200_0x38b4dd,_0x282a02=new Date(_0x506b76);if(Number[_0x259066(0xf4)](_0x282a02[_0x259066(0xfa)]()))return String(_0x506b76);const _0x3ef685=[_0x282a02[_0x259066(0xfb)](),String(_0x282a02[_0x259066(0xf2)]()+0x1)[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0xf3)]())[_0x259066(0xfe)](0x2,'0')][_0x259066(0x103)]('-'),_0x98d58c=[String(_0x282a02['getHours']())[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0xf9)]())[_0x259066(0xfe)](0x2,'0'),String(_0x282a02[_0x259066(0x104)]())[_0x259066(0xfe)](0x2,'0')][_0x259066(0x103)](':');return _0x3ef685+'\x20'+_0x98d58c;}function a200_0xc779(){const _0x5292dc=['page','getMinutes','getTime','getFullYear','appCode','223569Bbzqqs','padStart','84amYzvB','838050kRZIhs','401835jIUCFg','56HNslxR','join','getSeconds','trim','149706WSzBPT','116893nFppPQ','8sXJQTP','read','custom-detail','cookie','Custom\x20Page\x20ID','compress','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','number','pageCode','getMonth','getDate','isNaN','11992310sRnQJA','Retrieved\x20Custom\x20Page\x20','2815300OeIjlW'];a200_0xc779=function(){return _0x5292dc;};return a200_0xc779();}
1
+ function a200_0x29bb(){const _0x38301f=['number','getDate','getHours','padStart','getSeconds','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','795cZamUB','239010kzHiGl','str','appCode','Retrieved\x20Custom\x20Page\x20','custom-detail','appcode','getFullYear','trim','compress','72uOYLak','138446RDtUph','1IfWAZr','14623477JCDTEI','1120406nGSeYJ','30330KunFJb','216wZxZYW','Custom\x20Page\x20ID','getMonth','129132ptSKCf','113103xcGEnn','pageCode','read'];a200_0x29bb=function(){return _0x38301f;};return a200_0x29bb();}const a200_0x2c9dd6=a200_0x4ebe;(function(_0x5364b5,_0x33afbc){const _0x5305c2=a200_0x4ebe,_0x188e87=_0x5364b5();while(!![]){try{const _0x51c106=parseInt(_0x5305c2(0x18c))/0x1*(parseInt(_0x5305c2(0x18e))/0x2)+parseInt(_0x5305c2(0x1a7))/0x3*(parseInt(_0x5305c2(0x193))/0x4)+-parseInt(_0x5305c2(0x19d))/0x5*(-parseInt(_0x5305c2(0x18f))/0x6)+parseInt(_0x5305c2(0x18b))/0x7+parseInt(_0x5305c2(0x190))/0x8*(-parseInt(_0x5305c2(0x194))/0x9)+-parseInt(_0x5305c2(0x19e))/0xa+-parseInt(_0x5305c2(0x18d))/0xb;if(_0x51c106===_0x33afbc)break;else _0x188e87['push'](_0x188e87['shift']());}catch(_0x3aca2a){_0x188e87['push'](_0x188e87['shift']());}}}(a200_0x29bb,0x71bed));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x2c9dd6(0x1a2),'description':a200_0x2c9dd6(0x19c),'risk':a200_0x2c9dd6(0x196),'defaultOutputFormat':a200_0x2c9dd6(0x1a6),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x2c9dd6(0x197),'required':!![],'description':a200_0x2c9dd6(0x191)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x313ebb){readCustomPageId(_0x313ebb);},async 'execute'(_0x14828f){const _0x33d330=a200_0x2c9dd6,_0x5aa8db=readCustomPageId(_0x14828f),_0x2fbb74=await getCustomPageSource(_0x5aa8db),{bundle:_0xb99bc8,createTime:_0x3cc6b1,updateTime:_0xcfa753,..._0x48c3a7}=_0x2fbb74,_0x234fe0=_0x2fbb74['id']??_0x5aa8db,_0x50e7bc=_0x2fbb74[_0x33d330(0x1a0)]?.[_0x33d330(0x1a5)]()||_0x14828f[_0x33d330(0x19f)](_0x33d330(0x1a3))[_0x33d330(0x1a5)](),_0x137b91=buildCustomPageRuntimeUrl(_0x50e7bc,_0x2fbb74[_0x33d330(0x195)]),_0x4546c5=buildCustomPageEditUrl(_0x50e7bc,_0x234fe0),_0x4e3e75=await resolveCustomPageDevelopmentUrl(_0x50e7bc,_0x234fe0,_0x14828f['cookie']);return{'ok':!![],'data':{..._0x48c3a7,..._0x137b91?{'runtimePageUrl':_0x137b91}:{},..._0x4e3e75?{'pageUrl':_0x4e3e75}:{},..._0x4546c5?{'editPageUrl':_0x4546c5}:{},..._0x3cc6b1==null?{}:{'createTime':formatTime(_0x3cc6b1)},..._0xcfa753==null?{}:{'updateTime':formatTime(_0xcfa753)}},'message':_0x33d330(0x1a1)+_0x5aa8db+'.'};}};function a200_0x4ebe(_0x1353c2,_0x15d3f9){_0x1353c2=_0x1353c2-0x18b;const _0x29bb2b=a200_0x29bb();let _0x4ebe29=_0x29bb2b[_0x1353c2];return _0x4ebe29;}function formatTime(_0x52383b){const _0x414aba=a200_0x2c9dd6,_0x100b7b=new Date(_0x52383b);if(Number['isNaN'](_0x100b7b['getTime']()))return String(_0x52383b);const _0xa8cdb6=[_0x100b7b[_0x414aba(0x1a4)](),String(_0x100b7b[_0x414aba(0x192)]()+0x1)['padStart'](0x2,'0'),String(_0x100b7b[_0x414aba(0x198)]())[_0x414aba(0x19a)](0x2,'0')]['join']('-'),_0x4fb5f0=[String(_0x100b7b[_0x414aba(0x199)]())[_0x414aba(0x19a)](0x2,'0'),String(_0x100b7b['getMinutes']())[_0x414aba(0x19a)](0x2,'0'),String(_0x100b7b[_0x414aba(0x19b)]())[_0x414aba(0x19a)](0x2,'0')]['join'](':');return _0xa8cdb6+'\x20'+_0x4fb5f0;}
@@ -1 +1 @@
1
- const a201_0x5f0659=a201_0x1bf7;function a201_0x1bf7(_0x297160,_0x41f4b9){_0x297160=_0x297160-0xc7;const _0x5dee3f=a201_0x5dee();let _0x1bf774=_0x5dee3f[_0x297160];return _0x1bf774;}(function(_0x250c5a,_0x436961){const _0x1446d6=a201_0x1bf7,_0x5e4156=_0x250c5a();while(!![]){try{const _0x267940=-parseInt(_0x1446d6(0xc9))/0x1*(parseInt(_0x1446d6(0xcd))/0x2)+parseInt(_0x1446d6(0xce))/0x3+parseInt(_0x1446d6(0xcb))/0x4*(parseInt(_0x1446d6(0xd7))/0x5)+-parseInt(_0x1446d6(0xd6))/0x6+parseInt(_0x1446d6(0xca))/0x7*(-parseInt(_0x1446d6(0xda))/0x8)+-parseInt(_0x1446d6(0xc7))/0x9+parseInt(_0x1446d6(0xd5))/0xa;if(_0x267940===_0x436961)break;else _0x5e4156['push'](_0x5e4156['shift']());}catch(_0x1a9579){_0x5e4156['push'](_0x5e4156['shift']());}}}(a201_0x5dee,0x45442));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x5dee(){const _0x3323f5=['appCode','cookie','custom-list','page','pageId','menus','8744580GddQBm','963234rloBib','25kgRaSE','react','length','8SnQSXh','flatMap','compress','3471696vXGuOk','path','603idBaTk','1561357oAJaAO','217148SLQdtp','label','1664CZnfVi','1226553BNybbp'];a201_0x5dee=function(){return _0x3323f5;};return a201_0x5dee();}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x5f0659(0xd2),'command':a201_0x5f0659(0xd1),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':'read','defaultOutputFormat':a201_0x5f0659(0xdc),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4815c7){const _0x5abf6b=a201_0x5f0659,_0x3e107b=(await fetchMenuSnapshot(_0x4815c7[_0x5abf6b(0xcf)],_0x4815c7[_0x5abf6b(0xd0)]))[_0x5abf6b(0xd4)][_0x5abf6b(0xdb)](_0x273384=>{const _0x268f05=_0x5abf6b;if(_0x273384['type']!==_0x268f05(0xd8)||_0x273384['pageId']==null)return[];const _0x462dc8=buildCustomPageDevelopmentUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xc8)]),_0x3d85bb=buildCustomPageRuntimeUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xc8)]),_0x36c4d1=buildCustomPageEditUrl(_0x4815c7[_0x268f05(0xcf)],_0x273384[_0x268f05(0xd3)]);return[{'pageId':_0x273384[_0x268f05(0xd3)],'label':_0x273384[_0x268f05(0xcc)],'path':_0x273384['path'],..._0x462dc8?{'pageUrl':_0x462dc8}:{},..._0x3d85bb?{'runtimePageUrl':_0x3d85bb}:{},..._0x36c4d1?{'editPageUrl':_0x36c4d1}:{}}];});return{'ok':!![],'data':{'pages':_0x3e107b},'message':_0x3e107b['length']===0x0?'No\x20Custom\x20Pages\x20found.':'Found\x20'+_0x3e107b[_0x5abf6b(0xd9)]+'\x20Custom\x20Page(s).'};}};
1
+ const a201_0x248ea5=a201_0x538e;(function(_0x4e90c0,_0x30d713){const _0x4af4a2=a201_0x538e,_0x1a1302=_0x4e90c0();while(!![]){try{const _0xe9b21d=parseInt(_0x4af4a2(0xf9))/0x1*(parseInt(_0x4af4a2(0x100))/0x2)+-parseInt(_0x4af4a2(0xfe))/0x3+parseInt(_0x4af4a2(0x10e))/0x4*(parseInt(_0x4af4a2(0x107))/0x5)+-parseInt(_0x4af4a2(0xfb))/0x6+-parseInt(_0x4af4a2(0xf6))/0x7+-parseInt(_0x4af4a2(0xf8))/0x8+-parseInt(_0x4af4a2(0x10b))/0x9*(-parseInt(_0x4af4a2(0x104))/0xa);if(_0xe9b21d===_0x30d713)break;else _0x1a1302['push'](_0x1a1302['shift']());}catch(_0x263a3c){_0x1a1302['push'](_0x1a1302['shift']());}}}(a201_0x2d05,0x8cb85));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x538e(_0x383853,_0x243f7d){_0x383853=_0x383853-0xf6;const _0x2d0576=a201_0x2d05();let _0x538e40=_0x2d0576[_0x383853];return _0x538e40;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':'page','command':a201_0x248ea5(0x105),'description':a201_0x248ea5(0x10d),'risk':a201_0x248ea5(0x102),'defaultOutputFormat':a201_0x248ea5(0xff),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3637bd){const _0x50c564=a201_0x248ea5,_0xae7e83=(await fetchMenuSnapshot(_0x3637bd[_0x50c564(0x10f)],_0x3637bd['cookie']))[_0x50c564(0x109)][_0x50c564(0xfc)](_0x621187=>{const _0x4e076e=_0x50c564;if(_0x621187[_0x4e076e(0x103)]!==_0x4e076e(0xfa)||_0x621187[_0x4e076e(0xfd)]==null)return[];const _0x2bec5e=buildCustomPageDevelopmentUrl(_0x3637bd[_0x4e076e(0x10f)],_0x621187[_0x4e076e(0x106)]),_0x836a86=buildCustomPageRuntimeUrl(_0x3637bd[_0x4e076e(0x10f)],_0x621187['path']),_0x598dca=buildCustomPageEditUrl(_0x3637bd[_0x4e076e(0x10f)],_0x621187[_0x4e076e(0xfd)]);return[{'pageId':_0x621187[_0x4e076e(0xfd)],'label':_0x621187[_0x4e076e(0xf7)],'path':_0x621187[_0x4e076e(0x106)],..._0x2bec5e?{'pageUrl':_0x2bec5e}:{},..._0x836a86?{'runtimePageUrl':_0x836a86}:{},..._0x598dca?{'editPageUrl':_0x598dca}:{}}];});return{'ok':!![],'data':{'pages':_0xae7e83},'message':_0xae7e83[_0x50c564(0x108)]===0x0?_0x50c564(0x10a):_0x50c564(0x101)+_0xae7e83[_0x50c564(0x108)]+_0x50c564(0x10c)};}};function a201_0x2d05(){const _0x3811e0=['path','3090110gwzkjv','length','menus','No\x20Custom\x20Pages\x20found.','9htkJIO','\x20Custom\x20Page(s).','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','4wZvdAP','appCode','1824466fEmZxw','label','8016120insiAT','13IstLSS','react','125766FTwJSz','flatMap','pageId','2079204tXlWlM','compress','89554cEZbeU','Found\x20','read','type','13529480QOuiVG','custom-list'];a201_0x2d05=function(){return _0x3811e0;};return a201_0x2d05();}
@@ -1 +1 @@
1
- function a202_0x3aa4(_0x478d80,_0x3f91e2){_0x478d80=_0x478d80-0xbc;const _0x44899e=a202_0x4489();let _0x3aa4df=_0x44899e[_0x478d80];return _0x3aa4df;}const a202_0x3a2510=a202_0x3aa4;(function(_0x35eb95,_0x1da13e){const _0x1851b8=a202_0x3aa4,_0x59c49e=_0x35eb95();while(!![]){try{const _0x4850aa=-parseInt(_0x1851b8(0xdd))/0x1*(-parseInt(_0x1851b8(0xda))/0x2)+parseInt(_0x1851b8(0xcd))/0x3*(-parseInt(_0x1851b8(0xc0))/0x4)+-parseInt(_0x1851b8(0xc7))/0x5*(-parseInt(_0x1851b8(0xe0))/0x6)+parseInt(_0x1851b8(0xd3))/0x7+parseInt(_0x1851b8(0xc4))/0x8*(parseInt(_0x1851b8(0xbf))/0x9)+-parseInt(_0x1851b8(0xc2))/0xa*(parseInt(_0x1851b8(0xd0))/0xb)+parseInt(_0x1851b8(0xc1))/0xc*(parseInt(_0x1851b8(0xcf))/0xd);if(_0x4850aa===_0x1da13e)break;else _0x59c49e['push'](_0x59c49e['shift']());}catch(_0x1ddc4b){_0x59c49e['push'](_0x59c49e['shift']());}}}(a202_0x4489,0x6841c));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0x4489(){const _0x53a84b=['page','pageId','page.custom-publish','push','33498jhrzqL','16vxTxDM','84852WAIcno','10pDFsNk','cookie','736NTwtCH','apiError','Custom\x20Page\x20ID','5QrSjCT','status','appCode','runtimePageUrl','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','POST','379632KHyvhR','number','481AXPKdZ','8553358poTVhj','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','trim','5881631CHrHlY','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','Would\x20publish\x20Custom\x20Page\x20','warnings','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','compress','FORMAL','6DuPrMA','custom-publish','str','40376dYyzys','/smartapi/webcode/file/publish','Published\x20Custom\x20Page\x20','872268HdCPyX','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','string','remark','isInteger'];a202_0x4489=function(){return _0x53a84b;};return a202_0x4489();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x3a2510(0xe5),'command':a202_0x3a2510(0xdb),'description':a202_0x3a2510(0xd4),'risk':'write','defaultOutputFormat':a202_0x3a2510(0xd8),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x3a2510(0xce),'required':!![],'description':a202_0x3a2510(0xc6)},{'name':a202_0x3a2510(0xe3),'type':a202_0x3a2510(0xe2),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x23e450){readCustomPageId(_0x23e450);},async 'dryRun'(_0x59b4cf){const _0x221cbb=a202_0x3a2510,_0xb68a3f=readInput(_0x59b4cf);return{'method':_0x221cbb(0xcc),'url':_0x221cbb(0xde),'body':{'id':_0xb68a3f['pageId'],..._0xb68a3f[_0x221cbb(0xe3)]?{'remark':_0xb68a3f[_0x221cbb(0xe3)]}:{}},'description':_0x221cbb(0xd5)+_0xb68a3f[_0x221cbb(0xbc)]+'.'};},async 'execute'(_0x475e99){const _0x19747a=a202_0x3a2510,_0x4f26ab=readInput(_0x475e99);await getCustomPageSource(_0x4f26ab[_0x19747a(0xbc)]);const _0x2b43aa=await publishCustomPage(_0x4f26ab);if(!Number[_0x19747a(0xe4)](_0x2b43aa)||_0x2b43aa!==_0x4f26ab[_0x19747a(0xbc)])throw CliErrors[_0x19747a(0xc5)](_0x19747a(0xd1));const _0x8cbe1a=await getCustomPageSource(_0x4f26ab[_0x19747a(0xbc)]);if(_0x8cbe1a[_0x19747a(0xc8)]!==_0x19747a(0xd9))throw CliErrors[_0x19747a(0xc5)](_0x19747a(0xd7)+(_0x8cbe1a[_0x19747a(0xc8)]??'unknown')+'.');const _0x24aa2a=_0x8cbe1a[_0x19747a(0xc9)]?.[_0x19747a(0xd2)](),_0x199df8=buildCustomPageEditUrl(_0x24aa2a,_0x4f26ab['pageId']),_0x15f2ea=await resolveCustomPageDevelopmentUrl(_0x24aa2a,_0x4f26ab[_0x19747a(0xbc)],_0x475e99[_0x19747a(0xc3)]),_0x1d0d90=buildMutationData(_0x4f26ab,!![],_0x15f2ea,_0x199df8);_0x24aa2a&&!_0x15f2ea&&_0x1d0d90[_0x19747a(0xd6)][_0x19747a(0xbe)](_0x19747a(0xcb));const _0x14bf99=buildCustomPageRuntimeUrl(_0x8cbe1a['appCode'],_0x8cbe1a['pageCode']);return _0x14bf99?_0x1d0d90[_0x19747a(0xca)]=_0x14bf99:_0x1d0d90['warnings'][_0x19747a(0xbe)](_0x19747a(0xe1)),{'ok':!![],'data':_0x1d0d90,'message':_0x19747a(0xdf)+_0x4f26ab[_0x19747a(0xbc)]+'.'};}};function readInput(_0x4e8c40){const _0x2c7eb8=a202_0x3a2510,_0x25cf25=readCustomPageId(_0x4e8c40),_0x264a8c=_0x4e8c40[_0x2c7eb8(0xdc)](_0x2c7eb8(0xe3))['trim']();return{'pageId':_0x25cf25,..._0x264a8c?{'remark':_0x264a8c}:{}};}function buildMutationData(_0x22da6b,_0x5ea7e2=![],_0x53bb7d,_0x5aca82){const _0x3b4a37=a202_0x3a2510;return{'operation':_0x3b4a37(0xbd),'selector':{'pageId':_0x22da6b[_0x3b4a37(0xbc)]},'before':null,'after':{'pageId':_0x22da6b[_0x3b4a37(0xbc)],'status':_0x3b4a37(0xd9)},'dryRun':!_0x5ea7e2,'request':_0x22da6b,..._0x53bb7d?{'pageUrl':_0x53bb7d}:{},..._0x5aca82?{'editPageUrl':_0x5aca82}:{},'warnings':[]};}
1
+ const a202_0x26aeb7=a202_0x7a1d;(function(_0x2e8cfb,_0x23b75b){const _0x24669e=a202_0x7a1d,_0x30fc1f=_0x2e8cfb();while(!![]){try{const _0x2d3a84=-parseInt(_0x24669e(0xf5))/0x1*(parseInt(_0x24669e(0xef))/0x2)+parseInt(_0x24669e(0xf6))/0x3*(parseInt(_0x24669e(0xf9))/0x4)+parseInt(_0x24669e(0xff))/0x5+-parseInt(_0x24669e(0xf2))/0x6+-parseInt(_0x24669e(0xec))/0x7+-parseInt(_0x24669e(0xfd))/0x8+parseInt(_0x24669e(0xf3))/0x9;if(_0x2d3a84===_0x23b75b)break;else _0x30fc1f['push'](_0x30fc1f['shift']());}catch(_0xa716e8){_0x30fc1f['push'](_0x30fc1f['shift']());}}}(a202_0xa60a,0x292b1));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0xa60a(){const _0x5ed1b4=['Published\x20Custom\x20Page\x20','FORMAL','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','push','trim','unknown','Would\x20publish\x20Custom\x20Page\x20','isInteger','Custom\x20Page\x20ID','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','remark','number','runtimePageUrl','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','pageId','1510775rjbeOf','warnings','status','2238JgJilb','compress','apiError','1505736CQAomN','1624653srKHzk','str','7FdiAiQ','3ZSBgux','cookie','Optional\x20publish\x20remark','907428SVufis','pageCode','/smartapi/webcode/file/publish','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','640168azogad','appCode','1579430kCSYfT','custom-publish','page'];a202_0xa60a=function(){return _0x5ed1b4;};return a202_0xa60a();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x26aeb7(0xdc),'command':a202_0x26aeb7(0x100),'description':a202_0x26aeb7(0xfc),'risk':'write','defaultOutputFormat':a202_0x26aeb7(0xf0),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x26aeb7(0xe8),'required':!![],'description':a202_0x26aeb7(0xe5)},{'name':a202_0x26aeb7(0xe7),'type':'string','description':a202_0x26aeb7(0xf8)}],async 'validate'(_0x3e7b7e){readCustomPageId(_0x3e7b7e);},async 'dryRun'(_0x29335e){const _0x8fab18=a202_0x26aeb7,_0x42ce67=readInput(_0x29335e);return{'method':'POST','url':_0x8fab18(0xfb),'body':{'id':_0x42ce67[_0x8fab18(0xeb)],..._0x42ce67['remark']?{'remark':_0x42ce67[_0x8fab18(0xe7)]}:{}},'description':_0x8fab18(0xe3)+_0x42ce67[_0x8fab18(0xeb)]+'.'};},async 'execute'(_0x15aa53){const _0x1b855f=a202_0x26aeb7,_0x398412=readInput(_0x15aa53);await getCustomPageSource(_0x398412[_0x1b855f(0xeb)]);const _0x87f9f3=await publishCustomPage(_0x398412);if(!Number[_0x1b855f(0xe4)](_0x87f9f3)||_0x87f9f3!==_0x398412[_0x1b855f(0xeb)])throw CliErrors[_0x1b855f(0xf1)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x42f340=await getCustomPageSource(_0x398412[_0x1b855f(0xeb)]);if(_0x42f340[_0x1b855f(0xee)]!==_0x1b855f(0xde))throw CliErrors[_0x1b855f(0xf1)](_0x1b855f(0xea)+(_0x42f340['status']??_0x1b855f(0xe2))+'.');const _0x45d00e=_0x42f340[_0x1b855f(0xfe)]?.[_0x1b855f(0xe1)](),_0x3d0d21=buildCustomPageEditUrl(_0x45d00e,_0x398412['pageId']),_0x1b087b=await resolveCustomPageDevelopmentUrl(_0x45d00e,_0x398412[_0x1b855f(0xeb)],_0x15aa53[_0x1b855f(0xf7)]),_0xc27f29=buildMutationData(_0x398412,!![],_0x1b087b,_0x3d0d21);_0x45d00e&&!_0x1b087b&&_0xc27f29[_0x1b855f(0xed)]['push'](_0x1b855f(0xe6));const _0x3badae=buildCustomPageRuntimeUrl(_0x42f340[_0x1b855f(0xfe)],_0x42f340[_0x1b855f(0xfa)]);return _0x3badae?_0xc27f29[_0x1b855f(0xe9)]=_0x3badae:_0xc27f29['warnings'][_0x1b855f(0xe0)](_0x1b855f(0xdf)),{'ok':!![],'data':_0xc27f29,'message':_0x1b855f(0xdd)+_0x398412[_0x1b855f(0xeb)]+'.'};}};function readInput(_0x311f00){const _0x59cc49=a202_0x26aeb7,_0x3f6501=readCustomPageId(_0x311f00),_0x1e75e7=_0x311f00[_0x59cc49(0xf4)](_0x59cc49(0xe7))['trim']();return{'pageId':_0x3f6501,..._0x1e75e7?{'remark':_0x1e75e7}:{}};}function a202_0x7a1d(_0x187fc7,_0x422fd4){_0x187fc7=_0x187fc7-0xdc;const _0xa60a8d=a202_0xa60a();let _0x7a1d8d=_0xa60a8d[_0x187fc7];return _0x7a1d8d;}function buildMutationData(_0xf2a55e,_0x4ec6ad=![],_0x22b750,_0x26e12e){const _0x267fd7=a202_0x26aeb7;return{'operation':'page.custom-publish','selector':{'pageId':_0xf2a55e['pageId']},'before':null,'after':{'pageId':_0xf2a55e[_0x267fd7(0xeb)],'status':'FORMAL'},'dryRun':!_0x4ec6ad,'request':_0xf2a55e,..._0x22b750?{'pageUrl':_0x22b750}:{},..._0x26e12e?{'editPageUrl':_0x26e12e}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a203_0x41ae30=a203_0x4c28;(function(_0x30fcc9,_0x1aba05){const _0x194879=a203_0x4c28,_0x4e34f1=_0x30fcc9();while(!![]){try{const _0x5c7310=-parseInt(_0x194879(0x140))/0x1+-parseInt(_0x194879(0x14d))/0x2+parseInt(_0x194879(0x146))/0x3+parseInt(_0x194879(0x13a))/0x4*(-parseInt(_0x194879(0x141))/0x5)+-parseInt(_0x194879(0x13b))/0x6+-parseInt(_0x194879(0x13d))/0x7+parseInt(_0x194879(0x148))/0x8;if(_0x5c7310===_0x1aba05)break;else _0x4e34f1['push'](_0x4e34f1['shift']());}catch(_0x322a83){_0x4e34f1['push'](_0x4e34f1['shift']());}}}(a203_0xf4fe,0x84f9f));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x41ae30(0x149)};function trimOptional(_0x49aeeb){const _0x9e1fbd=a203_0x41ae30;return _0x49aeeb?.[_0x9e1fbd(0x14e)]()||undefined;}function a203_0xf4fe(){const _0xac252d=['pageId','validation','/pages/','4XOhRcT','1708428SebxHm','type','708624ObnUaB','--id\x20must\x20be\x20a\x20positive\x20integer.','react','527231tDjvoz','1998620qDvjXy','find','menus','/ide/','path','3130905fEkJPI','num','9481480GPPOFr','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','map','Invalid\x20Custom\x20Page\x20content:\x20','isInteger','742448lXACLp','trim','file'];a203_0xf4fe=function(){return _0xac252d;};return a203_0xf4fe();}export function buildCustomPageRuntimeUrl(_0x53d8a2,_0x49f777){const _0x54cc60=trimOptional(_0x53d8a2),_0x2d713c=trimOptional(_0x49f777);if(!_0x54cc60||!_0x2d713c)return undefined;return getPublishedAppDomain(_0x54cc60)+'/'+encodeURIComponent(_0x2d713c);}export function buildCustomPageDevelopmentUrl(_0x1dd2da,_0x20718d){const _0x46068b=a203_0x41ae30,_0xe82854=trimOptional(_0x1dd2da),_0x174551=trimOptional(_0x20718d);if(!_0xe82854||!_0x174551)return undefined;return getAppBaseUrl(_0xe82854)+_0x46068b(0x152)+encodeURIComponent(_0x174551);}function a203_0x4c28(_0x384164,_0x4820cb){_0x384164=_0x384164-0x13a;const _0xf4fe1c=a203_0xf4fe();let _0x4c2878=_0xf4fe1c[_0x384164];return _0x4c2878;}export async function resolveCustomPageDevelopmentUrl(_0x5252ce,_0x55f237,_0x6ae2ed){const _0x45ca07=a203_0x41ae30,_0x46491d=trimOptional(_0x5252ce);if(!_0x46491d)return undefined;try{const _0x48033d=(await fetchMenuSnapshot(_0x46491d,_0x6ae2ed))[_0x45ca07(0x143)][_0x45ca07(0x142)](_0x24eae7=>_0x24eae7[_0x45ca07(0x13c)]===_0x45ca07(0x13f)&&_0x24eae7[_0x45ca07(0x150)]===_0x55f237);return buildCustomPageDevelopmentUrl(_0x46491d,_0x48033d?.[_0x45ca07(0x145)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x5ec083,_0x18d22c){const _0x5ce0fc=a203_0x41ae30,_0x1048b9=trimOptional(_0x5ec083);if(!_0x1048b9)return;const _0x437bc6=trimOptional(String(_0x18d22c??''));if(!_0x437bc6)return;return getAppBaseUrl(_0x1048b9)+_0x5ce0fc(0x144)+encodeURIComponent(_0x437bc6);}export async function validateCustomPageContent(_0x1648da){const _0x2c6f7c=a203_0x41ae30,_0x244362=await validateCustomPageSourceFiles(_0x1648da);if(_0x244362['length']>0x0)throw CliErrors[_0x2c6f7c(0x151)](_0x2c6f7c(0x14b)+_0x244362[_0x2c6f7c(0x14a)](_0x1e417d=>_0x1e417d[_0x2c6f7c(0x14f)]+':\x20'+_0x1e417d['message'])['join'](';\x20'));}export function readCustomPageId(_0x571738){const _0x1381f4=a203_0x41ae30,_0x33f5e4=_0x571738[_0x1381f4(0x147)]('id');if(!Number[_0x1381f4(0x14c)](_0x33f5e4)||_0x33f5e4<=0x0)throw CliErrors['validation'](_0x1381f4(0x13e));return _0x33f5e4;}
1
+ (function(_0x5dc7cc,_0x28efff){const _0x5081c5=a203_0x3ca0,_0x10eb40=_0x5dc7cc();while(!![]){try{const _0x113914=-parseInt(_0x5081c5(0x120))/0x1+-parseInt(_0x5081c5(0x129))/0x2*(-parseInt(_0x5081c5(0x122))/0x3)+parseInt(_0x5081c5(0x125))/0x4+parseInt(_0x5081c5(0x128))/0x5*(parseInt(_0x5081c5(0x124))/0x6)+-parseInt(_0x5081c5(0x12b))/0x7+parseInt(_0x5081c5(0x134))/0x8+-parseInt(_0x5081c5(0x12a))/0x9;if(_0x113914===_0x28efff)break;else _0x10eb40['push'](_0x10eb40['shift']());}catch(_0x471a4f){_0x10eb40['push'](_0x10eb40['shift']());}}}(a203_0x1756,0xb877e));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';function a203_0x1756(){const _0x3acc47=['type','file','path','/pages/','validation','num','isInteger','length','2988584cbtNwO','172198HvXQKA','--id\x20must\x20be\x20a\x20positive\x20integer.','3xFHJzB','react','2310LMdHUM','4684144GqKfvj','pageId','map','2655yhUOMk','2766756YtvqAZ','13935699hWWsfg','4593617fKHMUm'];a203_0x1756=function(){return _0x3acc47;};return a203_0x1756();}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x5c3a15){return _0x5c3a15?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x3545e8,_0x4149e5){const _0x4adb7a=trimOptional(_0x3545e8),_0x40ecf7=trimOptional(_0x4149e5);if(!_0x4adb7a||!_0x40ecf7)return undefined;return getPublishedAppDomain(_0x4adb7a)+'/'+encodeURIComponent(_0x40ecf7);}function a203_0x3ca0(_0x50eb39,_0x488173){_0x50eb39=_0x50eb39-0x120;const _0x17561f=a203_0x1756();let _0x3ca07f=_0x17561f[_0x50eb39];return _0x3ca07f;}export function buildCustomPageDevelopmentUrl(_0x5511a8,_0x1acba2){const _0x40e697=a203_0x3ca0,_0x50526f=trimOptional(_0x5511a8),_0x148ae4=trimOptional(_0x1acba2);if(!_0x50526f||!_0x148ae4)return undefined;return getAppBaseUrl(_0x50526f)+_0x40e697(0x12f)+encodeURIComponent(_0x148ae4);}export async function resolveCustomPageDevelopmentUrl(_0x33e709,_0x3e9285,_0x5c24e9){const _0x426e58=a203_0x3ca0,_0x13f2bf=trimOptional(_0x33e709);if(!_0x13f2bf)return undefined;try{const _0x1385a3=(await fetchMenuSnapshot(_0x13f2bf,_0x5c24e9))['menus']['find'](_0x4604c7=>_0x4604c7[_0x426e58(0x12c)]===_0x426e58(0x123)&&_0x4604c7[_0x426e58(0x126)]===_0x3e9285);return buildCustomPageDevelopmentUrl(_0x13f2bf,_0x1385a3?.[_0x426e58(0x12e)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x1066b1,_0x335cb6){const _0x2ccb26=trimOptional(_0x1066b1);if(!_0x2ccb26)return;const _0x2bb976=trimOptional(String(_0x335cb6??''));if(!_0x2bb976)return;return getAppBaseUrl(_0x2ccb26)+'/ide/'+encodeURIComponent(_0x2bb976);}export async function validateCustomPageContent(_0x37b796){const _0x15a81f=a203_0x3ca0,_0x1d238a=await validateCustomPageSourceFiles(_0x37b796);if(_0x1d238a[_0x15a81f(0x133)]>0x0)throw CliErrors[_0x15a81f(0x130)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x1d238a[_0x15a81f(0x127)](_0x52be3f=>_0x52be3f[_0x15a81f(0x12d)]+':\x20'+_0x52be3f['message'])['join'](';\x20'));}export function readCustomPageId(_0x395f98){const _0x146505=a203_0x3ca0,_0x422259=_0x395f98[_0x146505(0x131)]('id');if(!Number[_0x146505(0x132)](_0x422259)||_0x422259<=0x0)throw CliErrors[_0x146505(0x130)](_0x146505(0x121));return _0x422259;}
@@ -1 +1 @@
1
- const a204_0x2bca10=a204_0x11c0;function a204_0x11c0(_0x451913,_0x586196){_0x451913=_0x451913-0xe9;const _0x309477=a204_0x3094();let _0x11c0c5=_0x309477[_0x451913];return _0x11c0c5;}function a204_0x3094(){const _0x324305=['all','.jsx','toLowerCase','trim','page\x20files','9086392RSJWAn','40CsCHkH','8qoyqYA','14416038EOoYiy','map','57038750neWDtF','message','some','typescript','entries','endsWith','1085070yCEkLK','2178486oMebkM','188920ZdUOIt','babel','213751XMeSAR','8ibJtNu','.tsx','filter'];a204_0x3094=function(){return _0x324305;};return a204_0x3094();}(function(_0x180e76,_0x1fcb4d){const _0x20040d=a204_0x11c0,_0x1bf3fb=_0x180e76();while(!![]){try{const _0x4900b3=parseInt(_0x20040d(0xeb))/0x1*(-parseInt(_0x20040d(0xf6))/0x2)+-parseInt(_0x20040d(0xff))/0x3+-parseInt(_0x20040d(0xe9))/0x4*(parseInt(_0x20040d(0xf5))/0x5)+-parseInt(_0x20040d(0x100))/0x6+-parseInt(_0x20040d(0xf4))/0x7*(parseInt(_0x20040d(0xec))/0x8)+-parseInt(_0x20040d(0xf7))/0x9+parseInt(_0x20040d(0xf9))/0xa;if(_0x4900b3===_0x1fcb4d)break;else _0x1bf3fb['push'](_0x1bf3fb['shift']());}catch(_0x4439fa){_0x1bf3fb['push'](_0x1bf3fb['shift']());}}}(a204_0x3094,0xcea56));import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':a204_0x2bca10(0xea),'.ts':a204_0x2bca10(0xfc),'.tsx':a204_0x2bca10(0xfc)},CUSTOM_PAGE_EXTENSIONS=[a204_0x2bca10(0xf0),a204_0x2bca10(0xed)];export async function validateCustomPageSourceFiles(_0x5d3801){const _0x447629=a204_0x2bca10,_0x5b153b=Object['entries'](_0x5d3801)[_0x447629(0xee)](([_0x3ed1b3])=>getParser(_0x3ed1b3));if(!_0x5b153b[_0x447629(0xfb)](([_0x54eb8a])=>isReactSourceFile(_0x54eb8a)))return[{'file':_0x447629(0xf3),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x598f1c=await Promise[_0x447629(0xef)](_0x5b153b[_0x447629(0xf8)](async([_0x1e94c0,_0x13cf1e])=>{const _0xfbb00b=_0x447629;try{return await format(_0x13cf1e,{'parser':getParser(_0x1e94c0)}),undefined;}catch(_0x431342){return{'file':_0x1e94c0,'message':_0x431342 instanceof Error?_0x431342[_0xfbb00b(0xfa)]:String(_0x431342)};}}));return _0x598f1c['filter'](_0x43ba4a=>_0x43ba4a!==undefined);}function getParser(_0x3f902c){const _0x50387c=a204_0x2bca10,_0xdb83a9=_0x3f902c[_0x50387c(0xf2)]()['toLowerCase']();return Object[_0x50387c(0xfd)](SOURCE_PARSERS)['find'](([_0x2c0517])=>_0xdb83a9[_0x50387c(0xfe)](_0x2c0517))?.[0x1];}function isReactSourceFile(_0x1e7269){const _0x1206ba=a204_0x2bca10,_0x3df5c9=_0x1e7269['trim']()[_0x1206ba(0xf1)]();return CUSTOM_PAGE_EXTENSIONS[_0x1206ba(0xfb)](_0x1d1f0f=>_0x3df5c9[_0x1206ba(0xfe)](_0x1d1f0f));}
1
+ const a204_0x5eec95=a204_0x58ac;(function(_0x2998ee,_0x1971de){const _0x40039a=a204_0x58ac,_0x1c1ef5=_0x2998ee();while(!![]){try{const _0x30ed61=-parseInt(_0x40039a(0x15b))/0x1*(-parseInt(_0x40039a(0x160))/0x2)+parseInt(_0x40039a(0x15a))/0x3+-parseInt(_0x40039a(0x167))/0x4*(parseInt(_0x40039a(0x162))/0x5)+-parseInt(_0x40039a(0x15f))/0x6*(-parseInt(_0x40039a(0x161))/0x7)+-parseInt(_0x40039a(0x16b))/0x8*(parseInt(_0x40039a(0x163))/0x9)+parseInt(_0x40039a(0x16c))/0xa*(-parseInt(_0x40039a(0x165))/0xb)+-parseInt(_0x40039a(0x170))/0xc;if(_0x30ed61===_0x1971de)break;else _0x1c1ef5['push'](_0x1c1ef5['shift']());}catch(_0x11b0cf){_0x1c1ef5['push'](_0x1c1ef5['shift']());}}}(a204_0x49b5,0x53d3d));import{format}from'prettier';function a204_0x49b5(){const _0x590f7a=['entries','4eCWYEQ','map','find','message','16lfTSwr','14230EZxmBi','filter','.jsx','all','371640hioDmW','trim','.tsx','typescript','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','274002rrinox','1KcryEK','some','page\x20files','babel','93768clgxxy','1355366lmqSiZ','301DQagBU','406155enGaLS','2238183cPIyrI','toLowerCase','3773hABbuw'];a204_0x49b5=function(){return _0x590f7a;};return a204_0x49b5();}const SOURCE_PARSERS={'.js':a204_0x5eec95(0x15e),'.jsx':a204_0x5eec95(0x15e),'.ts':'typescript','.tsx':a204_0x5eec95(0x158)},CUSTOM_PAGE_EXTENSIONS=[a204_0x5eec95(0x16e),a204_0x5eec95(0x172)];export async function validateCustomPageSourceFiles(_0x3d8e6b){const _0x41882a=a204_0x5eec95,_0x4d2fe8=Object[_0x41882a(0x166)](_0x3d8e6b)[_0x41882a(0x16d)](([_0x1e7ced])=>getParser(_0x1e7ced));if(!_0x4d2fe8[_0x41882a(0x15c)](([_0x1c7734])=>isReactSourceFile(_0x1c7734)))return[{'file':_0x41882a(0x15d),'message':_0x41882a(0x159)}];const _0x16c0ac=await Promise[_0x41882a(0x16f)](_0x4d2fe8[_0x41882a(0x168)](async([_0x670224,_0xc0ac2])=>{const _0x56860d=_0x41882a;try{return await format(_0xc0ac2,{'parser':getParser(_0x670224)}),undefined;}catch(_0x38042f){return{'file':_0x670224,'message':_0x38042f instanceof Error?_0x38042f[_0x56860d(0x16a)]:String(_0x38042f)};}}));return _0x16c0ac[_0x41882a(0x16d)](_0x29504f=>_0x29504f!==undefined);}function a204_0x58ac(_0x2f05a9,_0x5713e2){_0x2f05a9=_0x2f05a9-0x158;const _0x49b5a3=a204_0x49b5();let _0x58ac5a=_0x49b5a3[_0x2f05a9];return _0x58ac5a;}function getParser(_0x57febc){const _0x39fedb=a204_0x5eec95,_0x425cc0=_0x57febc[_0x39fedb(0x171)]()['toLowerCase']();return Object[_0x39fedb(0x166)](SOURCE_PARSERS)[_0x39fedb(0x169)](([_0x493b57])=>_0x425cc0['endsWith'](_0x493b57))?.[0x1];}function isReactSourceFile(_0x241445){const _0xc01c4d=a204_0x5eec95,_0x249d72=_0x241445[_0xc01c4d(0x171)]()[_0xc01c4d(0x164)]();return CUSTOM_PAGE_EXTENSIONS[_0xc01c4d(0x15c)](_0x464f72=>_0x249d72['endsWith'](_0x464f72));}
@@ -1 +1 @@
1
- const a205_0xa85d97=a205_0x59c9;function a205_0x59c9(_0x4c176c,_0x104503){_0x4c176c=_0x4c176c-0x147;const _0x26c2b3=a205_0x26c2();let _0x59c9eb=_0x26c2b3[_0x4c176c];return _0x59c9eb;}(function(_0x414eeb,_0x26a21f){const _0x18d44d=a205_0x59c9,_0x5ba916=_0x414eeb();while(!![]){try{const _0x5d43f3=parseInt(_0x18d44d(0x14f))/0x1*(parseInt(_0x18d44d(0x163))/0x2)+-parseInt(_0x18d44d(0x14c))/0x3*(parseInt(_0x18d44d(0x166))/0x4)+-parseInt(_0x18d44d(0x153))/0x5+parseInt(_0x18d44d(0x157))/0x6+parseInt(_0x18d44d(0x151))/0x7*(-parseInt(_0x18d44d(0x14d))/0x8)+-parseInt(_0x18d44d(0x154))/0x9+parseInt(_0x18d44d(0x15f))/0xa;if(_0x5d43f3===_0x26a21f)break;else _0x5ba916['push'](_0x5ba916['shift']());}catch(_0x29517d){_0x5ba916['push'](_0x5ba916['shift']());}}}(a205_0x26c2,0x62618));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x26c2(){const _0x34af15=['compress','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','validation','apiError','page-dir','12159030zwPlFT','page.custom-update','Directory\x20containing\x20all\x20complete\x20page\x20files','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','82PxxDYp','page-content','Custom\x20Page\x20ID','81288fVderf','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','newVersion','pageId','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page','pageContent','appCode','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','6xxuuTd','24HdPgut','number','2833CWVzAs','write','49315kCZKbO','Updated\x20Custom\x20Page\x20','1550880gHNpaF','6431688olXZgv','cookie','str','944994IYpkOA','string','custom-update'];a205_0x26c2=function(){return _0x34af15;};return a205_0x26c2();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0xa85d97(0x148),'command':a205_0xa85d97(0x159),'description':a205_0xa85d97(0x14b),'risk':a205_0xa85d97(0x150),'defaultOutputFormat':a205_0xa85d97(0x15a),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0xa85d97(0x164),'message':a205_0xa85d97(0x15b),'hint':a205_0xa85d97(0x147)}],'flags':[{'name':'id','type':a205_0xa85d97(0x14e),'required':!![],'description':a205_0xa85d97(0x165)},{'name':a205_0xa85d97(0x15e),'type':a205_0xa85d97(0x158),'required':!![],'description':a205_0xa85d97(0x161)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf2b76a){readCustomPageId(_0xf2b76a),await readValidatedPageContent(_0xf2b76a);},async 'dryRun'(_0x143e74){const _0xc2dc14=a205_0xa85d97,_0x5e92b0=await readInput(_0x143e74);return{'method':'POST','url':'/smartapi/webcode/page/update/content','body':{'id':_0x5e92b0[_0xc2dc14(0x169)],'codeContent':_0x5e92b0[_0xc2dc14(0x149)]},'description':_0xc2dc14(0x167)+_0x5e92b0[_0xc2dc14(0x169)]+'.'};},async 'execute'(_0x334773){const _0x18be60=a205_0xa85d97,_0x18a218=await readInput(_0x334773),_0x1eb32a=await updateCustomPageContent({'pageId':_0x18a218['pageId'],'pageContent':_0x18a218[_0x18be60(0x149)]});if(!Number['isInteger'](_0x1eb32a[_0x18be60(0x168)])||_0x1eb32a[_0x18be60(0x168)]<=0x0)throw CliErrors[_0x18be60(0x15d)]('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x231001=buildCustomPageEditUrl(_0x18a218[_0x18be60(0x14a)],_0x18a218[_0x18be60(0x169)]),_0x5a56d5=await resolveCustomPageDevelopmentUrl(_0x18a218[_0x18be60(0x14a)],_0x18a218[_0x18be60(0x169)],_0x334773[_0x18be60(0x155)]);return{'ok':!![],'data':{'operation':_0x18be60(0x160),'selector':{'appCode':_0x18a218[_0x18be60(0x14a)],'pageId':_0x18a218['pageId']},'before':null,'after':{'pageId':_0x1eb32a[_0x18be60(0x169)],'version':_0x1eb32a[_0x18be60(0x168)],'pageContent':_0x18a218[_0x18be60(0x149)]},'dryRun':![],'request':_0x18a218,..._0x5a56d5?{'pageUrl':_0x5a56d5}:{},..._0x231001?{'editPageUrl':_0x231001}:{},'warnings':_0x5a56d5?[]:['Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x18be60(0x152)+_0x18a218[_0x18be60(0x169)]+'.'};}};async function readInput(_0x244fa0){const _0x25eb3f=a205_0xa85d97,_0x392566=readCustomPageId(_0x244fa0),_0x440a0b=_0x244fa0[_0x25eb3f(0x156)]('appcode')['trim']()||(await getCustomPageSource(_0x392566))[_0x25eb3f(0x14a)]?.['trim']();if(!_0x440a0b)throw CliErrors[_0x25eb3f(0x15c)](_0x25eb3f(0x162)+_0x392566+'.');return{'appCode':_0x440a0b,'pageId':_0x392566,'pageContent':await readValidatedPageContent(_0x244fa0)};}async function readValidatedPageContent(_0x2b0661){const _0x43ed32=a205_0xa85d97,_0x2256b2=await readCustomPageDirectory(_0x2b0661[_0x43ed32(0x156)](_0x43ed32(0x15e)));return await validateCustomPageContent(_0x2256b2),_0x2256b2;}
1
+ function a205_0xdf6b(_0x5a3d72,_0x216c71){_0x5a3d72=_0x5a3d72-0x79;const _0x13df59=a205_0x13df();let _0xdf6bbf=_0x13df59[_0x5a3d72];return _0xdf6bbf;}const a205_0x89fd39=a205_0xdf6b;(function(_0xf822d8,_0x489a25){const _0x4e229c=a205_0xdf6b,_0x2b84f=_0xf822d8();while(!![]){try{const _0xcc2507=-parseInt(_0x4e229c(0x8f))/0x1*(parseInt(_0x4e229c(0x91))/0x2)+-parseInt(_0x4e229c(0x92))/0x3*(parseInt(_0x4e229c(0x82))/0x4)+-parseInt(_0x4e229c(0x9b))/0x5+parseInt(_0x4e229c(0x8b))/0x6+parseInt(_0x4e229c(0x8a))/0x7+parseInt(_0x4e229c(0x99))/0x8*(-parseInt(_0x4e229c(0x88))/0x9)+parseInt(_0x4e229c(0x84))/0xa;if(_0xcc2507===_0x489a25)break;else _0x2b84f['push'](_0x2b84f['shift']());}catch(_0x20c7a5){_0x2b84f['push'](_0x2b84f['shift']());}}}(a205_0x13df,0x2ed89));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x13df(){const _0x375dcb=['/smartapi/webcode/page/update/content','680645PLKdzQ','number','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page.custom-update','appcode','string','validation','page','newVersion','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','appCode','custom-update','4VDSCow','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','3264350bCAlaa','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','apiError','Updated\x20Custom\x20Page\x20','134847kltarQ','str','221956LOGLcI','1633962slQZMy','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','trim','page-dir','42307fFvvUG','pageId','2oVwJjO','330969fBglFZ','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','compress','pageContent','cookie','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','POST','80rPUpWK'];a205_0x13df=function(){return _0x375dcb;};return a205_0x13df();}export const pageCustomUpdate={'service':a205_0x89fd39(0x7d),'command':a205_0x89fd39(0x81),'description':a205_0x89fd39(0x7f),'risk':'write','defaultOutputFormat':a205_0x89fd39(0x94),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':'page-content','message':a205_0x89fd39(0x83),'hint':a205_0x89fd39(0x9d)}],'flags':[{'name':'id','type':a205_0x89fd39(0x9c),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a205_0x89fd39(0x8e),'type':a205_0x89fd39(0x7b),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x785ae3){readCustomPageId(_0x785ae3),await readValidatedPageContent(_0x785ae3);},async 'dryRun'(_0x4527de){const _0x526213=a205_0x89fd39,_0x28ed6b=await readInput(_0x4527de);return{'method':_0x526213(0x98),'url':_0x526213(0x9a),'body':{'id':_0x28ed6b[_0x526213(0x90)],'codeContent':_0x28ed6b[_0x526213(0x95)]},'description':_0x526213(0x8c)+_0x28ed6b[_0x526213(0x90)]+'.'};},async 'execute'(_0x2c4211){const _0x2cc325=a205_0x89fd39,_0x31fb0a=await readInput(_0x2c4211),_0xb0936e=await updateCustomPageContent({'pageId':_0x31fb0a['pageId'],'pageContent':_0x31fb0a[_0x2cc325(0x95)]});if(!Number['isInteger'](_0xb0936e['newVersion'])||_0xb0936e[_0x2cc325(0x7e)]<=0x0)throw CliErrors[_0x2cc325(0x86)](_0x2cc325(0x97));const _0x3aaa2c=buildCustomPageEditUrl(_0x31fb0a[_0x2cc325(0x80)],_0x31fb0a[_0x2cc325(0x90)]),_0xe8b0cf=await resolveCustomPageDevelopmentUrl(_0x31fb0a[_0x2cc325(0x80)],_0x31fb0a[_0x2cc325(0x90)],_0x2c4211[_0x2cc325(0x96)]);return{'ok':!![],'data':{'operation':_0x2cc325(0x79),'selector':{'appCode':_0x31fb0a[_0x2cc325(0x80)],'pageId':_0x31fb0a['pageId']},'before':null,'after':{'pageId':_0xb0936e[_0x2cc325(0x90)],'version':_0xb0936e['newVersion'],'pageContent':_0x31fb0a[_0x2cc325(0x95)]},'dryRun':![],'request':_0x31fb0a,..._0xe8b0cf?{'pageUrl':_0xe8b0cf}:{},..._0x3aaa2c?{'editPageUrl':_0x3aaa2c}:{},'warnings':_0xe8b0cf?[]:[_0x2cc325(0x85)]},'message':_0x2cc325(0x87)+_0x31fb0a[_0x2cc325(0x90)]+'.'};}};async function readInput(_0x2b2fcf){const _0x14bec0=a205_0x89fd39,_0x365b74=readCustomPageId(_0x2b2fcf),_0x9fcd83=_0x2b2fcf[_0x14bec0(0x89)](_0x14bec0(0x7a))['trim']()||(await getCustomPageSource(_0x365b74))[_0x14bec0(0x80)]?.[_0x14bec0(0x8d)]();if(!_0x9fcd83)throw CliErrors[_0x14bec0(0x7c)](_0x14bec0(0x93)+_0x365b74+'.');return{'appCode':_0x9fcd83,'pageId':_0x365b74,'pageContent':await readValidatedPageContent(_0x2b2fcf)};}async function readValidatedPageContent(_0x25f6e6){const _0x2988e5=a205_0x89fd39,_0x568596=await readCustomPageDirectory(_0x25f6e6[_0x2988e5(0x89)](_0x2988e5(0x8e)));return await validateCustomPageContent(_0x568596),_0x568596;}
@@ -1 +1 @@
1
- const a206_0x57d1ca=a206_0x4d97;(function(_0x3713cb,_0x324798){const _0xec9e71=a206_0x4d97,_0x4b17bf=_0x3713cb();while(!![]){try{const _0x554aad=-parseInt(_0xec9e71(0xdb))/0x1*(-parseInt(_0xec9e71(0xc5))/0x2)+-parseInt(_0xec9e71(0xc8))/0x3*(-parseInt(_0xec9e71(0xd2))/0x4)+parseInt(_0xec9e71(0xd8))/0x5+-parseInt(_0xec9e71(0xdc))/0x6+parseInt(_0xec9e71(0xcb))/0x7+-parseInt(_0xec9e71(0xca))/0x8+-parseInt(_0xec9e71(0xcc))/0x9;if(_0x554aad===_0x324798)break;else _0x4b17bf['push'](_0x4b17bf['shift']());}catch(_0xc8264b){_0x4b17bf['push'](_0x4b17bf['shift']());}}}(a206_0x2597,0xb3080));function a206_0x2597(){const _0x4fb7ee=['4324642ywDeYA','4079394ZdeYQX','nextAction','status','page','GET','data-list-status','320XtIOWK','manualResolutionRequired','read','length','/smartapi/lovrabet/dataset/','alias','4740610GCmxgf','/standard-page-status?appCode=','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','1265333wAHExM','5422968evBJpv','source','relatedPages','query-data-list-status','related-pages-fallback','2fAuOOR','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','12681YrOZxc','code','8632120gatOcF'];a206_0x2597=function(){return _0x4fb7ee;};return a206_0x2597();}function a206_0x4d97(_0x1b70bb,_0xde1720){_0x1b70bb=_0x1b70bb-0xc4;const _0x259746=a206_0x2597();let _0x4d973c=_0x259746[_0x1b70bb];return _0x4d973c;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x57d1ca(0xcf),'command':a206_0x57d1ca(0xd1),'description':a206_0x57d1ca(0xda),'risk':a206_0x57d1ca(0xd4),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x57d1ca(0xd7),'type':'string','description':a206_0x57d1ca(0xc6)}],async 'validate'(_0x59c9c6){validateDatasetSelector(_0x59c9c6);},async 'dryRun'(_0x19db95){const _0x3f549b=a206_0x57d1ca,_0x159fd1=await loadDatasetDetailForPage(_0x19db95);return{'method':_0x3f549b(0xd0),'url':_0x3f549b(0xd6)+_0x159fd1[_0x3f549b(0xc9)]+_0x3f549b(0xd9)+encodeURIComponent(_0x19db95['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x159fd1['id'],'code':_0x159fd1[_0x3f549b(0xc9)],'name':_0x159fd1[_0x3f549b(0xc7)]},'action':_0x3f549b(0xdf)})};},async 'execute'(_0x5a7226){const _0x500f8d=a206_0x57d1ca,_0x426d7a=await loadDatasetDetailForPage(_0x5a7226),_0xa35c1=await loadDataListPageStatusForGenerate(_0x5a7226,_0x426d7a[_0x500f8d(0xc9)]),_0x2191fd=getUndeletedRelatedPages(_0x426d7a),_0x1df420=assessDataListPageState(_0x426d7a[_0x500f8d(0xc9)],_0xa35c1,{'fallbackUndeletedPages':_0x2191fd});return{'ok':!![],'data':{'datasetCode':_0x426d7a['code'],'precheckSource':_0xa35c1?.[_0x500f8d(0xdd)]??_0x500f8d(0xc4),'status':_0x1df420[_0x500f8d(0xce)],'manualResolutionRequired':_0x1df420[_0x500f8d(0xd3)],'nextAction':_0x1df420[_0x500f8d(0xcd)],'dataListPageStatus':_0xa35c1,'relatedPages':{'total':_0x426d7a[_0x500f8d(0xde)][_0x500f8d(0xd5)],'undeletedCount':_0x2191fd[_0x500f8d(0xd5)]}}};}};
1
+ function a206_0xd96d(){const _0x4736b1=['compress','54tKIbuJ','query-data-list-status','401035RiAizf','2997863kxzISA','page','nextAction','16IjLXfn','/smartapi/lovrabet/dataset/','read','code','data-list-status','GET','relatedPages','string','35021ybeNLz','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','alias','length','758nzxaSf','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','3489HfAzHu','125514bXEqtK','290BXFVZR','281931SSwtjw','2764120oIjgcf'];a206_0xd96d=function(){return _0x4736b1;};return a206_0xd96d();}const a206_0x2b7dc1=a206_0x56fe;(function(_0x27474c,_0x428963){const _0x1f88ec=a206_0x56fe,_0x4df015=_0x27474c();while(!![]){try{const _0xcbdbc3=-parseInt(_0x1f88ec(0xb6))/0x1+-parseInt(_0x1f88ec(0xb1))/0x2*(-parseInt(_0x1f88ec(0xb3))/0x3)+parseInt(_0x1f88ec(0xbf))/0x4*(parseInt(_0x1f88ec(0xbb))/0x5)+-parseInt(_0x1f88ec(0xb9))/0x6*(parseInt(_0x1f88ec(0xc7))/0x7)+-parseInt(_0x1f88ec(0xb7))/0x8+-parseInt(_0x1f88ec(0xb4))/0x9*(-parseInt(_0x1f88ec(0xb5))/0xa)+-parseInt(_0x1f88ec(0xbc))/0xb;if(_0xcbdbc3===_0x428963)break;else _0x4df015['push'](_0x4df015['shift']());}catch(_0x37f32b){_0x4df015['push'](_0x4df015['shift']());}}}(a206_0xd96d,0x35f69));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a206_0x56fe(_0xabdb00,_0x4f6c40){_0xabdb00=_0xabdb00-0xae;const _0xd96d3c=a206_0xd96d();let _0x56fedc=_0xd96d3c[_0xabdb00];return _0x56fedc;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x2b7dc1(0xbd),'command':a206_0x2b7dc1(0xc3),'description':a206_0x2b7dc1(0xae),'risk':a206_0x2b7dc1(0xc1),'defaultOutputFormat':a206_0x2b7dc1(0xb8),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x2b7dc1(0xaf),'type':a206_0x2b7dc1(0xc6),'description':a206_0x2b7dc1(0xb2)}],async 'validate'(_0x11a55a){validateDatasetSelector(_0x11a55a);},async 'dryRun'(_0x4f48e8){const _0x4471f1=a206_0x2b7dc1,_0x9fab0a=await loadDatasetDetailForPage(_0x4f48e8);return{'method':_0x4471f1(0xc4),'url':_0x4471f1(0xc0)+_0x9fab0a[_0x4471f1(0xc2)]+'/standard-page-status?appCode='+encodeURIComponent(_0x4f48e8['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x9fab0a['id'],'code':_0x9fab0a['code'],'name':_0x9fab0a['name']},'action':_0x4471f1(0xba)})};},async 'execute'(_0xfd5b){const _0x3d78d4=a206_0x2b7dc1,_0xdaf463=await loadDatasetDetailForPage(_0xfd5b),_0x398c5f=await loadDataListPageStatusForGenerate(_0xfd5b,_0xdaf463[_0x3d78d4(0xc2)]),_0x3c755e=getUndeletedRelatedPages(_0xdaf463),_0x31ead2=assessDataListPageState(_0xdaf463[_0x3d78d4(0xc2)],_0x398c5f,{'fallbackUndeletedPages':_0x3c755e});return{'ok':!![],'data':{'datasetCode':_0xdaf463[_0x3d78d4(0xc2)],'precheckSource':_0x398c5f?.['source']??'related-pages-fallback','status':_0x31ead2['status'],'manualResolutionRequired':_0x31ead2['manualResolutionRequired'],'nextAction':_0x31ead2[_0x3d78d4(0xbe)],'dataListPageStatus':_0x398c5f,'relatedPages':{'total':_0xdaf463[_0x3d78d4(0xc5)][_0x3d78d4(0xb0)],'undeletedCount':_0x3c755e[_0x3d78d4(0xb0)]}}};}};
@@ -1 +1 @@
1
- function a207_0x3d80(_0x2ea8b0,_0xcaf35){_0x2ea8b0=_0x2ea8b0-0x148;const _0x24873b=a207_0x2487();let _0x3d8047=_0x24873b[_0x2ea8b0];return _0x3d8047;}const a207_0x5bc296=a207_0x3d80;function a207_0x2487(){const _0x211199=['dataset','source','write','clientOperationId','string','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','status','appCode','nextAction','apply','48154mZkyGx','CRUD_PAGE_SET','SUCCESS','code','taskId','manualResolutionRequired','2783120gdlOVr','153880jtNgCZ','1799zBlcOb','/generate-standard-pages/start','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','Submitted\x20a\x20generate\x20task','message','name','3148pneSSi','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','/smartapi/lovrabet/dataset/','related-pages-fallback','15ufouKZ','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','precheck','number','dataListPageStatus','DATA_LIST','allowGenerate','dryRun','fieldCount','progressRate','bool','4536801FXJUdU','operationId','Reusing\x20an\x20existing\x20generate\x20task','2457968UyABfh','POST','generate-start','currentStep','reused','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','6054kWnnPb','alias','55FmTcIe','1395mNTmRm','page-type'];a207_0x2487=function(){return _0x211199;};return a207_0x2487();}(function(_0x4b6667,_0xc4834){const _0x16301b=a207_0x3d80,_0x1da91b=_0x4b6667();while(!![]){try{const _0x2922d4=-parseInt(_0x16301b(0x16a))/0x1*(-parseInt(_0x16301b(0x158))/0x2)+parseInt(_0x16301b(0x14a))/0x3*(-parseInt(_0x16301b(0x166))/0x4)+parseInt(_0x16301b(0x15e))/0x5+parseInt(_0x16301b(0x17e))/0x6*(-parseInt(_0x16301b(0x160))/0x7)+-parseInt(_0x16301b(0x178))/0x8+parseInt(_0x16301b(0x175))/0x9+parseInt(_0x16301b(0x15f))/0xa*(-parseInt(_0x16301b(0x149))/0xb);if(_0x2922d4===_0xc4834)break;else _0x1da91b['push'](_0x1da91b['shift']());}catch(_0x21a5b9){_0x1da91b['push'](_0x1da91b['shift']());}}}(a207_0x2487,0x64afe));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':'page','command':a207_0x5bc296(0x17a),'description':a207_0x5bc296(0x16b),'risk':a207_0x5bc296(0x14e),'defaultOutputFormat':'compress','rejectedFlags':[{'name':a207_0x5bc296(0x14b),'message':a207_0x5bc296(0x151),'hint':a207_0x5bc296(0x153)},{'name':'page-pattern','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':a207_0x5bc296(0x167)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x5bc296(0x148),'type':a207_0x5bc296(0x150),'description':a207_0x5bc296(0x152)},{'name':a207_0x5bc296(0x157),'type':'boolean','description':a207_0x5bc296(0x162)}],async 'validate'(_0x282fb4){validateDatasetSelector(_0x282fb4);},async 'dryRun'(_0x3490a3){const _0x1e4928=a207_0x5bc296,_0x2b2e8f=await prepare(_0x3490a3);return{'method':_0x1e4928(0x179),'url':_0x1e4928(0x168)+_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x15b)]+_0x1e4928(0x161),'body':{'appCode':_0x3490a3[_0x1e4928(0x155)],'clientOperationId':_0x2b2e8f[_0x1e4928(0x14f)]},'description':serializeDryRunDescription({'dataset':{'id':_0x2b2e8f[_0x1e4928(0x14c)]['id'],'code':_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x15b)],'name':_0x2b2e8f[_0x1e4928(0x14c)][_0x1e4928(0x165)],'fieldCount':_0x2b2e8f['dataset'][_0x1e4928(0x172)]},'precheckSource':_0x2b2e8f[_0x1e4928(0x16e)]?.[_0x1e4928(0x14d)]??_0x1e4928(0x169),'action':'generate-start','clientOperationId':_0x2b2e8f[_0x1e4928(0x14f)],'plannedStatus':_0x2b2e8f[_0x1e4928(0x16c)][_0x1e4928(0x154)],'reason':_0x2b2e8f[_0x1e4928(0x16c)]['message']})};},async 'execute'(_0x207da7){const _0x3a745b=a207_0x5bc296;if(!_0x207da7[_0x3a745b(0x174)]('apply')){const _0x5aedc0=await pageGenerateStart[_0x3a745b(0x171)](_0x207da7);return{'ok':!![],'message':_0x3a745b(0x17d),'data':_0x5aedc0};}const _0x178a17=await prepare(_0x207da7);if(!_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x170)])return{'ok':![],'message':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x164)],'data':{'datasetCode':_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],'pageType':'DATA_LIST','pagePattern':_0x3a745b(0x159),'clientOperationId':_0x178a17[_0x3a745b(0x14f)],'precheckSource':_0x178a17[_0x3a745b(0x16e)]?.[_0x3a745b(0x14d)]??_0x3a745b(0x169),'status':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x154)],'manualResolutionRequired':_0x178a17[_0x3a745b(0x16c)][_0x3a745b(0x15d)],'nextAction':_0x178a17['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],_0x207da7['appCode'])},'dataListPageStatus':_0x178a17[_0x3a745b(0x16e)]}};const _0x473567=await startGenerateDataListPages(_0x207da7['appCode'],_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],{'clientOperationId':_0x178a17[_0x3a745b(0x14f)]}),_0x2b6931=_0x473567['status']===_0x3a745b(0x15a)||_0x473567[_0x3a745b(0x154)]==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x207da7,_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)]):null,_0x30b52a=assessGenerateOperationState(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],_0x473567[_0x3a745b(0x154)],_0x2b6931);return{'ok':!![],'message':_0x473567['reused']?_0x3a745b(0x177):_0x3a745b(0x163),'data':{'datasetCode':_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],'appCode':_0x207da7[_0x3a745b(0x155)],'pageType':_0x3a745b(0x16f),'pagePattern':'CRUD_PAGE_SET','taskId':_0x473567[_0x3a745b(0x15c)]??null,'operationId':_0x473567[_0x3a745b(0x176)]??null,'clientOperationId':_0x178a17[_0x3a745b(0x14f)],'jobStatus':_0x473567['status']??null,'progressRate':typeof _0x473567['progressRate']===_0x3a745b(0x16d)?_0x473567[_0x3a745b(0x173)]:null,'currentStep':_0x473567[_0x3a745b(0x17b)]??null,'reused':_0x473567[_0x3a745b(0x17c)]===!![],'status':_0x30b52a[_0x3a745b(0x154)],'manualResolutionRequired':_0x30b52a[_0x3a745b(0x15d)],'nextAction':_0x30b52a[_0x3a745b(0x156)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x178a17[_0x3a745b(0x14c)][_0x3a745b(0x15b)],{'appCode':_0x207da7[_0x3a745b(0x155)],'taskId':_0x473567['taskId'],'operationId':_0x473567[_0x3a745b(0x176)],'clientOperationId':_0x178a17[_0x3a745b(0x14f)]})},'dataListPageStatus':_0x2b6931}};}};async function prepare(_0x44ecdd){const _0x1e3d28=a207_0x5bc296,_0x50c429=await loadDatasetDetailForPage(_0x44ecdd),_0x4f9ef0=await loadDataListPageStatusForGenerate(_0x44ecdd,_0x50c429[_0x1e3d28(0x15b)]),_0x3b57c3=getUndeletedRelatedPages(_0x50c429);return{'dataset':_0x50c429,'dataListPageStatus':_0x4f9ef0,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x50c429[_0x1e3d28(0x15b)],_0x4f9ef0,{'fallbackUndeletedPages':_0x3b57c3})};}
1
+ const a207_0x482db5=a207_0x3998;function a207_0x3998(_0x112ae7,_0x20fe55){_0x112ae7=_0x112ae7-0x1a5;const _0x370569=a207_0x3705();let _0x3998a9=_0x370569[_0x112ae7];return _0x3998a9;}(function(_0x2e3b86,_0x4bd648){const _0x1852fa=a207_0x3998,_0x5d5763=_0x2e3b86();while(!![]){try{const _0x2c7b45=-parseInt(_0x1852fa(0x1ac))/0x1*(-parseInt(_0x1852fa(0x1cc))/0x2)+parseInt(_0x1852fa(0x1cf))/0x3*(parseInt(_0x1852fa(0x1b3))/0x4)+parseInt(_0x1852fa(0x1ad))/0x5*(-parseInt(_0x1852fa(0x1b5))/0x6)+-parseInt(_0x1852fa(0x1cd))/0x7+-parseInt(_0x1852fa(0x1ce))/0x8+parseInt(_0x1852fa(0x1a9))/0x9+-parseInt(_0x1852fa(0x1d8))/0xa*(-parseInt(_0x1852fa(0x1b4))/0xb);if(_0x2c7b45===_0x4bd648)break;else _0x5d5763['push'](_0x5d5763['shift']());}catch(_0x4234d4){_0x5d5763['push'](_0x5d5763['shift']());}}}(a207_0x3705,0x7f643));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':'page','command':a207_0x482db5(0x1c4),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a207_0x482db5(0x1c6),'defaultOutputFormat':a207_0x482db5(0x1c9),'rejectedFlags':[{'name':a207_0x482db5(0x1b6),'message':a207_0x482db5(0x1c7),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':'page-pattern','message':a207_0x482db5(0x1d6),'hint':a207_0x482db5(0x1a8)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x482db5(0x1a5),'type':'string','description':a207_0x482db5(0x1b0)},{'name':a207_0x482db5(0x1d0),'type':'boolean','description':a207_0x482db5(0x1d3)}],async 'validate'(_0x302ea5){validateDatasetSelector(_0x302ea5);},async 'dryRun'(_0x4b5cc2){const _0x23dfbb=a207_0x482db5,_0x1e62b8=await prepare(_0x4b5cc2);return{'method':_0x23dfbb(0x1af),'url':_0x23dfbb(0x1d5)+_0x1e62b8[_0x23dfbb(0x1d4)][_0x23dfbb(0x1d9)]+_0x23dfbb(0x1a7),'body':{'appCode':_0x4b5cc2['appCode'],'clientOperationId':_0x1e62b8[_0x23dfbb(0x1a6)]},'description':serializeDryRunDescription({'dataset':{'id':_0x1e62b8[_0x23dfbb(0x1d4)]['id'],'code':_0x1e62b8[_0x23dfbb(0x1d4)][_0x23dfbb(0x1d9)],'name':_0x1e62b8['dataset'][_0x23dfbb(0x1bc)],'fieldCount':_0x1e62b8['dataset'][_0x23dfbb(0x1b7)]},'precheckSource':_0x1e62b8[_0x23dfbb(0x1d1)]?.[_0x23dfbb(0x1bb)]??'related-pages-fallback','action':_0x23dfbb(0x1c4),'clientOperationId':_0x1e62b8[_0x23dfbb(0x1a6)],'plannedStatus':_0x1e62b8[_0x23dfbb(0x1c1)][_0x23dfbb(0x1b1)],'reason':_0x1e62b8['precheck'][_0x23dfbb(0x1bf)]})};},async 'execute'(_0x308b05){const _0x2d63e8=a207_0x482db5;if(!_0x308b05[_0x2d63e8(0x1bd)](_0x2d63e8(0x1d0))){const _0x3eaa4a=await pageGenerateStart['dryRun'](_0x308b05);return{'ok':!![],'message':_0x2d63e8(0x1b2),'data':_0x3eaa4a};}const _0x4d680e=await prepare(_0x308b05);if(!_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1ab)])return{'ok':![],'message':_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1bf)],'data':{'datasetCode':_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],'pageType':_0x2d63e8(0x1c3),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)],'precheckSource':_0x4d680e['dataListPageStatus']?.['source']??_0x2d63e8(0x1c2),'status':_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1b1)],'manualResolutionRequired':_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1c8)],'nextAction':_0x4d680e['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],_0x308b05[_0x2d63e8(0x1be)])},'dataListPageStatus':_0x4d680e[_0x2d63e8(0x1d1)]}};const _0x18b726=await startGenerateDataListPages(_0x308b05[_0x2d63e8(0x1be)],_0x4d680e['dataset']['code'],{'clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)]}),_0xedc5cf=_0x18b726['status']===_0x2d63e8(0x1ae)||_0x18b726[_0x2d63e8(0x1b1)]===_0x2d63e8(0x1ca)?await loadDataListPageStatusForGenerate(_0x308b05,_0x4d680e['dataset'][_0x2d63e8(0x1d9)]):null,_0x393561=assessGenerateOperationState(_0x4d680e[_0x2d63e8(0x1d4)]['code'],_0x18b726[_0x2d63e8(0x1b1)],_0xedc5cf);return{'ok':!![],'message':_0x18b726[_0x2d63e8(0x1d2)]?_0x2d63e8(0x1b8):_0x2d63e8(0x1ba),'data':{'datasetCode':_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],'appCode':_0x308b05[_0x2d63e8(0x1be)],'pageType':'DATA_LIST','pagePattern':_0x2d63e8(0x1d7),'taskId':_0x18b726[_0x2d63e8(0x1aa)]??null,'operationId':_0x18b726[_0x2d63e8(0x1b9)]??null,'clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)],'jobStatus':_0x18b726[_0x2d63e8(0x1b1)]??null,'progressRate':typeof _0x18b726[_0x2d63e8(0x1c5)]===_0x2d63e8(0x1cb)?_0x18b726[_0x2d63e8(0x1c5)]:null,'currentStep':_0x18b726[_0x2d63e8(0x1c0)]??null,'reused':_0x18b726[_0x2d63e8(0x1d2)]===!![],'status':_0x393561['status'],'manualResolutionRequired':_0x393561[_0x2d63e8(0x1c8)],'nextAction':_0x393561['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],{'appCode':_0x308b05[_0x2d63e8(0x1be)],'taskId':_0x18b726[_0x2d63e8(0x1aa)],'operationId':_0x18b726[_0x2d63e8(0x1b9)],'clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)]})},'dataListPageStatus':_0xedc5cf}};}};function a207_0x3705(){const _0x5ebe15=['1766510xSJwmZ','code','alias','clientOperationId','/generate-standard-pages/start','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','2445480jIuqFi','taskId','allowGenerate','322ltghSv','926645JQbAwR','SUCCESS','POST','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','status','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','1816TkpLcV','77nFmGJc','24DLJjEg','page-type','fieldCount','Reusing\x20an\x20existing\x20generate\x20task','operationId','Submitted\x20a\x20generate\x20task','source','name','bool','appCode','message','currentStep','precheck','related-pages-fallback','DATA_LIST','generate-start','progressRate','write','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','manualResolutionRequired','compress','PARTIAL_SUCCESS','number','738iuiKmW','5137027ICSJWJ','4156072bahOAH','5877wnZsmH','apply','dataListPageStatus','reused','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','dataset','/smartapi/lovrabet/dataset/','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','CRUD_PAGE_SET'];a207_0x3705=function(){return _0x5ebe15;};return a207_0x3705();}async function prepare(_0x55a791){const _0x21db43=a207_0x482db5,_0x53b789=await loadDatasetDetailForPage(_0x55a791),_0x5adc56=await loadDataListPageStatusForGenerate(_0x55a791,_0x53b789[_0x21db43(0x1d9)]),_0x12be6d=getUndeletedRelatedPages(_0x53b789);return{'dataset':_0x53b789,'dataListPageStatus':_0x5adc56,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x53b789[_0x21db43(0x1d9)],_0x5adc56,{'fallbackUndeletedPages':_0x12be6d})};}
@@ -1 +1 @@
1
- const a208_0x527061=a208_0x276d;(function(_0x83071a,_0x2bfe0d){const _0x473280=a208_0x276d,_0x29da59=_0x83071a();while(!![]){try{const _0x5a9723=parseInt(_0x473280(0x67))/0x1*(-parseInt(_0x473280(0x69))/0x2)+-parseInt(_0x473280(0x74))/0x3+parseInt(_0x473280(0x64))/0x4+-parseInt(_0x473280(0x8a))/0x5+-parseInt(_0x473280(0x78))/0x6*(parseInt(_0x473280(0x8e))/0x7)+-parseInt(_0x473280(0x6d))/0x8*(parseInt(_0x473280(0x6b))/0x9)+-parseInt(_0x473280(0x72))/0xa*(-parseInt(_0x473280(0x7d))/0xb);if(_0x5a9723===_0x2bfe0d)break;else _0x29da59['push'](_0x29da59['shift']());}catch(_0x4e5f01){_0x29da59['push'](_0x29da59['shift']());}}}(a208_0x3e9e,0x27a5d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0x276d(_0x466283,_0x2f40b7){_0x466283=_0x466283-0x64;const _0x3e9eb2=a208_0x3e9e();let _0x276d07=_0x3e9eb2[_0x466283];return _0x276d07;}function a208_0x3e9e(){const _0x499827=['manualResolutionRequired','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','progressRate','1226050VWylNw','taskId','number','alias','77DEMqeu','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','1016532kzbSAV','str','/smartapi/lovrabet/dataset/','2pGymAv','name','294608OxGHOY','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','18ldGHIH','page','891736bcevNj','client-operation-id','compress','operation-id','GET','7069950zecUxt','operationId','52794TKxftx','/generate-standard-pages/status?','clientOperationId','status','10026TwEwrV','toString','string','task-id','operation_failed','11QVvGJu','generate-status','read','code','currentStep','errorMsg','query-generate-operation-status','set','message','appCode'];a208_0x3e9e=function(){return _0x499827;};return a208_0x3e9e();}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x527061(0x6c),'command':a208_0x527061(0x7e),'description':a208_0x527061(0x88),'risk':a208_0x527061(0x7f),'defaultOutputFormat':a208_0x527061(0x6f),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x527061(0x8d),'type':a208_0x527061(0x7a),'description':a208_0x527061(0x6a)},{'name':a208_0x527061(0x7b),'type':a208_0x527061(0x7a),'description':'Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x527061(0x70),'type':a208_0x527061(0x7a),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x527061(0x6e),'type':a208_0x527061(0x7a),'description':a208_0x527061(0x8f)}],async 'validate'(_0x2484e9){validateDatasetSelector(_0x2484e9),validateGenerateOperationSelector(_0x2484e9);},async 'dryRun'(_0x33773f){const _0x4253b4=a208_0x527061,_0x21ac94=await loadDatasetDetailForPage(_0x33773f),_0x104d74=_0x33773f[_0x4253b4(0x65)](_0x4253b4(0x7b)),_0x2e8ad7=_0x33773f[_0x4253b4(0x65)]('operation-id'),_0x337859=_0x33773f[_0x4253b4(0x65)](_0x4253b4(0x6e)),_0xa6f0=new URLSearchParams({'appCode':_0x33773f['appCode']});return _0x104d74&&_0xa6f0[_0x4253b4(0x84)](_0x4253b4(0x8b),_0x104d74),_0x2e8ad7&&_0xa6f0['set'](_0x4253b4(0x73),_0x2e8ad7),_0x337859&&_0xa6f0['set'](_0x4253b4(0x76),_0x337859),{'method':_0x4253b4(0x71),'url':_0x4253b4(0x66)+_0x21ac94[_0x4253b4(0x80)]+_0x4253b4(0x75)+_0xa6f0[_0x4253b4(0x79)](),'description':serializeDryRunDescription({'dataset':{'id':_0x21ac94['id'],'code':_0x21ac94[_0x4253b4(0x80)],'name':_0x21ac94[_0x4253b4(0x68)]},'action':_0x4253b4(0x83),'taskId':_0x104d74||undefined,'operationId':_0x2e8ad7||undefined,'clientOperationId':_0x337859||undefined})};},async 'execute'(_0x23432b){const _0x267842=a208_0x527061,_0x205364=await loadDatasetDetailForPage(_0x23432b),_0x49d252=_0x23432b[_0x267842(0x65)](_0x267842(0x7b)),_0x294c2d=_0x23432b['str'](_0x267842(0x70)),_0x26a67a=_0x23432b[_0x267842(0x65)]('client-operation-id'),_0xa9c918=await getGenerateDataListPagesStatus(_0x23432b[_0x267842(0x86)],_0x205364[_0x267842(0x80)],{'taskId':_0x49d252||undefined,'operationId':_0x294c2d||undefined,'clientOperationId':_0x26a67a||undefined}),_0x3872c6=_0xa9c918['status']==='SUCCESS'||_0xa9c918[_0x267842(0x77)]==='PARTIAL_SUCCESS',_0x323584=_0x3872c6?await loadDataListPageStatusForGenerate(_0x23432b,_0x205364[_0x267842(0x80)]):null,_0x301785=assessGenerateOperationState(_0x205364['code'],_0xa9c918[_0x267842(0x77)],_0x323584),_0x42bc20=_0xa9c918['taskId']??_0x49d252??undefined,_0x457d1b=_0xa9c918[_0x267842(0x73)]??_0x294c2d??undefined,_0xe8a409=_0xa9c918[_0x267842(0x76)]??_0x26a67a??undefined;return{'ok':!![],'message':_0x301785['status']===_0x267842(0x7c)?_0xa9c918[_0x267842(0x82)]||_0x301785[_0x267842(0x85)]:_0x301785[_0x267842(0x85)],'data':{'datasetCode':_0x205364[_0x267842(0x80)],'appCode':_0x23432b['appCode'],'taskId':_0x42bc20,'operationId':_0x457d1b,'clientOperationId':_0xe8a409,'jobStatus':_0xa9c918[_0x267842(0x77)]??null,'progressRate':typeof _0xa9c918[_0x267842(0x89)]===_0x267842(0x8c)?_0xa9c918[_0x267842(0x89)]:null,'currentStep':_0xa9c918[_0x267842(0x81)]??null,'errorMsg':_0xa9c918[_0x267842(0x82)]??null,'status':_0x301785['status'],'manualResolutionRequired':_0x301785[_0x267842(0x87)],'nextAction':_0x301785['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x205364[_0x267842(0x80)],{'appCode':_0x23432b['appCode'],'taskId':_0x42bc20,'operationId':_0x457d1b,'clientOperationId':_0xe8a409})},'dataListPageStatus':_0x323584,'result':_0xa9c918['result']??null}};}};
1
+ const a208_0x4a2060=a208_0xfc5f;(function(_0x28bfa8,_0x38bb79){const _0x203da7=a208_0xfc5f,_0x476c09=_0x28bfa8();while(!![]){try{const _0x486b33=parseInt(_0x203da7(0xc8))/0x1+parseInt(_0x203da7(0xb4))/0x2*(parseInt(_0x203da7(0xc3))/0x3)+-parseInt(_0x203da7(0xd6))/0x4+-parseInt(_0x203da7(0xc0))/0x5+parseInt(_0x203da7(0xb8))/0x6+parseInt(_0x203da7(0xc6))/0x7+parseInt(_0x203da7(0xc7))/0x8*(-parseInt(_0x203da7(0xbe))/0x9);if(_0x486b33===_0x38bb79)break;else _0x476c09['push'](_0x476c09['shift']());}catch(_0x5733dc){_0x476c09['push'](_0x476c09['shift']());}}}(a208_0x2897,0xa6c91));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';function a208_0x2897(){const _0x3a89f6=['string','progressRate','PARTIAL_SUCCESS','currentStep','GET','clientOperationId','operation-id','appCode','set','4644304RlZigO','result','message','number','manualResolutionRequired','str','105208sRTNKz','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','operationId','page','7188012dghxNP','alias','errorMsg','code','/generate-standard-pages/status?','status','2137635EihHUo','/smartapi/lovrabet/dataset/','4867730VdlNwb','operation_failed','generate-status','6SkQeug','task-id','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','5031908aUSUee','16xKGAhw','1270751vapgJM','taskId','query-generate-operation-status','client-operation-id','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'];a208_0x2897=function(){return _0x3a89f6;};return a208_0x2897();}function a208_0xfc5f(_0x19869b,_0x5534c3){_0x19869b=_0x19869b-0xb4;const _0x28972d=a208_0x2897();let _0xfc5f80=_0x28972d[_0x19869b];return _0xfc5f80;}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x4a2060(0xb7),'command':a208_0x4a2060(0xc2),'description':a208_0x4a2060(0xc5),'risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x4a2060(0xb9),'type':a208_0x4a2060(0xcd),'description':a208_0x4a2060(0xb5)},{'name':a208_0x4a2060(0xc4),'type':a208_0x4a2060(0xcd),'description':'Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x4a2060(0xd3),'type':a208_0x4a2060(0xcd),'description':a208_0x4a2060(0xcc)},{'name':a208_0x4a2060(0xcb),'type':a208_0x4a2060(0xcd),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x14dee8){validateDatasetSelector(_0x14dee8),validateGenerateOperationSelector(_0x14dee8);},async 'dryRun'(_0x2b9117){const _0x1d3bfe=a208_0x4a2060,_0x5d2544=await loadDatasetDetailForPage(_0x2b9117),_0x52b982=_0x2b9117['str'](_0x1d3bfe(0xc4)),_0x99b18c=_0x2b9117['str'](_0x1d3bfe(0xd3)),_0x16352d=_0x2b9117[_0x1d3bfe(0xdb)](_0x1d3bfe(0xcb)),_0x4dea58=new URLSearchParams({'appCode':_0x2b9117['appCode']});return _0x52b982&&_0x4dea58[_0x1d3bfe(0xd5)](_0x1d3bfe(0xc9),_0x52b982),_0x99b18c&&_0x4dea58[_0x1d3bfe(0xd5)](_0x1d3bfe(0xb6),_0x99b18c),_0x16352d&&_0x4dea58['set']('clientOperationId',_0x16352d),{'method':_0x1d3bfe(0xd1),'url':_0x1d3bfe(0xbf)+_0x5d2544[_0x1d3bfe(0xbb)]+_0x1d3bfe(0xbc)+_0x4dea58['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x5d2544['id'],'code':_0x5d2544[_0x1d3bfe(0xbb)],'name':_0x5d2544['name']},'action':_0x1d3bfe(0xca),'taskId':_0x52b982||undefined,'operationId':_0x99b18c||undefined,'clientOperationId':_0x16352d||undefined})};},async 'execute'(_0x294447){const _0x4e69ec=a208_0x4a2060,_0x3f02cb=await loadDatasetDetailForPage(_0x294447),_0x1392ec=_0x294447[_0x4e69ec(0xdb)]('task-id'),_0x29c207=_0x294447[_0x4e69ec(0xdb)](_0x4e69ec(0xd3)),_0x252d25=_0x294447[_0x4e69ec(0xdb)](_0x4e69ec(0xcb)),_0x5a7bb4=await getGenerateDataListPagesStatus(_0x294447['appCode'],_0x3f02cb[_0x4e69ec(0xbb)],{'taskId':_0x1392ec||undefined,'operationId':_0x29c207||undefined,'clientOperationId':_0x252d25||undefined}),_0x28f5d9=_0x5a7bb4[_0x4e69ec(0xbd)]==='SUCCESS'||_0x5a7bb4[_0x4e69ec(0xbd)]===_0x4e69ec(0xcf),_0x3e0233=_0x28f5d9?await loadDataListPageStatusForGenerate(_0x294447,_0x3f02cb['code']):null,_0x2b5c65=assessGenerateOperationState(_0x3f02cb[_0x4e69ec(0xbb)],_0x5a7bb4[_0x4e69ec(0xbd)],_0x3e0233),_0x7b0d1a=_0x5a7bb4[_0x4e69ec(0xc9)]??_0x1392ec??undefined,_0x372eaa=_0x5a7bb4['operationId']??_0x29c207??undefined,_0xab46a7=_0x5a7bb4[_0x4e69ec(0xd2)]??_0x252d25??undefined;return{'ok':!![],'message':_0x2b5c65[_0x4e69ec(0xbd)]===_0x4e69ec(0xc1)?_0x5a7bb4[_0x4e69ec(0xba)]||_0x2b5c65[_0x4e69ec(0xd8)]:_0x2b5c65[_0x4e69ec(0xd8)],'data':{'datasetCode':_0x3f02cb['code'],'appCode':_0x294447[_0x4e69ec(0xd4)],'taskId':_0x7b0d1a,'operationId':_0x372eaa,'clientOperationId':_0xab46a7,'jobStatus':_0x5a7bb4['status']??null,'progressRate':typeof _0x5a7bb4[_0x4e69ec(0xce)]===_0x4e69ec(0xd9)?_0x5a7bb4[_0x4e69ec(0xce)]:null,'currentStep':_0x5a7bb4[_0x4e69ec(0xd0)]??null,'errorMsg':_0x5a7bb4['errorMsg']??null,'status':_0x2b5c65[_0x4e69ec(0xbd)],'manualResolutionRequired':_0x2b5c65[_0x4e69ec(0xda)],'nextAction':_0x2b5c65['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3f02cb['code'],{'appCode':_0x294447[_0x4e69ec(0xd4)],'taskId':_0x7b0d1a,'operationId':_0x372eaa,'clientOperationId':_0xab46a7})},'dataListPageStatus':_0x3e0233,'result':_0x5a7bb4[_0x4e69ec(0xd7)]??null}};}};
@@ -1 +1 @@
1
- (function(_0x5de13e,_0x253914){const _0x42534d=a209_0x2154,_0x2b7cbe=_0x5de13e();while(!![]){try{const _0x2b49fe=parseInt(_0x42534d(0x143))/0x1+parseInt(_0x42534d(0x148))/0x2*(-parseInt(_0x42534d(0x149))/0x3)+parseInt(_0x42534d(0x144))/0x4+-parseInt(_0x42534d(0x142))/0x5*(-parseInt(_0x42534d(0x147))/0x6)+parseInt(_0x42534d(0x14a))/0x7+-parseInt(_0x42534d(0x145))/0x8*(-parseInt(_0x42534d(0x146))/0x9)+-parseInt(_0x42534d(0x14b))/0xa;if(_0x2b49fe===_0x253914)break;else _0x2b7cbe['push'](_0x2b7cbe['shift']());}catch(_0x1ef39f){_0x2b7cbe['push'](_0x2b7cbe['shift']());}}}(a209_0x2820,0xd216e));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';function a209_0x2154(_0x483f0e,_0x53b3b6){_0x483f0e=_0x483f0e-0x142;const _0x2820bb=a209_0x2820();let _0x215409=_0x2820bb[_0x483f0e];return _0x215409;}import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a209_0x2820(){const _0x3e5e08=['43385qANIRG','1419672xIGiuK','3230944bfZMiE','4695112pMwwuH','18sRyGiF','840TeoWzy','435588lmFxlw','9oyLKWp','7820848WOQHSG','42193220HIXlDj'];a209_0x2820=function(){return _0x3e5e08;};return a209_0x2820();}import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
1
+ (function(_0x254b38,_0x476cba){const _0x56c6ca=a209_0x3f8d,_0x2fa1e4=_0x254b38();while(!![]){try{const _0x4bb185=parseInt(_0x56c6ca(0xe2))/0x1*(-parseInt(_0x56c6ca(0xe3))/0x2)+parseInt(_0x56c6ca(0xe4))/0x3+-parseInt(_0x56c6ca(0xde))/0x4*(parseInt(_0x56c6ca(0xe0))/0x5)+-parseInt(_0x56c6ca(0xdd))/0x6*(parseInt(_0x56c6ca(0xe5))/0x7)+parseInt(_0x56c6ca(0xe1))/0x8+parseInt(_0x56c6ca(0xdf))/0x9+-parseInt(_0x56c6ca(0xdc))/0xa;if(_0x4bb185===_0x476cba)break;else _0x2fa1e4['push'](_0x2fa1e4['shift']());}catch(_0x58227a){_0x2fa1e4['push'](_0x2fa1e4['shift']());}}}(a209_0x4354,0x33af5));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';function a209_0x4354(){const _0x7fe697=['188eLCVCd','2299860DErcYh','5705EFXFoM','2239552ouElxI','53349WBlfvI','2qWOzHJ','179784EUstqN','7kIgLxW','1176940HkeMZl','954246jOnpiM'];a209_0x4354=function(){return _0x7fe697;};return a209_0x4354();}import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';function a209_0x3f8d(_0x67059d,_0x33d2c5){_0x67059d=_0x67059d-0xdc;const _0x4354c5=a209_0x4354();let _0x3f8d86=_0x4354c5[_0x67059d];return _0x3f8d86;}import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
@@ -1 +1 @@
1
- function a210_0x182a(_0x3db2a7,_0x5bedc6){_0x3db2a7=_0x3db2a7-0x1cb;const _0x4b60aa=a210_0x4b60();let _0x182a36=_0x4b60aa[_0x3db2a7];return _0x182a36;}const a210_0x28b6bd=a210_0x182a;(function(_0x22f86b,_0x5f3cc6){const _0x140edb=a210_0x182a,_0x22f8bd=_0x22f86b();while(!![]){try{const _0x58dd32=parseInt(_0x140edb(0x1f4))/0x1*(-parseInt(_0x140edb(0x1d4))/0x2)+parseInt(_0x140edb(0x1cd))/0x3+parseInt(_0x140edb(0x1df))/0x4+-parseInt(_0x140edb(0x1f9))/0x5+parseInt(_0x140edb(0x1f5))/0x6*(-parseInt(_0x140edb(0x1e6))/0x7)+-parseInt(_0x140edb(0x1ce))/0x8*(parseInt(_0x140edb(0x1dc))/0x9)+parseInt(_0x140edb(0x1ef))/0xa*(parseInt(_0x140edb(0x1fa))/0xb);if(_0x58dd32===_0x5f3cc6)break;else _0x22f8bd['push'](_0x22f8bd['shift']());}catch(_0x6355b8){_0x22f8bd['push'](_0x22f8bd['shift']());}}}(a210_0x4b60,0xa8258));import{writeFile}from'node:fs/promises';function a210_0x4b60(){const _0x85d08b=['datasetCode','1iKDXyu','15846vsfANz','name','version-tag','map','4660970YXUgel','25651054WiMsbO','pull','localPath','all','mode','utf8','conflict','deleted','lockFilePath','Pull\x20complete:\x20','would_pull','pages','filter','appCode','4107288tyQSMg','384VyLyem','/smartapi/lovrabet/detail?pageId=','items','push','compress','pageId','258742zSRzUQ','reason','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','\x20pulled,\x20','code','status','page','datasetIds','218799RmbJQO','string','relatedPages','1914436wrwMjp','hash','detail','versionTag','GET','length','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','3346nquRmc','number','alias','toISOString','type','validation','bool','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','single','10wvfpgw','pageVersion','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','Page\x20ID'];a210_0x4b60=function(){return _0x85d08b;};return a210_0x4b60();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a210_0x28b6bd(0x1da),'command':a210_0x28b6bd(0x1fb),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':'read','defaultOutputFormat':a210_0x28b6bd(0x1d2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x28b6bd(0x1e7),'description':a210_0x28b6bd(0x1f2)},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x28b6bd(0x1e8),'type':a210_0x28b6bd(0x1dd),'description':a210_0x28b6bd(0x1f1)},{'name':a210_0x28b6bd(0x1f7),'type':a210_0x28b6bd(0x1dd),'description':a210_0x28b6bd(0x1ed)},{'name':'force','type':'boolean','description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x518857){validatePageTargetSelector(_0x518857);},async 'dryRun'(_0x1ed2b0){const _0x1b927c=a210_0x28b6bd,_0x4bc641=await buildPullPlan(_0x1ed2b0);return{'method':_0x1b927c(0x1e3),'url':_0x4bc641['mode']===_0x1b927c(0x1ee)?_0x1b927c(0x1cf)+(_0x4bc641[_0x1b927c(0x1d0)][0x0]?.[_0x1b927c(0x1e1)][_0x1b927c(0x1d3)]??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0x1ed2b0[_0x1b927c(0x1cc)],'mode':_0x4bc641[_0x1b927c(0x1fe)],'targetDatasetCode':_0x4bc641[_0x1b927c(0x1f3)]??null,'pages':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1f8)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x4bc641[_0x1b927c(0x1fe)],'datasetCode':_0x4bc641[_0x1b927c(0x1f3)]??null,'totalCandidates':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1e4)],'totalWouldPull':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1cb)](_0x165628=>_0x165628[_0x1b927c(0x1d9)]===_0x1b927c(0x204))[_0x1b927c(0x1e4)],'totalConflicts':_0x4bc641[_0x1b927c(0x1d0)][_0x1b927c(0x1cb)](_0x1043da=>_0x1043da['status']===_0x1b927c(0x200))[_0x1b927c(0x1e4)]})};},async 'execute'(_0x509a01){const _0x2fe316=a210_0x28b6bd,_0x1ae625=loadPageProjectConfig(_0x509a01[_0x2fe316(0x1cc)]),_0x4d969e=await readPageLockFile(_0x1ae625[_0x2fe316(0x202)]),{lockData:_0x190633,appLock:_0x2fe5e3}=ensurePageLockScope(_0x4d969e??createEmptyPageLock(),_0x509a01[_0x2fe316(0x1cc)]),_0x414b7c=await buildPullPlan(_0x509a01),_0x7dde13=_0x509a01[_0x2fe316(0x1ec)]('force');if(_0x414b7c['mode']===_0x2fe316(0x1ee)&&_0x414b7c[_0x2fe316(0x1d0)][0x0]?.[_0x2fe316(0x1d9)]===_0x2fe316(0x200)&&!_0x7dde13)throw CliErrors[_0x2fe316(0x1eb)](_0x2fe316(0x1e5)+_0x414b7c[_0x2fe316(0x1d0)][0x0]['localPath'],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x50e20b=[],_0x1ef866=[];for(const _0x526cf3 of _0x414b7c[_0x2fe316(0x1d0)]){if(_0x526cf3[_0x2fe316(0x1d9)]===_0x2fe316(0x200)&&!_0x7dde13){_0x1ef866[_0x2fe316(0x1d1)]({'pageId':_0x526cf3[_0x2fe316(0x1e1)]['pageId'],'type':_0x526cf3['detail'][_0x2fe316(0x1ea)],'title':_0x526cf3['detail']['name'],'localPath':_0x526cf3[_0x2fe316(0x1fc)],'reason':_0x526cf3[_0x2fe316(0x1d5)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x526cf3['localPath']);const _0x5d59f7=serializePageSchemaForFile(_0x526cf3[_0x2fe316(0x1e1)][_0x2fe316(0x1d8)]);await writeFile(_0x526cf3['localPath'],_0x5d59f7,_0x2fe316(0x1ff)),_0x2fe5e3[_0x2fe316(0x205)][String(_0x526cf3[_0x2fe316(0x1e1)][_0x2fe316(0x1d3)])]=buildLockEntry(_0x526cf3[_0x2fe316(0x1e1)],_0x5d59f7),_0x50e20b['push']({'pageId':_0x526cf3[_0x2fe316(0x1e1)]['pageId'],'type':_0x526cf3['detail']['type'],'title':_0x526cf3['detail'][_0x2fe316(0x1f6)],'localPath':_0x526cf3[_0x2fe316(0x1fc)]});}return _0x2fe5e3['lastSync']=new Date()[_0x2fe316(0x1e9)](),await writePageLockFile(_0x1ae625[_0x2fe316(0x202)],_0x190633),{'ok':!![],'message':_0x2fe316(0x203)+_0x50e20b['length']+_0x2fe316(0x1d7)+_0x1ef866[_0x2fe316(0x1e4)]+'\x20skipped','data':{'appCode':_0x509a01[_0x2fe316(0x1cc)],'pulledPages':_0x50e20b,'skippedPages':_0x1ef866,'totalPulled':_0x50e20b['length'],'totalSkipped':_0x1ef866[_0x2fe316(0x1e4)]}};}};async function buildPullPlan(_0x2473dd){const _0xb918d2=a210_0x28b6bd,_0x434797=loadPageProjectConfig(_0x2473dd[_0xb918d2(0x1cc)]),_0x2e5657=await readPageLockFile(_0x434797[_0xb918d2(0x202)]),{appLock:_0x4bb310}=ensurePageLockScope(_0x2e5657??createEmptyPageLock(),_0x2473dd[_0xb918d2(0x1cc)]),_0x5a9466=getPageIdFlag(_0x2473dd);if(_0x5a9466!==undefined){const _0x49e978=await loadPageDetailForPage(_0x2473dd,_0x5a9466);return{'mode':'single','items':[await inspectPullTarget(_0x434797,_0x4bb310[_0xb918d2(0x205)][String(_0x49e978[_0xb918d2(0x1d3)])],_0x49e978)]};}const _0x5264f6=await loadDatasetDetailForPage(_0x2473dd),_0x10e070=_0x5264f6[_0xb918d2(0x1de)]['filter'](_0x129ef5=>!_0x129ef5[_0xb918d2(0x201)]);if(_0x10e070['length']===0x0)throw CliErrors['validation']('Dataset\x20\x22'+_0x5264f6[_0xb918d2(0x1d8)]+_0xb918d2(0x1d6));const _0x42fd67=await Promise[_0xb918d2(0x1fd)](_0x10e070[_0xb918d2(0x1f8)](_0x5daa4d=>loadPageDetailForPage(_0x2473dd,_0x5daa4d['id']))),_0x5d6c48=selectVersionTagGroup(_0x42fd67,_0x1b87d9=>_0x1b87d9['versionTag'],_0x2473dd['str'](_0xb918d2(0x1f7)));return{'mode':'batch','datasetCode':_0x5264f6['code'],'items':await Promise['all'](_0x5d6c48[_0xb918d2(0x1d0)][_0xb918d2(0x1f8)](_0x15f9ac=>inspectPullTarget(_0x434797,_0x4bb310[_0xb918d2(0x205)][String(_0x15f9ac[_0xb918d2(0x1d3)])],_0x15f9ac)))};}async function inspectPullTarget(_0x1ecb75,_0x191765,_0x59acca){const _0x1b79a1=a210_0x28b6bd,_0xb87a55=resolvePageFilePath(_0x1ecb75,_0x59acca[_0x1b79a1(0x1d3)],_0x59acca['type']),_0x5eacb0=await fileExists(_0xb87a55);if(!_0x5eacb0){const _0x36de92=serializePageSchemaForFile(_0x59acca[_0x1b79a1(0x1d8)]);return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':computePageContentHash(_0x36de92),'status':_0x1b79a1(0x204)};}const _0x524793=await computePageFileHash(_0xb87a55);if(!_0x191765||_0x524793!==_0x191765[_0x1b79a1(0x1e0)])return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':_0x524793,'status':_0x1b79a1(0x200),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x59acca,'localPath':_0xb87a55,'localHash':_0x524793,'status':_0x1b79a1(0x204)};}function buildLockEntry(_0x29696a,_0x1baeb3){const _0x9a08dc=a210_0x28b6bd;return{'hash':computePageContentHash(_0x1baeb3),'pageId':_0x29696a[_0x9a08dc(0x1d3)],'pageVersion':_0x29696a[_0x9a08dc(0x1f0)],'type':_0x29696a[_0x9a08dc(0x1ea)],'title':_0x29696a[_0x9a08dc(0x1f6)],'datasetIds':_0x29696a[_0x9a08dc(0x1db)],'versionTag':_0x29696a[_0x9a08dc(0x1e2)]};}function toPreviewItem(_0x355d73){const _0x16a771=a210_0x28b6bd;return{'pageId':_0x355d73[_0x16a771(0x1e1)][_0x16a771(0x1d3)],'type':_0x355d73[_0x16a771(0x1e1)][_0x16a771(0x1ea)],'title':_0x355d73[_0x16a771(0x1e1)]['name'],'localPath':_0x355d73[_0x16a771(0x1fc)],'status':_0x355d73[_0x16a771(0x1d9)],..._0x355d73[_0x16a771(0x1d5)]?{'reason':_0x355d73[_0x16a771(0x1d5)]}:{}};}
1
+ const a210_0x53013c=a210_0x1aa0;(function(_0x5dba74,_0xcdfb2a){const _0x45d354=a210_0x1aa0,_0x504918=_0x5dba74();while(!![]){try{const _0x30ae38=-parseInt(_0x45d354(0x9d))/0x1*(parseInt(_0x45d354(0x82))/0x2)+parseInt(_0x45d354(0x78))/0x3*(parseInt(_0x45d354(0xa1))/0x4)+parseInt(_0x45d354(0x92))/0x5*(parseInt(_0x45d354(0xa6))/0x6)+-parseInt(_0x45d354(0x86))/0x7*(parseInt(_0x45d354(0x93))/0x8)+parseInt(_0x45d354(0x6f))/0x9*(parseInt(_0x45d354(0x8a))/0xa)+-parseInt(_0x45d354(0x79))/0xb+parseInt(_0x45d354(0xa2))/0xc;if(_0x30ae38===_0xcdfb2a)break;else _0x504918['push'](_0x504918['shift']());}catch(_0x38152e){_0x504918['push'](_0x504918['shift']());}}}(a210_0x16c9,0x8505e));function a210_0x1aa0(_0x3250bf,_0x4b0ccc){_0x3250bf=_0x3250bf-0x68;const _0x16c9dc=a210_0x16c9();let _0x1aa06a=_0x16c9dc[_0x3250bf];return _0x1aa06a;}import{writeFile}from'node:fs/promises';function a210_0x16c9(){const _0x576a0f=['mode','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','5MEArqo','136TyaYaN','deleted','/smartapi/lovrabet/detail?pageId=','\x20skipped','compress','pages','toISOString','detail','pageVersion','type','79orRmSa','boolean','Dataset\x20\x22','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','592060AyLkQi','5523768jxEzqZ','string','number','appCode','2713992tPqLgk','batch','would_pull','relatedPages','version-tag','GET','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','status','Pull\x20complete:\x20','str','9nwwVNg','all','reason','versionTag','datasetIds','pull','lastSync','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','3pcLiti','8712473dmsfEf','local\x20unsynced\x20changes','alias','push','items','map','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','validation','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','528TZvCcv','pageId','bool','filter','7651lOACGO','conflict','code','single','3156810QLikUI','lockFilePath','datasetCode','\x20pulled,\x20','localPath','length'];a210_0x16c9=function(){return _0x576a0f;};return a210_0x16c9();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x53013c(0x74),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':'read','defaultOutputFormat':a210_0x53013c(0x97),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x53013c(0xa4),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x53013c(0x7b),'type':a210_0x53013c(0xa3),'description':a210_0x53013c(0x76)},{'name':a210_0x53013c(0x69),'type':a210_0x53013c(0xa3),'description':a210_0x53013c(0x81)},{'name':'force','type':a210_0x53013c(0x9e),'description':a210_0x53013c(0xa0)}],async 'validate'(_0x2be6e7){validatePageTargetSelector(_0x2be6e7);},async 'dryRun'(_0x55193a){const _0x2fee33=a210_0x53013c,_0xc4e172=await buildPullPlan(_0x55193a);return{'method':_0x2fee33(0x6a),'url':_0xc4e172[_0x2fee33(0x90)]===_0x2fee33(0x89)?_0x2fee33(0x95)+(_0xc4e172['items'][0x0]?.[_0x2fee33(0x9a)]['pageId']??''):_0x2fee33(0x91),'body':{'appCode':_0x55193a['appCode'],'mode':_0xc4e172[_0x2fee33(0x90)],'targetDatasetCode':_0xc4e172[_0x2fee33(0x8c)]??null,'pages':_0xc4e172['items'][_0x2fee33(0x7e)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0xc4e172[_0x2fee33(0x90)],'datasetCode':_0xc4e172['datasetCode']??null,'totalCandidates':_0xc4e172[_0x2fee33(0x7d)]['length'],'totalWouldPull':_0xc4e172['items'][_0x2fee33(0x85)](_0xea2135=>_0xea2135[_0x2fee33(0x6c)]===_0x2fee33(0xa8))['length'],'totalConflicts':_0xc4e172['items'][_0x2fee33(0x85)](_0x2e186d=>_0x2e186d['status']==='conflict')['length']})};},async 'execute'(_0x1ff34e){const _0x1902ef=a210_0x53013c,_0x5a7af3=loadPageProjectConfig(_0x1ff34e[_0x1902ef(0xa5)]),_0x4cec96=await readPageLockFile(_0x5a7af3[_0x1902ef(0x8b)]),{lockData:_0x3a0f13,appLock:_0x559b74}=ensurePageLockScope(_0x4cec96??createEmptyPageLock(),_0x1ff34e['appCode']),_0x5adb02=await buildPullPlan(_0x1ff34e),_0x4326a7=_0x1ff34e[_0x1902ef(0x84)]('force');if(_0x5adb02[_0x1902ef(0x90)]===_0x1902ef(0x89)&&_0x5adb02[_0x1902ef(0x7d)][0x0]?.[_0x1902ef(0x6c)]===_0x1902ef(0x87)&&!_0x4326a7)throw CliErrors[_0x1902ef(0x80)](_0x1902ef(0x6b)+_0x5adb02[_0x1902ef(0x7d)][0x0]['localPath'],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x25c197=[],_0x4c7e9d=[];for(const _0x224118 of _0x5adb02[_0x1902ef(0x7d)]){if(_0x224118[_0x1902ef(0x6c)]==='conflict'&&!_0x4326a7){_0x4c7e9d[_0x1902ef(0x7c)]({'pageId':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x83)],'type':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x9c)],'title':_0x224118['detail']['name'],'localPath':_0x224118['localPath'],'reason':_0x224118[_0x1902ef(0x71)]??_0x1902ef(0x7a)});continue;}await ensureParentDirectory(_0x224118[_0x1902ef(0x8e)]);const _0x46bd00=serializePageSchemaForFile(_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x88)]);await writeFile(_0x224118[_0x1902ef(0x8e)],_0x46bd00,'utf8'),_0x559b74['pages'][String(_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x83)])]=buildLockEntry(_0x224118[_0x1902ef(0x9a)],_0x46bd00),_0x25c197[_0x1902ef(0x7c)]({'pageId':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x83)],'type':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x9c)],'title':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x77)],'localPath':_0x224118['localPath']});}return _0x559b74[_0x1902ef(0x75)]=new Date()[_0x1902ef(0x99)](),await writePageLockFile(_0x5a7af3['lockFilePath'],_0x3a0f13),{'ok':!![],'message':_0x1902ef(0x6d)+_0x25c197['length']+_0x1902ef(0x8d)+_0x4c7e9d[_0x1902ef(0x8f)]+_0x1902ef(0x96),'data':{'appCode':_0x1ff34e[_0x1902ef(0xa5)],'pulledPages':_0x25c197,'skippedPages':_0x4c7e9d,'totalPulled':_0x25c197[_0x1902ef(0x8f)],'totalSkipped':_0x4c7e9d['length']}};}};async function buildPullPlan(_0xb2455d){const _0x53cebc=a210_0x53013c,_0x581c73=loadPageProjectConfig(_0xb2455d[_0x53cebc(0xa5)]),_0x2a19c3=await readPageLockFile(_0x581c73[_0x53cebc(0x8b)]),{appLock:_0x591c66}=ensurePageLockScope(_0x2a19c3??createEmptyPageLock(),_0xb2455d[_0x53cebc(0xa5)]),_0x3a45f6=getPageIdFlag(_0xb2455d);if(_0x3a45f6!==undefined){const _0x52d0e3=await loadPageDetailForPage(_0xb2455d,_0x3a45f6);return{'mode':_0x53cebc(0x89),'items':[await inspectPullTarget(_0x581c73,_0x591c66[_0x53cebc(0x98)][String(_0x52d0e3[_0x53cebc(0x83)])],_0x52d0e3)]};}const _0x54aaae=await loadDatasetDetailForPage(_0xb2455d),_0x5122c9=_0x54aaae[_0x53cebc(0x68)][_0x53cebc(0x85)](_0x58fbdd=>!_0x58fbdd[_0x53cebc(0x94)]);if(_0x5122c9[_0x53cebc(0x8f)]===0x0)throw CliErrors[_0x53cebc(0x80)](_0x53cebc(0x9f)+_0x54aaae['code']+_0x53cebc(0x7f));const _0xc41d19=await Promise[_0x53cebc(0x70)](_0x5122c9[_0x53cebc(0x7e)](_0x4b1524=>loadPageDetailForPage(_0xb2455d,_0x4b1524['id']))),_0xe5fc9d=selectVersionTagGroup(_0xc41d19,_0x3fcc01=>_0x3fcc01[_0x53cebc(0x72)],_0xb2455d[_0x53cebc(0x6e)](_0x53cebc(0x69)));return{'mode':_0x53cebc(0xa7),'datasetCode':_0x54aaae[_0x53cebc(0x88)],'items':await Promise[_0x53cebc(0x70)](_0xe5fc9d[_0x53cebc(0x7d)][_0x53cebc(0x7e)](_0x436f40=>inspectPullTarget(_0x581c73,_0x591c66[_0x53cebc(0x98)][String(_0x436f40[_0x53cebc(0x83)])],_0x436f40)))};}async function inspectPullTarget(_0x2610d6,_0x39faaf,_0xf0a79c){const _0x5cd1b0=a210_0x53013c,_0x1aa285=resolvePageFilePath(_0x2610d6,_0xf0a79c['pageId'],_0xf0a79c['type']),_0x32814d=await fileExists(_0x1aa285);if(!_0x32814d){const _0x15d33a=serializePageSchemaForFile(_0xf0a79c[_0x5cd1b0(0x88)]);return{'detail':_0xf0a79c,'localPath':_0x1aa285,'localHash':computePageContentHash(_0x15d33a),'status':'would_pull'};}const _0x14aa2e=await computePageFileHash(_0x1aa285);if(!_0x39faaf||_0x14aa2e!==_0x39faaf['hash'])return{'detail':_0xf0a79c,'localPath':_0x1aa285,'localHash':_0x14aa2e,'status':_0x5cd1b0(0x87),'reason':_0x5cd1b0(0x7a)};return{'detail':_0xf0a79c,'localPath':_0x1aa285,'localHash':_0x14aa2e,'status':'would_pull'};}function buildLockEntry(_0x4571c3,_0x4fc17b){const _0x2cee12=a210_0x53013c;return{'hash':computePageContentHash(_0x4fc17b),'pageId':_0x4571c3[_0x2cee12(0x83)],'pageVersion':_0x4571c3[_0x2cee12(0x9b)],'type':_0x4571c3[_0x2cee12(0x9c)],'title':_0x4571c3[_0x2cee12(0x77)],'datasetIds':_0x4571c3[_0x2cee12(0x73)],'versionTag':_0x4571c3[_0x2cee12(0x72)]};}function toPreviewItem(_0x40a2fc){const _0x5b296d=a210_0x53013c;return{'pageId':_0x40a2fc['detail'][_0x5b296d(0x83)],'type':_0x40a2fc[_0x5b296d(0x9a)]['type'],'title':_0x40a2fc[_0x5b296d(0x9a)][_0x5b296d(0x77)],'localPath':_0x40a2fc[_0x5b296d(0x8e)],'status':_0x40a2fc['status'],..._0x40a2fc[_0x5b296d(0x71)]?{'reason':_0x40a2fc[_0x5b296d(0x71)]}:{}};}