@lovrabet/rabetbase-cli 2.5.3-beta.1 → 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 (374) 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.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/logs.d.ts +7 -0
  38. package/lib/commands/bff/logs.js +1 -0
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/batch-design.d.ts +21 -0
  62. package/lib/commands/dataset/batch-design.js +1 -0
  63. package/lib/commands/dataset/business-group-update.js +1 -1
  64. package/lib/commands/dataset/business-groups.js +1 -1
  65. package/lib/commands/dataset/capability.js +1 -1
  66. package/lib/commands/dataset/delete.js +1 -1
  67. package/lib/commands/dataset/detail.js +1 -1
  68. package/lib/commands/dataset/extend-update.js +1 -1
  69. package/lib/commands/dataset/field-restore.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/index.js +1 -1
  103. package/lib/commands/deployment/sync-all.js +1 -1
  104. package/lib/commands/deployment/sync-jobs.js +1 -1
  105. package/lib/commands/deployment/sync-status.js +1 -1
  106. package/lib/commands/doctor.js +1 -1
  107. package/lib/commands/file/index.js +1 -1
  108. package/lib/commands/flow/create.d.ts +2 -0
  109. package/lib/commands/flow/create.js +1 -0
  110. package/lib/commands/flow/detail.d.ts +2 -0
  111. package/lib/commands/flow/detail.js +1 -0
  112. package/lib/commands/flow/index.d.ts +3 -0
  113. package/lib/commands/flow/index.js +1 -0
  114. package/lib/commands/flow/list.d.ts +2 -0
  115. package/lib/commands/flow/list.js +1 -0
  116. package/lib/commands/flow/publish.d.ts +2 -0
  117. package/lib/commands/flow/publish.js +1 -0
  118. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  119. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  120. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  121. package/lib/commands/flow/runtime-role-list.js +1 -0
  122. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  124. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  125. package/lib/commands/flow/runtime-user-search.js +1 -0
  126. package/lib/commands/flow/shared.d.ts +41 -0
  127. package/lib/commands/flow/shared.js +1 -0
  128. package/lib/commands/flow/update.d.ts +2 -0
  129. package/lib/commands/flow/update.js +1 -0
  130. package/lib/commands/flow/validate.d.ts +3 -0
  131. package/lib/commands/flow/validate.js +1 -0
  132. package/lib/commands/instant-api-policy/current.js +1 -1
  133. package/lib/commands/instant-api-policy/index.js +1 -1
  134. package/lib/commands/instant-api-policy/init.js +1 -1
  135. package/lib/commands/instant-api-policy/publish.js +1 -1
  136. package/lib/commands/instant-api-policy/pull.js +1 -1
  137. package/lib/commands/instant-api-policy/revision.js +1 -1
  138. package/lib/commands/instant-api-policy/revisions.js +1 -1
  139. package/lib/commands/instant-api-policy/rollback.js +1 -1
  140. package/lib/commands/instant-api-policy/shared.js +1 -1
  141. package/lib/commands/instant-api-policy/validate.js +1 -1
  142. package/lib/commands/issue/index.js +1 -1
  143. package/lib/commands/issue/nudge.js +1 -1
  144. package/lib/commands/issue/report.js +1 -1
  145. package/lib/commands/issue/shared.js +1 -1
  146. package/lib/commands/kb/create.js +1 -1
  147. package/lib/commands/kb/delete.js +1 -1
  148. package/lib/commands/kb/detail.js +1 -1
  149. package/lib/commands/kb/index.js +1 -1
  150. package/lib/commands/kb/list.js +1 -1
  151. package/lib/commands/kb/search.js +1 -1
  152. package/lib/commands/kb/shared.js +1 -1
  153. package/lib/commands/kb/update.js +1 -1
  154. package/lib/commands/logs/index.js +1 -1
  155. package/lib/commands/menu/asset-update.js +1 -1
  156. package/lib/commands/menu/delete.js +1 -1
  157. package/lib/commands/menu/external-link-create.js +1 -1
  158. package/lib/commands/menu/external-link-update.js +1 -1
  159. package/lib/commands/menu/group-create.js +1 -1
  160. package/lib/commands/menu/group-update.js +1 -1
  161. package/lib/commands/menu/index.js +1 -1
  162. package/lib/commands/menu/list.js +1 -1
  163. package/lib/commands/menu/move.js +1 -1
  164. package/lib/commands/menu/regroup-start.js +1 -1
  165. package/lib/commands/menu/rename.js +1 -1
  166. package/lib/commands/menu/shared/compare-table.js +1 -1
  167. package/lib/commands/menu/shared/delete-plan.js +1 -1
  168. package/lib/commands/menu/shared/facts.js +1 -1
  169. package/lib/commands/menu/shared/index.js +1 -1
  170. package/lib/commands/menu/shared/inquirer.js +1 -1
  171. package/lib/commands/menu/shared/local-pages.js +1 -1
  172. package/lib/commands/menu/shared/logic.js +1 -1
  173. package/lib/commands/menu/shared/mutations.js +1 -1
  174. package/lib/commands/menu/shared/service.js +1 -1
  175. package/lib/commands/menu/shared/sync-core.js +1 -1
  176. package/lib/commands/menu/shared/update-core.js +1 -1
  177. package/lib/commands/menu/shared/valid-url.js +1 -1
  178. package/lib/commands/menu/sync.js +1 -1
  179. package/lib/commands/menu/visibility-update.js +1 -1
  180. package/lib/commands/notification/config-create.js +1 -1
  181. package/lib/commands/notification/config-delete.js +1 -1
  182. package/lib/commands/notification/config-list.js +1 -1
  183. package/lib/commands/notification/config-update.js +1 -1
  184. package/lib/commands/notification/index.js +1 -1
  185. package/lib/commands/notification/shared.js +1 -1
  186. package/lib/commands/ocr/index.js +1 -1
  187. package/lib/commands/page/create.js +1 -1
  188. package/lib/commands/page/custom/detail.js +1 -1
  189. package/lib/commands/page/custom/list.js +1 -1
  190. package/lib/commands/page/custom/publish.js +1 -1
  191. package/lib/commands/page/custom/shared.js +1 -1
  192. package/lib/commands/page/custom/syntax.js +1 -1
  193. package/lib/commands/page/custom/update.js +1 -1
  194. package/lib/commands/page/data-list-status.js +1 -1
  195. package/lib/commands/page/generate-start.js +1 -1
  196. package/lib/commands/page/generate-status.js +1 -1
  197. package/lib/commands/page/index.js +1 -1
  198. package/lib/commands/page/pull.js +1 -1
  199. package/lib/commands/page/push.js +1 -1
  200. package/lib/commands/page/relation-audit.js +1 -1
  201. package/lib/commands/page/restore.js +1 -1
  202. package/lib/commands/page/shared.js +1 -1
  203. package/lib/commands/page/sync.js +1 -1
  204. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  205. package/lib/commands/project/create/format-elapsed.js +1 -1
  206. package/lib/commands/project/create/main.js +1 -1
  207. package/lib/commands/project/create/materialize-project-template.js +1 -1
  208. package/lib/commands/project/create/project-name.js +1 -1
  209. package/lib/commands/project/create/project-template-archive.js +1 -1
  210. package/lib/commands/project/create/project-template-path.js +1 -1
  211. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  212. package/lib/commands/project/create/use-format-code.js +1 -1
  213. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  214. package/lib/commands/project/domain-routing-sync.js +1 -1
  215. package/lib/commands/project/index.js +1 -1
  216. package/lib/commands/project/upgrade.js +1 -1
  217. package/lib/commands/registry.js +1 -1
  218. package/lib/commands/role/delete.js +1 -1
  219. package/lib/commands/role/detail.js +1 -1
  220. package/lib/commands/role/index.js +1 -1
  221. package/lib/commands/role/list.js +1 -1
  222. package/lib/commands/role/shared.js +1 -1
  223. package/lib/commands/role/update.js +1 -1
  224. package/lib/commands/role/user-add.js +1 -1
  225. package/lib/commands/role/user-remove.js +1 -1
  226. package/lib/commands/role/user-resolve.js +1 -1
  227. package/lib/commands/rule/get.js +1 -1
  228. package/lib/commands/rule/index.js +1 -1
  229. package/lib/commands/rule/list.js +1 -1
  230. package/lib/commands/rule/set.js +1 -1
  231. package/lib/commands/rule/shared.js +1 -1
  232. package/lib/commands/run/index.js +1 -1
  233. package/lib/commands/schema.js +1 -1
  234. package/lib/commands/sql/create.js +1 -1
  235. package/lib/commands/sql/delete.js +1 -1
  236. package/lib/commands/sql/detail.js +1 -1
  237. package/lib/commands/sql/exec.js +1 -1
  238. package/lib/commands/sql/index.js +1 -1
  239. package/lib/commands/sql/list.js +1 -1
  240. package/lib/commands/sql/pull.js +1 -1
  241. package/lib/commands/sql/push.js +1 -1
  242. package/lib/commands/sql/shared.js +1 -1
  243. package/lib/commands/sql/status.js +1 -1
  244. package/lib/commands/sql/validate.js +1 -1
  245. package/lib/commands/task/index.js +1 -1
  246. package/lib/commands/task/status.js +1 -1
  247. package/lib/commands/tenant/index.js +1 -1
  248. package/lib/commands/tenant/members-list.js +1 -1
  249. package/lib/commands/tenant/shared.js +1 -1
  250. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  251. package/lib/commands/user-account/index.js +1 -1
  252. package/lib/commands/workspace/add.js +1 -1
  253. package/lib/commands/workspace/index.js +1 -1
  254. package/lib/commands/workspace/remove.js +1 -1
  255. package/lib/config/domain-config.js +1 -1
  256. package/lib/config/project-domain-routing.js +1 -1
  257. package/lib/config/region-config.js +1 -1
  258. package/lib/config/schema.js +1 -1
  259. package/lib/constant/cdn.js +1 -1
  260. package/lib/constant/cli.js +1 -1
  261. package/lib/constant/defaults.js +1 -1
  262. package/lib/constant/domain.js +1 -1
  263. package/lib/constant/env.js +1 -1
  264. package/lib/constant/output.js +1 -1
  265. package/lib/constant/paths.js +1 -1
  266. package/lib/constant/region.js +1 -1
  267. package/lib/constant/risk.js +1 -1
  268. package/lib/constant/routing-profile.js +1 -1
  269. package/lib/context/app-resolver.js +1 -1
  270. package/lib/context/auth-resolver.js +1 -1
  271. package/lib/context/config-loader.js +1 -1
  272. package/lib/context.js +1 -1
  273. package/lib/core/alias-resolver.js +1 -1
  274. package/lib/core/api-client.d.ts +170 -1
  275. package/lib/core/api-client.js +1 -1
  276. package/lib/core/bff/config.js +1 -1
  277. package/lib/core/bff/file-system.js +1 -1
  278. package/lib/core/bff/hash.js +1 -1
  279. package/lib/core/bff/hook-directory.d.ts +55 -0
  280. package/lib/core/bff/hook-directory.js +1 -0
  281. package/lib/core/bff/lock.js +1 -1
  282. package/lib/core/bff/types.d.ts +15 -0
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/db-resolver.js +1 -1
  285. package/lib/core/flow-config.d.ts +628 -0
  286. package/lib/core/flow-config.js +1 -0
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +22 -4
  358. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  359. package/skills/rabetbase/guides/backend-function.md +19 -9
  360. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  361. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  362. package/skills/rabetbase/guides/sdk-client-generation.md +1 -0
  363. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  364. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  365. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  366. package/skills/rabetbase/references/rabetbase-bff-pull.md +7 -3
  367. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  368. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  369. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  370. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  371. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  372. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  373. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  374. package/skills/rabetbase.manifest.json +9 -3
@@ -1 +1 @@
1
- function a159_0x6f91(_0x23ecb9,_0x4371ae){_0x23ecb9=_0x23ecb9-0xe6;const _0x1a75f5=a159_0x1a75();let _0x6f91ee=_0x1a75f5[_0x23ecb9];return _0x6f91ee;}const a159_0x1f8526=a159_0x6f91;(function(_0x535cc6,_0x19ba75){const _0x261654=a159_0x6f91,_0x351881=_0x535cc6();while(!![]){try{const _0x55bc59=parseInt(_0x261654(0x101))/0x1*(-parseInt(_0x261654(0x124))/0x2)+parseInt(_0x261654(0x116))/0x3+parseInt(_0x261654(0x100))/0x4+-parseInt(_0x261654(0xf9))/0x5*(-parseInt(_0x261654(0xfe))/0x6)+parseInt(_0x261654(0xf7))/0x7+parseInt(_0x261654(0xfd))/0x8+-parseInt(_0x261654(0x10e))/0x9;if(_0x55bc59===_0x19ba75)break;else _0x351881['push'](_0x351881['shift']());}catch(_0x1e747a){_0x351881['push'](_0x351881['shift']());}}}(a159_0x1a75,0xa3da6));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a159_0x1f8526(0xfa),a159_0x1f8526(0x102),'DASHBOARD'],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a159_0x1f8526(0xee));export const pageCreate={'service':'page','command':'create','description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':a159_0x1f8526(0x105),'defaultOutputFormat':a159_0x1f8526(0x122),'structuredErrors':!![],'rejectedFlags':[{'name':a159_0x1f8526(0xfb),'message':a159_0x1f8526(0x11c),'hint':a159_0x1f8526(0xf6)},{'name':a159_0x1f8526(0xff),'message':a159_0x1f8526(0x121),'hint':a159_0x1f8526(0xe8)}],'flags':[{'name':a159_0x1f8526(0x115),'type':a159_0x1f8526(0xeb),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a159_0x1f8526(0x11e),'type':a159_0x1f8526(0x110),'description':a159_0x1f8526(0xea)},{'name':a159_0x1f8526(0xf8),'type':a159_0x1f8526(0xeb),'description':a159_0x1f8526(0xf4),'enum':CUSTOM_PAGE_PATTERNS},{'name':a159_0x1f8526(0x11b),'type':a159_0x1f8526(0xeb),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x545b48){await readValidatedPageSource(_0x545b48);},async 'dryRun'(_0x56a037){const _0xcb7b2e=a159_0x1f8526,_0x43f06d=readInput(_0x56a037,await readValidatedPageSource(_0x56a037));return{'method':_0xcb7b2e(0x10a),'url':_0xcb7b2e(0x109),'body':{'appCode':_0x43f06d[_0xcb7b2e(0x104)],'pageName':_0x43f06d[_0xcb7b2e(0xec)],..._0x43f06d[_0xcb7b2e(0x126)]!=null?{'parentMenuId':_0x43f06d['parentMenuId']}:{},'createMenu':_0x43f06d[_0xcb7b2e(0xf1)],'codeContent':_0x43f06d[_0xcb7b2e(0x111)]},'description':_0xcb7b2e(0x125)+JSON['stringify'](_0x43f06d[_0xcb7b2e(0xec)])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0x44ecc8){const _0x358597=a159_0x1f8526,_0x18df6a=readInput(_0x44ecc8,await readValidatedPageSource(_0x44ecc8)),_0x1c453f=await createCustomPage(_0x18df6a);if(!Number[_0x358597(0xf0)](_0x1c453f['pageId'])||_0x1c453f[_0x358597(0x11f)]<=0x0)throw CliErrors['apiError'](_0x358597(0xe7));const _0x11e572=buildCustomPageDevelopmentUrl(_0x18df6a[_0x358597(0x104)],_0x1c453f[_0x358597(0x10f)]),_0x51c880=buildCustomPageEditUrl(_0x18df6a[_0x358597(0x104)],_0x1c453f[_0x358597(0x11f)]);return{'ok':!![],'data':{'operation':'page.create','pageType':'CUSTOM','pagePattern':readPagePattern(_0x44ecc8),'selector':{'appCode':_0x18df6a[_0x358597(0x104)],'pageName':_0x18df6a[_0x358597(0xec)]},'before':null,'after':{'pageId':_0x1c453f[_0x358597(0x11f)],'pageName':_0x1c453f[_0x358597(0xec)],'appCode':_0x1c453f[_0x358597(0x104)],'version':_0x1c453f[_0x358597(0xfc)],'menuId':_0x1c453f['menuId'],'menuPath':_0x1c453f[_0x358597(0x10f)],'files':_0x1c453f[_0x358597(0x111)]??Object['keys'](_0x18df6a['files'])},'dryRun':![],'request':_0x18df6a,..._0x11e572?{'pageUrl':_0x11e572}:{},..._0x51c880?{'editPageUrl':_0x51c880}:{},'warnings':_0x11e572?[]:[_0x358597(0x118)]},'message':_0x358597(0x108)+_0x1c453f[_0x358597(0x11f)]+'.'};}};function readPagePattern(_0x82c989){const _0x595f21=a159_0x1f8526,_0x2ace44=_0x82c989[_0x595f21(0x103)](_0x595f21(0xf8))['trim'](),_0x105e84=_0x82c989[_0x595f21(0x103)](_0x595f21(0x11b))[_0x595f21(0xf3)]();if(_0x2ace44&&_0x105e84)throw CliErrors[_0x595f21(0x114)]('--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.');if(_0x105e84)return null;if(!_0x2ace44)throw CliErrors['validation'](_0x595f21(0x123));if(!CUSTOM_PAGE_PATTERNS[_0x595f21(0xf5)](_0x2ace44))throw CliErrors[_0x595f21(0x114)](_0x595f21(0xf2));return _0x2ace44;}async function readPageSource(_0x269cb1){const _0x51092f=a159_0x1f8526,_0xe2b3c0=_0x269cb1[_0x51092f(0x103)]('page-dir')['trim'](),_0x320cc3=readPagePattern(_0x269cb1);if(_0x320cc3===null){const _0xf0584f=await readCustomPageDirectory(_0xe2b3c0);if(Object['keys'](_0xf0584f)[_0x51092f(0xed)]===0x0)throw CliErrors[_0x51092f(0x114)](_0x51092f(0x117));return _0xf0584f;}let _0x242f12;try{_0x242f12=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x320cc3[_0x51092f(0xe6)]()+_0x51092f(0xef)),_0x51092f(0x11a));}catch{throw CliErrors['validation'](_0x51092f(0x10d)+_0x320cc3+'.');}let _0x10683d;try{_0x10683d=JSON['parse'](_0x242f12);}catch{throw CliErrors['validation'](_0x51092f(0xe9)+_0x320cc3+'.');}if(!_0x10683d||typeof _0x10683d!==_0x51092f(0x10c)||Array[_0x51092f(0x10b)](_0x10683d)||Object[_0x51092f(0x120)](_0x10683d)[_0x51092f(0x106)](_0x494e92=>typeof _0x494e92!==_0x51092f(0xeb)))throw CliErrors[_0x51092f(0x114)](_0x51092f(0xe9)+_0x320cc3+'.');return _0x10683d;}async function readValidatedPageSource(_0x3d2051){const _0x2b3471=await readPageSource(_0x3d2051);return await validateCustomPageContent(_0x2b3471),_0x2b3471;}function a159_0x1a75(){const _0xe75df0=['4751240RlWpZa','70362HkjzJp','page-content','5281844OpVmad','128TrDefb','ONEPAGE','str','appCode','write','some','Custom_page_','Created\x20Custom\x20Page\x20','/smartapi/webcode/page/create','POST','isArray','object','Custom\x20Page\x20pattern\x20not\x20found:\x20','25561458bjPFqv','menuPath','number','files','isNaN','num','validation','name','3905013GXyQrI','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','pageName\x20cannot\x20exceed\x20100\x20characters.','utf8','page-dir','page\x20create\x20does\x20not\x20accept\x20--page-type.','now','parent-menu-id','pageId','values','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','compress','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','2328ECynZJ','Would\x20create\x20Custom\x20Page\x20','parentMenuId','toLowerCase','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Invalid\x20Custom\x20Page\x20pattern:\x20','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','string','pageName','length','../../../templates/custom-pages','.json','isInteger','createMenu','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','trim','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','includes','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','1878478tSRMmb','page-pattern','75EBVJzP','BLANK','page-type','version'];a159_0x1a75=function(){return _0xe75df0;};return a159_0x1a75();}function readInput(_0x3dd68f,_0x441b1e){const _0x53a915=a159_0x1f8526,_0x552028=_0x3dd68f[_0x53a915(0x103)](_0x53a915(0x115))[_0x53a915(0xf3)]()||_0x53a915(0x107)+Date[_0x53a915(0x11d)]();if(_0x552028[_0x53a915(0xed)]>0x64)throw CliErrors[_0x53a915(0x114)](_0x53a915(0x119));const _0x3ab24f=_0x3dd68f[_0x53a915(0x113)](_0x53a915(0x11e),NaN),_0xefa2ff=!Number[_0x53a915(0x112)](_0x3ab24f);if(_0xefa2ff&&(!Number['isInteger'](_0x3ab24f)||_0x3ab24f<=0x0))throw CliErrors[_0x53a915(0x114)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x3dd68f[_0x53a915(0x104)],'pageName':_0x552028,..._0xefa2ff?{'parentMenuId':_0x3ab24f}:{},'createMenu':!![],'files':_0x441b1e};}
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_0x7c24b6=a160_0x1df4;function a160_0x1df4(_0x22bbdb,_0x555480){_0x22bbdb=_0x22bbdb-0xf9;const _0x55c769=a160_0x55c7();let _0x1df41f=_0x55c769[_0x22bbdb];return _0x1df41f;}(function(_0x5af976,_0x22c217){const _0x34473c=a160_0x1df4,_0x375f36=_0x5af976();while(!![]){try{const _0x98b72f=-parseInt(_0x34473c(0x107))/0x1*(-parseInt(_0x34473c(0x10d))/0x2)+parseInt(_0x34473c(0x104))/0x3+parseInt(_0x34473c(0x10a))/0x4*(-parseInt(_0x34473c(0xfe))/0x5)+-parseInt(_0x34473c(0x10e))/0x6+parseInt(_0x34473c(0x103))/0x7+-parseInt(_0x34473c(0x109))/0x8+-parseInt(_0x34473c(0x108))/0x9;if(_0x98b72f===_0x22c217)break;else _0x375f36['push'](_0x375f36['shift']());}catch(_0x37d042){_0x375f36['push'](_0x375f36['shift']());}}}(a160_0x55c7,0xd6218));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';function a160_0x55c7(){const _0x1c1aa2=['6RmMgdi','2467578JlJrAg','isNaN','page','getFullYear','getTime','read','number','trim','5sNmvxb','Custom\x20Page\x20ID','Retrieved\x20Custom\x20Page\x20','getHours','appCode','9913085XhBhpP','5150685wCtrYG','join','getSeconds','295186dwJxfD','6040629LvueCR','8847480rIXkyv','3812596fODLmk','str','padStart'];a160_0x55c7=function(){return _0x1c1aa2;};return a160_0x55c7();}export const pageCustomDetail={'service':a160_0x7c24b6(0x110),'command':'custom-detail','description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a160_0x7c24b6(0xfb),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a160_0x7c24b6(0xfc),'required':!![],'description':a160_0x7c24b6(0xff)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49c235){readCustomPageId(_0x49c235);},async 'execute'(_0x2fb9ce){const _0xce765=a160_0x7c24b6,_0x3286a3=readCustomPageId(_0x2fb9ce),_0x93a076=await getCustomPageSource(_0x3286a3),{bundle:_0x2e1cb5,createTime:_0x8db1fe,updateTime:_0x171d0d,..._0x50a099}=_0x93a076,_0x3a6615=_0x93a076['id']??_0x3286a3,_0x5c691c=_0x93a076[_0xce765(0x102)]?.[_0xce765(0xfd)]()||_0x2fb9ce[_0xce765(0x10b)]('appcode')[_0xce765(0xfd)](),_0x13982=buildCustomPageRuntimeUrl(_0x5c691c,_0x93a076['pageCode']),_0x13df70=buildCustomPageEditUrl(_0x5c691c,_0x3a6615),_0x545857=await resolveCustomPageDevelopmentUrl(_0x5c691c,_0x3a6615,_0x2fb9ce['cookie']);return{'ok':!![],'data':{..._0x50a099,..._0x13982?{'runtimePageUrl':_0x13982}:{},..._0x545857?{'pageUrl':_0x545857}:{},..._0x13df70?{'editPageUrl':_0x13df70}:{},..._0x8db1fe==null?{}:{'createTime':formatTime(_0x8db1fe)},..._0x171d0d==null?{}:{'updateTime':formatTime(_0x171d0d)}},'message':_0xce765(0x100)+_0x3286a3+'.'};}};function formatTime(_0xc032e5){const _0x52443c=a160_0x7c24b6,_0x5d4fa0=new Date(_0xc032e5);if(Number[_0x52443c(0x10f)](_0x5d4fa0[_0x52443c(0xfa)]()))return String(_0xc032e5);const _0x4b6d5e=[_0x5d4fa0[_0x52443c(0xf9)](),String(_0x5d4fa0['getMonth']()+0x1)[_0x52443c(0x10c)](0x2,'0'),String(_0x5d4fa0['getDate']())[_0x52443c(0x10c)](0x2,'0')][_0x52443c(0x105)]('-'),_0x1d7b3b=[String(_0x5d4fa0[_0x52443c(0x101)]())['padStart'](0x2,'0'),String(_0x5d4fa0['getMinutes']())[_0x52443c(0x10c)](0x2,'0'),String(_0x5d4fa0[_0x52443c(0x106)]())[_0x52443c(0x10c)](0x2,'0')]['join'](':');return _0x4b6d5e+'\x20'+_0x1d7b3b;}
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_0x25632e=a161_0x212f;(function(_0x5f1187,_0xbad617){const _0x39496a=a161_0x212f,_0x57ccea=_0x5f1187();while(!![]){try{const _0xd5ea79=parseInt(_0x39496a(0x70))/0x1+parseInt(_0x39496a(0x7e))/0x2+-parseInt(_0x39496a(0x67))/0x3*(-parseInt(_0x39496a(0x7f))/0x4)+parseInt(_0x39496a(0x7c))/0x5+parseInt(_0x39496a(0x75))/0x6*(parseInt(_0x39496a(0x77))/0x7)+parseInt(_0x39496a(0x66))/0x8+-parseInt(_0x39496a(0x73))/0x9;if(_0xd5ea79===_0xbad617)break;else _0x57ccea['push'](_0x57ccea['shift']());}catch(_0x36677a){_0x57ccea['push'](_0x57ccea['shift']());}}}(a161_0x462c,0x9eeb6));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a161_0x212f(_0x2fecf5,_0x31a673){_0x2fecf5=_0x2fecf5-0x66;const _0x462c92=a161_0x462c();let _0x212f86=_0x462c92[_0x2fecf5];return _0x212f86;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a161_0x25632e(0x6c),'command':a161_0x25632e(0x78),'description':a161_0x25632e(0x7a),'risk':a161_0x25632e(0x6e),'defaultOutputFormat':a161_0x25632e(0x6a),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2366cf){const _0x253dd3=a161_0x25632e,_0x2569b2=(await fetchMenuSnapshot(_0x2366cf[_0x253dd3(0x6b)],_0x2366cf['cookie']))[_0x253dd3(0x79)][_0x253dd3(0x68)](_0x182f8d=>{const _0x1cd07d=_0x253dd3;if(_0x182f8d[_0x1cd07d(0x69)]!==_0x1cd07d(0x6f)||_0x182f8d[_0x1cd07d(0x7b)]==null)return[];const _0x3b8b3c=buildCustomPageDevelopmentUrl(_0x2366cf['appCode'],_0x182f8d[_0x1cd07d(0x72)]),_0x42a29a=buildCustomPageEditUrl(_0x2366cf['appCode'],_0x182f8d[_0x1cd07d(0x7b)]);return[{'pageId':_0x182f8d[_0x1cd07d(0x7b)],'label':_0x182f8d[_0x1cd07d(0x71)],..._0x3b8b3c?{'pageUrl':_0x3b8b3c}:{},..._0x42a29a?{'editPageUrl':_0x42a29a}:{}}];});return{'ok':!![],'data':{'pages':_0x2569b2},'message':_0x2569b2[_0x253dd3(0x74)]===0x0?_0x253dd3(0x76):_0x253dd3(0x7d)+_0x2569b2[_0x253dd3(0x74)]+_0x253dd3(0x6d)};}};function a161_0x462c(){const _0xbb9458=['path','31293873adqNNZ','length','4314HvIsSI','No\x20Custom\x20Pages\x20found.','2142dBiasC','custom-list','menus','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','pageId','5704095AeATUy','Found\x20','48764LRnlLS','16556WRKDvt','7065232rodklc','519doYzDv','flatMap','type','compress','appCode','page','\x20Custom\x20Page(s).','read','react','1143615vZMKRB','label'];a161_0x462c=function(){return _0xbb9458;};return a161_0x462c();}
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_0x174c(_0x7fc60e,_0x5ed609){_0x7fc60e=_0x7fc60e-0xe9;const _0x19fb13=a162_0x19fb();let _0x174c9f=_0x19fb13[_0x7fc60e];return _0x174c9f;}const a162_0xedc2e0=a162_0x174c;(function(_0x335563,_0x3f770e){const _0x5b4fa4=a162_0x174c,_0x4ab6c0=_0x335563();while(!![]){try{const _0x368738=-parseInt(_0x5b4fa4(0xf3))/0x1*(parseInt(_0x5b4fa4(0x108))/0x2)+-parseInt(_0x5b4fa4(0xf0))/0x3*(-parseInt(_0x5b4fa4(0x10b))/0x4)+parseInt(_0x5b4fa4(0x109))/0x5*(parseInt(_0x5b4fa4(0xef))/0x6)+-parseInt(_0x5b4fa4(0x105))/0x7+-parseInt(_0x5b4fa4(0xf9))/0x8*(-parseInt(_0x5b4fa4(0xeb))/0x9)+-parseInt(_0x5b4fa4(0x10e))/0xa*(parseInt(_0x5b4fa4(0xf4))/0xb)+parseInt(_0x5b4fa4(0x102))/0xc*(parseInt(_0x5b4fa4(0xf6))/0xd);if(_0x368738===_0x3f770e)break;else _0x4ab6c0['push'](_0x4ab6c0['shift']());}catch(_0x31ea0e){_0x4ab6c0['push'](_0x4ab6c0['shift']());}}}(a162_0x19fb,0x4ec1d));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a162_0x19fb(){const _0x5c4dcb=['status','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','cookie','appCode','remark','62628YhjMOe','compress','pageId','3318567LPyeyh','str','pageCode','19258bUsSZs','5zfpZgk','apiError','4jrPipe','Published\x20Custom\x20Page\x20','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','80QRfsrz','page.custom-publish','warnings','Would\x20publish\x20Custom\x20Page\x20','number','FORMAL','291717UbVWTm','Optional\x20publish\x20remark','isInteger','/smartapi/webcode/file/publish','1115706LnlKQL','486663HeneEt','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','string','67DGPOJc','389609hCbnLe','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','3107YXKazf','Custom\x20Page\x20ID','POST','32UWyMgh','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page','trim'];a162_0x19fb=function(){return _0x5c4dcb;};return a162_0x19fb();}export const pageCustomPublish={'service':a162_0xedc2e0(0xfb),'command':'custom-publish','description':a162_0xedc2e0(0xf5),'risk':'write','defaultOutputFormat':a162_0xedc2e0(0x103),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a162_0xedc2e0(0xe9),'required':!![],'description':a162_0xedc2e0(0xf7)},{'name':a162_0xedc2e0(0x101),'type':a162_0xedc2e0(0xf2),'description':a162_0xedc2e0(0xec)}],async 'validate'(_0x2136f5){readCustomPageId(_0x2136f5);},async 'dryRun'(_0x40606b){const _0x19ea78=a162_0xedc2e0,_0xa762b6=readInput(_0x40606b);return{'method':_0x19ea78(0xf8),'url':_0x19ea78(0xee),'body':{'id':_0xa762b6[_0x19ea78(0x104)],..._0xa762b6['remark']?{'remark':_0xa762b6[_0x19ea78(0x101)]}:{}},'description':_0x19ea78(0x111)+_0xa762b6[_0x19ea78(0x104)]+'.'};},async 'execute'(_0x5af8d9){const _0x3970a0=a162_0xedc2e0,_0x5d2588=readInput(_0x5af8d9);await getCustomPageSource(_0x5d2588[_0x3970a0(0x104)]);const _0x10fafd=await publishCustomPage(_0x5d2588);if(!Number[_0x3970a0(0xed)](_0x10fafd)||_0x10fafd!==_0x5d2588[_0x3970a0(0x104)])throw CliErrors[_0x3970a0(0x10a)](_0x3970a0(0xf1));const _0x366636=await getCustomPageSource(_0x5d2588[_0x3970a0(0x104)]);if(_0x366636[_0x3970a0(0xfd)]!==_0x3970a0(0xea))throw CliErrors[_0x3970a0(0x10a)](_0x3970a0(0x10d)+(_0x366636[_0x3970a0(0xfd)]??'unknown')+'.');const _0x5a1fa0=_0x366636[_0x3970a0(0x100)]?.[_0x3970a0(0xfc)](),_0x4e0e08=buildCustomPageEditUrl(_0x5a1fa0,_0x5d2588['pageId']),_0x44dcd0=await resolveCustomPageDevelopmentUrl(_0x5a1fa0,_0x5d2588[_0x3970a0(0x104)],_0x5af8d9[_0x3970a0(0xff)]),_0x5b2671=buildMutationData(_0x5d2588,!![],_0x44dcd0,_0x4e0e08);_0x5a1fa0&&!_0x44dcd0&&_0x5b2671[_0x3970a0(0x110)]['push'](_0x3970a0(0xfa));const _0x5c2c23=buildCustomPageRuntimeUrl(_0x366636[_0x3970a0(0x100)],_0x366636[_0x3970a0(0x107)]);return _0x5c2c23?_0x5b2671['runtimePageUrl']=_0x5c2c23:_0x5b2671[_0x3970a0(0x110)]['push'](_0x3970a0(0xfe)),{'ok':!![],'data':_0x5b2671,'message':_0x3970a0(0x10c)+_0x5d2588['pageId']+'.'};}};function readInput(_0x1b36a1){const _0x3ee0c5=a162_0xedc2e0,_0x74bffc=readCustomPageId(_0x1b36a1),_0x34e3b5=_0x1b36a1[_0x3ee0c5(0x106)]('remark')[_0x3ee0c5(0xfc)]();return{'pageId':_0x74bffc,..._0x34e3b5?{'remark':_0x34e3b5}:{}};}function buildMutationData(_0x4f70db,_0x45b0be=![],_0x4e287a,_0x30c953){const _0xa5b14e=a162_0xedc2e0;return{'operation':_0xa5b14e(0x10f),'selector':{'pageId':_0x4f70db[_0xa5b14e(0x104)]},'before':null,'after':{'pageId':_0x4f70db[_0xa5b14e(0x104)],'status':'FORMAL'},'dryRun':!_0x45b0be,'request':_0x4f70db,..._0x4e287a?{'pageUrl':_0x4e287a}:{},..._0x30c953?{'editPageUrl':_0x30c953}:{},'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_0x33acb0=a163_0x5185;(function(_0xa05a7,_0xaf19ce){const _0x1f10c4=a163_0x5185,_0x525cd1=_0xa05a7();while(!![]){try{const _0x1f8f03=-parseInt(_0x1f10c4(0x1a6))/0x1+parseInt(_0x1f10c4(0x1ad))/0x2+parseInt(_0x1f10c4(0x1ae))/0x3*(-parseInt(_0x1f10c4(0x19e))/0x4)+-parseInt(_0x1f10c4(0x1ab))/0x5*(parseInt(_0x1f10c4(0x1a8))/0x6)+-parseInt(_0x1f10c4(0x1aa))/0x7*(-parseInt(_0x1f10c4(0x199))/0x8)+parseInt(_0x1f10c4(0x1a3))/0x9*(parseInt(_0x1f10c4(0x19c))/0xa)+parseInt(_0x1f10c4(0x1a9))/0xb;if(_0x1f8f03===_0xaf19ce)break;else _0x525cd1['push'](_0x525cd1['shift']());}catch(_0x40687a){_0x525cd1['push'](_0x525cd1['shift']());}}}(a163_0x555d,0x549d7));function a163_0x5185(_0x325b62,_0x9ef4d5){_0x325b62=_0x325b62-0x199;const _0x555db6=a163_0x555d();let _0x51856b=_0x555db6[_0x325b62];return _0x51856b;}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':a163_0x33acb0(0x19b)};function trimOptional(_0x3a462f){const _0x4fa61f=a163_0x33acb0;return _0x3a462f?.[_0x4fa61f(0x1b0)]()||undefined;}function a163_0x555d(){const _0x2eb973=['Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','20YFSSTv','map','16Srvdpm','type','Invalid\x20Custom\x20Page\x20content:\x20','/pages/','/ide/','2849076wBfMCR','num','validation','682467qPIZfR','react','740058EgftQU','7095550BOWcQc','89894EaQYBI','15onygec','pageId','318918cgDxFW','96339jNTVfy','path','trim','56jpXUrP','find'];a163_0x555d=function(){return _0x2eb973;};return a163_0x555d();}export function buildCustomPageRuntimeUrl(_0x1662af,_0x32fd92){const _0x3c50a7=trimOptional(_0x1662af),_0x4c2b3b=trimOptional(_0x32fd92);if(!_0x3c50a7||!_0x4c2b3b)return undefined;return getPublishedAppDomain(_0x3c50a7)+'/'+encodeURIComponent(_0x4c2b3b);}export function buildCustomPageDevelopmentUrl(_0x1b8627,_0x1fb6dd){const _0x559d73=a163_0x33acb0,_0x57f02e=trimOptional(_0x1b8627),_0x5b6c9d=trimOptional(_0x1fb6dd);if(!_0x57f02e||!_0x5b6c9d)return undefined;return getAppBaseUrl(_0x57f02e)+_0x559d73(0x1a1)+encodeURIComponent(_0x5b6c9d);}export async function resolveCustomPageDevelopmentUrl(_0x42a887,_0x394e3b,_0x25343b){const _0x4d4fd0=a163_0x33acb0,_0x46e3a1=trimOptional(_0x42a887);if(!_0x46e3a1)return undefined;try{const _0x38508a=(await fetchMenuSnapshot(_0x46e3a1,_0x25343b))['menus'][_0x4d4fd0(0x19a)](_0x4f5f1d=>_0x4f5f1d[_0x4d4fd0(0x19f)]===_0x4d4fd0(0x1a7)&&_0x4f5f1d[_0x4d4fd0(0x1ac)]===_0x394e3b);return buildCustomPageDevelopmentUrl(_0x46e3a1,_0x38508a?.[_0x4d4fd0(0x1af)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x49ab33,_0x271b17){const _0x3a6e0d=a163_0x33acb0,_0xe1b8ef=trimOptional(_0x49ab33);if(!_0xe1b8ef)return;const _0x887a1b=trimOptional(String(_0x271b17??''));if(!_0x887a1b)return;return getAppBaseUrl(_0xe1b8ef)+_0x3a6e0d(0x1a2)+encodeURIComponent(_0x887a1b);}export async function validateCustomPageContent(_0x2d6b1a){const _0x46c515=a163_0x33acb0,_0x59a565=await validateCustomPageSourceFiles(_0x2d6b1a);if(_0x59a565['length']>0x0)throw CliErrors[_0x46c515(0x1a5)](_0x46c515(0x1a0)+_0x59a565[_0x46c515(0x19d)](_0x75a7e2=>_0x75a7e2['file']+':\x20'+_0x75a7e2['message'])['join'](';\x20'));}export function readCustomPageId(_0x4782a4){const _0xb1bb7d=a163_0x33acb0,_0x2b4923=_0x4782a4[_0xb1bb7d(0x1a4)]('id');if(!Number['isInteger'](_0x2b4923)||_0x2b4923<=0x0)throw CliErrors[_0xb1bb7d(0x1a5)]('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x2b4923;}
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_0xd11d3d=a164_0x15d7;(function(_0x480f15,_0x5eaf12){const _0x22a002=a164_0x15d7,_0xcac056=_0x480f15();while(!![]){try{const _0x4f041a=parseInt(_0x22a002(0x1bd))/0x1*(parseInt(_0x22a002(0x1cd))/0x2)+-parseInt(_0x22a002(0x1d1))/0x3*(-parseInt(_0x22a002(0x1d3))/0x4)+parseInt(_0x22a002(0x1ca))/0x5*(parseInt(_0x22a002(0x1ba))/0x6)+parseInt(_0x22a002(0x1c3))/0x7+parseInt(_0x22a002(0x1d0))/0x8+parseInt(_0x22a002(0x1c0))/0x9*(parseInt(_0x22a002(0x1c1))/0xa)+-parseInt(_0x22a002(0x1ce))/0xb;if(_0x4f041a===_0x5eaf12)break;else _0xcac056['push'](_0xcac056['shift']());}catch(_0x8b1aeb){_0xcac056['push'](_0xcac056['shift']());}}}(a164_0x5981,0x56d08));function a164_0x5981(){const _0x3d0844=['Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','1389560DsfCET','filter','message','12MDykoJ','15161883FZgGGo','toLowerCase','3952792tsndCa','2283vdcHGA','page\x20files','404bVisVX','endsWith','6xJgPvH','some','map','21917twGlyX','find','.tsx','7893wawddY','5070CSZuHB','all','2162524IeCqkq','.jsx','entries','babel','trim','typescript'];a164_0x5981=function(){return _0x3d0844;};return a164_0x5981();}import{format}from'prettier';const SOURCE_PARSERS={'.js':a164_0xd11d3d(0x1c6),'.jsx':'babel','.ts':'typescript','.tsx':a164_0xd11d3d(0x1c8)},CUSTOM_PAGE_EXTENSIONS=[a164_0xd11d3d(0x1c4),a164_0xd11d3d(0x1bf)];export async function validateCustomPageSourceFiles(_0x2ec7e6){const _0x17fc65=a164_0xd11d3d,_0x67015c=Object[_0x17fc65(0x1c5)](_0x2ec7e6)[_0x17fc65(0x1cb)](([_0x2e3227])=>getParser(_0x2e3227));if(!_0x67015c['some'](([_0x936b5f])=>isReactSourceFile(_0x936b5f)))return[{'file':_0x17fc65(0x1d2),'message':_0x17fc65(0x1c9)}];const _0x2175dc=await Promise[_0x17fc65(0x1c2)](_0x67015c[_0x17fc65(0x1bc)](async([_0x5d295e,_0xe6bd82])=>{const _0x17b172=_0x17fc65;try{return await format(_0xe6bd82,{'parser':getParser(_0x5d295e)}),undefined;}catch(_0x2026e8){return{'file':_0x5d295e,'message':_0x2026e8 instanceof Error?_0x2026e8[_0x17b172(0x1cc)]:String(_0x2026e8)};}}));return _0x2175dc[_0x17fc65(0x1cb)](_0x3ee536=>_0x3ee536!==undefined);}function getParser(_0x44a493){const _0x32b730=a164_0xd11d3d,_0x42d65a=_0x44a493[_0x32b730(0x1c7)]()[_0x32b730(0x1cf)]();return Object[_0x32b730(0x1c5)](SOURCE_PARSERS)[_0x32b730(0x1be)](([_0x64ebf8])=>_0x42d65a['endsWith'](_0x64ebf8))?.[0x1];}function a164_0x15d7(_0x96a77,_0x48e735){_0x96a77=_0x96a77-0x1ba;const _0x5981c6=a164_0x5981();let _0x15d769=_0x5981c6[_0x96a77];return _0x15d769;}function isReactSourceFile(_0x4fcab4){const _0x4f0f8a=a164_0xd11d3d,_0x39b0a0=_0x4fcab4['trim']()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x4f0f8a(0x1bb)](_0x91e3b8=>_0x39b0a0[_0x4f0f8a(0x1d4)](_0x91e3b8));}
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_0x44a6c7=a165_0x376c;(function(_0x2f208d,_0x491b7b){const _0x5a9d5f=a165_0x376c,_0x165dd0=_0x2f208d();while(!![]){try{const _0x51fe2a=-parseInt(_0x5a9d5f(0x113))/0x1*(parseInt(_0x5a9d5f(0x10b))/0x2)+-parseInt(_0x5a9d5f(0x10e))/0x3+parseInt(_0x5a9d5f(0x11e))/0x4*(-parseInt(_0x5a9d5f(0x119))/0x5)+-parseInt(_0x5a9d5f(0x118))/0x6*(parseInt(_0x5a9d5f(0x11d))/0x7)+-parseInt(_0x5a9d5f(0x11a))/0x8*(-parseInt(_0x5a9d5f(0x125))/0x9)+parseInt(_0x5a9d5f(0x127))/0xa+parseInt(_0x5a9d5f(0x11c))/0xb;if(_0x51fe2a===_0x491b7b)break;else _0x165dd0['push'](_0x165dd0['shift']());}catch(_0x253cda){_0x165dd0['push'](_0x165dd0['shift']());}}}(a165_0x20e3,0x92998));function a165_0x20e3(){const _0x5687d3=['number','Custom\x20Page\x20ID','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','pageContent','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','str','newVersion','/smartapi/webcode/page/update/content','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','82YqDqtd','trim','validation','3428733lYedEM','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page-content','Updated\x20Custom\x20Page\x20','22987omCwpn','apiError','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','string','compress','36LigHwH','515aSkeFU','8vTVbLD','appCode','42878121lTcXcl','826777MmbArQ','25276ARpwPw','write','POST','pageId','page-dir','cookie','appcode','1070037bbmgIq','custom-update','284690DNLhMg'];a165_0x20e3=function(){return _0x5687d3;};return a165_0x20e3();}import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a165_0x376c(_0x2e80ef,_0x3f1d30){_0x2e80ef=_0x2e80ef-0x10b;const _0x20e30b=a165_0x20e3();let _0x376c48=_0x20e30b[_0x2e80ef];return _0x376c48;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':'page','command':a165_0x44a6c7(0x126),'description':a165_0x44a6c7(0x12c),'risk':a165_0x44a6c7(0x11f),'defaultOutputFormat':a165_0x44a6c7(0x117),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a165_0x44a6c7(0x111),'message':a165_0x44a6c7(0x12a),'hint':a165_0x44a6c7(0x10f)}],'flags':[{'name':'id','type':a165_0x44a6c7(0x128),'required':!![],'description':a165_0x44a6c7(0x129)},{'name':a165_0x44a6c7(0x122),'type':a165_0x44a6c7(0x116),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4e42b4){readCustomPageId(_0x4e42b4),await readValidatedPageContent(_0x4e42b4);},async 'dryRun'(_0x43c1e3){const _0x2eef07=a165_0x44a6c7,_0x38c65a=await readInput(_0x43c1e3);return{'method':_0x2eef07(0x120),'url':_0x2eef07(0x12f),'body':{'id':_0x38c65a[_0x2eef07(0x121)],'codeContent':_0x38c65a[_0x2eef07(0x12b)]},'description':_0x2eef07(0x130)+_0x38c65a['pageId']+'.'};},async 'execute'(_0x51b29b){const _0x44db51=a165_0x44a6c7,_0x23f966=await readInput(_0x51b29b),_0x27ef6c=await updateCustomPageContent({'pageId':_0x23f966[_0x44db51(0x121)],'pageContent':_0x23f966[_0x44db51(0x12b)]});if(!Number['isInteger'](_0x27ef6c[_0x44db51(0x12e)])||_0x27ef6c['newVersion']<=0x0)throw CliErrors[_0x44db51(0x114)](_0x44db51(0x110));const _0x126167=buildCustomPageEditUrl(_0x23f966[_0x44db51(0x11b)],_0x23f966[_0x44db51(0x121)]),_0x7ce8cb=await resolveCustomPageDevelopmentUrl(_0x23f966['appCode'],_0x23f966['pageId'],_0x51b29b[_0x44db51(0x123)]);return{'ok':!![],'data':{'operation':'page.custom-update','selector':{'appCode':_0x23f966[_0x44db51(0x11b)],'pageId':_0x23f966[_0x44db51(0x121)]},'before':null,'after':{'pageId':_0x27ef6c['pageId'],'version':_0x27ef6c[_0x44db51(0x12e)],'pageContent':_0x23f966[_0x44db51(0x12b)]},'dryRun':![],'request':_0x23f966,..._0x7ce8cb?{'pageUrl':_0x7ce8cb}:{},..._0x126167?{'editPageUrl':_0x126167}:{},'warnings':_0x7ce8cb?[]:[_0x44db51(0x115)]},'message':_0x44db51(0x112)+_0x23f966[_0x44db51(0x121)]+'.'};}};async function readInput(_0x43ce06){const _0xd4f865=a165_0x44a6c7,_0x416574=readCustomPageId(_0x43ce06),_0x292a47=_0x43ce06['str'](_0xd4f865(0x124))[_0xd4f865(0x10c)]()||(await getCustomPageSource(_0x416574))['appCode']?.[_0xd4f865(0x10c)]();if(!_0x292a47)throw CliErrors[_0xd4f865(0x10d)]('Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20'+_0x416574+'.');return{'appCode':_0x292a47,'pageId':_0x416574,'pageContent':await readValidatedPageContent(_0x43ce06)};}async function readValidatedPageContent(_0x324bf1){const _0x399539=a165_0x44a6c7,_0x17279d=await readCustomPageDirectory(_0x324bf1[_0x399539(0x12d)]('page-dir'));return await validateCustomPageContent(_0x17279d),_0x17279d;}
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_0xd1e59d=a166_0x3fc8;(function(_0x9e7538,_0x4d9166){const _0x1fbf46=a166_0x3fc8,_0x17c818=_0x9e7538();while(!![]){try{const _0x4625bb=-parseInt(_0x1fbf46(0xf8))/0x1+parseInt(_0x1fbf46(0xfa))/0x2*(parseInt(_0x1fbf46(0xff))/0x3)+-parseInt(_0x1fbf46(0x107))/0x4+-parseInt(_0x1fbf46(0xfe))/0x5+parseInt(_0x1fbf46(0xf7))/0x6+-parseInt(_0x1fbf46(0x106))/0x7*(-parseInt(_0x1fbf46(0xf6))/0x8)+parseInt(_0x1fbf46(0xf3))/0x9*(parseInt(_0x1fbf46(0xfc))/0xa);if(_0x4625bb===_0x4d9166)break;else _0x17c818['push'](_0x17c818['shift']());}catch(_0x19ba72){_0x17c818['push'](_0x17c818['shift']());}}}(a166_0x567a,0xb260a));function a166_0x567a(){const _0x1e84f6=['page','3247745RSzRJy','3ALabsL','appCode','nextAction','length','manualResolutionRequired','string','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','1050bxYuRS','3221808rrAzFg','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','/standard-page-status?appCode=','GET','22665789xHczAU','/smartapi/lovrabet/dataset/','status','6648VttkCi','2398854yfESHr','1344080FQtRos','code','973670gcZPbV','alias','10PZZVKH'];a166_0x567a=function(){return _0x1e84f6;};return a166_0x567a();}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 a166_0x3fc8(_0x4af5c2,_0xe6dbc7){_0x4af5c2=_0x4af5c2-0xf2;const _0x567a41=a166_0x567a();let _0x3fc882=_0x567a41[_0x4af5c2];return _0x3fc882;}export const pageDataListStatus={'service':a166_0xd1e59d(0xfd),'command':'data-list-status','description':a166_0xd1e59d(0x108),'risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a166_0xd1e59d(0xfb),'type':a166_0xd1e59d(0x104),'description':a166_0xd1e59d(0x105)}],async 'validate'(_0x56e36d){validateDatasetSelector(_0x56e36d);},async 'dryRun'(_0x2ae23b){const _0x54ffa7=a166_0xd1e59d,_0x27588a=await loadDatasetDetailForPage(_0x2ae23b);return{'method':_0x54ffa7(0xf2),'url':_0x54ffa7(0xf4)+_0x27588a[_0x54ffa7(0xf9)]+_0x54ffa7(0x109)+encodeURIComponent(_0x2ae23b[_0x54ffa7(0x100)]),'description':serializeDryRunDescription({'dataset':{'id':_0x27588a['id'],'code':_0x27588a[_0x54ffa7(0xf9)],'name':_0x27588a['name']},'action':'query-data-list-status'})};},async 'execute'(_0x2c1060){const _0x94cd6e=a166_0xd1e59d,_0x552b58=await loadDatasetDetailForPage(_0x2c1060),_0x3736b6=await loadDataListPageStatusForGenerate(_0x2c1060,_0x552b58[_0x94cd6e(0xf9)]),_0x4de97b=getUndeletedRelatedPages(_0x552b58),_0x2d99c5=assessDataListPageState(_0x552b58['code'],_0x3736b6,{'fallbackUndeletedPages':_0x4de97b});return{'ok':!![],'data':{'datasetCode':_0x552b58[_0x94cd6e(0xf9)],'precheckSource':_0x3736b6?.['source']??'related-pages-fallback','status':_0x2d99c5[_0x94cd6e(0xf5)],'manualResolutionRequired':_0x2d99c5[_0x94cd6e(0x103)],'nextAction':_0x2d99c5[_0x94cd6e(0x101)],'dataListPageStatus':_0x3736b6,'relatedPages':{'total':_0x552b58['relatedPages']['length'],'undeletedCount':_0x4de97b[_0x94cd6e(0x102)]}}};}};
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
- const a167_0xc17910=a167_0x1677;(function(_0x1a3b21,_0xee114b){const _0x1a2034=a167_0x1677,_0x4c0fe4=_0x1a3b21();while(!![]){try{const _0x473315=-parseInt(_0x1a2034(0xae))/0x1+parseInt(_0x1a2034(0x7e))/0x2*(-parseInt(_0x1a2034(0x9e))/0x3)+parseInt(_0x1a2034(0x85))/0x4*(parseInt(_0x1a2034(0xac))/0x5)+-parseInt(_0x1a2034(0x80))/0x6+-parseInt(_0x1a2034(0x9d))/0x7+parseInt(_0x1a2034(0x87))/0x8*(parseInt(_0x1a2034(0xa8))/0x9)+parseInt(_0x1a2034(0x86))/0xa;if(_0x473315===_0xee114b)break;else _0x4c0fe4['push'](_0x4c0fe4['shift']());}catch(_0x4da3e6){_0x4c0fe4['push'](_0x4c0fe4['shift']());}}}(a167_0x16bd,0x61efd));function a167_0x1677(_0x55c9c5,_0x4fb488){_0x55c9c5=_0x55c9c5-0x7c;const _0x16bd2c=a167_0x16bd();let _0x1677a6=_0x16bd2c[_0x55c9c5];return _0x1677a6;}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';function a167_0x16bd(){const _0xc6478f=['status','progressRate','page-type','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','Submitted\x20a\x20generate\x20task','number','DATA_LIST','write','reused','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','name','clientOperationId','dataListPageStatus','precheck','message','SUCCESS','bool','dataset','appCode','2091845BJMCxu','83661rzSBLY','boolean','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','dryRun','apply','page-pattern','page','CRUD_PAGE_SET','alias','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','27mLZyqq','currentStep','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','string','230fhMsmJ','generate-start','631985cJpsDM','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','taskId','38mKzwke','allowGenerate','2841810rXKnJK','source','operationId','fieldCount','code','19968UheZli','15920060YfAQPr','1370184DsvZni','manualResolutionRequired','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'];a167_0x16bd=function(){return _0xc6478f;};return a167_0x16bd();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a167_0xc17910(0xa4),'command':'generate-start','description':a167_0xc17910(0xa7),'risk':a167_0xc17910(0x91),'defaultOutputFormat':'compress','rejectedFlags':[{'name':a167_0xc17910(0x8c),'message':a167_0xc17910(0x93),'hint':a167_0xc17910(0xa0)},{'name':a167_0xc17910(0xa3),'message':a167_0xc17910(0x7c),'hint':'DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.'}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a167_0xc17910(0xa6),'type':a167_0xc17910(0xab),'description':a167_0xc17910(0x89)},{'name':'apply','type':a167_0xc17910(0x9f),'description':a167_0xc17910(0xaa)}],async 'validate'(_0x4e5c11){validateDatasetSelector(_0x4e5c11);},async 'dryRun'(_0x3f4e65){const _0x2dca61=a167_0xc17910,_0x94a6f0=await prepare(_0x3f4e65);return{'method':'POST','url':'/smartapi/lovrabet/dataset/'+_0x94a6f0[_0x2dca61(0x9b)][_0x2dca61(0x84)]+'/generate-standard-pages/start','body':{'appCode':_0x3f4e65['appCode'],'clientOperationId':_0x94a6f0[_0x2dca61(0x95)]},'description':serializeDryRunDescription({'dataset':{'id':_0x94a6f0[_0x2dca61(0x9b)]['id'],'code':_0x94a6f0[_0x2dca61(0x9b)]['code'],'name':_0x94a6f0[_0x2dca61(0x9b)][_0x2dca61(0x94)],'fieldCount':_0x94a6f0[_0x2dca61(0x9b)][_0x2dca61(0x83)]},'precheckSource':_0x94a6f0[_0x2dca61(0x96)]?.[_0x2dca61(0x81)]??'related-pages-fallback','action':_0x2dca61(0xad),'clientOperationId':_0x94a6f0['clientOperationId'],'plannedStatus':_0x94a6f0['precheck'][_0x2dca61(0x8a)],'reason':_0x94a6f0[_0x2dca61(0x97)][_0x2dca61(0x98)]})};},async 'execute'(_0x507d00){const _0x5bad5f=a167_0xc17910;if(!_0x507d00[_0x5bad5f(0x9a)](_0x5bad5f(0xa2))){const _0x103465=await pageGenerateStart[_0x5bad5f(0xa1)](_0x507d00);return{'ok':!![],'message':_0x5bad5f(0x8d),'data':_0x103465};}const _0x139c66=await prepare(_0x507d00);if(!_0x139c66[_0x5bad5f(0x97)][_0x5bad5f(0x7f)])return{'ok':![],'message':_0x139c66['precheck'][_0x5bad5f(0x98)],'data':{'datasetCode':_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)],'pageType':'DATA_LIST','pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x139c66[_0x5bad5f(0x95)],'precheckSource':_0x139c66[_0x5bad5f(0x96)]?.[_0x5bad5f(0x81)]??'related-pages-fallback','status':_0x139c66['precheck'][_0x5bad5f(0x8a)],'manualResolutionRequired':_0x139c66[_0x5bad5f(0x97)][_0x5bad5f(0x88)],'nextAction':_0x139c66[_0x5bad5f(0x97)]['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)],_0x507d00[_0x5bad5f(0x9c)])},'dataListPageStatus':_0x139c66[_0x5bad5f(0x96)]}};const _0x1a228e=await startGenerateDataListPages(_0x507d00[_0x5bad5f(0x9c)],_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)],{'clientOperationId':_0x139c66['clientOperationId']}),_0x5efa6b=_0x1a228e['status']===_0x5bad5f(0x99)||_0x1a228e[_0x5bad5f(0x8a)]==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x507d00,_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)]):null,_0x51c895=assessGenerateOperationState(_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)],_0x1a228e[_0x5bad5f(0x8a)],_0x5efa6b);return{'ok':!![],'message':_0x1a228e[_0x5bad5f(0x92)]?'Reusing\x20an\x20existing\x20generate\x20task':_0x5bad5f(0x8e),'data':{'datasetCode':_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)],'appCode':_0x507d00[_0x5bad5f(0x9c)],'pageType':_0x5bad5f(0x90),'pagePattern':_0x5bad5f(0xa5),'taskId':_0x1a228e[_0x5bad5f(0x7d)]??null,'operationId':_0x1a228e[_0x5bad5f(0x82)]??null,'clientOperationId':_0x139c66[_0x5bad5f(0x95)],'jobStatus':_0x1a228e[_0x5bad5f(0x8a)]??null,'progressRate':typeof _0x1a228e[_0x5bad5f(0x8b)]===_0x5bad5f(0x8f)?_0x1a228e[_0x5bad5f(0x8b)]:null,'currentStep':_0x1a228e[_0x5bad5f(0xa9)]??null,'reused':_0x1a228e[_0x5bad5f(0x92)]===!![],'status':_0x51c895[_0x5bad5f(0x8a)],'manualResolutionRequired':_0x51c895[_0x5bad5f(0x88)],'nextAction':_0x51c895['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x139c66[_0x5bad5f(0x9b)][_0x5bad5f(0x84)],{'appCode':_0x507d00['appCode'],'taskId':_0x1a228e[_0x5bad5f(0x7d)],'operationId':_0x1a228e['operationId'],'clientOperationId':_0x139c66[_0x5bad5f(0x95)]})},'dataListPageStatus':_0x5efa6b}};}};async function prepare(_0x4fc214){const _0x56c0d7=a167_0xc17910,_0x3e3721=await loadDatasetDetailForPage(_0x4fc214),_0x353b66=await loadDataListPageStatusForGenerate(_0x4fc214,_0x3e3721[_0x56c0d7(0x84)]),_0x53e692=getUndeletedRelatedPages(_0x3e3721);return{'dataset':_0x3e3721,'dataListPageStatus':_0x353b66,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3e3721[_0x56c0d7(0x84)],_0x353b66,{'fallbackUndeletedPages':_0x53e692})};}
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
- const a168_0xd81d27=a168_0x3e6d;function a168_0x5374(){const _0x197e78=['message','4145005sUTfqw','SUCCESS','currentStep','operationId','22uehhzP','read','4fyAILH','1233zNJzBy','6586090igiAmJ','client-operation-id','manualResolutionRequired','page','result','operation-id','8bLucSA','task-id','16265724KxjdWN','PARTIAL_SUCCESS','/smartapi/lovrabet/dataset/','generate-status','4190gRouBN','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','GET','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','21397CbRRIm','alias','status','set','1265547lEoofC','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','clientOperationId','progressRate','/generate-standard-pages/status?','appCode','operation_failed','errorMsg','code','nextAction','str','6732702qXfupf','70wJncQi','taskId','string'];a168_0x5374=function(){return _0x197e78;};return a168_0x5374();}(function(_0x2f4016,_0x2cac79){const _0x299aed=a168_0x3e6d,_0x368eeb=_0x2f4016();while(!![]){try{const _0x189f58=parseInt(_0x299aed(0x1db))/0x1*(parseInt(_0x299aed(0x1eb))/0x2)+-parseInt(_0x299aed(0x1df))/0x3*(parseInt(_0x299aed(0x1f5))/0x4)+parseInt(_0x299aed(0x1ef))/0x5+parseInt(_0x299aed(0x1ea))/0x6+parseInt(_0x299aed(0x1f7))/0x7*(parseInt(_0x299aed(0x1fd))/0x8)+parseInt(_0x299aed(0x1f6))/0x9*(parseInt(_0x299aed(0x203))/0xa)+parseInt(_0x299aed(0x1f3))/0xb*(-parseInt(_0x299aed(0x1ff))/0xc);if(_0x189f58===_0x2cac79)break;else _0x368eeb['push'](_0x368eeb['shift']());}catch(_0x14f74f){_0x368eeb['push'](_0x368eeb['shift']());}}}(a168_0x5374,0x8a0eb));function a168_0x3e6d(_0x30e6a5,_0x3dc352){_0x30e6a5=_0x30e6a5-0x1da;const _0x5374bb=a168_0x5374();let _0x3e6d06=_0x5374bb[_0x30e6a5];return _0x3e6d06;}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_0xd81d27(0x1fa),'command':a168_0xd81d27(0x202),'description':a168_0xd81d27(0x204),'risk':a168_0xd81d27(0x1f4),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a168_0xd81d27(0x1dc),'type':a168_0xd81d27(0x1ed),'description':a168_0xd81d27(0x1e0)},{'name':a168_0xd81d27(0x1fe),'type':a168_0xd81d27(0x1ed),'description':a168_0xd81d27(0x1da)},{'name':'operation-id','type':'string','description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a168_0xd81d27(0x1f8),'type':a168_0xd81d27(0x1ed),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x477bc6){validateDatasetSelector(_0x477bc6),validateGenerateOperationSelector(_0x477bc6);},async 'dryRun'(_0x50ac56){const _0x2d6cbd=a168_0xd81d27,_0x1140d0=await loadDatasetDetailForPage(_0x50ac56),_0x1cae56=_0x50ac56[_0x2d6cbd(0x1e9)](_0x2d6cbd(0x1fe)),_0xa11efd=_0x50ac56[_0x2d6cbd(0x1e9)]('operation-id'),_0x592998=_0x50ac56['str']('client-operation-id'),_0x21d1ed=new URLSearchParams({'appCode':_0x50ac56['appCode']});return _0x1cae56&&_0x21d1ed[_0x2d6cbd(0x1de)](_0x2d6cbd(0x1ec),_0x1cae56),_0xa11efd&&_0x21d1ed['set'](_0x2d6cbd(0x1f2),_0xa11efd),_0x592998&&_0x21d1ed[_0x2d6cbd(0x1de)]('clientOperationId',_0x592998),{'method':_0x2d6cbd(0x205),'url':_0x2d6cbd(0x201)+_0x1140d0[_0x2d6cbd(0x1e7)]+_0x2d6cbd(0x1e3)+_0x21d1ed['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x1140d0['id'],'code':_0x1140d0[_0x2d6cbd(0x1e7)],'name':_0x1140d0['name']},'action':'query-generate-operation-status','taskId':_0x1cae56||undefined,'operationId':_0xa11efd||undefined,'clientOperationId':_0x592998||undefined})};},async 'execute'(_0x415e4d){const _0x2e9879=a168_0xd81d27,_0x551325=await loadDatasetDetailForPage(_0x415e4d),_0x3549bd=_0x415e4d['str'](_0x2e9879(0x1fe)),_0x2d8f90=_0x415e4d[_0x2e9879(0x1e9)](_0x2e9879(0x1fc)),_0x5337d9=_0x415e4d[_0x2e9879(0x1e9)](_0x2e9879(0x1f8)),_0x4ce5d1=await getGenerateDataListPagesStatus(_0x415e4d[_0x2e9879(0x1e4)],_0x551325[_0x2e9879(0x1e7)],{'taskId':_0x3549bd||undefined,'operationId':_0x2d8f90||undefined,'clientOperationId':_0x5337d9||undefined}),_0x4a1819=_0x4ce5d1[_0x2e9879(0x1dd)]===_0x2e9879(0x1f0)||_0x4ce5d1[_0x2e9879(0x1dd)]===_0x2e9879(0x200),_0x1b9e42=_0x4a1819?await loadDataListPageStatusForGenerate(_0x415e4d,_0x551325[_0x2e9879(0x1e7)]):null,_0x1bcf13=assessGenerateOperationState(_0x551325[_0x2e9879(0x1e7)],_0x4ce5d1[_0x2e9879(0x1dd)],_0x1b9e42),_0x530c27=_0x4ce5d1[_0x2e9879(0x1ec)]??_0x3549bd??undefined,_0x21cf78=_0x4ce5d1[_0x2e9879(0x1f2)]??_0x2d8f90??undefined,_0xd0148=_0x4ce5d1[_0x2e9879(0x1e1)]??_0x5337d9??undefined;return{'ok':!![],'message':_0x1bcf13[_0x2e9879(0x1dd)]===_0x2e9879(0x1e5)?_0x4ce5d1[_0x2e9879(0x1e6)]||_0x1bcf13[_0x2e9879(0x1ee)]:_0x1bcf13['message'],'data':{'datasetCode':_0x551325[_0x2e9879(0x1e7)],'appCode':_0x415e4d['appCode'],'taskId':_0x530c27,'operationId':_0x21cf78,'clientOperationId':_0xd0148,'jobStatus':_0x4ce5d1['status']??null,'progressRate':typeof _0x4ce5d1[_0x2e9879(0x1e2)]==='number'?_0x4ce5d1['progressRate']:null,'currentStep':_0x4ce5d1[_0x2e9879(0x1f1)]??null,'errorMsg':_0x4ce5d1['errorMsg']??null,'status':_0x1bcf13['status'],'manualResolutionRequired':_0x1bcf13[_0x2e9879(0x1f9)],'nextAction':_0x1bcf13[_0x2e9879(0x1e8)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x551325[_0x2e9879(0x1e7)],{'appCode':_0x415e4d[_0x2e9879(0x1e4)],'taskId':_0x530c27,'operationId':_0x21cf78,'clientOperationId':_0xd0148})},'dataListPageStatus':_0x1b9e42,'result':_0x4ce5d1[_0x2e9879(0x1fb)]??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(_0x26b79b,_0x35caf3){const _0x33d7ab=a169_0x1e71,_0x3739ee=_0x26b79b();while(!![]){try{const _0x2cedff=-parseInt(_0x33d7ab(0x182))/0x1*(parseInt(_0x33d7ab(0x188))/0x2)+parseInt(_0x33d7ab(0x18c))/0x3*(-parseInt(_0x33d7ab(0x18e))/0x4)+-parseInt(_0x33d7ab(0x189))/0x5+parseInt(_0x33d7ab(0x184))/0x6*(-parseInt(_0x33d7ab(0x185))/0x7)+parseInt(_0x33d7ab(0x187))/0x8*(-parseInt(_0x33d7ab(0x18d))/0x9)+-parseInt(_0x33d7ab(0x18a))/0xa*(parseInt(_0x33d7ab(0x186))/0xb)+-parseInt(_0x33d7ab(0x183))/0xc*(-parseInt(_0x33d7ab(0x18b))/0xd);if(_0x2cedff===_0x35caf3)break;else _0x3739ee['push'](_0x3739ee['shift']());}catch(_0xc49736){_0x3739ee['push'](_0x3739ee['shift']());}}}(a169_0x4c1e,0xdabf9));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';function a169_0x1e71(_0x476a6e,_0x48c29e){_0x476a6e=_0x476a6e-0x182;const _0x4c1e27=a169_0x4c1e();let _0x1e715f=_0x4c1e27[_0x476a6e];return _0x1e715f;}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';function a169_0x4c1e(){const _0x4351bc=['62022fuxdgB','4430511OVAaZL','20qrRPvP','382696PdOeRb','35675292hevdWg','12qEjxNh','4816791eZmDQC','10763027VonlVJ','8JOXKcP','8yjbBky','2843865xHJdzg','10FscHHE','26zBvciO'];a169_0x4c1e=function(){return _0x4351bc;};return a169_0x4c1e();}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_0x24cafa=a170_0x599e;function a170_0x599e(_0x37e94e,_0x368c29){_0x37e94e=_0x37e94e-0x1a5;const _0x490eb9=a170_0x490e();let _0x599e0a=_0x490eb9[_0x37e94e];return _0x599e0a;}(function(_0x4b861b,_0x15cc6f){const _0x44bb57=a170_0x599e,_0x147b89=_0x4b861b();while(!![]){try{const _0x10d14c=-parseInt(_0x44bb57(0x1c9))/0x1*(parseInt(_0x44bb57(0x1aa))/0x2)+-parseInt(_0x44bb57(0x1dc))/0x3*(parseInt(_0x44bb57(0x1dd))/0x4)+parseInt(_0x44bb57(0x1b1))/0x5+parseInt(_0x44bb57(0x1e5))/0x6+-parseInt(_0x44bb57(0x1b2))/0x7+parseInt(_0x44bb57(0x1e0))/0x8+-parseInt(_0x44bb57(0x1a5))/0x9;if(_0x10d14c===_0x15cc6f)break;else _0x147b89['push'](_0x147b89['shift']());}catch(_0x7339e4){_0x147b89['push'](_0x147b89['shift']());}}}(a170_0x490e,0x540ac));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';function a170_0x490e(){const _0x19061b=['force','pageId','detail','1918490EmMROw','1128666gEPRmj','mode','status','pages','pageVersion','bool','would_pull','datasetCode','deleted','lastSync','localPath','boolean','alias','toISOString','Page\x20ID','local\x20unsynced\x20changes','appCode','versionTag','batch','Pull\x20page\x20schema\x20to\x20local\x20files','code','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','reason','1bRitrT','validation','type','relatedPages','push','single','GET','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','items','name','lockFilePath','map','conflict','/smartapi/lovrabet/detail?pageId=','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','compress','filter','all','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','6cwFEsS','122404xxmDlp','Dataset\x20\x22','datasetIds','3514432OBShUN','version-tag','utf8','str','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','2117658obWmkj','Pull\x20complete:\x20','580914ROEAGM','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','\x20skipped','string','number','1089446yGCaFM','hash','page','length'];a170_0x490e=function(){return _0x19061b;};return a170_0x490e();}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_0x24cafa(0x1ac),'command':'pull','description':a170_0x24cafa(0x1c5),'risk':'read','defaultOutputFormat':a170_0x24cafa(0x1d8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a170_0x24cafa(0x1a9),'description':a170_0x24cafa(0x1c0)},DATASETCODE_FLAG_OPTIONAL,{'name':a170_0x24cafa(0x1be),'type':'string','description':a170_0x24cafa(0x1d7)},{'name':a170_0x24cafa(0x1e1),'type':a170_0x24cafa(0x1a8),'description':a170_0x24cafa(0x1d0)},{'name':a170_0x24cafa(0x1ae),'type':a170_0x24cafa(0x1bd),'description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x4e7357){validatePageTargetSelector(_0x4e7357);},async 'dryRun'(_0x1088f7){const _0x53fbff=a170_0x24cafa,_0x43a5b5=await buildPullPlan(_0x1088f7);return{'method':_0x53fbff(0x1cf),'url':_0x43a5b5[_0x53fbff(0x1b3)]===_0x53fbff(0x1ce)?_0x53fbff(0x1d6)+(_0x43a5b5[_0x53fbff(0x1d1)][0x0]?.['detail'][_0x53fbff(0x1af)]??''):_0x53fbff(0x1c7),'body':{'appCode':_0x1088f7[_0x53fbff(0x1c2)],'mode':_0x43a5b5[_0x53fbff(0x1b3)],'targetDatasetCode':_0x43a5b5[_0x53fbff(0x1b9)]??null,'pages':_0x43a5b5['items']['map'](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x43a5b5[_0x53fbff(0x1b3)],'datasetCode':_0x43a5b5['datasetCode']??null,'totalCandidates':_0x43a5b5[_0x53fbff(0x1d1)][_0x53fbff(0x1ad)],'totalWouldPull':_0x43a5b5[_0x53fbff(0x1d1)][_0x53fbff(0x1d9)](_0x4782f7=>_0x4782f7[_0x53fbff(0x1b4)]===_0x53fbff(0x1b8))[_0x53fbff(0x1ad)],'totalConflicts':_0x43a5b5[_0x53fbff(0x1d1)]['filter'](_0x5d6077=>_0x5d6077[_0x53fbff(0x1b4)]==='conflict')['length']})};},async 'execute'(_0x195fd3){const _0x5c4660=a170_0x24cafa,_0x420c99=loadPageProjectConfig(_0x195fd3[_0x5c4660(0x1c2)]),_0x519d57=await readPageLockFile(_0x420c99[_0x5c4660(0x1d3)]),{lockData:_0x3cd321,appLock:_0x16314b}=ensurePageLockScope(_0x519d57??createEmptyPageLock(),_0x195fd3['appCode']),_0x2494c0=await buildPullPlan(_0x195fd3),_0x44a44b=_0x195fd3[_0x5c4660(0x1b7)]('force');if(_0x2494c0[_0x5c4660(0x1b3)]===_0x5c4660(0x1ce)&&_0x2494c0[_0x5c4660(0x1d1)][0x0]?.[_0x5c4660(0x1b4)]==='conflict'&&!_0x44a44b)throw CliErrors['validation'](_0x5c4660(0x1a6)+_0x2494c0[_0x5c4660(0x1d1)][0x0]['localPath'],_0x5c4660(0x1db));const _0x5f4dd0=[],_0x61239b=[];for(const _0x17866c of _0x2494c0['items']){if(_0x17866c[_0x5c4660(0x1b4)]===_0x5c4660(0x1d5)&&!_0x44a44b){_0x61239b[_0x5c4660(0x1cd)]({'pageId':_0x17866c[_0x5c4660(0x1b0)][_0x5c4660(0x1af)],'type':_0x17866c[_0x5c4660(0x1b0)]['type'],'title':_0x17866c['detail']['name'],'localPath':_0x17866c['localPath'],'reason':_0x17866c[_0x5c4660(0x1c8)]??_0x5c4660(0x1c1)});continue;}await ensureParentDirectory(_0x17866c['localPath']);const _0x34e1a7=serializePageSchemaForFile(_0x17866c['detail'][_0x5c4660(0x1c6)]);await writeFile(_0x17866c['localPath'],_0x34e1a7,_0x5c4660(0x1e2)),_0x16314b[_0x5c4660(0x1b5)][String(_0x17866c[_0x5c4660(0x1b0)][_0x5c4660(0x1af)])]=buildLockEntry(_0x17866c[_0x5c4660(0x1b0)],_0x34e1a7),_0x5f4dd0[_0x5c4660(0x1cd)]({'pageId':_0x17866c[_0x5c4660(0x1b0)][_0x5c4660(0x1af)],'type':_0x17866c[_0x5c4660(0x1b0)][_0x5c4660(0x1cb)],'title':_0x17866c[_0x5c4660(0x1b0)][_0x5c4660(0x1d2)],'localPath':_0x17866c[_0x5c4660(0x1bc)]});}return _0x16314b[_0x5c4660(0x1bb)]=new Date()[_0x5c4660(0x1bf)](),await writePageLockFile(_0x420c99[_0x5c4660(0x1d3)],_0x3cd321),{'ok':!![],'message':_0x5c4660(0x1e6)+_0x5f4dd0[_0x5c4660(0x1ad)]+'\x20pulled,\x20'+_0x61239b[_0x5c4660(0x1ad)]+_0x5c4660(0x1a7),'data':{'appCode':_0x195fd3[_0x5c4660(0x1c2)],'pulledPages':_0x5f4dd0,'skippedPages':_0x61239b,'totalPulled':_0x5f4dd0[_0x5c4660(0x1ad)],'totalSkipped':_0x61239b[_0x5c4660(0x1ad)]}};}};async function buildPullPlan(_0x594aa6){const _0x52a50b=a170_0x24cafa,_0x1c0a06=loadPageProjectConfig(_0x594aa6[_0x52a50b(0x1c2)]),_0x12d07a=await readPageLockFile(_0x1c0a06[_0x52a50b(0x1d3)]),{appLock:_0x4c15d0}=ensurePageLockScope(_0x12d07a??createEmptyPageLock(),_0x594aa6[_0x52a50b(0x1c2)]),_0x331b45=getPageIdFlag(_0x594aa6);if(_0x331b45!==undefined){const _0x522a05=await loadPageDetailForPage(_0x594aa6,_0x331b45);return{'mode':_0x52a50b(0x1ce),'items':[await inspectPullTarget(_0x1c0a06,_0x4c15d0['pages'][String(_0x522a05['pageId'])],_0x522a05)]};}const _0x42fb9e=await loadDatasetDetailForPage(_0x594aa6),_0x10d2a8=_0x42fb9e[_0x52a50b(0x1cc)][_0x52a50b(0x1d9)](_0x33adcc=>!_0x33adcc[_0x52a50b(0x1ba)]);if(_0x10d2a8[_0x52a50b(0x1ad)]===0x0)throw CliErrors[_0x52a50b(0x1ca)](_0x52a50b(0x1de)+_0x42fb9e['code']+_0x52a50b(0x1e4));const _0x1ed6a5=await Promise[_0x52a50b(0x1da)](_0x10d2a8['map'](_0x1e1142=>loadPageDetailForPage(_0x594aa6,_0x1e1142['id']))),_0x38d607=selectVersionTagGroup(_0x1ed6a5,_0x151534=>_0x151534[_0x52a50b(0x1c3)],_0x594aa6[_0x52a50b(0x1e3)](_0x52a50b(0x1e1)));return{'mode':_0x52a50b(0x1c4),'datasetCode':_0x42fb9e['code'],'items':await Promise[_0x52a50b(0x1da)](_0x38d607[_0x52a50b(0x1d1)][_0x52a50b(0x1d4)](_0x39123c=>inspectPullTarget(_0x1c0a06,_0x4c15d0[_0x52a50b(0x1b5)][String(_0x39123c['pageId'])],_0x39123c)))};}async function inspectPullTarget(_0x13eec6,_0x250bb8,_0x5c35b3){const _0xae8d83=a170_0x24cafa,_0x5ee47f=resolvePageFilePath(_0x13eec6,_0x5c35b3[_0xae8d83(0x1af)],_0x5c35b3[_0xae8d83(0x1cb)]),_0xff7a29=await fileExists(_0x5ee47f);if(!_0xff7a29){const _0x55eb32=serializePageSchemaForFile(_0x5c35b3[_0xae8d83(0x1c6)]);return{'detail':_0x5c35b3,'localPath':_0x5ee47f,'localHash':computePageContentHash(_0x55eb32),'status':_0xae8d83(0x1b8)};}const _0x5394b0=await computePageFileHash(_0x5ee47f);if(!_0x250bb8||_0x5394b0!==_0x250bb8[_0xae8d83(0x1ab)])return{'detail':_0x5c35b3,'localPath':_0x5ee47f,'localHash':_0x5394b0,'status':_0xae8d83(0x1d5),'reason':_0xae8d83(0x1c1)};return{'detail':_0x5c35b3,'localPath':_0x5ee47f,'localHash':_0x5394b0,'status':'would_pull'};}function buildLockEntry(_0x3b4b60,_0x1b90e4){const _0x4bc9c2=a170_0x24cafa;return{'hash':computePageContentHash(_0x1b90e4),'pageId':_0x3b4b60[_0x4bc9c2(0x1af)],'pageVersion':_0x3b4b60[_0x4bc9c2(0x1b6)],'type':_0x3b4b60[_0x4bc9c2(0x1cb)],'title':_0x3b4b60[_0x4bc9c2(0x1d2)],'datasetIds':_0x3b4b60[_0x4bc9c2(0x1df)],'versionTag':_0x3b4b60['versionTag']};}function toPreviewItem(_0x381f30){const _0x187c1d=a170_0x24cafa;return{'pageId':_0x381f30[_0x187c1d(0x1b0)][_0x187c1d(0x1af)],'type':_0x381f30['detail']['type'],'title':_0x381f30[_0x187c1d(0x1b0)]['name'],'localPath':_0x381f30['localPath'],'status':_0x381f30[_0x187c1d(0x1b4)],..._0x381f30['reason']?{'reason':_0x381f30[_0x187c1d(0x1c8)]}:{}};}
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']}:{}};}