@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2

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 (395) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/logs.d.ts +7 -0
  40. package/lib/commands/bff/logs.js +1 -0
  41. package/lib/commands/bff/pull.js +1 -1
  42. package/lib/commands/bff/push.js +1 -1
  43. package/lib/commands/bff/status.js +1 -1
  44. package/lib/commands/cli-skill/index.js +1 -1
  45. package/lib/commands/cli-update.js +1 -1
  46. package/lib/commands/codegen/index.js +1 -1
  47. package/lib/commands/codegen/sdk.js +1 -1
  48. package/lib/commands/codegen/sql.js +1 -1
  49. package/lib/commands/common/app-registry.js +1 -1
  50. package/lib/commands/common/app-selector.js +1 -1
  51. package/lib/commands/common/async-task.js +1 -1
  52. package/lib/commands/common/dry-run.js +1 -1
  53. package/lib/commands/common/flags.js +1 -1
  54. package/lib/commands/common/local-file.js +1 -1
  55. package/lib/commands/common/validate.js +1 -1
  56. package/lib/commands/config/delete.js +1 -1
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.js +1 -1
  60. package/lib/commands/config/list.js +1 -1
  61. package/lib/commands/config/set.js +1 -1
  62. package/lib/commands/config/shared.js +1 -1
  63. package/lib/commands/dataset/batch-design.d.ts +21 -0
  64. package/lib/commands/dataset/batch-design.js +1 -0
  65. package/lib/commands/dataset/business-group-update.js +1 -1
  66. package/lib/commands/dataset/business-groups.js +1 -1
  67. package/lib/commands/dataset/capability.js +1 -1
  68. package/lib/commands/dataset/delete.js +1 -1
  69. package/lib/commands/dataset/detail.js +1 -1
  70. package/lib/commands/dataset/extend-update.js +1 -1
  71. package/lib/commands/dataset/field-restore.js +1 -1
  72. package/lib/commands/dataset/field-update.js +1 -1
  73. package/lib/commands/dataset/generate.js +1 -1
  74. package/lib/commands/dataset/index.js +1 -1
  75. package/lib/commands/dataset/list.js +1 -1
  76. package/lib/commands/dataset/operations.js +1 -1
  77. package/lib/commands/dataset/relation-audit.js +1 -1
  78. package/lib/commands/dataset/relation-create.js +1 -1
  79. package/lib/commands/dataset/relation-delete.js +1 -1
  80. package/lib/commands/dataset/relation-shared.js +1 -1
  81. package/lib/commands/dataset/relation-update.js +1 -1
  82. package/lib/commands/dataset/relations.js +1 -1
  83. package/lib/commands/dataset/rename.js +1 -1
  84. package/lib/commands/dataset/restore.js +1 -1
  85. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  86. package/lib/commands/db/analysis-batching.js +1 -1
  87. package/lib/commands/db/analyze-batch-plan.js +1 -1
  88. package/lib/commands/db/analyze-cancel.js +1 -1
  89. package/lib/commands/db/analyze-start.js +1 -1
  90. package/lib/commands/db/analyze-status.js +1 -1
  91. package/lib/commands/db/create.js +1 -1
  92. package/lib/commands/db/delete.js +1 -1
  93. package/lib/commands/db/detail.js +1 -1
  94. package/lib/commands/db/diff-refresh-start.js +1 -1
  95. package/lib/commands/db/diff-refresh-status.js +1 -1
  96. package/lib/commands/db/diff.js +1 -1
  97. package/lib/commands/db/index.js +1 -1
  98. package/lib/commands/db/list.js +1 -1
  99. package/lib/commands/db/shared.js +1 -1
  100. package/lib/commands/db/table-diff-shared.js +1 -1
  101. package/lib/commands/db/tables.js +1 -1
  102. package/lib/commands/db/test.js +1 -1
  103. package/lib/commands/db/update.js +1 -1
  104. package/lib/commands/deployment/index.js +1 -1
  105. package/lib/commands/deployment/sync-all.js +1 -1
  106. package/lib/commands/deployment/sync-jobs.js +1 -1
  107. package/lib/commands/deployment/sync-status.js +1 -1
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/flow/create.d.ts +2 -0
  111. package/lib/commands/flow/create.js +1 -0
  112. package/lib/commands/flow/detail.d.ts +2 -0
  113. package/lib/commands/flow/detail.js +1 -0
  114. package/lib/commands/flow/index.d.ts +3 -0
  115. package/lib/commands/flow/index.js +1 -0
  116. package/lib/commands/flow/list.d.ts +2 -0
  117. package/lib/commands/flow/list.js +1 -0
  118. package/lib/commands/flow/publish.d.ts +2 -0
  119. package/lib/commands/flow/publish.js +1 -0
  120. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  122. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  123. package/lib/commands/flow/runtime-role-list.js +1 -0
  124. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  126. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  127. package/lib/commands/flow/runtime-user-search.js +1 -0
  128. package/lib/commands/flow/shared.d.ts +41 -0
  129. package/lib/commands/flow/shared.js +1 -0
  130. package/lib/commands/flow/update.d.ts +2 -0
  131. package/lib/commands/flow/update.js +1 -0
  132. package/lib/commands/flow/validate.d.ts +3 -0
  133. package/lib/commands/flow/validate.js +1 -0
  134. package/lib/commands/instant-api-policy/current.js +1 -1
  135. package/lib/commands/instant-api-policy/index.js +1 -1
  136. package/lib/commands/instant-api-policy/init.js +1 -1
  137. package/lib/commands/instant-api-policy/publish.js +1 -1
  138. package/lib/commands/instant-api-policy/pull.js +1 -1
  139. package/lib/commands/instant-api-policy/revision.js +1 -1
  140. package/lib/commands/instant-api-policy/revisions.js +1 -1
  141. package/lib/commands/instant-api-policy/rollback.js +1 -1
  142. package/lib/commands/instant-api-policy/shared.js +1 -1
  143. package/lib/commands/instant-api-policy/validate.js +1 -1
  144. package/lib/commands/issue/index.js +1 -1
  145. package/lib/commands/issue/nudge.js +1 -1
  146. package/lib/commands/issue/report.js +1 -1
  147. package/lib/commands/issue/shared.js +1 -1
  148. package/lib/commands/kb/create.js +1 -1
  149. package/lib/commands/kb/delete.js +1 -1
  150. package/lib/commands/kb/detail.js +1 -1
  151. package/lib/commands/kb/index.js +1 -1
  152. package/lib/commands/kb/list.js +1 -1
  153. package/lib/commands/kb/search.js +1 -1
  154. package/lib/commands/kb/shared.js +1 -1
  155. package/lib/commands/kb/update.js +1 -1
  156. package/lib/commands/logs/index.js +1 -1
  157. package/lib/commands/menu/asset-update.js +1 -1
  158. package/lib/commands/menu/delete.js +1 -1
  159. package/lib/commands/menu/external-link-create.js +1 -1
  160. package/lib/commands/menu/external-link-update.js +1 -1
  161. package/lib/commands/menu/group-create.js +1 -1
  162. package/lib/commands/menu/group-update.js +1 -1
  163. package/lib/commands/menu/index.js +1 -1
  164. package/lib/commands/menu/list.js +1 -1
  165. package/lib/commands/menu/move.js +1 -1
  166. package/lib/commands/menu/regroup-start.js +1 -1
  167. package/lib/commands/menu/rename.js +1 -1
  168. package/lib/commands/menu/shared/compare-table.js +1 -1
  169. package/lib/commands/menu/shared/delete-plan.js +1 -1
  170. package/lib/commands/menu/shared/facts.js +1 -1
  171. package/lib/commands/menu/shared/index.js +1 -1
  172. package/lib/commands/menu/shared/inquirer.js +1 -1
  173. package/lib/commands/menu/shared/local-pages.js +1 -1
  174. package/lib/commands/menu/shared/logic.js +1 -1
  175. package/lib/commands/menu/shared/mutations.js +1 -1
  176. package/lib/commands/menu/shared/service.js +1 -1
  177. package/lib/commands/menu/shared/sync-core.js +1 -1
  178. package/lib/commands/menu/shared/update-core.js +1 -1
  179. package/lib/commands/menu/shared/valid-url.js +1 -1
  180. package/lib/commands/menu/sync.js +1 -1
  181. package/lib/commands/menu/visibility-update.js +1 -1
  182. package/lib/commands/notification/config-create.js +1 -1
  183. package/lib/commands/notification/config-delete.js +1 -1
  184. package/lib/commands/notification/config-list.js +1 -1
  185. package/lib/commands/notification/config-update.js +1 -1
  186. package/lib/commands/notification/index.js +1 -1
  187. package/lib/commands/notification/shared.js +1 -1
  188. package/lib/commands/ocr/index.js +1 -1
  189. package/lib/commands/page/create.js +1 -1
  190. package/lib/commands/page/custom/detail.js +1 -1
  191. package/lib/commands/page/custom/list.js +1 -1
  192. package/lib/commands/page/custom/publish.js +1 -1
  193. package/lib/commands/page/custom/shared.js +1 -1
  194. package/lib/commands/page/custom/syntax.js +1 -1
  195. package/lib/commands/page/custom/update.js +1 -1
  196. package/lib/commands/page/data-list-status.js +1 -1
  197. package/lib/commands/page/generate-start.js +1 -1
  198. package/lib/commands/page/generate-status.js +1 -1
  199. package/lib/commands/page/index.js +1 -1
  200. package/lib/commands/page/pull.js +1 -1
  201. package/lib/commands/page/push.js +1 -1
  202. package/lib/commands/page/relation-audit.js +1 -1
  203. package/lib/commands/page/restore.js +1 -1
  204. package/lib/commands/page/shared.js +1 -1
  205. package/lib/commands/page/sync.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/index.js +1 -1
  254. package/lib/commands/workspace/add.js +1 -1
  255. package/lib/commands/workspace/index.js +1 -1
  256. package/lib/commands/workspace/remove.js +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.d.ts +23 -0
  260. package/lib/config/region-config.js +1 -0
  261. package/lib/config/schema.d.ts +15 -0
  262. package/lib/config/schema.js +1 -1
  263. package/lib/constant/cdn.js +1 -1
  264. package/lib/constant/cli.js +1 -1
  265. package/lib/constant/defaults.js +1 -1
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.js +1 -1
  271. package/lib/constant/risk.js +1 -1
  272. package/lib/constant/routing-profile.js +1 -1
  273. package/lib/context/app-resolver.d.ts +6 -0
  274. package/lib/context/app-resolver.js +1 -1
  275. package/lib/context/auth-resolver.js +1 -1
  276. package/lib/context/config-loader.js +1 -1
  277. package/lib/context.d.ts +13 -0
  278. package/lib/context.js +1 -1
  279. package/lib/core/alias-resolver.js +1 -1
  280. package/lib/core/api-client.d.ts +172 -1
  281. package/lib/core/api-client.js +1 -1
  282. package/lib/core/bff/config.js +1 -1
  283. package/lib/core/bff/file-system.js +1 -1
  284. package/lib/core/bff/hash.js +1 -1
  285. package/lib/core/bff/hook-directory.d.ts +55 -0
  286. package/lib/core/bff/hook-directory.js +1 -0
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/types.d.ts +15 -0
  289. package/lib/core/bff/utils.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.d.ts +628 -0
  292. package/lib/core/flow-config.js +1 -0
  293. package/lib/core/instant-api-policy/config.js +1 -1
  294. package/lib/core/kb-search-client.js +1 -1
  295. package/lib/core/page/file-system.js +1 -1
  296. package/lib/core/page/hash.js +1 -1
  297. package/lib/core/page/lock.js +1 -1
  298. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  299. package/lib/core/page/lr-smart-jsx.js +1 -0
  300. package/lib/core/sql-index-auditor.js +1 -1
  301. package/lib/core/sql-sync/config.js +1 -1
  302. package/lib/core/sql-sync/file-system.js +1 -1
  303. package/lib/core/sql-sync/hash.js +1 -1
  304. package/lib/core/sql-sync/lock.js +1 -1
  305. package/lib/core/sql-sync/utils.js +1 -1
  306. package/lib/core/sql-validator.js +1 -1
  307. package/lib/errors.js +1 -1
  308. package/lib/framework/build-all-flags.js +1 -1
  309. package/lib/framework/error-output.js +1 -1
  310. package/lib/framework/explicit-yes.js +1 -1
  311. package/lib/framework/flags.js +1 -1
  312. package/lib/framework/help.js +1 -1
  313. package/lib/framework/index.js +1 -1
  314. package/lib/framework/output.js +1 -1
  315. package/lib/framework/response.js +1 -1
  316. package/lib/framework/runner-alias.js +1 -1
  317. package/lib/framework/runner.js +1 -1
  318. package/lib/framework/schema-export.js +1 -1
  319. package/lib/framework/supported-flags.js +1 -1
  320. package/lib/framework/types.js +1 -1
  321. package/lib/generated/build-info.d.ts +4 -4
  322. package/lib/generated/build-info.js +1 -1
  323. package/lib/generated/official-routing.js +1 -1
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.js +1 -1
  335. package/lib/skills/skill-presence.js +1 -1
  336. package/lib/telemetry/cli-command-trace.js +1 -1
  337. package/lib/telemetry/cli-help-trace.js +1 -1
  338. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  339. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  340. package/lib/telemetry/send-cli-trace-log.js +1 -1
  341. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  342. package/lib/types/index.d.ts +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.d.ts +2 -8
  350. package/lib/utils/config.js +1 -1
  351. package/lib/utils/entity-with-id.js +1 -1
  352. package/lib/utils/file-utils.js +1 -1
  353. package/lib/utils/guides-cdn.js +1 -1
  354. package/lib/utils/http-client.js +1 -1
  355. package/lib/utils/is-non-interactive.js +1 -1
  356. package/lib/utils/logger.js +1 -1
  357. package/lib/utils/params.js +1 -1
  358. package/lib/utils/platform.js +1 -1
  359. package/lib/utils/sleep.js +1 -1
  360. package/lib/utils/template-replacer.d.ts +2 -1
  361. package/lib/utils/template-replacer.js +1 -1
  362. package/lib/utils/update-notice.js +1 -1
  363. package/lib/utils/version.js +1 -1
  364. package/lib/utils/with-active-cookie.js +1 -1
  365. package/lib/utils/write-cli-side-channel.js +1 -1
  366. package/package.json +1 -1
  367. package/skills/rabetbase/SKILL.md +27 -8
  368. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  369. package/skills/rabetbase/guides/backend-function.md +19 -9
  370. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  371. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  372. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  373. package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
  374. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  375. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  376. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  377. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  378. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  379. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  381. package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
  382. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  383. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  384. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  385. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  386. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  387. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  388. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  389. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  390. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  391. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  392. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  393. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  394. package/skills/rabetbase.manifest.json +9 -3
  395. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- const a159_0x3fe597=a159_0x9571;function a159_0x9571(_0x33442f,_0x2d0839){_0x33442f=_0x33442f-0x1d6;const _0x17d522=a159_0x17d5();let _0x957136=_0x17d522[_0x33442f];return _0x957136;}(function(_0x2508b3,_0x325705){const _0x4720d2=a159_0x9571,_0x44f2d1=_0x2508b3();while(!![]){try{const _0x30abcf=parseInt(_0x4720d2(0x209))/0x1*(parseInt(_0x4720d2(0x1ea))/0x2)+-parseInt(_0x4720d2(0x210))/0x3*(parseInt(_0x4720d2(0x20f))/0x4)+-parseInt(_0x4720d2(0x1d9))/0x5+-parseInt(_0x4720d2(0x202))/0x6*(parseInt(_0x4720d2(0x1dd))/0x7)+-parseInt(_0x4720d2(0x215))/0x8*(parseInt(_0x4720d2(0x1ef))/0x9)+parseInt(_0x4720d2(0x1dc))/0xa*(-parseInt(_0x4720d2(0x212))/0xb)+-parseInt(_0x4720d2(0x1db))/0xc*(-parseInt(_0x4720d2(0x200))/0xd);if(_0x30abcf===_0x325705)break;else _0x44f2d1['push'](_0x44f2d1['shift']());}catch(_0x589ddd){_0x44f2d1['push'](_0x44f2d1['shift']());}}}(a159_0x17d5,0x1c379));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a159_0x17d5(){const _0x41dce7=['/smartapi/webcode/page/create','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','286twvNZa','parse','30LKGYlN','page\x20create\x20does\x20not\x20accept\x20--page-type.','stringify','page-pattern','pageName','keys','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','20zSvTAU','includes','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','pageId','\x20and\x20its\x20menu\x20entry.','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','105816ivVqep','12mJAyTU','Custom_page_','2067439yyIdtu','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','object','1581176UtRoIy','menuPath','appCode','.json','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','validation','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','isNaN','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','361845qIYlId','page-type','258828kEZkwj','10ReXHfy','11284ZUohfJ','some','length','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','string','Would\x20create\x20Custom\x20Page\x20','page-dir','Invalid\x20Custom\x20Page\x20pattern:\x20','apiError','now','DASHBOARD','files','str','21290KecQKD','Created\x20Custom\x20Page\x20','isArray','version','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','9WKKBuk','parentMenuId','../../../templates/custom-pages','trim','page.create','page-content','isInteger','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','utf8','page','BLANK','parent-menu-id','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','values','create'];a159_0x17d5=function(){return _0x41dce7;};return a159_0x17d5();}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=[a159_0x3fe597(0x1f9),'ONEPAGE',a159_0x3fe597(0x1e7)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a159_0x3fe597(0x1f1));export const pageCreate={'service':a159_0x3fe597(0x1f8),'command':a159_0x3fe597(0x1fd),'description':a159_0x3fe597(0x1f6),'risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a159_0x3fe597(0x1da),'message':a159_0x3fe597(0x203),'hint':a159_0x3fe597(0x1d6)},{'name':a159_0x3fe597(0x1f4),'message':a159_0x3fe597(0x1d8),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a159_0x3fe597(0x1e1),'description':a159_0x3fe597(0x1fb)},{'name':a159_0x3fe597(0x1fa),'type':'number','description':a159_0x3fe597(0x1e0)},{'name':'page-pattern','type':a159_0x3fe597(0x1e1),'description':a159_0x3fe597(0x1ff),'enum':CUSTOM_PAGE_PATTERNS},{'name':a159_0x3fe597(0x1e3),'type':a159_0x3fe597(0x1e1),'description':a159_0x3fe597(0x20e)},APPCODE_FLAG],async 'validate'(_0x3f7b92){await readValidatedPageSource(_0x3f7b92);},async 'dryRun'(_0x551df5){const _0x5ce1e2=a159_0x3fe597,_0x5d86d7=readInput(_0x551df5,await readValidatedPageSource(_0x551df5));return{'method':'POST','url':_0x5ce1e2(0x1fe),'body':{'appCode':_0x5d86d7['appCode'],'pageName':_0x5d86d7[_0x5ce1e2(0x206)],..._0x5d86d7['parentMenuId']!=null?{'parentMenuId':_0x5d86d7[_0x5ce1e2(0x1f0)]}:{},'createMenu':_0x5d86d7['createMenu'],'codeContent':_0x5d86d7[_0x5ce1e2(0x1e8)]},'description':_0x5ce1e2(0x1e2)+JSON[_0x5ce1e2(0x204)](_0x5d86d7['pageName'])+_0x5ce1e2(0x20d)};},async 'execute'(_0x1fa884){const _0x1a4a71=a159_0x3fe597,_0x49747e=readInput(_0x1fa884,await readValidatedPageSource(_0x1fa884)),_0x8dd575=await createCustomPage(_0x49747e);if(!Number[_0x1a4a71(0x1f5)](_0x8dd575[_0x1a4a71(0x20c)])||_0x8dd575[_0x1a4a71(0x20c)]<=0x0)throw CliErrors[_0x1a4a71(0x1e5)](_0x1a4a71(0x20b));const _0x5c009e=buildCustomPageDevelopmentUrl(_0x49747e[_0x1a4a71(0x217)],_0x8dd575[_0x1a4a71(0x216)]),_0x5b83ba=buildCustomPageEditUrl(_0x49747e[_0x1a4a71(0x217)],_0x8dd575['pageId']);return{'ok':!![],'data':{'operation':_0x1a4a71(0x1f3),'pageType':'CUSTOM','pagePattern':readPagePattern(_0x1fa884),'selector':{'appCode':_0x49747e[_0x1a4a71(0x217)],'pageName':_0x49747e[_0x1a4a71(0x206)]},'before':null,'after':{'pageId':_0x8dd575['pageId'],'pageName':_0x8dd575[_0x1a4a71(0x206)],'appCode':_0x8dd575[_0x1a4a71(0x217)],'version':_0x8dd575[_0x1a4a71(0x1ed)],'menuId':_0x8dd575['menuId'],'menuPath':_0x8dd575[_0x1a4a71(0x216)],'files':_0x8dd575[_0x1a4a71(0x1e8)]??Object[_0x1a4a71(0x207)](_0x49747e[_0x1a4a71(0x1e8)])},'dryRun':![],'request':_0x49747e,..._0x5c009e?{'pageUrl':_0x5c009e}:{},..._0x5b83ba?{'editPageUrl':_0x5b83ba}:{},'warnings':_0x5c009e?[]:[_0x1a4a71(0x213)]},'message':_0x1a4a71(0x1eb)+_0x8dd575['pageId']+'.'};}};function readPagePattern(_0x2c38f8){const _0x514b3c=a159_0x3fe597,_0x8300a5=_0x2c38f8[_0x514b3c(0x1e9)](_0x514b3c(0x205))[_0x514b3c(0x1f2)](),_0x3440ad=_0x2c38f8[_0x514b3c(0x1e9)]('page-dir')['trim']();if(_0x8300a5&&_0x3440ad)throw CliErrors[_0x514b3c(0x21a)](_0x514b3c(0x1ee));if(_0x3440ad)return null;if(!_0x8300a5)throw CliErrors[_0x514b3c(0x21a)]('Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.');if(!CUSTOM_PAGE_PATTERNS[_0x514b3c(0x20a)](_0x8300a5))throw CliErrors[_0x514b3c(0x21a)](_0x514b3c(0x219));return _0x8300a5;}async function readPageSource(_0x51f76d){const _0x4019cc=a159_0x3fe597,_0xac43d4=_0x51f76d[_0x4019cc(0x1e9)]('page-dir')['trim'](),_0x2a99f5=readPagePattern(_0x51f76d);if(_0x2a99f5===null){const _0x583c9d=await readCustomPageDirectory(_0xac43d4);if(Object['keys'](_0x583c9d)[_0x4019cc(0x1df)]===0x0)throw CliErrors[_0x4019cc(0x21a)](_0x4019cc(0x208));return _0x583c9d;}let _0x4cae47;try{_0x4cae47=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x2a99f5['toLowerCase']()+_0x4019cc(0x218)),_0x4019cc(0x1f7));}catch{throw CliErrors[_0x4019cc(0x21a)]('Custom\x20Page\x20pattern\x20not\x20found:\x20'+_0x2a99f5+'.');}let _0x1b5592;try{_0x1b5592=JSON[_0x4019cc(0x201)](_0x4cae47);}catch{throw CliErrors['validation']('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x2a99f5+'.');}if(!_0x1b5592||typeof _0x1b5592!==_0x4019cc(0x214)||Array[_0x4019cc(0x1ec)](_0x1b5592)||Object[_0x4019cc(0x1fc)](_0x1b5592)[_0x4019cc(0x1de)](_0x46a6f7=>typeof _0x46a6f7!==_0x4019cc(0x1e1)))throw CliErrors[_0x4019cc(0x21a)](_0x4019cc(0x1e4)+_0x2a99f5+'.');return _0x1b5592;}async function readValidatedPageSource(_0x2230a0){const _0x2ee6e6=await readPageSource(_0x2230a0);return await validateCustomPageContent(_0x2ee6e6),_0x2ee6e6;}function readInput(_0x5bb56f,_0x932e52){const _0x5e6ff0=a159_0x3fe597,_0x52b95e=_0x5bb56f[_0x5e6ff0(0x1e9)]('name')[_0x5e6ff0(0x1f2)]()||_0x5e6ff0(0x211)+Date[_0x5e6ff0(0x1e6)]();if(_0x52b95e[_0x5e6ff0(0x1df)]>0x64)throw CliErrors[_0x5e6ff0(0x21a)]('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x300358=_0x5bb56f['num']('parent-menu-id',NaN),_0x2c4105=!Number[_0x5e6ff0(0x1d7)](_0x300358);if(_0x2c4105&&(!Number[_0x5e6ff0(0x1f5)](_0x300358)||_0x300358<=0x0))throw CliErrors[_0x5e6ff0(0x21a)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x5bb56f[_0x5e6ff0(0x217)],'pageName':_0x52b95e,..._0x2c4105?{'parentMenuId':_0x300358}:{},'createMenu':!![],'files':_0x932e52};}
1
+ const a173_0x5c8698=a173_0x10b1;(function(_0x565682,_0x19b18b){const _0x580fe2=a173_0x10b1,_0x43629a=_0x565682();while(!![]){try{const _0x3bb201=parseInt(_0x580fe2(0x152))/0x1*(-parseInt(_0x580fe2(0x170))/0x2)+parseInt(_0x580fe2(0x14a))/0x3*(parseInt(_0x580fe2(0x133))/0x4)+parseInt(_0x580fe2(0x162))/0x5*(parseInt(_0x580fe2(0x150))/0x6)+-parseInt(_0x580fe2(0x16a))/0x7+-parseInt(_0x580fe2(0x13b))/0x8*(-parseInt(_0x580fe2(0x171))/0x9)+parseInt(_0x580fe2(0x14b))/0xa*(-parseInt(_0x580fe2(0x146))/0xb)+parseInt(_0x580fe2(0x15b))/0xc;if(_0x3bb201===_0x19b18b)break;else _0x43629a['push'](_0x43629a['shift']());}catch(_0x4577d6){_0x43629a['push'](_0x43629a['shift']());}}}(a173_0x5dab,0xbbb01));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';function a173_0x5dab(){const _0x41b87d=['2908578pvYTQN','now','1aElRXJ','Created\x20Custom\x20Page\x20','toLowerCase','parent-menu-id','CUSTOM','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','parse','utf8','validation','25271304uCjBXr','name','string','page.create','page\x20create\x20does\x20not\x20accept\x20--page-type.','page-type','parentMenuId','5qRYfuv','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','menuPath','page','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','files','Custom\x20Page\x20pattern\x20not\x20found:\x20','values','6805498jogAlr','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','isNaN','some','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','isArray','1931938atCdPf','36MulyoC','DASHBOARD','14420oFPkSY','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','isInteger','\x20and\x20its\x20menu\x20entry.','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','keys','Invalid\x20Custom\x20Page\x20pattern:\x20','length','1813344SxcQsY','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','apiError','page-pattern','pageName\x20cannot\x20exceed\x20100\x20characters.','appCode','pageName','createMenu','.json','trim','937255gKbIPW','str','/smartapi/webcode/page/create','ONEPAGE','264RMMDNS','130hsCyDB','BLANK','page-dir','pageId','number'];a173_0x5dab=function(){return _0x41b87d;};return a173_0x5dab();}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=[a173_0x5c8698(0x14c),a173_0x5c8698(0x149),a173_0x5c8698(0x172)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),'../../../templates/custom-pages');function a173_0x10b1(_0x56d111,_0x42e087){_0x56d111=_0x56d111-0x133;const _0x5dabba=a173_0x5dab();let _0x10b1d6=_0x5dabba[_0x56d111];return _0x10b1d6;}export const pageCreate={'service':a173_0x5c8698(0x165),'command':'create','description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a173_0x5c8698(0x160),'message':a173_0x5c8698(0x15f),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':'page-content','message':a173_0x5c8698(0x166),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a173_0x5c8698(0x15d),'description':a173_0x5c8698(0x157)},{'name':'parent-menu-id','type':a173_0x5c8698(0x14f),'description':a173_0x5c8698(0x13c)},{'name':'page-pattern','type':a173_0x5c8698(0x15d),'description':'Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','enum':CUSTOM_PAGE_PATTERNS},{'name':a173_0x5c8698(0x14d),'type':a173_0x5c8698(0x15d),'description':a173_0x5c8698(0x134)},APPCODE_FLAG],async 'validate'(_0x323ddf){await readValidatedPageSource(_0x323ddf);},async 'dryRun'(_0x532a1f){const _0x1100a3=a173_0x5c8698,_0x33a346=readInput(_0x532a1f,await readValidatedPageSource(_0x532a1f));return{'method':'POST','url':_0x1100a3(0x148),'body':{'appCode':_0x33a346[_0x1100a3(0x141)],'pageName':_0x33a346[_0x1100a3(0x142)],..._0x33a346['parentMenuId']!=null?{'parentMenuId':_0x33a346[_0x1100a3(0x161)]}:{},'createMenu':_0x33a346[_0x1100a3(0x143)],'codeContent':_0x33a346[_0x1100a3(0x167)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON['stringify'](_0x33a346['pageName'])+_0x1100a3(0x136)};},async 'execute'(_0x41f1ea){const _0x48dd21=a173_0x5c8698,_0x4238e3=readInput(_0x41f1ea,await readValidatedPageSource(_0x41f1ea)),_0xfaf9d1=await createCustomPage(_0x4238e3);if(!Number['isInteger'](_0xfaf9d1[_0x48dd21(0x14e)])||_0xfaf9d1[_0x48dd21(0x14e)]<=0x0)throw CliErrors[_0x48dd21(0x13e)](_0x48dd21(0x163));const _0x55a04c=buildCustomPageDevelopmentUrl(_0x4238e3[_0x48dd21(0x141)],_0xfaf9d1[_0x48dd21(0x164)]),_0x371196=buildCustomPageEditUrl(_0x4238e3['appCode'],_0xfaf9d1[_0x48dd21(0x14e)]);return{'ok':!![],'data':{'operation':_0x48dd21(0x15e),'pageType':_0x48dd21(0x156),'pagePattern':readPagePattern(_0x41f1ea),'selector':{'appCode':_0x4238e3[_0x48dd21(0x141)],'pageName':_0x4238e3['pageName']},'before':null,'after':{'pageId':_0xfaf9d1[_0x48dd21(0x14e)],'pageName':_0xfaf9d1[_0x48dd21(0x142)],'appCode':_0xfaf9d1['appCode'],'version':_0xfaf9d1['version'],'menuId':_0xfaf9d1['menuId'],'menuPath':_0xfaf9d1[_0x48dd21(0x164)],'files':_0xfaf9d1[_0x48dd21(0x167)]??Object[_0x48dd21(0x138)](_0x4238e3['files'])},'dryRun':![],'request':_0x4238e3,..._0x55a04c?{'pageUrl':_0x55a04c}:{},..._0x371196?{'editPageUrl':_0x371196}:{},'warnings':_0x55a04c?[]:['Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x48dd21(0x153)+_0xfaf9d1[_0x48dd21(0x14e)]+'.'};}};function readPagePattern(_0x4ae444){const _0x26f55b=a173_0x5c8698,_0x49cb47=_0x4ae444[_0x26f55b(0x147)](_0x26f55b(0x13f))[_0x26f55b(0x145)](),_0x5cacde=_0x4ae444[_0x26f55b(0x147)](_0x26f55b(0x14d))['trim']();if(_0x49cb47&&_0x5cacde)throw CliErrors['validation'](_0x26f55b(0x137));if(_0x5cacde)return null;if(!_0x49cb47)throw CliErrors[_0x26f55b(0x15a)](_0x26f55b(0x16e));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x49cb47))throw CliErrors[_0x26f55b(0x15a)](_0x26f55b(0x13d));return _0x49cb47;}async function readPageSource(_0x1eb037){const _0x52125a=a173_0x5c8698,_0xc855bd=_0x1eb037[_0x52125a(0x147)](_0x52125a(0x14d))[_0x52125a(0x145)](),_0x21204c=readPagePattern(_0x1eb037);if(_0x21204c===null){const _0x1ee510=await readCustomPageDirectory(_0xc855bd);if(Object['keys'](_0x1ee510)[_0x52125a(0x13a)]===0x0)throw CliErrors['validation'](_0x52125a(0x16b));return _0x1ee510;}let _0x5009b7;try{_0x5009b7=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x21204c[_0x52125a(0x154)]()+_0x52125a(0x144)),_0x52125a(0x159));}catch{throw CliErrors['validation'](_0x52125a(0x168)+_0x21204c+'.');}let _0x3e2fa4;try{_0x3e2fa4=JSON[_0x52125a(0x158)](_0x5009b7);}catch{throw CliErrors['validation'](_0x52125a(0x139)+_0x21204c+'.');}if(!_0x3e2fa4||typeof _0x3e2fa4!=='object'||Array[_0x52125a(0x16f)](_0x3e2fa4)||Object[_0x52125a(0x169)](_0x3e2fa4)[_0x52125a(0x16d)](_0x1ec00e=>typeof _0x1ec00e!==_0x52125a(0x15d)))throw CliErrors[_0x52125a(0x15a)](_0x52125a(0x139)+_0x21204c+'.');return _0x3e2fa4;}async function readValidatedPageSource(_0x4e589d){const _0x487cdc=await readPageSource(_0x4e589d);return await validateCustomPageContent(_0x487cdc),_0x487cdc;}function readInput(_0x136e6f,_0x5be840){const _0x15f8d8=a173_0x5c8698,_0x48d05c=_0x136e6f[_0x15f8d8(0x147)](_0x15f8d8(0x15c))[_0x15f8d8(0x145)]()||'Custom_page_'+Date[_0x15f8d8(0x151)]();if(_0x48d05c['length']>0x64)throw CliErrors[_0x15f8d8(0x15a)](_0x15f8d8(0x140));const _0x47b0a1=_0x136e6f['num'](_0x15f8d8(0x155),NaN),_0x56bad2=!Number[_0x15f8d8(0x16c)](_0x47b0a1);if(_0x56bad2&&(!Number[_0x15f8d8(0x135)](_0x47b0a1)||_0x47b0a1<=0x0))throw CliErrors[_0x15f8d8(0x15a)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x136e6f[_0x15f8d8(0x141)],'pageName':_0x48d05c,..._0x56bad2?{'parentMenuId':_0x47b0a1}:{},'createMenu':!![],'files':_0x5be840};}
@@ -1 +1 @@
1
- const a160_0x37fa01=a160_0x151e;(function(_0x1630b3,_0x3387ce){const _0x28b8c6=a160_0x151e,_0x4df038=_0x1630b3();while(!![]){try{const _0x2b718c=-parseInt(_0x28b8c6(0xb9))/0x1+-parseInt(_0x28b8c6(0xa8))/0x2*(-parseInt(_0x28b8c6(0xab))/0x3)+-parseInt(_0x28b8c6(0xae))/0x4+parseInt(_0x28b8c6(0xaa))/0x5*(-parseInt(_0x28b8c6(0xb4))/0x6)+-parseInt(_0x28b8c6(0xad))/0x7*(parseInt(_0x28b8c6(0xb5))/0x8)+-parseInt(_0x28b8c6(0xb6))/0x9+parseInt(_0x28b8c6(0xb0))/0xa;if(_0x2b718c===_0x3387ce)break;else _0x4df038['push'](_0x4df038['shift']());}catch(_0x2d24b7){_0x4df038['push'](_0x4df038['shift']());}}}(a160_0x6773,0xe2221));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a160_0x37fa01(0xbe),'command':a160_0x37fa01(0xbc),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':'read','defaultOutputFormat':a160_0x37fa01(0xbb),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a160_0x37fa01(0xa6),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x13fc05){readCustomPageId(_0x13fc05);},async 'execute'(_0x14fcc4){const _0x10e205=a160_0x37fa01,_0x53bd25=readCustomPageId(_0x14fcc4),_0x1e4f00=await getCustomPageSource(_0x53bd25),{bundle:_0x392725,createTime:_0x45de4f,updateTime:_0x506361,..._0x3ecdc2}=_0x1e4f00,_0x380991=_0x1e4f00['id']??_0x53bd25,_0x16b045=_0x1e4f00['appCode']?.[_0x10e205(0xa7)]()||_0x14fcc4[_0x10e205(0xa5)](_0x10e205(0xb1))['trim'](),_0x3ebc46=buildCustomPageRuntimeUrl(_0x16b045,_0x1e4f00[_0x10e205(0xb8)]),_0x110efe=buildCustomPageEditUrl(_0x16b045,_0x380991),_0x469db2=await resolveCustomPageDevelopmentUrl(_0x16b045,_0x380991,_0x14fcc4['cookie']);return{'ok':!![],'data':{..._0x3ecdc2,..._0x3ebc46?{'runtimePageUrl':_0x3ebc46}:{},..._0x469db2?{'pageUrl':_0x469db2}:{},..._0x110efe?{'editPageUrl':_0x110efe}:{},..._0x45de4f==null?{}:{'createTime':formatTime(_0x45de4f)},..._0x506361==null?{}:{'updateTime':formatTime(_0x506361)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x53bd25+'.'};}};function a160_0x151e(_0x496ce2,_0x5b6edc){_0x496ce2=_0x496ce2-0xa4;const _0x67735e=a160_0x6773();let _0x151e8d=_0x67735e[_0x496ce2];return _0x151e8d;}function formatTime(_0xa7d899){const _0x46b2bc=a160_0x37fa01,_0x565103=new Date(_0xa7d899);if(Number[_0x46b2bc(0xa4)](_0x565103[_0x46b2bc(0xac)]()))return String(_0xa7d899);const _0x18c8eb=[_0x565103['getFullYear'](),String(_0x565103[_0x46b2bc(0xaf)]()+0x1)[_0x46b2bc(0xa9)](0x2,'0'),String(_0x565103[_0x46b2bc(0xbd)]())['padStart'](0x2,'0')][_0x46b2bc(0xba)]('-'),_0x5b37cd=[String(_0x565103[_0x46b2bc(0xb7)]())[_0x46b2bc(0xa9)](0x2,'0'),String(_0x565103[_0x46b2bc(0xb2)]())[_0x46b2bc(0xa9)](0x2,'0'),String(_0x565103[_0x46b2bc(0xb3)]())['padStart'](0x2,'0')]['join'](':');return _0x18c8eb+'\x20'+_0x5b37cd;}function a160_0x6773(){const _0x362320=['1718KaJqPv','padStart','14765KaZYXx','6189ULxxZq','getTime','7VdeObD','7091476JATmXg','getMonth','50745600NDzGkG','appcode','getMinutes','getSeconds','2958ozCmtV','11049544chnwOH','5669442IfRgtg','getHours','pageCode','680607WeKHei','join','compress','custom-detail','getDate','page','isNaN','str','number','trim'];a160_0x6773=function(){return _0x362320;};return a160_0x6773();}
1
+ const a174_0x52e299=a174_0xdf85;(function(_0x3d7771,_0xdfccea){const _0x2dd4c5=a174_0xdf85,_0x149560=_0x3d7771();while(!![]){try{const _0x96142a=parseInt(_0x2dd4c5(0x12e))/0x1+-parseInt(_0x2dd4c5(0x12a))/0x2*(parseInt(_0x2dd4c5(0x139))/0x3)+-parseInt(_0x2dd4c5(0x138))/0x4+parseInt(_0x2dd4c5(0x128))/0x5+-parseInt(_0x2dd4c5(0x12f))/0x6*(-parseInt(_0x2dd4c5(0x134))/0x7)+-parseInt(_0x2dd4c5(0x13e))/0x8+parseInt(_0x2dd4c5(0x129))/0x9;if(_0x96142a===_0xdfccea)break;else _0x149560['push'](_0x149560['shift']());}catch(_0x40b257){_0x149560['push'](_0x149560['shift']());}}}(a174_0x4cc9,0x3cc3b));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a174_0x52e299(0x137),'command':a174_0x52e299(0x13b),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a174_0x52e299(0x127),'defaultOutputFormat':a174_0x52e299(0x131),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a174_0x52e299(0x124),'required':!![],'description':a174_0x52e299(0x13c)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4afd06){readCustomPageId(_0x4afd06);},async 'execute'(_0x478bdd){const _0x5a231c=a174_0x52e299,_0x402323=readCustomPageId(_0x478bdd),_0x5e5266=await getCustomPageSource(_0x402323),{bundle:_0x510279,createTime:_0x987299,updateTime:_0xb73a4c,..._0x5bf0a1}=_0x5e5266,_0x554660=_0x5e5266['id']??_0x402323,_0x131778=_0x5e5266[_0x5a231c(0x126)]?.[_0x5a231c(0x133)]()||_0x478bdd[_0x5a231c(0x12b)](_0x5a231c(0x13f))[_0x5a231c(0x133)](),_0x8a9e79=buildCustomPageRuntimeUrl(_0x131778,_0x5e5266[_0x5a231c(0x13a)]),_0x244f06=buildCustomPageEditUrl(_0x131778,_0x554660),_0x1c0b25=await resolveCustomPageDevelopmentUrl(_0x131778,_0x554660,_0x478bdd[_0x5a231c(0x135)]);return{'ok':!![],'data':{..._0x5bf0a1,..._0x8a9e79?{'runtimePageUrl':_0x8a9e79}:{},..._0x1c0b25?{'pageUrl':_0x1c0b25}:{},..._0x244f06?{'editPageUrl':_0x244f06}:{},..._0x987299==null?{}:{'createTime':formatTime(_0x987299)},..._0xb73a4c==null?{}:{'updateTime':formatTime(_0xb73a4c)}},'message':_0x5a231c(0x121)+_0x402323+'.'};}};function a174_0x4cc9(){const _0x38a27=['12oLVTTy','getMonth','compress','isNaN','trim','753956LuVCjQ','cookie','getFullYear','page','1433880jAmFQx','45IRDlij','pageCode','custom-detail','Custom\x20Page\x20ID','getHours','1070480YsxyGW','appcode','join','Retrieved\x20Custom\x20Page\x20','getSeconds','getDate','number','getMinutes','appCode','read','778960WumYlE','2019240IUJPcx','4154ZSYxcD','str','padStart','getTime','176758qMsqGP'];a174_0x4cc9=function(){return _0x38a27;};return a174_0x4cc9();}function a174_0xdf85(_0x5b3658,_0x24ab97){_0x5b3658=_0x5b3658-0x120;const _0x4cc9e2=a174_0x4cc9();let _0xdf85db=_0x4cc9e2[_0x5b3658];return _0xdf85db;}function formatTime(_0x50c225){const _0x5b5b3c=a174_0x52e299,_0x3fc715=new Date(_0x50c225);if(Number[_0x5b5b3c(0x132)](_0x3fc715[_0x5b5b3c(0x12d)]()))return String(_0x50c225);const _0x370ab9=[_0x3fc715[_0x5b5b3c(0x136)](),String(_0x3fc715[_0x5b5b3c(0x130)]()+0x1)[_0x5b5b3c(0x12c)](0x2,'0'),String(_0x3fc715[_0x5b5b3c(0x123)]())[_0x5b5b3c(0x12c)](0x2,'0')]['join']('-'),_0x1bdfe7=[String(_0x3fc715[_0x5b5b3c(0x13d)]())[_0x5b5b3c(0x12c)](0x2,'0'),String(_0x3fc715[_0x5b5b3c(0x125)]())[_0x5b5b3c(0x12c)](0x2,'0'),String(_0x3fc715[_0x5b5b3c(0x122)]())[_0x5b5b3c(0x12c)](0x2,'0')][_0x5b5b3c(0x120)](':');return _0x370ab9+'\x20'+_0x1bdfe7;}
@@ -1 +1 @@
1
- const a161_0x51c3d4=a161_0x3a39;function a161_0x264a(){const _0x3f4e20=['type','314807cCpoMU','Found\x20','502747NApZZE','label','121726dKZVhL','menus','read','compress','pageId','appCode','custom-list','\x20Custom\x20Page(s).','2zkrtXK','70ypylXx','19140TGlbkS','flatMap','No\x20Custom\x20Pages\x20found.','555Ggsxwn','376dshENZ','path','105330nMJvQY','length','page','89937UaoKqh','1706145QfpuxG'];a161_0x264a=function(){return _0x3f4e20;};return a161_0x264a();}(function(_0x3dc4a0,_0x2c29eb){const _0x19227b=a161_0x3a39,_0x1e8e4c=_0x3dc4a0();while(!![]){try{const _0x57aef0=parseInt(_0x19227b(0x186))/0x1*(-parseInt(_0x19227b(0x192))/0x2)+parseInt(_0x19227b(0x184))/0x3+parseInt(_0x19227b(0x17a))/0x4*(parseInt(_0x19227b(0x17d))/0x5)+parseInt(_0x19227b(0x180))/0x6+parseInt(_0x19227b(0x188))/0x7+-parseInt(_0x19227b(0x17e))/0x8*(parseInt(_0x19227b(0x183))/0x9)+parseInt(_0x19227b(0x193))/0xa*(-parseInt(_0x19227b(0x18a))/0xb);if(_0x57aef0===_0x2c29eb)break;else _0x1e8e4c['push'](_0x1e8e4c['shift']());}catch(_0x408bd5){_0x1e8e4c['push'](_0x1e8e4c['shift']());}}}(a161_0x264a,0x4fe76));function a161_0x3a39(_0xefc548,_0x6ba524){_0xefc548=_0xefc548-0x17a;const _0x264a83=a161_0x264a();let _0x3a3988=_0x264a83[_0xefc548];return _0x3a3988;}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a161_0x51c3d4(0x182),'command':a161_0x51c3d4(0x190),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a161_0x51c3d4(0x18c),'defaultOutputFormat':a161_0x51c3d4(0x18d),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a70c5){const _0x185465=a161_0x51c3d4,_0x115b3d=(await fetchMenuSnapshot(_0x1a70c5['appCode'],_0x1a70c5['cookie']))[_0x185465(0x18b)][_0x185465(0x17b)](_0x16f81a=>{const _0x57757c=_0x185465;if(_0x16f81a[_0x57757c(0x185)]!=='react'||_0x16f81a[_0x57757c(0x18e)]==null)return[];const _0x57a80a=buildCustomPageDevelopmentUrl(_0x1a70c5[_0x57757c(0x18f)],_0x16f81a[_0x57757c(0x17f)]),_0x2b6b6a=buildCustomPageEditUrl(_0x1a70c5[_0x57757c(0x18f)],_0x16f81a['pageId']);return[{'pageId':_0x16f81a['pageId'],'label':_0x16f81a[_0x57757c(0x189)],..._0x57a80a?{'pageUrl':_0x57a80a}:{},..._0x2b6b6a?{'editPageUrl':_0x2b6b6a}:{}}];});return{'ok':!![],'data':{'pages':_0x115b3d},'message':_0x115b3d['length']===0x0?_0x185465(0x17c):_0x185465(0x187)+_0x115b3d[_0x185465(0x181)]+_0x185465(0x191)};}};
1
+ const a175_0x1cbfca=a175_0x59b2;(function(_0x1d6bf6,_0x3bb726){const _0x539c3e=a175_0x59b2,_0x4c55dc=_0x1d6bf6();while(!![]){try{const _0xedc3fb=parseInt(_0x539c3e(0xda))/0x1+parseInt(_0x539c3e(0xe0))/0x2*(-parseInt(_0x539c3e(0xdf))/0x3)+-parseInt(_0x539c3e(0xd4))/0x4*(-parseInt(_0x539c3e(0xd0))/0x5)+-parseInt(_0x539c3e(0xe4))/0x6*(parseInt(_0x539c3e(0xe1))/0x7)+parseInt(_0x539c3e(0xd7))/0x8+-parseInt(_0x539c3e(0xd9))/0x9*(parseInt(_0x539c3e(0xdb))/0xa)+parseInt(_0x539c3e(0xe2))/0xb*(parseInt(_0x539c3e(0xd6))/0xc);if(_0xedc3fb===_0x3bb726)break;else _0x4c55dc['push'](_0x4c55dc['shift']());}catch(_0x3ff6c7){_0x4c55dc['push'](_0x4c55dc['shift']());}}}(a175_0x1ee4,0x5e0a0));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a175_0x1ee4(){const _0x32ab41=['custom-list','read','5508rfWfKW','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','1277076baueMn','5493088aHbGLF','pageId','1294497SpEipv','138599Pgjzmb','50lbYPHy','type','compress','Found\x20','971322XsqVqk','2uXDbBp','7hRvCNg','110VPACqJ','path','3800802WONUhN','\x20Custom\x20Page(s).','react','length','cookie','menus','625hODpFM','appCode'];a175_0x1ee4=function(){return _0x32ab41;};return a175_0x1ee4();}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a175_0x59b2(_0x22de15,_0x477cc5){_0x22de15=_0x22de15-0xcf;const _0x1ee436=a175_0x1ee4();let _0x59b2ba=_0x1ee436[_0x22de15];return _0x59b2ba;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':'page','command':a175_0x1cbfca(0xd2),'description':a175_0x1cbfca(0xd5),'risk':a175_0x1cbfca(0xd3),'defaultOutputFormat':a175_0x1cbfca(0xdd),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1789ae){const _0x4f84a4=a175_0x1cbfca,_0x249cdf=(await fetchMenuSnapshot(_0x1789ae[_0x4f84a4(0xd1)],_0x1789ae[_0x4f84a4(0xe8)]))[_0x4f84a4(0xcf)]['flatMap'](_0x2f8c70=>{const _0x2008d3=_0x4f84a4;if(_0x2f8c70[_0x2008d3(0xdc)]!==_0x2008d3(0xe6)||_0x2f8c70[_0x2008d3(0xd8)]==null)return[];const _0x35391a=buildCustomPageDevelopmentUrl(_0x1789ae[_0x2008d3(0xd1)],_0x2f8c70[_0x2008d3(0xe3)]),_0x212213=buildCustomPageEditUrl(_0x1789ae['appCode'],_0x2f8c70[_0x2008d3(0xd8)]);return[{'pageId':_0x2f8c70[_0x2008d3(0xd8)],'label':_0x2f8c70['label'],..._0x35391a?{'pageUrl':_0x35391a}:{},..._0x212213?{'editPageUrl':_0x212213}:{}}];});return{'ok':!![],'data':{'pages':_0x249cdf},'message':_0x249cdf[_0x4f84a4(0xe7)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x4f84a4(0xde)+_0x249cdf[_0x4f84a4(0xe7)]+_0x4f84a4(0xe5)};}};
@@ -1 +1 @@
1
- function a162_0x2a92(_0x740c85,_0x52b8df){_0x740c85=_0x740c85-0x189;const _0x5973e5=a162_0x5973();let _0x2a9235=_0x5973e5[_0x740c85];return _0x2a9235;}const a162_0x108a1a=a162_0x2a92;(function(_0x4ebab9,_0x221de4){const _0x2e82df=a162_0x2a92,_0x250c45=_0x4ebab9();while(!![]){try{const _0x38e8a4=parseInt(_0x2e82df(0x198))/0x1+parseInt(_0x2e82df(0x197))/0x2*(-parseInt(_0x2e82df(0x19d))/0x3)+parseInt(_0x2e82df(0x19f))/0x4+-parseInt(_0x2e82df(0x1a5))/0x5*(parseInt(_0x2e82df(0x1ae))/0x6)+-parseInt(_0x2e82df(0x1b0))/0x7*(-parseInt(_0x2e82df(0x1a8))/0x8)+-parseInt(_0x2e82df(0x1a1))/0x9+-parseInt(_0x2e82df(0x19b))/0xa*(-parseInt(_0x2e82df(0x1ab))/0xb);if(_0x38e8a4===_0x221de4)break;else _0x250c45['push'](_0x250c45['shift']());}catch(_0x50d744){_0x250c45['push'](_0x250c45['shift']());}}}(a162_0x5973,0x59a25));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a162_0x5973(){const _0x16122f=['1130974TnxRBe','215290QpTvnx','Published\x20Custom\x20Page\x20','custom-publish','11350tQPgti','cookie','3lYcWfq','isInteger','1577960SIULPF','pageCode','1850706noQeMX','warnings','FORMAL','apiError','1360tbQRRa','appCode','Would\x20publish\x20Custom\x20Page\x20','8wyTGgG','Custom\x20Page\x20ID','compress','6127vxLqfi','number','page','3858rBJGqN','POST','498281mLcNDV','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','page.custom-publish','remark','string','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','unknown','pageId','status','Optional\x20publish\x20remark','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','push','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','runtimePageUrl','trim'];a162_0x5973=function(){return _0x16122f;};return a162_0x5973();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a162_0x108a1a(0x1ad),'command':a162_0x108a1a(0x19a),'description':a162_0x108a1a(0x194),'risk':'write','defaultOutputFormat':a162_0x108a1a(0x1aa),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a162_0x108a1a(0x1ac),'required':!![],'description':a162_0x108a1a(0x1a9)},{'name':a162_0x108a1a(0x18b),'type':a162_0x108a1a(0x18c),'description':a162_0x108a1a(0x191)}],async 'validate'(_0x1e6a6a){readCustomPageId(_0x1e6a6a);},async 'dryRun'(_0x202563){const _0x3c4b47=a162_0x108a1a,_0x466a31=readInput(_0x202563);return{'method':_0x3c4b47(0x1af),'url':'/smartapi/webcode/file/publish','body':{'id':_0x466a31[_0x3c4b47(0x18f)],..._0x466a31['remark']?{'remark':_0x466a31[_0x3c4b47(0x18b)]}:{}},'description':_0x3c4b47(0x1a7)+_0x466a31[_0x3c4b47(0x18f)]+'.'};},async 'execute'(_0x2b6b1c){const _0x1e5f00=a162_0x108a1a,_0x5af304=readInput(_0x2b6b1c);await getCustomPageSource(_0x5af304['pageId']);const _0xc745bd=await publishCustomPage(_0x5af304);if(!Number[_0x1e5f00(0x19e)](_0xc745bd)||_0xc745bd!==_0x5af304['pageId'])throw CliErrors[_0x1e5f00(0x1a4)](_0x1e5f00(0x189));const _0x32de56=await getCustomPageSource(_0x5af304[_0x1e5f00(0x18f)]);if(_0x32de56[_0x1e5f00(0x190)]!=='FORMAL')throw CliErrors[_0x1e5f00(0x1a4)](_0x1e5f00(0x192)+(_0x32de56[_0x1e5f00(0x190)]??_0x1e5f00(0x18e))+'.');const _0x2c4a16=_0x32de56['appCode']?.[_0x1e5f00(0x196)](),_0x10c988=buildCustomPageEditUrl(_0x2c4a16,_0x5af304['pageId']),_0x4a9ef1=await resolveCustomPageDevelopmentUrl(_0x2c4a16,_0x5af304[_0x1e5f00(0x18f)],_0x2b6b1c[_0x1e5f00(0x19c)]),_0x233cd5=buildMutationData(_0x5af304,!![],_0x4a9ef1,_0x10c988);_0x2c4a16&&!_0x4a9ef1&&_0x233cd5[_0x1e5f00(0x1a2)][_0x1e5f00(0x193)](_0x1e5f00(0x18d));const _0x669aa9=buildCustomPageRuntimeUrl(_0x32de56[_0x1e5f00(0x1a6)],_0x32de56[_0x1e5f00(0x1a0)]);return _0x669aa9?_0x233cd5[_0x1e5f00(0x195)]=_0x669aa9:_0x233cd5['warnings']['push']('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x233cd5,'message':_0x1e5f00(0x199)+_0x5af304['pageId']+'.'};}};function readInput(_0x136510){const _0x5ad328=a162_0x108a1a,_0x38bc2a=readCustomPageId(_0x136510),_0x5e631c=_0x136510['str'](_0x5ad328(0x18b))[_0x5ad328(0x196)]();return{'pageId':_0x38bc2a,..._0x5e631c?{'remark':_0x5e631c}:{}};}function buildMutationData(_0x1aede5,_0xb09930=![],_0x374ded,_0x44468f){const _0x78c174=a162_0x108a1a;return{'operation':_0x78c174(0x18a),'selector':{'pageId':_0x1aede5[_0x78c174(0x18f)]},'before':null,'after':{'pageId':_0x1aede5[_0x78c174(0x18f)],'status':_0x78c174(0x1a3)},'dryRun':!_0xb09930,'request':_0x1aede5,..._0x374ded?{'pageUrl':_0x374ded}:{},..._0x44468f?{'editPageUrl':_0x44468f}:{},'warnings':[]};}
1
+ const a176_0x53cfe9=a176_0x3f15;(function(_0x3c44a5,_0x3808c9){const _0x39c19c=a176_0x3f15,_0x326210=_0x3c44a5();while(!![]){try{const _0x4b82ad=-parseInt(_0x39c19c(0x81))/0x1+parseInt(_0x39c19c(0x91))/0x2*(parseInt(_0x39c19c(0x75))/0x3)+parseInt(_0x39c19c(0x8a))/0x4*(parseInt(_0x39c19c(0x85))/0x5)+parseInt(_0x39c19c(0x79))/0x6+-parseInt(_0x39c19c(0x87))/0x7+-parseInt(_0x39c19c(0x98))/0x8*(parseInt(_0x39c19c(0x93))/0x9)+parseInt(_0x39c19c(0x8d))/0xa;if(_0x4b82ad===_0x3808c9)break;else _0x326210['push'](_0x326210['shift']());}catch(_0x19c908){_0x326210['push'](_0x326210['shift']());}}}(a176_0x40e7,0x1ba7d));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a176_0x40e7(){const _0x343544=['pageId','status','apiError','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','appCode','cookie','19094yyJlKS','remark','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','40inDzYc','custom-publish','1525671NEvzGf','page','push','57028EFgmOH','Optional\x20publish\x20remark','isInteger','799650HRrhyv','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','str','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','698fmWYEz','/smartapi/webcode/file/publish','9QmYvrK','runtimePageUrl','FORMAL','string','number','1089624hvMSvL','1485YQYBpB','warnings','Custom\x20Page\x20ID','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','718506bZTqts','write'];a176_0x40e7=function(){return _0x343544;};return a176_0x40e7();}function a176_0x3f15(_0x4504c3,_0x50e6d5){_0x4504c3=_0x4504c3-0x75;const _0x40e7f4=a176_0x40e7();let _0x3f15c4=_0x40e7f4[_0x4504c3];return _0x3f15c4;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a176_0x53cfe9(0x88),'command':a176_0x53cfe9(0x86),'description':a176_0x53cfe9(0x8e),'risk':a176_0x53cfe9(0x7a),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a176_0x53cfe9(0x97),'required':!![],'description':a176_0x53cfe9(0x77)},{'name':a176_0x53cfe9(0x82),'type':a176_0x53cfe9(0x96),'description':a176_0x53cfe9(0x8b)}],async 'validate'(_0x49baaf){readCustomPageId(_0x49baaf);},async 'dryRun'(_0x5605f9){const _0x4abfcc=a176_0x53cfe9,_0x184ce0=readInput(_0x5605f9);return{'method':'POST','url':_0x4abfcc(0x92),'body':{'id':_0x184ce0[_0x4abfcc(0x7b)],..._0x184ce0['remark']?{'remark':_0x184ce0['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x184ce0[_0x4abfcc(0x7b)]+'.'};},async 'execute'(_0xbff1c9){const _0x1639a2=a176_0x53cfe9,_0x2e25a5=readInput(_0xbff1c9);await getCustomPageSource(_0x2e25a5[_0x1639a2(0x7b)]);const _0x34801=await publishCustomPage(_0x2e25a5);if(!Number[_0x1639a2(0x8c)](_0x34801)||_0x34801!==_0x2e25a5[_0x1639a2(0x7b)])throw CliErrors[_0x1639a2(0x7d)](_0x1639a2(0x90));const _0x3a812f=await getCustomPageSource(_0x2e25a5['pageId']);if(_0x3a812f[_0x1639a2(0x7c)]!==_0x1639a2(0x95))throw CliErrors[_0x1639a2(0x7d)](_0x1639a2(0x7e)+(_0x3a812f['status']??'unknown')+'.');const _0xa49fbd=_0x3a812f[_0x1639a2(0x7f)]?.[_0x1639a2(0x84)](),_0x38d408=buildCustomPageEditUrl(_0xa49fbd,_0x2e25a5[_0x1639a2(0x7b)]),_0x38fe78=await resolveCustomPageDevelopmentUrl(_0xa49fbd,_0x2e25a5[_0x1639a2(0x7b)],_0xbff1c9[_0x1639a2(0x80)]),_0x23639d=buildMutationData(_0x2e25a5,!![],_0x38fe78,_0x38d408);_0xa49fbd&&!_0x38fe78&&_0x23639d['warnings'][_0x1639a2(0x89)](_0x1639a2(0x83));const _0x537d5=buildCustomPageRuntimeUrl(_0x3a812f['appCode'],_0x3a812f['pageCode']);return _0x537d5?_0x23639d[_0x1639a2(0x94)]=_0x537d5:_0x23639d[_0x1639a2(0x76)][_0x1639a2(0x89)](_0x1639a2(0x78)),{'ok':!![],'data':_0x23639d,'message':'Published\x20Custom\x20Page\x20'+_0x2e25a5[_0x1639a2(0x7b)]+'.'};}};function readInput(_0x2539b4){const _0x30d213=a176_0x53cfe9,_0x1bb6d2=readCustomPageId(_0x2539b4),_0x32931b=_0x2539b4[_0x30d213(0x8f)](_0x30d213(0x82))[_0x30d213(0x84)]();return{'pageId':_0x1bb6d2,..._0x32931b?{'remark':_0x32931b}:{}};}function buildMutationData(_0x2b85e3,_0x48120d=![],_0x3eb66e,_0xe5db79){const _0x3e996c=a176_0x53cfe9;return{'operation':'page.custom-publish','selector':{'pageId':_0x2b85e3[_0x3e996c(0x7b)]},'before':null,'after':{'pageId':_0x2b85e3['pageId'],'status':_0x3e996c(0x95)},'dryRun':!_0x48120d,'request':_0x2b85e3,..._0x3eb66e?{'pageUrl':_0x3eb66e}:{},..._0xe5db79?{'editPageUrl':_0xe5db79}:{},'warnings':[]};}
@@ -1 +1 @@
1
- const a163_0x49c4b2=a163_0x5acf;(function(_0x4b1cc3,_0x1378ab){const _0x469ee1=a163_0x5acf,_0x558a7e=_0x4b1cc3();while(!![]){try{const _0xa6e692=-parseInt(_0x469ee1(0x1ba))/0x1*(-parseInt(_0x469ee1(0x1bc))/0x2)+-parseInt(_0x469ee1(0x1b1))/0x3+-parseInt(_0x469ee1(0x1af))/0x4*(-parseInt(_0x469ee1(0x1bd))/0x5)+-parseInt(_0x469ee1(0x1c1))/0x6*(parseInt(_0x469ee1(0x1ab))/0x7)+-parseInt(_0x469ee1(0x1b2))/0x8+parseInt(_0x469ee1(0x1bf))/0x9*(-parseInt(_0x469ee1(0x1b0))/0xa)+-parseInt(_0x469ee1(0x1b8))/0xb*(-parseInt(_0x469ee1(0x1c0))/0xc);if(_0xa6e692===_0x1378ab)break;else _0x558a7e['push'](_0x558a7e['shift']());}catch(_0x3e54a6){_0x558a7e['push'](_0x558a7e['shift']());}}}(a163_0x3e80,0xec0a5));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a163_0x5acf(_0x1942fa,_0xfa4bba){_0x1942fa=_0x1942fa-0x1a7;const _0x3e8072=a163_0x3e80();let _0x5acf63=_0x3e8072[_0x1942fa];return _0x5acf63;}import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';function a163_0x3e80(){const _0x1f8433=['isInteger','type','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','21118746gmmBVn','validation','2057NBjzba','menus','698wAjqzn','1340RrkVsq','num','2289339uAxQAo','12rvpYZP','2488902SDcQSU','/ide/','path','pageId','message','/pages/','14NdXihy','file','map','find','21404JUvVOy','20jbdehK','2577873lrKdqH','7258872nfxdLe','trim','length'];a163_0x3e80=function(){return _0x1f8433;};return a163_0x3e80();}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a163_0x49c4b2(0x1b7)};function trimOptional(_0x51fdff){const _0x483aa2=a163_0x49c4b2;return _0x51fdff?.[_0x483aa2(0x1b3)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x1a4382,_0x1688d3){const _0x1c715f=trimOptional(_0x1a4382),_0x3f7abb=trimOptional(_0x1688d3);if(!_0x1c715f||!_0x3f7abb)return undefined;return getPublishedAppDomain(_0x1c715f)+'/'+encodeURIComponent(_0x3f7abb);}export function buildCustomPageDevelopmentUrl(_0x1fd820,_0x40726e){const _0x1ec33e=a163_0x49c4b2,_0x4c0556=trimOptional(_0x1fd820),_0x2e6b70=trimOptional(_0x40726e);if(!_0x4c0556||!_0x2e6b70)return undefined;return getAppBaseUrl(_0x4c0556)+_0x1ec33e(0x1aa)+encodeURIComponent(_0x2e6b70);}export async function resolveCustomPageDevelopmentUrl(_0xf8a319,_0xdfb2fe,_0x4c5b36){const _0x1d59ae=a163_0x49c4b2,_0x28ba8b=trimOptional(_0xf8a319);if(!_0x28ba8b)return undefined;try{const _0x1bb755=(await fetchMenuSnapshot(_0x28ba8b,_0x4c5b36))[_0x1d59ae(0x1bb)][_0x1d59ae(0x1ae)](_0x3d6d05=>_0x3d6d05[_0x1d59ae(0x1b6)]==='react'&&_0x3d6d05[_0x1d59ae(0x1a8)]===_0xdfb2fe);return buildCustomPageDevelopmentUrl(_0x28ba8b,_0x1bb755?.[_0x1d59ae(0x1a7)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x49fd25,_0x4d3cfc){const _0xa2138=a163_0x49c4b2,_0x19c960=trimOptional(_0x49fd25);if(!_0x19c960)return;const _0x3764bb=trimOptional(String(_0x4d3cfc??''));if(!_0x3764bb)return;return getAppBaseUrl(_0x19c960)+_0xa2138(0x1c2)+encodeURIComponent(_0x3764bb);}export async function validateCustomPageContent(_0x65e384){const _0x8ba1f=a163_0x49c4b2,_0x4b6794=await validateCustomPageSourceFiles(_0x65e384);if(_0x4b6794[_0x8ba1f(0x1b4)]>0x0)throw CliErrors[_0x8ba1f(0x1b9)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x4b6794[_0x8ba1f(0x1ad)](_0x4ee79f=>_0x4ee79f[_0x8ba1f(0x1ac)]+':\x20'+_0x4ee79f[_0x8ba1f(0x1a9)])['join'](';\x20'));}export function readCustomPageId(_0x38746e){const _0x52327f=a163_0x49c4b2,_0x214cb3=_0x38746e[_0x52327f(0x1be)]('id');if(!Number[_0x52327f(0x1b5)](_0x214cb3)||_0x214cb3<=0x0)throw CliErrors['validation']('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x214cb3;}
1
+ (function(_0x3a13cd,_0x3240a9){const _0x2fe9e6=a177_0x445a,_0x51245e=_0x3a13cd();while(!![]){try{const _0x511c94=parseInt(_0x2fe9e6(0x10f))/0x1+parseInt(_0x2fe9e6(0x110))/0x2*(-parseInt(_0x2fe9e6(0x109))/0x3)+parseInt(_0x2fe9e6(0xff))/0x4+-parseInt(_0x2fe9e6(0x112))/0x5+-parseInt(_0x2fe9e6(0x101))/0x6+parseInt(_0x2fe9e6(0xfc))/0x7*(parseInt(_0x2fe9e6(0x100))/0x8)+parseInt(_0x2fe9e6(0x103))/0x9;if(_0x511c94===_0x3240a9)break;else _0x51245e['push'](_0x51245e['shift']());}catch(_0x1a0962){_0x51245e['push'](_0x51245e['shift']());}}}(a177_0xc0ae,0x4b150));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':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function a177_0x445a(_0x272dbd,_0x578026){_0x272dbd=_0x272dbd-0xfa;const _0xc0aeed=a177_0xc0ae();let _0x445a56=_0xc0aeed[_0x272dbd];return _0x445a56;}function trimOptional(_0x41defb){const _0xaa18ed=a177_0x445a;return _0x41defb?.[_0xaa18ed(0xfb)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x492483,_0x5f4dca){const _0x4df2ad=trimOptional(_0x492483),_0x18afa5=trimOptional(_0x5f4dca);if(!_0x4df2ad||!_0x18afa5)return undefined;return getPublishedAppDomain(_0x4df2ad)+'/'+encodeURIComponent(_0x18afa5);}export function buildCustomPageDevelopmentUrl(_0x395e36,_0x1ec0b1){const _0x3009cb=a177_0x445a,_0x1b508a=trimOptional(_0x395e36),_0x594b75=trimOptional(_0x1ec0b1);if(!_0x1b508a||!_0x594b75)return undefined;return getAppBaseUrl(_0x1b508a)+_0x3009cb(0x111)+encodeURIComponent(_0x594b75);}export async function resolveCustomPageDevelopmentUrl(_0x551c1e,_0xba3710,_0x35a9f0){const _0x2d4f28=a177_0x445a,_0x456843=trimOptional(_0x551c1e);if(!_0x456843)return undefined;try{const _0x406b25=(await fetchMenuSnapshot(_0x456843,_0x35a9f0))['menus'][_0x2d4f28(0x10d)](_0x1e3c98=>_0x1e3c98[_0x2d4f28(0xfd)]==='react'&&_0x1e3c98[_0x2d4f28(0x113)]===_0xba3710);return buildCustomPageDevelopmentUrl(_0x456843,_0x406b25?.[_0x2d4f28(0x108)]);}catch{return undefined;}}function a177_0xc0ae(){const _0x42f869=['9uelzoo','--id\x20must\x20be\x20a\x20positive\x20integer.','file','validation','find','map','230713vWdrPO','323378HGHBHj','/pages/','3074115qDRatc','pageId','num','trim','7izauUK','type','/ide/','554064HixaRn','2785112ghGrIP','479520pDICnm','Invalid\x20Custom\x20Page\x20content:\x20','6929802gOnaeX','message','isInteger','length','join','path'];a177_0xc0ae=function(){return _0x42f869;};return a177_0xc0ae();}export function buildCustomPageEditUrl(_0x27dc38,_0x314520){const _0x53e4e6=a177_0x445a,_0x52bcb8=trimOptional(_0x27dc38);if(!_0x52bcb8)return;const _0x5cc473=trimOptional(String(_0x314520??''));if(!_0x5cc473)return;return getAppBaseUrl(_0x52bcb8)+_0x53e4e6(0xfe)+encodeURIComponent(_0x5cc473);}export async function validateCustomPageContent(_0x18fae1){const _0x265aff=a177_0x445a,_0x4c1a6b=await validateCustomPageSourceFiles(_0x18fae1);if(_0x4c1a6b[_0x265aff(0x106)]>0x0)throw CliErrors[_0x265aff(0x10c)](_0x265aff(0x102)+_0x4c1a6b[_0x265aff(0x10e)](_0x2b8781=>_0x2b8781[_0x265aff(0x10b)]+':\x20'+_0x2b8781[_0x265aff(0x104)])[_0x265aff(0x107)](';\x20'));}export function readCustomPageId(_0xdc99df){const _0x3e3011=a177_0x445a,_0x18af6a=_0xdc99df[_0x3e3011(0xfa)]('id');if(!Number[_0x3e3011(0x105)](_0x18af6a)||_0x18af6a<=0x0)throw CliErrors[_0x3e3011(0x10c)](_0x3e3011(0x10a));return _0x18af6a;}
@@ -1 +1 @@
1
- const a164_0x3ada7e=a164_0xe87f;(function(_0x583c22,_0xd70e81){const _0x361c90=a164_0xe87f,_0x369b60=_0x583c22();while(!![]){try{const _0x5a735b=-parseInt(_0x361c90(0x106))/0x1+parseInt(_0x361c90(0x109))/0x2*(-parseInt(_0x361c90(0x119))/0x3)+-parseInt(_0x361c90(0x104))/0x4*(parseInt(_0x361c90(0x114))/0x5)+parseInt(_0x361c90(0x10c))/0x6*(-parseInt(_0x361c90(0x116))/0x7)+-parseInt(_0x361c90(0x118))/0x8*(parseInt(_0x361c90(0x10e))/0x9)+-parseInt(_0x361c90(0x10f))/0xa*(-parseInt(_0x361c90(0x10a))/0xb)+parseInt(_0x361c90(0x111))/0xc;if(_0x5a735b===_0xd70e81)break;else _0x369b60['push'](_0x369b60['shift']());}catch(_0x23bca5){_0x369b60['push'](_0x369b60['shift']());}}}(a164_0x35a9,0x5f447));function a164_0x35a9(){const _0x34642d=['endsWith','.tsx','4pNbHfp','11FmBKYe','some','48jsZOaj','filter','54cxfxGa','1362440RCVXDr','message','21872520ZqRcSD','map','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','1415NZILbb','page\x20files','190071DSNAkQ','entries','765792izkGkr','834294lZoksA','typescript','trim','1556WHuAEx','toLowerCase','110888mReQXQ'];a164_0x35a9=function(){return _0x34642d;};return a164_0x35a9();}import{format}from'prettier';const SOURCE_PARSERS={'.js':'babel','.jsx':'babel','.ts':a164_0x3ada7e(0x102),'.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=['.jsx',a164_0x3ada7e(0x108)];function a164_0xe87f(_0x472e7b,_0x9a6191){_0x472e7b=_0x472e7b-0x102;const _0x35a9bf=a164_0x35a9();let _0xe87f0f=_0x35a9bf[_0x472e7b];return _0xe87f0f;}export async function validateCustomPageSourceFiles(_0x2512aa){const _0x4d76f4=a164_0x3ada7e,_0x4fade8=Object[_0x4d76f4(0x117)](_0x2512aa)[_0x4d76f4(0x10d)](([_0x2c7b8b])=>getParser(_0x2c7b8b));if(!_0x4fade8['some'](([_0x483784])=>isReactSourceFile(_0x483784)))return[{'file':_0x4d76f4(0x115),'message':_0x4d76f4(0x113)}];const _0x37e2a8=await Promise['all'](_0x4fade8[_0x4d76f4(0x112)](async([_0x2c91ed,_0x1188b1])=>{const _0x51a668=_0x4d76f4;try{return await format(_0x1188b1,{'parser':getParser(_0x2c91ed)}),undefined;}catch(_0x24da22){return{'file':_0x2c91ed,'message':_0x24da22 instanceof Error?_0x24da22[_0x51a668(0x110)]:String(_0x24da22)};}}));return _0x37e2a8[_0x4d76f4(0x10d)](_0x52e37f=>_0x52e37f!==undefined);}function getParser(_0x21f944){const _0x624eb3=a164_0x3ada7e,_0x396726=_0x21f944['trim']()['toLowerCase']();return Object[_0x624eb3(0x117)](SOURCE_PARSERS)['find'](([_0xc3c486])=>_0x396726[_0x624eb3(0x107)](_0xc3c486))?.[0x1];}function isReactSourceFile(_0x1cf793){const _0x282149=a164_0x3ada7e,_0x390917=_0x1cf793[_0x282149(0x103)]()[_0x282149(0x105)]();return CUSTOM_PAGE_EXTENSIONS[_0x282149(0x10b)](_0x1298ea=>_0x390917[_0x282149(0x107)](_0x1298ea));}
1
+ const a178_0x33bae4=a178_0x5d85;(function(_0x3e9f34,_0x492cdf){const _0x4b3a14=a178_0x5d85,_0x56b125=_0x3e9f34();while(!![]){try{const _0x379fd4=parseInt(_0x4b3a14(0x115))/0x1*(parseInt(_0x4b3a14(0x11b))/0x2)+-parseInt(_0x4b3a14(0x11e))/0x3*(-parseInt(_0x4b3a14(0x10c))/0x4)+parseInt(_0x4b3a14(0x110))/0x5*(-parseInt(_0x4b3a14(0x10f))/0x6)+parseInt(_0x4b3a14(0x117))/0x7*(parseInt(_0x4b3a14(0x11f))/0x8)+parseInt(_0x4b3a14(0x11a))/0x9+parseInt(_0x4b3a14(0x122))/0xa+-parseInt(_0x4b3a14(0x113))/0xb;if(_0x379fd4===_0x492cdf)break;else _0x56b125['push'](_0x56b125['shift']());}catch(_0x3fb8a5){_0x56b125['push'](_0x56b125['shift']());}}}(a178_0x5165,0x9da51));import{format}from'prettier';function a178_0x5165(){const _0x8562e5=['242823dMWnVy','message','typescript','4807593BtPaol','2dtmyLG','trim','filter','3237351mEyBQo','88BKrzDl','.jsx','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','8939800NvjyNF','map','4VPbwIU','entries','babel','498pobCMn','35935KwWKKk','some','all','26679917bRcbfi','toLowerCase','778828SeejUU','endsWith'];a178_0x5165=function(){return _0x8562e5;};return a178_0x5165();}const SOURCE_PARSERS={'.js':'babel','.jsx':a178_0x33bae4(0x10e),'.ts':a178_0x33bae4(0x119),'.tsx':a178_0x33bae4(0x119)},CUSTOM_PAGE_EXTENSIONS=[a178_0x33bae4(0x120),'.tsx'];function a178_0x5d85(_0xf777e5,_0x3b6683){_0xf777e5=_0xf777e5-0x10c;const _0x516579=a178_0x5165();let _0x5d8534=_0x516579[_0xf777e5];return _0x5d8534;}export async function validateCustomPageSourceFiles(_0x31feb0){const _0x2ce7c8=a178_0x33bae4,_0x96c7c6=Object[_0x2ce7c8(0x10d)](_0x31feb0)[_0x2ce7c8(0x11d)](([_0x12a20c])=>getParser(_0x12a20c));if(!_0x96c7c6[_0x2ce7c8(0x111)](([_0xb25d7c])=>isReactSourceFile(_0xb25d7c)))return[{'file':'page\x20files','message':_0x2ce7c8(0x121)}];const _0x502041=await Promise[_0x2ce7c8(0x112)](_0x96c7c6[_0x2ce7c8(0x123)](async([_0x2c4e12,_0x3b33ab])=>{const _0x1b426f=_0x2ce7c8;try{return await format(_0x3b33ab,{'parser':getParser(_0x2c4e12)}),undefined;}catch(_0x246121){return{'file':_0x2c4e12,'message':_0x246121 instanceof Error?_0x246121[_0x1b426f(0x118)]:String(_0x246121)};}}));return _0x502041[_0x2ce7c8(0x11d)](_0x43c3f5=>_0x43c3f5!==undefined);}function getParser(_0x236880){const _0x67cb6f=a178_0x33bae4,_0x174bd9=_0x236880['trim']()[_0x67cb6f(0x114)]();return Object['entries'](SOURCE_PARSERS)['find'](([_0x47fc02])=>_0x174bd9[_0x67cb6f(0x116)](_0x47fc02))?.[0x1];}function isReactSourceFile(_0x2da145){const _0x3956b5=a178_0x33bae4,_0x4c3be4=_0x2da145[_0x3956b5(0x11c)]()[_0x3956b5(0x114)]();return CUSTOM_PAGE_EXTENSIONS[_0x3956b5(0x111)](_0x3bd5bf=>_0x4c3be4[_0x3956b5(0x116)](_0x3bd5bf));}
@@ -1 +1 @@
1
- const a165_0x5c6bd1=a165_0x59c1;(function(_0x3645f7,_0xf4b7a2){const _0x18d967=a165_0x59c1,_0x3f1745=_0x3645f7();while(!![]){try{const _0x411d45=parseInt(_0x18d967(0xa2))/0x1+parseInt(_0x18d967(0xa5))/0x2+parseInt(_0x18d967(0xaa))/0x3*(-parseInt(_0x18d967(0x9d))/0x4)+-parseInt(_0x18d967(0x9e))/0x5+-parseInt(_0x18d967(0xa7))/0x6+-parseInt(_0x18d967(0xa8))/0x7*(-parseInt(_0x18d967(0x9b))/0x8)+-parseInt(_0x18d967(0xb5))/0x9*(parseInt(_0x18d967(0xaf))/0xa);if(_0x411d45===_0xf4b7a2)break;else _0x3f1745['push'](_0x3f1745['shift']());}catch(_0x254cf7){_0x3f1745['push'](_0x3f1745['shift']());}}}(a165_0x9c77,0x81d61));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';export const pageCustomUpdate={'service':a165_0x5c6bd1(0xac),'command':a165_0x5c6bd1(0x9a),'description':a165_0x5c6bd1(0xa9),'risk':a165_0x5c6bd1(0xb3),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a165_0x5c6bd1(0xa1),'message':a165_0x5c6bd1(0x9f),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':a165_0x5c6bd1(0x99),'required':!![],'description':a165_0x5c6bd1(0xb0)},{'name':'page-dir','type':'string','required':!![],'description':a165_0x5c6bd1(0xb4)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x59300a){readCustomPageId(_0x59300a),await readValidatedPageContent(_0x59300a);},async 'dryRun'(_0x162d6d){const _0x1c32aa=a165_0x5c6bd1,_0x59b28b=await readInput(_0x162d6d);return{'method':_0x1c32aa(0xa3),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x59b28b[_0x1c32aa(0xa0)],'codeContent':_0x59b28b[_0x1c32aa(0xab)]},'description':'Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20'+_0x59b28b[_0x1c32aa(0xa0)]+'.'};},async 'execute'(_0x436312){const _0xfccc8e=a165_0x5c6bd1,_0x38d852=await readInput(_0x436312),_0x1009e1=await updateCustomPageContent({'pageId':_0x38d852[_0xfccc8e(0xa0)],'pageContent':_0x38d852[_0xfccc8e(0xab)]});if(!Number[_0xfccc8e(0xb1)](_0x1009e1[_0xfccc8e(0xae)])||_0x1009e1[_0xfccc8e(0xae)]<=0x0)throw CliErrors['apiError'](_0xfccc8e(0x9c));const _0x138ce1=buildCustomPageEditUrl(_0x38d852[_0xfccc8e(0xb6)],_0x38d852['pageId']),_0x312bc0=await resolveCustomPageDevelopmentUrl(_0x38d852[_0xfccc8e(0xb6)],_0x38d852[_0xfccc8e(0xa0)],_0x436312['cookie']);return{'ok':!![],'data':{'operation':'page.custom-update','selector':{'appCode':_0x38d852[_0xfccc8e(0xb6)],'pageId':_0x38d852[_0xfccc8e(0xa0)]},'before':null,'after':{'pageId':_0x1009e1['pageId'],'version':_0x1009e1[_0xfccc8e(0xae)],'pageContent':_0x38d852['pageContent']},'dryRun':![],'request':_0x38d852,..._0x312bc0?{'pageUrl':_0x312bc0}:{},..._0x138ce1?{'editPageUrl':_0x138ce1}:{},'warnings':_0x312bc0?[]:[_0xfccc8e(0xad)]},'message':'Updated\x20Custom\x20Page\x20'+_0x38d852[_0xfccc8e(0xa0)]+'.'};}};async function readInput(_0x27d95f){const _0x14f830=a165_0x5c6bd1,_0x2e6d7d=readCustomPageId(_0x27d95f),_0x47a23c=_0x27d95f[_0x14f830(0xb2)](_0x14f830(0x98))['trim']()||(await getCustomPageSource(_0x2e6d7d))['appCode']?.[_0x14f830(0xa6)]();if(!_0x47a23c)throw CliErrors[_0x14f830(0xa4)](_0x14f830(0xb7)+_0x2e6d7d+'.');return{'appCode':_0x47a23c,'pageId':_0x2e6d7d,'pageContent':await readValidatedPageContent(_0x27d95f)};}function a165_0x59c1(_0x255483,_0x2ff091){_0x255483=_0x255483-0x98;const _0x9c77a4=a165_0x9c77();let _0x59c1e8=_0x9c77a4[_0x255483];return _0x59c1e8;}function a165_0x9c77(){const _0x47a6ce=['str','write','Directory\x20containing\x20all\x20complete\x20page\x20files','27unIyeB','appCode','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','appcode','number','custom-update','144616HOBZxm','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','1116tpsHZx','1462745NqAFRr','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','pageId','page-content','939617QxewnY','POST','validation','1325032dcFDFG','trim','1262412kiVncL','196fBWifQ','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','2295rquIEc','pageContent','page','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','newVersion','2866980ZxDwQu','Custom\x20Page\x20ID','isInteger'];a165_0x9c77=function(){return _0x47a6ce;};return a165_0x9c77();}async function readValidatedPageContent(_0x5df85e){const _0x4adea5=a165_0x5c6bd1,_0x3451a7=await readCustomPageDirectory(_0x5df85e[_0x4adea5(0xb2)]('page-dir'));return await validateCustomPageContent(_0x3451a7),_0x3451a7;}
1
+ function a179_0x425b(){const _0x378655=['Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','17087rEbcpE','POST','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','str','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','50sRzFKc','custom-update','6305648HfOTuk','number','page-content','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','3059664IdOIZp','cookie','trim','appCode','pageContent','page-dir','validation','page.custom-update','pageId','114WbMhnD','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','19420kIcBsq','string','write','Updated\x20Custom\x20Page\x20','1689957fgWaMP','113wEuXny','113770BstebD','5085591htthjh','Custom\x20Page\x20ID','page','220bQrJrj','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','newVersion','isInteger','1208jwwdop'];a179_0x425b=function(){return _0x378655;};return a179_0x425b();}const a179_0x2cbb87=a179_0x533e;(function(_0x1045c1,_0x9da089){const _0x23f79f=a179_0x533e,_0x8524d=_0x1045c1();while(!![]){try{const _0xb0ee4b=-parseInt(_0x23f79f(0x1a5))/0x1*(parseInt(_0x23f79f(0x1a0))/0x2)+-parseInt(_0x23f79f(0x1a7))/0x3+-parseInt(_0x23f79f(0x191))/0x4+-parseInt(_0x23f79f(0x1a6))/0x5*(parseInt(_0x23f79f(0x19e))/0x6)+parseInt(_0x23f79f(0x1b0))/0x7*(-parseInt(_0x23f79f(0x1ae))/0x8)+parseInt(_0x23f79f(0x1a4))/0x9*(parseInt(_0x23f79f(0x1b5))/0xa)+-parseInt(_0x23f79f(0x1aa))/0xb*(-parseInt(_0x23f79f(0x195))/0xc);if(_0xb0ee4b===_0x9da089)break;else _0x8524d['push'](_0x8524d['shift']());}catch(_0x3e96fb){_0x8524d['push'](_0x8524d['shift']());}}}(a179_0x425b,0xd40c5));function a179_0x533e(_0x3b4dbc,_0x3f8382){_0x3b4dbc=_0x3b4dbc-0x190;const _0x425b53=a179_0x425b();let _0x533e21=_0x425b53[_0x3b4dbc];return _0x533e21;}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';export const pageCustomUpdate={'service':a179_0x2cbb87(0x1a9),'command':a179_0x2cbb87(0x190),'description':a179_0x2cbb87(0x1ab),'risk':a179_0x2cbb87(0x1a2),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a179_0x2cbb87(0x193),'message':a179_0x2cbb87(0x1b2),'hint':a179_0x2cbb87(0x19f)}],'flags':[{'name':'id','type':a179_0x2cbb87(0x192),'required':!![],'description':a179_0x2cbb87(0x1a8)},{'name':a179_0x2cbb87(0x19a),'type':a179_0x2cbb87(0x1a1),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5eeefb){readCustomPageId(_0x5eeefb),await readValidatedPageContent(_0x5eeefb);},async 'dryRun'(_0x2e6fd5){const _0x22b316=a179_0x2cbb87,_0xfb9b07=await readInput(_0x2e6fd5);return{'method':_0x22b316(0x1b1),'url':'/smartapi/webcode/page/update/content','body':{'id':_0xfb9b07[_0x22b316(0x19d)],'codeContent':_0xfb9b07[_0x22b316(0x199)]},'description':_0x22b316(0x194)+_0xfb9b07[_0x22b316(0x19d)]+'.'};},async 'execute'(_0x167f87){const _0x4b240e=a179_0x2cbb87,_0x2bbbba=await readInput(_0x167f87),_0x36a0eb=await updateCustomPageContent({'pageId':_0x2bbbba[_0x4b240e(0x19d)],'pageContent':_0x2bbbba['pageContent']});if(!Number[_0x4b240e(0x1ad)](_0x36a0eb[_0x4b240e(0x1ac)])||_0x36a0eb['newVersion']<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0xc1fc4c=buildCustomPageEditUrl(_0x2bbbba[_0x4b240e(0x198)],_0x2bbbba[_0x4b240e(0x19d)]),_0xa18aa1=await resolveCustomPageDevelopmentUrl(_0x2bbbba[_0x4b240e(0x198)],_0x2bbbba['pageId'],_0x167f87[_0x4b240e(0x196)]);return{'ok':!![],'data':{'operation':_0x4b240e(0x19c),'selector':{'appCode':_0x2bbbba[_0x4b240e(0x198)],'pageId':_0x2bbbba[_0x4b240e(0x19d)]},'before':null,'after':{'pageId':_0x36a0eb[_0x4b240e(0x19d)],'version':_0x36a0eb['newVersion'],'pageContent':_0x2bbbba[_0x4b240e(0x199)]},'dryRun':![],'request':_0x2bbbba,..._0xa18aa1?{'pageUrl':_0xa18aa1}:{},..._0xc1fc4c?{'editPageUrl':_0xc1fc4c}:{},'warnings':_0xa18aa1?[]:[_0x4b240e(0x1b4)]},'message':_0x4b240e(0x1a3)+_0x2bbbba[_0x4b240e(0x19d)]+'.'};}};async function readInput(_0x173bd6){const _0x7b6848=a179_0x2cbb87,_0x356f68=readCustomPageId(_0x173bd6),_0x16078f=_0x173bd6[_0x7b6848(0x1b3)]('appcode')[_0x7b6848(0x197)]()||(await getCustomPageSource(_0x356f68))[_0x7b6848(0x198)]?.[_0x7b6848(0x197)]();if(!_0x16078f)throw CliErrors[_0x7b6848(0x19b)](_0x7b6848(0x1af)+_0x356f68+'.');return{'appCode':_0x16078f,'pageId':_0x356f68,'pageContent':await readValidatedPageContent(_0x173bd6)};}async function readValidatedPageContent(_0x3b3c5f){const _0x571e4c=a179_0x2cbb87,_0x4c729f=await readCustomPageDirectory(_0x3b3c5f[_0x571e4c(0x1b3)](_0x571e4c(0x19a)));return await validateCustomPageContent(_0x4c729f),_0x4c729f;}
@@ -1 +1 @@
1
- const a166_0x5d409e=a166_0x40db;(function(_0x133c95,_0x591134){const _0x320713=a166_0x40db,_0x530a10=_0x133c95();while(!![]){try{const _0x130aeb=parseInt(_0x320713(0x119))/0x1+parseInt(_0x320713(0x115))/0x2*(parseInt(_0x320713(0x12e))/0x3)+parseInt(_0x320713(0x113))/0x4*(parseInt(_0x320713(0x127))/0x5)+-parseInt(_0x320713(0x122))/0x6*(parseInt(_0x320713(0x118))/0x7)+parseInt(_0x320713(0x11a))/0x8+parseInt(_0x320713(0x117))/0x9+-parseInt(_0x320713(0x11e))/0xa;if(_0x130aeb===_0x591134)break;else _0x530a10['push'](_0x530a10['shift']());}catch(_0x465052){_0x530a10['push'](_0x530a10['shift']());}}}(a166_0x5e05,0xf1861));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a166_0x40db(_0x20645b,_0x571665){_0x20645b=_0x20645b-0x112;const _0x5e0516=a166_0x5e05();let _0x40db69=_0x5e0516[_0x20645b];return _0x40db69;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a166_0x5d409e(0x11c),'command':a166_0x5d409e(0x125),'description':a166_0x5d409e(0x12c),'risk':a166_0x5d409e(0x12b),'defaultOutputFormat':a166_0x5d409e(0x123),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a166_0x5d409e(0x121),'type':a166_0x5d409e(0x112),'description':a166_0x5d409e(0x124)}],async 'validate'(_0x327bc0){validateDatasetSelector(_0x327bc0);},async 'dryRun'(_0x202163){const _0x3cc0f9=a166_0x5d409e,_0x50615e=await loadDatasetDetailForPage(_0x202163);return{'method':_0x3cc0f9(0x120),'url':'/smartapi/lovrabet/dataset/'+_0x50615e[_0x3cc0f9(0x128)]+'/standard-page-status?appCode='+encodeURIComponent(_0x202163[_0x3cc0f9(0x11b)]),'description':serializeDryRunDescription({'dataset':{'id':_0x50615e['id'],'code':_0x50615e[_0x3cc0f9(0x128)],'name':_0x50615e['name']},'action':_0x3cc0f9(0x116)})};},async 'execute'(_0x532de7){const _0x2c0318=a166_0x5d409e,_0xed4b14=await loadDatasetDetailForPage(_0x532de7),_0x3bb7a3=await loadDataListPageStatusForGenerate(_0x532de7,_0xed4b14[_0x2c0318(0x128)]),_0x35ca89=getUndeletedRelatedPages(_0xed4b14),_0x38f081=assessDataListPageState(_0xed4b14[_0x2c0318(0x128)],_0x3bb7a3,{'fallbackUndeletedPages':_0x35ca89});return{'ok':!![],'data':{'datasetCode':_0xed4b14[_0x2c0318(0x128)],'precheckSource':_0x3bb7a3?.[_0x2c0318(0x126)]??_0x2c0318(0x11f),'status':_0x38f081[_0x2c0318(0x129)],'manualResolutionRequired':_0x38f081[_0x2c0318(0x12d)],'nextAction':_0x38f081[_0x2c0318(0x114)],'dataListPageStatus':_0x3bb7a3,'relatedPages':{'total':_0xed4b14[_0x2c0318(0x11d)][_0x2c0318(0x12a)],'undeletedCount':_0x35ca89['length']}}};}};function a166_0x5e05(){const _0xff1271=['76872ZRIwgJ','nextAction','98tNwmBw','query-data-list-status','12645603UTgDQf','11879329UfuzeJ','257537GIdHbR','12372992eupaHK','appCode','page','relatedPages','31632050xRuwPF','related-pages-fallback','GET','alias','6TUlmhh','compress','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','data-list-status','source','215qIMAin','code','status','length','read','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','manualResolutionRequired','111057KYyQmX','string'];a166_0x5e05=function(){return _0xff1271;};return a166_0x5e05();}
1
+ function a180_0xaf01(){const _0x5042c4=['code','data-list-status','3722248YCzmxR','length','name','831912cCkqha','/standard-page-status?appCode=','source','manualResolutionRequired','compress','14sDXDCz','relatedPages','GET','nextAction','/smartapi/lovrabet/dataset/','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','related-pages-fallback','alias','2809FxtIzR','469485VuXubG','7NtoYMP','10gLUSQb','appCode','page','read','11483813JnhtPk','1155415qhbuQH','12oPzGPK','674319YjcDxV'];a180_0xaf01=function(){return _0x5042c4;};return a180_0xaf01();}const a180_0x165a4=a180_0xedc6;(function(_0x4a9833,_0x2cb1e4){const _0x16c30b=a180_0xedc6,_0x48ca60=_0x4a9833();while(!![]){try{const _0x1189ba=-parseInt(_0x16c30b(0xc0))/0x1*(parseInt(_0x16c30b(0xb8))/0x2)+parseInt(_0x16c30b(0xad))/0x3+parseInt(_0x16c30b(0xb3))/0x4+-parseInt(_0x16c30b(0xab))/0x5*(-parseInt(_0x16c30b(0xac))/0x6)+parseInt(_0x16c30b(0xa5))/0x7*(parseInt(_0x16c30b(0xb0))/0x8)+-parseInt(_0x16c30b(0xa4))/0x9*(parseInt(_0x16c30b(0xa6))/0xa)+-parseInt(_0x16c30b(0xaa))/0xb;if(_0x1189ba===_0x2cb1e4)break;else _0x48ca60['push'](_0x48ca60['shift']());}catch(_0x9781da){_0x48ca60['push'](_0x48ca60['shift']());}}}(a180_0xaf01,0x3baa3));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a180_0xedc6(_0x18c189,_0x21a96f){_0x18c189=_0x18c189-0xa4;const _0xaf01ae=a180_0xaf01();let _0xedc6b0=_0xaf01ae[_0x18c189];return _0xedc6b0;}export const pageDataListStatus={'service':a180_0x165a4(0xa8),'command':a180_0x165a4(0xaf),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a180_0x165a4(0xa9),'defaultOutputFormat':a180_0x165a4(0xb7),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a180_0x165a4(0xbf),'type':'string','description':a180_0x165a4(0xbd)}],async 'validate'(_0xeca1cd){validateDatasetSelector(_0xeca1cd);},async 'dryRun'(_0x6e9416){const _0x3440c9=a180_0x165a4,_0x5c2d2d=await loadDatasetDetailForPage(_0x6e9416);return{'method':_0x3440c9(0xba),'url':_0x3440c9(0xbc)+_0x5c2d2d[_0x3440c9(0xae)]+_0x3440c9(0xb4)+encodeURIComponent(_0x6e9416[_0x3440c9(0xa7)]),'description':serializeDryRunDescription({'dataset':{'id':_0x5c2d2d['id'],'code':_0x5c2d2d[_0x3440c9(0xae)],'name':_0x5c2d2d[_0x3440c9(0xb2)]},'action':'query-data-list-status'})};},async 'execute'(_0x91f947){const _0x230a89=a180_0x165a4,_0x17d01d=await loadDatasetDetailForPage(_0x91f947),_0x322cb2=await loadDataListPageStatusForGenerate(_0x91f947,_0x17d01d[_0x230a89(0xae)]),_0x2639d0=getUndeletedRelatedPages(_0x17d01d),_0x164c1c=assessDataListPageState(_0x17d01d[_0x230a89(0xae)],_0x322cb2,{'fallbackUndeletedPages':_0x2639d0});return{'ok':!![],'data':{'datasetCode':_0x17d01d[_0x230a89(0xae)],'precheckSource':_0x322cb2?.[_0x230a89(0xb5)]??_0x230a89(0xbe),'status':_0x164c1c['status'],'manualResolutionRequired':_0x164c1c[_0x230a89(0xb6)],'nextAction':_0x164c1c[_0x230a89(0xbb)],'dataListPageStatus':_0x322cb2,'relatedPages':{'total':_0x17d01d[_0x230a89(0xb9)]['length'],'undeletedCount':_0x2639d0[_0x230a89(0xb1)]}}};}};
@@ -1 +1 @@
1
- function a167_0x173a(){const _0x3cb341=['appCode','137919qKkYGB','412dPvLur','progressRate','10657197dhVJDL','precheck','PARTIAL_SUCCESS','4HkpYYz','code','status','8KLklsD','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','page-pattern','1049880NMQzNb','page','reused','21631214gSoKgi','55485cqMSCH','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','Submitted\x20a\x20generate\x20task','clientOperationId','source','dataListPageStatus','dataset','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','generate-start','bool','dryRun','related-pages-fallback','allowGenerate','manualResolutionRequired','/smartapi/lovrabet/dataset/','name','13174dlcPlf','operationId','apply','CRUD_PAGE_SET','currentStep','3246LfzZms','POST','message','fieldCount','alias','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','Reusing\x20an\x20existing\x20generate\x20task','191823MatknT','number','taskId','nextAction','compress','DATA_LIST','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','boolean'];a167_0x173a=function(){return _0x3cb341;};return a167_0x173a();}const a167_0x1ac45d=a167_0x55d6;(function(_0x480a51,_0x1f4594){const _0x5e87f4=a167_0x55d6,_0x7b1dc3=_0x480a51();while(!![]){try{const _0x30af03=-parseInt(_0x5e87f4(0x1d6))/0x1+-parseInt(_0x5e87f4(0x1dc))/0x2*(parseInt(_0x5e87f4(0x1cd))/0x3)+-parseInt(_0x5e87f4(0x1d7))/0x4*(parseInt(_0x5e87f4(0x1e6))/0x5)+parseInt(_0x5e87f4(0x1fb))/0x6*(-parseInt(_0x5e87f4(0x1f6))/0x7)+parseInt(_0x5e87f4(0x1df))/0x8*(parseInt(_0x5e87f4(0x1d9))/0x9)+parseInt(_0x5e87f4(0x1e2))/0xa+parseInt(_0x5e87f4(0x1e5))/0xb;if(_0x30af03===_0x1f4594)break;else _0x7b1dc3['push'](_0x7b1dc3['shift']());}catch(_0x34fedb){_0x7b1dc3['push'](_0x7b1dc3['shift']());}}}(a167_0x173a,0xca4e1));function a167_0x55d6(_0x530787,_0xb06071){_0x530787=_0x530787-0x1c7;const _0x173a72=a167_0x173a();let _0x55d6f0=_0x173a72[_0x530787];return _0x55d6f0;}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':a167_0x1ac45d(0x1e3),'command':a167_0x1ac45d(0x1ee),'description':a167_0x1ac45d(0x1cb),'risk':'write','defaultOutputFormat':a167_0x1ac45d(0x1d1),'rejectedFlags':[{'name':'page-type','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a167_0x1ac45d(0x1e1),'message':a167_0x1ac45d(0x1e7),'hint':a167_0x1ac45d(0x1d3)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a167_0x1ac45d(0x1ca),'type':'string','description':a167_0x1ac45d(0x1ed)},{'name':a167_0x1ac45d(0x1f8),'type':a167_0x1ac45d(0x1d4),'description':a167_0x1ac45d(0x1e0)}],async 'validate'(_0x3bc54a){validateDatasetSelector(_0x3bc54a);},async 'dryRun'(_0x264ff5){const _0x228ecd=a167_0x1ac45d,_0x37247c=await prepare(_0x264ff5);return{'method':_0x228ecd(0x1c7),'url':_0x228ecd(0x1f4)+_0x37247c[_0x228ecd(0x1ec)][_0x228ecd(0x1dd)]+'/generate-standard-pages/start','body':{'appCode':_0x264ff5[_0x228ecd(0x1d5)],'clientOperationId':_0x37247c[_0x228ecd(0x1e9)]},'description':serializeDryRunDescription({'dataset':{'id':_0x37247c['dataset']['id'],'code':_0x37247c[_0x228ecd(0x1ec)][_0x228ecd(0x1dd)],'name':_0x37247c[_0x228ecd(0x1ec)][_0x228ecd(0x1f5)],'fieldCount':_0x37247c['dataset'][_0x228ecd(0x1c9)]},'precheckSource':_0x37247c['dataListPageStatus']?.[_0x228ecd(0x1ea)]??_0x228ecd(0x1f1),'action':_0x228ecd(0x1ee),'clientOperationId':_0x37247c[_0x228ecd(0x1e9)],'plannedStatus':_0x37247c[_0x228ecd(0x1da)][_0x228ecd(0x1de)],'reason':_0x37247c[_0x228ecd(0x1da)][_0x228ecd(0x1c8)]})};},async 'execute'(_0x54348a){const _0x832e23=a167_0x1ac45d;if(!_0x54348a[_0x832e23(0x1ef)](_0x832e23(0x1f8))){const _0x293fc8=await pageGenerateStart[_0x832e23(0x1f0)](_0x54348a);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x293fc8};}const _0x23c082=await prepare(_0x54348a);if(!_0x23c082[_0x832e23(0x1da)][_0x832e23(0x1f2)])return{'ok':![],'message':_0x23c082[_0x832e23(0x1da)]['message'],'data':{'datasetCode':_0x23c082['dataset'][_0x832e23(0x1dd)],'pageType':_0x832e23(0x1d2),'pagePattern':_0x832e23(0x1f9),'clientOperationId':_0x23c082[_0x832e23(0x1e9)],'precheckSource':_0x23c082[_0x832e23(0x1eb)]?.[_0x832e23(0x1ea)]??_0x832e23(0x1f1),'status':_0x23c082[_0x832e23(0x1da)][_0x832e23(0x1de)],'manualResolutionRequired':_0x23c082[_0x832e23(0x1da)][_0x832e23(0x1f3)],'nextAction':_0x23c082['precheck'][_0x832e23(0x1d0)],'query':{'command':buildDataListPageStatusQueryCommand(_0x23c082[_0x832e23(0x1ec)][_0x832e23(0x1dd)],_0x54348a[_0x832e23(0x1d5)])},'dataListPageStatus':_0x23c082[_0x832e23(0x1eb)]}};const _0x5e9180=await startGenerateDataListPages(_0x54348a[_0x832e23(0x1d5)],_0x23c082[_0x832e23(0x1ec)][_0x832e23(0x1dd)],{'clientOperationId':_0x23c082['clientOperationId']}),_0x4c6637=_0x5e9180['status']==='SUCCESS'||_0x5e9180['status']===_0x832e23(0x1db)?await loadDataListPageStatusForGenerate(_0x54348a,_0x23c082[_0x832e23(0x1ec)]['code']):null,_0x318539=assessGenerateOperationState(_0x23c082[_0x832e23(0x1ec)][_0x832e23(0x1dd)],_0x5e9180['status'],_0x4c6637);return{'ok':!![],'message':_0x5e9180[_0x832e23(0x1e4)]?_0x832e23(0x1cc):_0x832e23(0x1e8),'data':{'datasetCode':_0x23c082[_0x832e23(0x1ec)]['code'],'appCode':_0x54348a[_0x832e23(0x1d5)],'pageType':_0x832e23(0x1d2),'pagePattern':_0x832e23(0x1f9),'taskId':_0x5e9180[_0x832e23(0x1cf)]??null,'operationId':_0x5e9180['operationId']??null,'clientOperationId':_0x23c082[_0x832e23(0x1e9)],'jobStatus':_0x5e9180[_0x832e23(0x1de)]??null,'progressRate':typeof _0x5e9180[_0x832e23(0x1d8)]===_0x832e23(0x1ce)?_0x5e9180[_0x832e23(0x1d8)]:null,'currentStep':_0x5e9180[_0x832e23(0x1fa)]??null,'reused':_0x5e9180[_0x832e23(0x1e4)]===!![],'status':_0x318539[_0x832e23(0x1de)],'manualResolutionRequired':_0x318539[_0x832e23(0x1f3)],'nextAction':_0x318539[_0x832e23(0x1d0)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x23c082[_0x832e23(0x1ec)][_0x832e23(0x1dd)],{'appCode':_0x54348a['appCode'],'taskId':_0x5e9180[_0x832e23(0x1cf)],'operationId':_0x5e9180[_0x832e23(0x1f7)],'clientOperationId':_0x23c082[_0x832e23(0x1e9)]})},'dataListPageStatus':_0x4c6637}};}};async function prepare(_0x2cd4db){const _0x2e3b65=a167_0x1ac45d,_0x14ab2d=await loadDatasetDetailForPage(_0x2cd4db),_0x2a07e3=await loadDataListPageStatusForGenerate(_0x2cd4db,_0x14ab2d[_0x2e3b65(0x1dd)]),_0x190e0=getUndeletedRelatedPages(_0x14ab2d);return{'dataset':_0x14ab2d,'dataListPageStatus':_0x2a07e3,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x14ab2d['code'],_0x2a07e3,{'fallbackUndeletedPages':_0x190e0})};}
1
+ const a181_0x16e880=a181_0x1c12;(function(_0x5a1ff4,_0x28dca0){const _0x2b8dac=a181_0x1c12,_0x46f1ce=_0x5a1ff4();while(!![]){try{const _0x10bf06=parseInt(_0x2b8dac(0xa9))/0x1+-parseInt(_0x2b8dac(0xa8))/0x2*(parseInt(_0x2b8dac(0xa2))/0x3)+-parseInt(_0x2b8dac(0xa6))/0x4+parseInt(_0x2b8dac(0xb0))/0x5+-parseInt(_0x2b8dac(0xaf))/0x6+parseInt(_0x2b8dac(0xc4))/0x7+parseInt(_0x2b8dac(0xbd))/0x8*(parseInt(_0x2b8dac(0xa1))/0x9);if(_0x10bf06===_0x28dca0)break;else _0x46f1ce['push'](_0x46f1ce['shift']());}catch(_0x2dc934){_0x46f1ce['push'](_0x46f1ce['shift']());}}}(a181_0x14c9,0xacba8));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':a181_0x16e880(0xaa),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a181_0x16e880(0xc2),'defaultOutputFormat':a181_0x16e880(0xc3),'rejectedFlags':[{'name':a181_0x16e880(0xbb),'message':a181_0x16e880(0xab),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a181_0x16e880(0xba),'message':a181_0x16e880(0xb9),'hint':a181_0x16e880(0xbe)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a181_0x16e880(0xc6),'type':a181_0x16e880(0xb4),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a181_0x16e880(0x9d),'type':a181_0x16e880(0xc1),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x11b156){validateDatasetSelector(_0x11b156);},async 'dryRun'(_0x27b8aa){const _0xf60ed4=a181_0x16e880,_0x182f27=await prepare(_0x27b8aa);return{'method':_0xf60ed4(0xa3),'url':_0xf60ed4(0x9c)+_0x182f27[_0xf60ed4(0x9a)]['code']+'/generate-standard-pages/start','body':{'appCode':_0x27b8aa[_0xf60ed4(0xa4)],'clientOperationId':_0x182f27[_0xf60ed4(0xc8)]},'description':serializeDryRunDescription({'dataset':{'id':_0x182f27[_0xf60ed4(0x9a)]['id'],'code':_0x182f27[_0xf60ed4(0x9a)][_0xf60ed4(0xad)],'name':_0x182f27[_0xf60ed4(0x9a)]['name'],'fieldCount':_0x182f27[_0xf60ed4(0x9a)]['fieldCount']},'precheckSource':_0x182f27['dataListPageStatus']?.['source']??_0xf60ed4(0xbc),'action':_0xf60ed4(0xb3),'clientOperationId':_0x182f27[_0xf60ed4(0xc8)],'plannedStatus':_0x182f27[_0xf60ed4(0xa5)][_0xf60ed4(0xb5)],'reason':_0x182f27['precheck'][_0xf60ed4(0x9e)]})};},async 'execute'(_0x2027fd){const _0x1d6628=a181_0x16e880;if(!_0x2027fd['bool'](_0x1d6628(0x9d))){const _0x758008=await pageGenerateStart['dryRun'](_0x2027fd);return{'ok':!![],'message':_0x1d6628(0xc7),'data':_0x758008};}const _0x1fda8b=await prepare(_0x2027fd);if(!_0x1fda8b[_0x1d6628(0xa5)][_0x1d6628(0xb6)])return{'ok':![],'message':_0x1fda8b[_0x1d6628(0xa5)][_0x1d6628(0x9e)],'data':{'datasetCode':_0x1fda8b[_0x1d6628(0x9a)]['code'],'pageType':_0x1d6628(0xb1),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x1fda8b[_0x1d6628(0xc8)],'precheckSource':_0x1fda8b['dataListPageStatus']?.[_0x1d6628(0xa7)]??_0x1d6628(0xbc),'status':_0x1fda8b[_0x1d6628(0xa5)]['status'],'manualResolutionRequired':_0x1fda8b[_0x1d6628(0xa5)]['manualResolutionRequired'],'nextAction':_0x1fda8b[_0x1d6628(0xa5)]['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x1fda8b['dataset'][_0x1d6628(0xad)],_0x2027fd[_0x1d6628(0xa4)])},'dataListPageStatus':_0x1fda8b[_0x1d6628(0xac)]}};const _0x31cb5d=await startGenerateDataListPages(_0x2027fd[_0x1d6628(0xa4)],_0x1fda8b['dataset'][_0x1d6628(0xad)],{'clientOperationId':_0x1fda8b[_0x1d6628(0xc8)]}),_0x3ccd5f=_0x31cb5d[_0x1d6628(0xb5)]===_0x1d6628(0x9f)||_0x31cb5d[_0x1d6628(0xb5)]===_0x1d6628(0xc5)?await loadDataListPageStatusForGenerate(_0x2027fd,_0x1fda8b[_0x1d6628(0x9a)]['code']):null,_0x1dd7e3=assessGenerateOperationState(_0x1fda8b['dataset'][_0x1d6628(0xad)],_0x31cb5d[_0x1d6628(0xb5)],_0x3ccd5f);return{'ok':!![],'message':_0x31cb5d[_0x1d6628(0xae)]?_0x1d6628(0xb8):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x1fda8b[_0x1d6628(0x9a)][_0x1d6628(0xad)],'appCode':_0x2027fd['appCode'],'pageType':_0x1d6628(0xb1),'pagePattern':_0x1d6628(0xa0),'taskId':_0x31cb5d[_0x1d6628(0x99)]??null,'operationId':_0x31cb5d[_0x1d6628(0xbf)]??null,'clientOperationId':_0x1fda8b['clientOperationId'],'jobStatus':_0x31cb5d[_0x1d6628(0xb5)]??null,'progressRate':typeof _0x31cb5d[_0x1d6628(0xb2)]===_0x1d6628(0x9b)?_0x31cb5d[_0x1d6628(0xb2)]:null,'currentStep':_0x31cb5d['currentStep']??null,'reused':_0x31cb5d[_0x1d6628(0xae)]===!![],'status':_0x1dd7e3[_0x1d6628(0xb5)],'manualResolutionRequired':_0x1dd7e3[_0x1d6628(0xc0)],'nextAction':_0x1dd7e3[_0x1d6628(0xb7)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1fda8b[_0x1d6628(0x9a)][_0x1d6628(0xad)],{'appCode':_0x2027fd['appCode'],'taskId':_0x31cb5d[_0x1d6628(0x99)],'operationId':_0x31cb5d[_0x1d6628(0xbf)],'clientOperationId':_0x1fda8b[_0x1d6628(0xc8)]})},'dataListPageStatus':_0x3ccd5f}};}};async function prepare(_0x5b481b){const _0x234758=a181_0x16e880,_0x3952a4=await loadDatasetDetailForPage(_0x5b481b),_0x20d897=await loadDataListPageStatusForGenerate(_0x5b481b,_0x3952a4[_0x234758(0xad)]),_0x4fd468=getUndeletedRelatedPages(_0x3952a4);return{'dataset':_0x3952a4,'dataListPageStatus':_0x20d897,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3952a4[_0x234758(0xad)],_0x20d897,{'fallbackUndeletedPages':_0x4fd468})};}function a181_0x1c12(_0x3c3454,_0xc090c5){_0x3c3454=_0x3c3454-0x99;const _0x14c9db=a181_0x14c9();let _0x1c1295=_0x14c9db[_0x3c3454];return _0x1c1295;}function a181_0x14c9(){const _0x478628=['boolean','write','compress','6367648LgfMfV','PARTIAL_SUCCESS','alias','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','clientOperationId','taskId','dataset','number','/smartapi/lovrabet/dataset/','apply','message','SUCCESS','CRUD_PAGE_SET','219330UNbwjj','159543woKqnr','POST','appCode','precheck','3136484hJzBbk','source','2WpycnV','514433rNGtCj','page','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','dataListPageStatus','code','reused','8466162QkgodO','225790TKeQlb','DATA_LIST','progressRate','generate-start','string','status','allowGenerate','nextAction','Reusing\x20an\x20existing\x20generate\x20task','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','page-pattern','page-type','related-pages-fallback','488ttciUC','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','operationId','manualResolutionRequired'];a181_0x14c9=function(){return _0x478628;};return a181_0x14c9();}
@@ -1 +1 @@
1
- function a168_0x47c7(){const _0x258f41=['SUCCESS','set','status','operationId','task-id','4234377PUPnWT','generate-status','1415532FQuGiN','90EODYCK','taskId','/smartapi/lovrabet/dataset/','read','1673104gXIpaM','str','appCode','page','1586643HtfNnb','alias','3524169CYyRgG','operation-id','5SWPeQb','string','45592nJfprl','29jpNrJU','GET','496768btnJvK','errorMsg','nextAction','query-generate-operation-status','client-operation-id','code','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','10lzvPov','PARTIAL_SUCCESS','progressRate','name','compress','clientOperationId','currentStep','result','manualResolutionRequired','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','toString'];a168_0x47c7=function(){return _0x258f41;};return a168_0x47c7();}const a168_0x543fba=a168_0xac4a;function a168_0xac4a(_0x491aaf,_0x2352eb){_0x491aaf=_0x491aaf-0x1b5;const _0x47c7b4=a168_0x47c7();let _0xac4a65=_0x47c7b4[_0x491aaf];return _0xac4a65;}(function(_0x391a63,_0x227848){const _0x4da8ad=a168_0xac4a,_0x575db8=_0x391a63();while(!![]){try{const _0x4e9c5a=parseInt(_0x4da8ad(0x1c9))/0x1*(-parseInt(_0x4da8ad(0x1c8))/0x2)+-parseInt(_0x4da8ad(0x1c2))/0x3+parseInt(_0x4da8ad(0x1be))/0x4+parseInt(_0x4da8ad(0x1c6))/0x5*(parseInt(_0x4da8ad(0x1b9))/0x6)+parseInt(_0x4da8ad(0x1b7))/0x7+-parseInt(_0x4da8ad(0x1cb))/0x8*(-parseInt(_0x4da8ad(0x1ba))/0x9)+parseInt(_0x4da8ad(0x1d2))/0xa*(-parseInt(_0x4da8ad(0x1c4))/0xb);if(_0x4e9c5a===_0x227848)break;else _0x575db8['push'](_0x575db8['shift']());}catch(_0x1343ef){_0x575db8['push'](_0x575db8['shift']());}}}(a168_0x47c7,0x5a43d));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';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a168_0x543fba(0x1c1),'command':a168_0x543fba(0x1b8),'description':'Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','risk':a168_0x543fba(0x1bd),'defaultOutputFormat':a168_0x543fba(0x1d6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a168_0x543fba(0x1c3),'type':a168_0x543fba(0x1c7),'description':a168_0x543fba(0x1d1)},{'name':a168_0x543fba(0x1b6),'type':a168_0x543fba(0x1c7),'description':'Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a168_0x543fba(0x1c5),'type':'string','description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a168_0x543fba(0x1cf),'type':a168_0x543fba(0x1c7),'description':a168_0x543fba(0x1db)}],async 'validate'(_0x5684a3){validateDatasetSelector(_0x5684a3),validateGenerateOperationSelector(_0x5684a3);},async 'dryRun'(_0x482edd){const _0x5d279d=a168_0x543fba,_0x2f5204=await loadDatasetDetailForPage(_0x482edd),_0x551827=_0x482edd[_0x5d279d(0x1bf)](_0x5d279d(0x1b6)),_0x17a781=_0x482edd['str'](_0x5d279d(0x1c5)),_0x527891=_0x482edd[_0x5d279d(0x1bf)](_0x5d279d(0x1cf)),_0x283a4a=new URLSearchParams({'appCode':_0x482edd[_0x5d279d(0x1c0)]});return _0x551827&&_0x283a4a['set'](_0x5d279d(0x1bb),_0x551827),_0x17a781&&_0x283a4a[_0x5d279d(0x1de)](_0x5d279d(0x1b5),_0x17a781),_0x527891&&_0x283a4a[_0x5d279d(0x1de)](_0x5d279d(0x1d7),_0x527891),{'method':_0x5d279d(0x1ca),'url':_0x5d279d(0x1bc)+_0x2f5204[_0x5d279d(0x1d0)]+'/generate-standard-pages/status?'+_0x283a4a[_0x5d279d(0x1dc)](),'description':serializeDryRunDescription({'dataset':{'id':_0x2f5204['id'],'code':_0x2f5204['code'],'name':_0x2f5204[_0x5d279d(0x1d5)]},'action':_0x5d279d(0x1ce),'taskId':_0x551827||undefined,'operationId':_0x17a781||undefined,'clientOperationId':_0x527891||undefined})};},async 'execute'(_0x1e3e7d){const _0x54e15c=a168_0x543fba,_0x55d2a7=await loadDatasetDetailForPage(_0x1e3e7d),_0x3802dd=_0x1e3e7d['str'](_0x54e15c(0x1b6)),_0x1a4745=_0x1e3e7d[_0x54e15c(0x1bf)](_0x54e15c(0x1c5)),_0x42b932=_0x1e3e7d[_0x54e15c(0x1bf)](_0x54e15c(0x1cf)),_0x55219d=await getGenerateDataListPagesStatus(_0x1e3e7d[_0x54e15c(0x1c0)],_0x55d2a7['code'],{'taskId':_0x3802dd||undefined,'operationId':_0x1a4745||undefined,'clientOperationId':_0x42b932||undefined}),_0x53291c=_0x55219d['status']===_0x54e15c(0x1dd)||_0x55219d[_0x54e15c(0x1df)]===_0x54e15c(0x1d3),_0xe842c5=_0x53291c?await loadDataListPageStatusForGenerate(_0x1e3e7d,_0x55d2a7[_0x54e15c(0x1d0)]):null,_0x7a0a23=assessGenerateOperationState(_0x55d2a7[_0x54e15c(0x1d0)],_0x55219d['status'],_0xe842c5),_0x1f77b4=_0x55219d['taskId']??_0x3802dd??undefined,_0x554307=_0x55219d[_0x54e15c(0x1b5)]??_0x1a4745??undefined,_0x15bb00=_0x55219d['clientOperationId']??_0x42b932??undefined;return{'ok':!![],'message':_0x7a0a23[_0x54e15c(0x1df)]==='operation_failed'?_0x55219d[_0x54e15c(0x1cc)]||_0x7a0a23['message']:_0x7a0a23['message'],'data':{'datasetCode':_0x55d2a7[_0x54e15c(0x1d0)],'appCode':_0x1e3e7d[_0x54e15c(0x1c0)],'taskId':_0x1f77b4,'operationId':_0x554307,'clientOperationId':_0x15bb00,'jobStatus':_0x55219d[_0x54e15c(0x1df)]??null,'progressRate':typeof _0x55219d[_0x54e15c(0x1d4)]==='number'?_0x55219d[_0x54e15c(0x1d4)]:null,'currentStep':_0x55219d[_0x54e15c(0x1d8)]??null,'errorMsg':_0x55219d[_0x54e15c(0x1cc)]??null,'status':_0x7a0a23[_0x54e15c(0x1df)],'manualResolutionRequired':_0x7a0a23[_0x54e15c(0x1da)],'nextAction':_0x7a0a23[_0x54e15c(0x1cd)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x55d2a7[_0x54e15c(0x1d0)],{'appCode':_0x1e3e7d[_0x54e15c(0x1c0)],'taskId':_0x1f77b4,'operationId':_0x554307,'clientOperationId':_0x15bb00})},'dataListPageStatus':_0xe842c5,'result':_0x55219d[_0x54e15c(0x1d9)]??null}};}};
1
+ const a182_0x4f4f2d=a182_0x2507;(function(_0x3554d4,_0x298272){const _0x466723=a182_0x2507,_0x42cb0c=_0x3554d4();while(!![]){try{const _0x36d120=-parseInt(_0x466723(0x1fc))/0x1*(parseInt(_0x466723(0x1fd))/0x2)+-parseInt(_0x466723(0x1f7))/0x3+-parseInt(_0x466723(0x1ec))/0x4+-parseInt(_0x466723(0x1f1))/0x5+-parseInt(_0x466723(0x20a))/0x6*(-parseInt(_0x466723(0x215))/0x7)+parseInt(_0x466723(0x1f8))/0x8+-parseInt(_0x466723(0x20d))/0x9*(-parseInt(_0x466723(0x204))/0xa);if(_0x36d120===_0x298272)break;else _0x42cb0c['push'](_0x42cb0c['shift']());}catch(_0x574362){_0x42cb0c['push'](_0x42cb0c['shift']());}}}(a182_0xcd4b,0x98c8d));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 a182_0x2507(_0x20183b,_0x408479){_0x20183b=_0x20183b-0x1e9;const _0xcd4b48=a182_0xcd4b();let _0x25075b=_0xcd4b48[_0x20183b];return _0x25075b;}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a182_0x4f4f2d(0x214),'command':a182_0x4f4f2d(0x1f2),'description':a182_0x4f4f2d(0x1fe),'risk':a182_0x4f4f2d(0x202),'defaultOutputFormat':a182_0x4f4f2d(0x200),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a182_0x4f4f2d(0x1e9),'type':a182_0x4f4f2d(0x205),'description':a182_0x4f4f2d(0x201)},{'name':a182_0x4f4f2d(0x20b),'type':'string','description':a182_0x4f4f2d(0x1f4)},{'name':'operation-id','type':'string','description':a182_0x4f4f2d(0x213)},{'name':a182_0x4f4f2d(0x1ff),'type':a182_0x4f4f2d(0x205),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0xa982fb){validateDatasetSelector(_0xa982fb),validateGenerateOperationSelector(_0xa982fb);},async 'dryRun'(_0x3b9ac4){const _0x11478e=a182_0x4f4f2d,_0x1dd9bb=await loadDatasetDetailForPage(_0x3b9ac4),_0x359773=_0x3b9ac4[_0x11478e(0x212)](_0x11478e(0x20b)),_0x3e4ef0=_0x3b9ac4['str'](_0x11478e(0x1f9)),_0x2d9c2e=_0x3b9ac4[_0x11478e(0x212)](_0x11478e(0x1ff)),_0x4a7692=new URLSearchParams({'appCode':_0x3b9ac4[_0x11478e(0x1f5)]});return _0x359773&&_0x4a7692['set'](_0x11478e(0x1eb),_0x359773),_0x3e4ef0&&_0x4a7692[_0x11478e(0x203)](_0x11478e(0x20c),_0x3e4ef0),_0x2d9c2e&&_0x4a7692[_0x11478e(0x203)]('clientOperationId',_0x2d9c2e),{'method':'GET','url':_0x11478e(0x216)+_0x1dd9bb[_0x11478e(0x1ea)]+'/generate-standard-pages/status?'+_0x4a7692[_0x11478e(0x1f0)](),'description':serializeDryRunDescription({'dataset':{'id':_0x1dd9bb['id'],'code':_0x1dd9bb[_0x11478e(0x1ea)],'name':_0x1dd9bb[_0x11478e(0x20f)]},'action':_0x11478e(0x1ed),'taskId':_0x359773||undefined,'operationId':_0x3e4ef0||undefined,'clientOperationId':_0x2d9c2e||undefined})};},async 'execute'(_0x2ec03e){const _0x413e11=a182_0x4f4f2d,_0x25a922=await loadDatasetDetailForPage(_0x2ec03e),_0x20dc6d=_0x2ec03e['str']('task-id'),_0x16dc94=_0x2ec03e[_0x413e11(0x212)]('operation-id'),_0x3ea8c0=_0x2ec03e[_0x413e11(0x212)]('client-operation-id'),_0x2c150e=await getGenerateDataListPagesStatus(_0x2ec03e[_0x413e11(0x1f5)],_0x25a922[_0x413e11(0x1ea)],{'taskId':_0x20dc6d||undefined,'operationId':_0x16dc94||undefined,'clientOperationId':_0x3ea8c0||undefined}),_0x1f3b9c=_0x2c150e[_0x413e11(0x208)]===_0x413e11(0x1ee)||_0x2c150e[_0x413e11(0x208)]===_0x413e11(0x209),_0x96f97e=_0x1f3b9c?await loadDataListPageStatusForGenerate(_0x2ec03e,_0x25a922[_0x413e11(0x1ea)]):null,_0x570b5b=assessGenerateOperationState(_0x25a922[_0x413e11(0x1ea)],_0x2c150e[_0x413e11(0x208)],_0x96f97e),_0x4731bd=_0x2c150e[_0x413e11(0x1eb)]??_0x20dc6d??undefined,_0x460644=_0x2c150e[_0x413e11(0x20c)]??_0x16dc94??undefined,_0x202a69=_0x2c150e[_0x413e11(0x1f3)]??_0x3ea8c0??undefined;return{'ok':!![],'message':_0x570b5b['status']===_0x413e11(0x207)?_0x2c150e['errorMsg']||_0x570b5b['message']:_0x570b5b[_0x413e11(0x1fb)],'data':{'datasetCode':_0x25a922[_0x413e11(0x1ea)],'appCode':_0x2ec03e['appCode'],'taskId':_0x4731bd,'operationId':_0x460644,'clientOperationId':_0x202a69,'jobStatus':_0x2c150e[_0x413e11(0x208)]??null,'progressRate':typeof _0x2c150e[_0x413e11(0x211)]===_0x413e11(0x1fa)?_0x2c150e['progressRate']:null,'currentStep':_0x2c150e[_0x413e11(0x206)]??null,'errorMsg':_0x2c150e[_0x413e11(0x210)]??null,'status':_0x570b5b[_0x413e11(0x208)],'manualResolutionRequired':_0x570b5b[_0x413e11(0x1f6)],'nextAction':_0x570b5b[_0x413e11(0x1ef)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x25a922['code'],{'appCode':_0x2ec03e[_0x413e11(0x1f5)],'taskId':_0x4731bd,'operationId':_0x460644,'clientOperationId':_0x202a69})},'dataListPageStatus':_0x96f97e,'result':_0x2c150e[_0x413e11(0x20e)]??null}};}};function a182_0xcd4b(){const _0xfd2c64=['string','currentStep','operation_failed','status','PARTIAL_SUCCESS','6gmSVPH','task-id','operationId','499869SVakvm','result','name','errorMsg','progressRate','str','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','page','328587PoYvTy','/smartapi/lovrabet/dataset/','alias','code','taskId','2702356SMTqAA','query-generate-operation-status','SUCCESS','nextAction','toString','6201305vFNVuw','generate-status','clientOperationId','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','appCode','manualResolutionRequired','1516107oIkZXm','926328QQkoxG','operation-id','number','message','6KtTQUI','334526dgdqxb','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','client-operation-id','compress','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','read','set','700tvhkeU'];a182_0xcd4b=function(){return _0xfd2c64;};return a182_0xcd4b();}
@@ -1 +1 @@
1
- (function(_0x1eadb9,_0x5ec3f4){const _0x4efcc3=a169_0xe0bc,_0x20b75c=_0x1eadb9();while(!![]){try{const _0x528a1c=-parseInt(_0x4efcc3(0xff))/0x1+parseInt(_0x4efcc3(0x102))/0x2+-parseInt(_0x4efcc3(0x103))/0x3+-parseInt(_0x4efcc3(0x100))/0x4+-parseInt(_0x4efcc3(0xfe))/0x5+parseInt(_0x4efcc3(0x101))/0x6*(-parseInt(_0x4efcc3(0xfd))/0x7)+parseInt(_0x4efcc3(0xfc))/0x8;if(_0x528a1c===_0x5ec3f4)break;else _0x20b75c['push'](_0x20b75c['shift']());}catch(_0x55cb4d){_0x20b75c['push'](_0x20b75c['shift']());}}}(a169_0x2db9,0x910ed));function a169_0x2db9(){const _0x288356=['3038652trOPoY','24654FffTHr','715684nEebjJ','537096LIIBrj','19920184ZGxvMd','483XygXNc','3155430VIHmUx','400406TEjnkf'];a169_0x2db9=function(){return _0x288356;};return a169_0x2db9();}import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';function a169_0xe0bc(_0x1ace62,_0x1f1e25){_0x1ace62=_0x1ace62-0xfc;const _0x2db901=a169_0x2db9();let _0xe0bc01=_0x2db901[_0x1ace62];return _0xe0bc01;}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';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';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(_0x5e778d,_0x2c09a6){const _0x3d024c=a183_0x430f,_0x4bf6cb=_0x5e778d();while(!![]){try{const _0x2950d1=-parseInt(_0x3d024c(0x19a))/0x1*(-parseInt(_0x3d024c(0x197))/0x2)+parseInt(_0x3d024c(0x19b))/0x3+-parseInt(_0x3d024c(0x19f))/0x4*(parseInt(_0x3d024c(0x199))/0x5)+parseInt(_0x3d024c(0x195))/0x6*(-parseInt(_0x3d024c(0x198))/0x7)+-parseInt(_0x3d024c(0x19c))/0x8*(-parseInt(_0x3d024c(0x19d))/0x9)+parseInt(_0x3d024c(0x196))/0xa+parseInt(_0x3d024c(0x19e))/0xb;if(_0x2950d1===_0x2c09a6)break;else _0x4bf6cb['push'](_0x4bf6cb['shift']());}catch(_0x2fd2d2){_0x4bf6cb['push'](_0x4bf6cb['shift']());}}}(a183_0x27f1,0x65c1d));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';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 a183_0x430f(_0x2362bc,_0x389860){_0x2362bc=_0x2362bc-0x195;const _0x27f14d=a183_0x27f1();let _0x430f01=_0x27f14d[_0x2362bc];return _0x430f01;}import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';function a183_0x27f1(){const _0x55dfbd=['80706VMdJIR','3571048clzmIP','9soxIfw','4031566qcrEZP','46228NrMLzo','4779426onLwda','6801700eCzkwf','2YmcDYq','7rrMRMf','355BNGqse','513956BrYZha'];a183_0x27f1=function(){return _0x55dfbd;};return a183_0x27f1();}export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
@@ -1 +1 @@
1
- const a170_0x3e98e4=a170_0x52f1;(function(_0x42bc42,_0x10d9e6){const _0x24194d=a170_0x52f1,_0x4baac0=_0x42bc42();while(!![]){try{const _0x3bdf5f=parseInt(_0x24194d(0x1f5))/0x1*(parseInt(_0x24194d(0x1d4))/0x2)+parseInt(_0x24194d(0x206))/0x3*(parseInt(_0x24194d(0x208))/0x4)+-parseInt(_0x24194d(0x202))/0x5*(-parseInt(_0x24194d(0x1d0))/0x6)+-parseInt(_0x24194d(0x1fd))/0x7+-parseInt(_0x24194d(0x1ed))/0x8+-parseInt(_0x24194d(0x1e2))/0x9+parseInt(_0x24194d(0x1cf))/0xa;if(_0x3bdf5f===_0x10d9e6)break;else _0x4baac0['push'](_0x4baac0['shift']());}catch(_0x392c44){_0x4baac0['push'](_0x4baac0['shift']());}}}(a170_0x27eb,0x96277));import{writeFile}from'node:fs/promises';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':a170_0x3e98e4(0x1e9),'command':a170_0x3e98e4(0x1ff),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':a170_0x3e98e4(0x1f0),'defaultOutputFormat':a170_0x3e98e4(0x1e4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a170_0x3e98e4(0x1f2),'description':a170_0x3e98e4(0x203)},DATASETCODE_FLAG_OPTIONAL,{'name':a170_0x3e98e4(0x1f9),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a170_0x3e98e4(0x209),'type':a170_0x3e98e4(0x207),'description':a170_0x3e98e4(0x1fa)},{'name':'force','type':a170_0x3e98e4(0x200),'description':a170_0x3e98e4(0x20b)}],async 'validate'(_0xad9744){validatePageTargetSelector(_0xad9744);},async 'dryRun'(_0x41bd3a){const _0x58063d=a170_0x3e98e4,_0x421fee=await buildPullPlan(_0x41bd3a);return{'method':'GET','url':_0x421fee[_0x58063d(0x1d8)]===_0x58063d(0x1ee)?_0x58063d(0x1fe)+(_0x421fee[_0x58063d(0x1f7)][0x0]?.[_0x58063d(0x1fb)][_0x58063d(0x1d3)]??''):_0x58063d(0x1f6),'body':{'appCode':_0x41bd3a[_0x58063d(0x1f3)],'mode':_0x421fee[_0x58063d(0x1d8)],'targetDatasetCode':_0x421fee[_0x58063d(0x1e0)]??null,'pages':_0x421fee[_0x58063d(0x1f7)][_0x58063d(0x1df)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x421fee[_0x58063d(0x1d8)],'datasetCode':_0x421fee[_0x58063d(0x1e0)]??null,'totalCandidates':_0x421fee[_0x58063d(0x1f7)][_0x58063d(0x1de)],'totalWouldPull':_0x421fee[_0x58063d(0x1f7)][_0x58063d(0x1fc)](_0x1310a3=>_0x1310a3['status']===_0x58063d(0x1e1))[_0x58063d(0x1de)],'totalConflicts':_0x421fee[_0x58063d(0x1f7)][_0x58063d(0x1fc)](_0x5b549a=>_0x5b549a[_0x58063d(0x1f8)]===_0x58063d(0x201))[_0x58063d(0x1de)]})};},async 'execute'(_0x49625e){const _0x56e09c=a170_0x3e98e4,_0x5f3023=loadPageProjectConfig(_0x49625e[_0x56e09c(0x1f3)]),_0x5b7763=await readPageLockFile(_0x5f3023[_0x56e09c(0x1dd)]),{lockData:_0x2f48ce,appLock:_0x4c765f}=ensurePageLockScope(_0x5b7763??createEmptyPageLock(),_0x49625e[_0x56e09c(0x1f3)]),_0x8ac8db=await buildPullPlan(_0x49625e),_0x2915c1=_0x49625e[_0x56e09c(0x1d5)](_0x56e09c(0x204));if(_0x8ac8db[_0x56e09c(0x1d8)]===_0x56e09c(0x1ee)&&_0x8ac8db[_0x56e09c(0x1f7)][0x0]?.[_0x56e09c(0x1f8)]==='conflict'&&!_0x2915c1)throw CliErrors[_0x56e09c(0x1e3)]('Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20'+_0x8ac8db[_0x56e09c(0x1f7)][0x0][_0x56e09c(0x1e8)],_0x56e09c(0x20a));const _0x2289b1=[],_0x242260=[];for(const _0x2555a9 of _0x8ac8db['items']){if(_0x2555a9[_0x56e09c(0x1f8)]===_0x56e09c(0x201)&&!_0x2915c1){_0x242260['push']({'pageId':_0x2555a9[_0x56e09c(0x1fb)]['pageId'],'type':_0x2555a9[_0x56e09c(0x1fb)][_0x56e09c(0x1d6)],'title':_0x2555a9[_0x56e09c(0x1fb)][_0x56e09c(0x20c)],'localPath':_0x2555a9['localPath'],'reason':_0x2555a9['reason']??_0x56e09c(0x1e6)});continue;}await ensureParentDirectory(_0x2555a9[_0x56e09c(0x1e8)]);const _0x3d6b15=serializePageSchemaForFile(_0x2555a9[_0x56e09c(0x1fb)]['code']);await writeFile(_0x2555a9[_0x56e09c(0x1e8)],_0x3d6b15,_0x56e09c(0x1d7)),_0x4c765f[_0x56e09c(0x1d1)][String(_0x2555a9[_0x56e09c(0x1fb)][_0x56e09c(0x1d3)])]=buildLockEntry(_0x2555a9['detail'],_0x3d6b15),_0x2289b1['push']({'pageId':_0x2555a9['detail'][_0x56e09c(0x1d3)],'type':_0x2555a9[_0x56e09c(0x1fb)][_0x56e09c(0x1d6)],'title':_0x2555a9[_0x56e09c(0x1fb)][_0x56e09c(0x20c)],'localPath':_0x2555a9[_0x56e09c(0x1e8)]});}return _0x4c765f[_0x56e09c(0x205)]=new Date()[_0x56e09c(0x1eb)](),await writePageLockFile(_0x5f3023[_0x56e09c(0x1dd)],_0x2f48ce),{'ok':!![],'message':_0x56e09c(0x1dc)+_0x2289b1['length']+_0x56e09c(0x1e7)+_0x242260[_0x56e09c(0x1de)]+_0x56e09c(0x1db),'data':{'appCode':_0x49625e['appCode'],'pulledPages':_0x2289b1,'skippedPages':_0x242260,'totalPulled':_0x2289b1[_0x56e09c(0x1de)],'totalSkipped':_0x242260[_0x56e09c(0x1de)]}};}};async function buildPullPlan(_0x25e2ce){const _0x144f8f=a170_0x3e98e4,_0x1e3de3=loadPageProjectConfig(_0x25e2ce[_0x144f8f(0x1f3)]),_0x1fc599=await readPageLockFile(_0x1e3de3[_0x144f8f(0x1dd)]),{appLock:_0x1076e3}=ensurePageLockScope(_0x1fc599??createEmptyPageLock(),_0x25e2ce['appCode']),_0x41b510=getPageIdFlag(_0x25e2ce);if(_0x41b510!==undefined){const _0x209122=await loadPageDetailForPage(_0x25e2ce,_0x41b510);return{'mode':_0x144f8f(0x1ee),'items':[await inspectPullTarget(_0x1e3de3,_0x1076e3['pages'][String(_0x209122[_0x144f8f(0x1d3)])],_0x209122)]};}const _0x1e2064=await loadDatasetDetailForPage(_0x25e2ce),_0x3a5560=_0x1e2064[_0x144f8f(0x1ef)][_0x144f8f(0x1fc)](_0x5081ed=>!_0x5081ed[_0x144f8f(0x1f1)]);if(_0x3a5560[_0x144f8f(0x1de)]===0x0)throw CliErrors[_0x144f8f(0x1e3)](_0x144f8f(0x1ea)+_0x1e2064[_0x144f8f(0x1d2)]+_0x144f8f(0x1da));const _0x1e7e9b=await Promise['all'](_0x3a5560[_0x144f8f(0x1df)](_0x3c0fd6=>loadPageDetailForPage(_0x25e2ce,_0x3c0fd6['id']))),_0x3b04d1=selectVersionTagGroup(_0x1e7e9b,_0x3c68e6=>_0x3c68e6[_0x144f8f(0x1d9)],_0x25e2ce[_0x144f8f(0x1ec)](_0x144f8f(0x209)));return{'mode':'batch','datasetCode':_0x1e2064[_0x144f8f(0x1d2)],'items':await Promise['all'](_0x3b04d1[_0x144f8f(0x1f7)][_0x144f8f(0x1df)](_0x18c899=>inspectPullTarget(_0x1e3de3,_0x1076e3[_0x144f8f(0x1d1)][String(_0x18c899[_0x144f8f(0x1d3)])],_0x18c899)))};}function a170_0x27eb(){const _0x58cce8=['page','Dataset\x20\x22','toISOString','str','4838816uVoBvT','single','relatedPages','read','deleted','number','appCode','reason','529yWfXqs','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','items','status','alias','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','detail','filter','5665800PiYBDE','/smartapi/lovrabet/detail?pageId=','pull','boolean','conflict','4427485CPeodU','Page\x20ID','force','lastSync','8646ihkNlV','string','52inScXY','version-tag','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','name','3168340SUGbPB','6eLVfBq','pages','code','pageId','4612giecWe','bool','type','utf8','mode','versionTag','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','\x20skipped','Pull\x20complete:\x20','lockFilePath','length','map','datasetCode','would_pull','3873492hdOqkJ','validation','compress','datasetIds','local\x20unsynced\x20changes','\x20pulled,\x20','localPath'];a170_0x27eb=function(){return _0x58cce8;};return a170_0x27eb();}function a170_0x52f1(_0x7f509c,_0x2ae777){_0x7f509c=_0x7f509c-0x1cf;const _0x27eb83=a170_0x27eb();let _0x52f1cc=_0x27eb83[_0x7f509c];return _0x52f1cc;}async function inspectPullTarget(_0x34be12,_0xd77254,_0x49d429){const _0x574359=a170_0x3e98e4,_0x1dd6c4=resolvePageFilePath(_0x34be12,_0x49d429[_0x574359(0x1d3)],_0x49d429[_0x574359(0x1d6)]),_0x2c5160=await fileExists(_0x1dd6c4);if(!_0x2c5160){const _0x1cab68=serializePageSchemaForFile(_0x49d429[_0x574359(0x1d2)]);return{'detail':_0x49d429,'localPath':_0x1dd6c4,'localHash':computePageContentHash(_0x1cab68),'status':_0x574359(0x1e1)};}const _0x6b83a5=await computePageFileHash(_0x1dd6c4);if(!_0xd77254||_0x6b83a5!==_0xd77254['hash'])return{'detail':_0x49d429,'localPath':_0x1dd6c4,'localHash':_0x6b83a5,'status':_0x574359(0x201),'reason':_0x574359(0x1e6)};return{'detail':_0x49d429,'localPath':_0x1dd6c4,'localHash':_0x6b83a5,'status':_0x574359(0x1e1)};}function buildLockEntry(_0x23c441,_0x2b7d5d){const _0x2354bd=a170_0x3e98e4;return{'hash':computePageContentHash(_0x2b7d5d),'pageId':_0x23c441['pageId'],'pageVersion':_0x23c441['pageVersion'],'type':_0x23c441[_0x2354bd(0x1d6)],'title':_0x23c441[_0x2354bd(0x20c)],'datasetIds':_0x23c441[_0x2354bd(0x1e5)],'versionTag':_0x23c441['versionTag']};}function toPreviewItem(_0x498f29){const _0x17fd91=a170_0x3e98e4;return{'pageId':_0x498f29[_0x17fd91(0x1fb)]['pageId'],'type':_0x498f29[_0x17fd91(0x1fb)][_0x17fd91(0x1d6)],'title':_0x498f29[_0x17fd91(0x1fb)][_0x17fd91(0x20c)],'localPath':_0x498f29[_0x17fd91(0x1e8)],'status':_0x498f29['status'],..._0x498f29[_0x17fd91(0x1f4)]?{'reason':_0x498f29[_0x17fd91(0x1f4)]}:{}};}
1
+ const a184_0x271559=a184_0x5cc8;function a184_0x4112(){const _0x36bfe4=['localPath','versionTag','4826214FwKNSa','Page\x20ID','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','force','Pull\x20page\x20schema\x20to\x20local\x20files','4151889FSjXQw','deleted','validation','pageVersion','relatedPages','string','5682BxuIPt','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','str','hash','name','local\x20unsynced\x20changes','pageId','items','datasetIds','toISOString','406947OldusL','detail','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','37187557IjggWg','Pull\x20complete:\x20','GET','lockFilePath','single','mode','8ncsXew','code','pages','number','datasetCode','4mwDtDE','2782388rTOJEl','map','page','batch','version-tag','all','alias','1246683iIJHUe','boolean','length','read','filter','reason','would_pull','10lVrjqB','/smartapi/lovrabet/detail?pageId=','push','1115soRExK','\x20skipped','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','Dataset\x20\x22','pull','type','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','appCode','status'];a184_0x4112=function(){return _0x36bfe4;};return a184_0x4112();}(function(_0x2cdb9f,_0x5990ea){const _0x662d25=a184_0x5cc8,_0x92981c=_0x2cdb9f();while(!![]){try{const _0x43d555=-parseInt(_0x662d25(0x1df))/0x1+-parseInt(_0x662d25(0x1d8))/0x2+parseInt(_0x662d25(0x1c9))/0x3*(parseInt(_0x662d25(0x1d7))/0x4)+-parseInt(_0x662d25(0x1a9))/0x5*(parseInt(_0x662d25(0x1bf))/0x6)+parseInt(_0x662d25(0x1b9))/0x7+parseInt(_0x662d25(0x1d2))/0x8*(-parseInt(_0x662d25(0x1b4))/0x9)+parseInt(_0x662d25(0x1a6))/0xa*(parseInt(_0x662d25(0x1cc))/0xb);if(_0x43d555===_0x5990ea)break;else _0x92981c['push'](_0x92981c['shift']());}catch(_0x4d1098){_0x92981c['push'](_0x92981c['shift']());}}}(a184_0x4112,0xb0cbf));function a184_0x5cc8(_0x2967b3,_0x528be1){_0x2967b3=_0x2967b3-0x1a5;const _0x411236=a184_0x4112();let _0x5cc875=_0x411236[_0x2967b3];return _0x5cc875;}import{writeFile}from'node:fs/promises';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':a184_0x271559(0x1da),'command':a184_0x271559(0x1ad),'description':a184_0x271559(0x1b8),'risk':a184_0x271559(0x1e2),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a184_0x271559(0x1d5),'description':a184_0x271559(0x1b5)},DATASETCODE_FLAG_OPTIONAL,{'name':a184_0x271559(0x1de),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a184_0x271559(0x1dc),'type':a184_0x271559(0x1be),'description':a184_0x271559(0x1c0)},{'name':a184_0x271559(0x1b7),'type':a184_0x271559(0x1e0),'description':a184_0x271559(0x1cb)}],async 'validate'(_0x45b9e3){validatePageTargetSelector(_0x45b9e3);},async 'dryRun'(_0x31f77c){const _0x220f49=a184_0x271559,_0xa1096a=await buildPullPlan(_0x31f77c);return{'method':_0x220f49(0x1ce),'url':_0xa1096a[_0x220f49(0x1d1)]===_0x220f49(0x1d0)?_0x220f49(0x1a7)+(_0xa1096a['items'][0x0]?.['detail']['pageId']??''):_0x220f49(0x1ab),'body':{'appCode':_0x31f77c[_0x220f49(0x1b0)],'mode':_0xa1096a[_0x220f49(0x1d1)],'targetDatasetCode':_0xa1096a[_0x220f49(0x1d6)]??null,'pages':_0xa1096a[_0x220f49(0x1c6)][_0x220f49(0x1d9)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0xa1096a[_0x220f49(0x1d1)],'datasetCode':_0xa1096a[_0x220f49(0x1d6)]??null,'totalCandidates':_0xa1096a[_0x220f49(0x1c6)][_0x220f49(0x1e1)],'totalWouldPull':_0xa1096a[_0x220f49(0x1c6)][_0x220f49(0x1e3)](_0x1941f7=>_0x1941f7[_0x220f49(0x1b1)]===_0x220f49(0x1a5))[_0x220f49(0x1e1)],'totalConflicts':_0xa1096a['items'][_0x220f49(0x1e3)](_0x1b74bc=>_0x1b74bc['status']==='conflict')[_0x220f49(0x1e1)]})};},async 'execute'(_0x1ea18a){const _0x64dd9d=a184_0x271559,_0x48f2cb=loadPageProjectConfig(_0x1ea18a[_0x64dd9d(0x1b0)]),_0x35087a=await readPageLockFile(_0x48f2cb[_0x64dd9d(0x1cf)]),{lockData:_0x41dec9,appLock:_0x32e54c}=ensurePageLockScope(_0x35087a??createEmptyPageLock(),_0x1ea18a[_0x64dd9d(0x1b0)]),_0x2707c4=await buildPullPlan(_0x1ea18a),_0x535a88=_0x1ea18a['bool']('force');if(_0x2707c4[_0x64dd9d(0x1d1)]==='single'&&_0x2707c4[_0x64dd9d(0x1c6)][0x0]?.['status']==='conflict'&&!_0x535a88)throw CliErrors[_0x64dd9d(0x1bb)](_0x64dd9d(0x1af)+_0x2707c4[_0x64dd9d(0x1c6)][0x0][_0x64dd9d(0x1b2)],_0x64dd9d(0x1b6));const _0x20cf94=[],_0x150b4f=[];for(const _0x5cdaf7 of _0x2707c4['items']){if(_0x5cdaf7[_0x64dd9d(0x1b1)]==='conflict'&&!_0x535a88){_0x150b4f[_0x64dd9d(0x1a8)]({'pageId':_0x5cdaf7[_0x64dd9d(0x1ca)]['pageId'],'type':_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1ae)],'title':_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1c3)],'localPath':_0x5cdaf7[_0x64dd9d(0x1b2)],'reason':_0x5cdaf7['reason']??_0x64dd9d(0x1c4)});continue;}await ensureParentDirectory(_0x5cdaf7[_0x64dd9d(0x1b2)]);const _0xdcfe01=serializePageSchemaForFile(_0x5cdaf7['detail']['code']);await writeFile(_0x5cdaf7[_0x64dd9d(0x1b2)],_0xdcfe01,'utf8'),_0x32e54c[_0x64dd9d(0x1d4)][String(_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1c5)])]=buildLockEntry(_0x5cdaf7[_0x64dd9d(0x1ca)],_0xdcfe01),_0x20cf94[_0x64dd9d(0x1a8)]({'pageId':_0x5cdaf7[_0x64dd9d(0x1ca)][_0x64dd9d(0x1c5)],'type':_0x5cdaf7[_0x64dd9d(0x1ca)]['type'],'title':_0x5cdaf7[_0x64dd9d(0x1ca)]['name'],'localPath':_0x5cdaf7[_0x64dd9d(0x1b2)]});}return _0x32e54c['lastSync']=new Date()[_0x64dd9d(0x1c8)](),await writePageLockFile(_0x48f2cb[_0x64dd9d(0x1cf)],_0x41dec9),{'ok':!![],'message':_0x64dd9d(0x1cd)+_0x20cf94['length']+'\x20pulled,\x20'+_0x150b4f[_0x64dd9d(0x1e1)]+_0x64dd9d(0x1aa),'data':{'appCode':_0x1ea18a['appCode'],'pulledPages':_0x20cf94,'skippedPages':_0x150b4f,'totalPulled':_0x20cf94[_0x64dd9d(0x1e1)],'totalSkipped':_0x150b4f['length']}};}};async function buildPullPlan(_0x4b49d0){const _0x2158f2=a184_0x271559,_0x5cd39a=loadPageProjectConfig(_0x4b49d0[_0x2158f2(0x1b0)]),_0xff5f9e=await readPageLockFile(_0x5cd39a[_0x2158f2(0x1cf)]),{appLock:_0x528ed8}=ensurePageLockScope(_0xff5f9e??createEmptyPageLock(),_0x4b49d0[_0x2158f2(0x1b0)]),_0xff4858=getPageIdFlag(_0x4b49d0);if(_0xff4858!==undefined){const _0x549eb2=await loadPageDetailForPage(_0x4b49d0,_0xff4858);return{'mode':'single','items':[await inspectPullTarget(_0x5cd39a,_0x528ed8[_0x2158f2(0x1d4)][String(_0x549eb2[_0x2158f2(0x1c5)])],_0x549eb2)]};}const _0x8cbf09=await loadDatasetDetailForPage(_0x4b49d0),_0x20c9cd=_0x8cbf09[_0x2158f2(0x1bd)][_0x2158f2(0x1e3)](_0x420c4b=>!_0x420c4b[_0x2158f2(0x1ba)]);if(_0x20c9cd[_0x2158f2(0x1e1)]===0x0)throw CliErrors[_0x2158f2(0x1bb)](_0x2158f2(0x1ac)+_0x8cbf09[_0x2158f2(0x1d3)]+'\x22\x20has\x20no\x20undeleted\x20related\x20pages.');const _0x322143=await Promise[_0x2158f2(0x1dd)](_0x20c9cd[_0x2158f2(0x1d9)](_0x16c79e=>loadPageDetailForPage(_0x4b49d0,_0x16c79e['id']))),_0x26beb0=selectVersionTagGroup(_0x322143,_0xb14a7f=>_0xb14a7f['versionTag'],_0x4b49d0[_0x2158f2(0x1c1)]('version-tag'));return{'mode':_0x2158f2(0x1db),'datasetCode':_0x8cbf09[_0x2158f2(0x1d3)],'items':await Promise[_0x2158f2(0x1dd)](_0x26beb0[_0x2158f2(0x1c6)][_0x2158f2(0x1d9)](_0x994ab6=>inspectPullTarget(_0x5cd39a,_0x528ed8['pages'][String(_0x994ab6['pageId'])],_0x994ab6)))};}async function inspectPullTarget(_0x106c72,_0x3f7211,_0x350279){const _0x3aa36e=a184_0x271559,_0x22e8ce=resolvePageFilePath(_0x106c72,_0x350279[_0x3aa36e(0x1c5)],_0x350279[_0x3aa36e(0x1ae)]),_0x56579e=await fileExists(_0x22e8ce);if(!_0x56579e){const _0x419941=serializePageSchemaForFile(_0x350279[_0x3aa36e(0x1d3)]);return{'detail':_0x350279,'localPath':_0x22e8ce,'localHash':computePageContentHash(_0x419941),'status':_0x3aa36e(0x1a5)};}const _0x19ae5f=await computePageFileHash(_0x22e8ce);if(!_0x3f7211||_0x19ae5f!==_0x3f7211[_0x3aa36e(0x1c2)])return{'detail':_0x350279,'localPath':_0x22e8ce,'localHash':_0x19ae5f,'status':'conflict','reason':'local\x20unsynced\x20changes'};return{'detail':_0x350279,'localPath':_0x22e8ce,'localHash':_0x19ae5f,'status':_0x3aa36e(0x1a5)};}function buildLockEntry(_0x12ce40,_0x1c9032){const _0x1820c5=a184_0x271559;return{'hash':computePageContentHash(_0x1c9032),'pageId':_0x12ce40[_0x1820c5(0x1c5)],'pageVersion':_0x12ce40[_0x1820c5(0x1bc)],'type':_0x12ce40['type'],'title':_0x12ce40['name'],'datasetIds':_0x12ce40[_0x1820c5(0x1c7)],'versionTag':_0x12ce40[_0x1820c5(0x1b3)]};}function toPreviewItem(_0x2cce0f){const _0x599b78=a184_0x271559;return{'pageId':_0x2cce0f['detail']['pageId'],'type':_0x2cce0f[_0x599b78(0x1ca)][_0x599b78(0x1ae)],'title':_0x2cce0f['detail']['name'],'localPath':_0x2cce0f[_0x599b78(0x1b2)],'status':_0x2cce0f[_0x599b78(0x1b1)],..._0x2cce0f[_0x599b78(0x1e4)]?{'reason':_0x2cce0f['reason']}:{}};}