@lovrabet/rabetbase-cli 2.5.0 → 2.5.1-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 (332) 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.d.ts +7 -0
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.d.ts +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/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.d.ts +107 -0
  68. package/lib/commands/dataset/field-restore.js +1 -0
  69. package/lib/commands/dataset/field-update.js +1 -1
  70. package/lib/commands/dataset/generate.js +1 -1
  71. package/lib/commands/dataset/index.js +1 -1
  72. package/lib/commands/dataset/list.js +1 -1
  73. package/lib/commands/dataset/operations.js +1 -1
  74. package/lib/commands/dataset/relation-audit.js +1 -1
  75. package/lib/commands/dataset/relation-create.js +1 -1
  76. package/lib/commands/dataset/relation-delete.js +1 -1
  77. package/lib/commands/dataset/relation-shared.js +1 -1
  78. package/lib/commands/dataset/relation-update.js +1 -1
  79. package/lib/commands/dataset/relations.js +1 -1
  80. package/lib/commands/dataset/rename.js +1 -1
  81. package/lib/commands/dataset/restore.js +1 -1
  82. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  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/auto-sync.d.ts +28 -0
  103. package/lib/commands/deployment/auto-sync.js +1 -0
  104. package/lib/commands/deployment/index.d.ts +2 -0
  105. package/lib/commands/deployment/index.js +1 -0
  106. package/lib/commands/deployment/sync.d.ts +2 -0
  107. package/lib/commands/deployment/sync.js +1 -0
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/issue/index.js +1 -1
  111. package/lib/commands/issue/nudge.js +1 -1
  112. package/lib/commands/issue/report.js +1 -1
  113. package/lib/commands/issue/shared.js +1 -1
  114. package/lib/commands/kb/create.js +1 -1
  115. package/lib/commands/kb/delete.js +1 -1
  116. package/lib/commands/kb/detail.js +1 -1
  117. package/lib/commands/kb/index.js +1 -1
  118. package/lib/commands/kb/list.js +1 -1
  119. package/lib/commands/kb/search.js +1 -1
  120. package/lib/commands/kb/shared.js +1 -1
  121. package/lib/commands/kb/update.js +1 -1
  122. package/lib/commands/logs/index.js +1 -1
  123. package/lib/commands/menu/asset-update.js +1 -1
  124. package/lib/commands/menu/delete.js +1 -1
  125. package/lib/commands/menu/external-link-create.js +1 -1
  126. package/lib/commands/menu/external-link-update.js +1 -1
  127. package/lib/commands/menu/group-create.js +1 -1
  128. package/lib/commands/menu/group-update.js +1 -1
  129. package/lib/commands/menu/index.js +1 -1
  130. package/lib/commands/menu/list.js +1 -1
  131. package/lib/commands/menu/move.js +1 -1
  132. package/lib/commands/menu/regroup-start.js +1 -1
  133. package/lib/commands/menu/rename.js +1 -1
  134. package/lib/commands/menu/shared/compare-table.js +1 -1
  135. package/lib/commands/menu/shared/delete-plan.js +1 -1
  136. package/lib/commands/menu/shared/facts.js +1 -1
  137. package/lib/commands/menu/shared/index.js +1 -1
  138. package/lib/commands/menu/shared/inquirer.js +1 -1
  139. package/lib/commands/menu/shared/local-pages.js +1 -1
  140. package/lib/commands/menu/shared/logic.js +1 -1
  141. package/lib/commands/menu/shared/mutations.js +1 -1
  142. package/lib/commands/menu/shared/service.js +1 -1
  143. package/lib/commands/menu/shared/sync-core.js +1 -1
  144. package/lib/commands/menu/shared/update-core.js +1 -1
  145. package/lib/commands/menu/shared/valid-url.js +1 -1
  146. package/lib/commands/menu/sync.js +1 -1
  147. package/lib/commands/menu/visibility-update.js +1 -1
  148. package/lib/commands/notification/config-create.js +1 -1
  149. package/lib/commands/notification/config-delete.js +1 -1
  150. package/lib/commands/notification/config-list.js +1 -1
  151. package/lib/commands/notification/config-update.js +1 -1
  152. package/lib/commands/notification/index.js +1 -1
  153. package/lib/commands/notification/shared.js +1 -1
  154. package/lib/commands/ocr/index.js +1 -1
  155. package/lib/commands/page/create.js +1 -1
  156. package/lib/commands/page/custom/detail.js +1 -1
  157. package/lib/commands/page/custom/list.js +1 -1
  158. package/lib/commands/page/custom/publish.js +1 -1
  159. package/lib/commands/page/custom/shared.js +1 -1
  160. package/lib/commands/page/custom/syntax.js +1 -1
  161. package/lib/commands/page/custom/template.js +1 -1
  162. package/lib/commands/page/custom/update.js +1 -1
  163. package/lib/commands/page/data-list-status.js +1 -1
  164. package/lib/commands/page/generate-start.js +1 -1
  165. package/lib/commands/page/generate-status.js +1 -1
  166. package/lib/commands/page/index.js +1 -1
  167. package/lib/commands/page/pull.js +1 -1
  168. package/lib/commands/page/push.js +1 -1
  169. package/lib/commands/page/relation-audit.js +1 -1
  170. package/lib/commands/page/restore.js +1 -1
  171. package/lib/commands/page/shared.js +1 -1
  172. package/lib/commands/page/sync.js +1 -1
  173. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  174. package/lib/commands/project/create/format-elapsed.js +1 -1
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.js +1 -1
  177. package/lib/commands/project/create/project-name.js +1 -1
  178. package/lib/commands/project/create/project-template-archive.js +1 -1
  179. package/lib/commands/project/create/project-template-path.js +1 -1
  180. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  181. package/lib/commands/project/create/use-format-code.js +1 -1
  182. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  183. package/lib/commands/project/index.js +1 -1
  184. package/lib/commands/project/upgrade.js +1 -1
  185. package/lib/commands/registry.js +1 -1
  186. package/lib/commands/role/delete.js +1 -1
  187. package/lib/commands/role/detail.js +1 -1
  188. package/lib/commands/role/index.js +1 -1
  189. package/lib/commands/role/list.js +1 -1
  190. package/lib/commands/role/shared.js +1 -1
  191. package/lib/commands/role/update.js +1 -1
  192. package/lib/commands/role/user-add.js +1 -1
  193. package/lib/commands/role/user-remove.js +1 -1
  194. package/lib/commands/role/user-resolve.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/deployment-sync.d.ts +10 -0
  219. package/lib/config/deployment-sync.js +1 -0
  220. package/lib/config/domain-config.d.ts +1 -1
  221. package/lib/config/domain-config.js +1 -1
  222. package/lib/config/project-routing.d.ts +30 -0
  223. package/lib/config/project-routing.js +1 -0
  224. package/lib/config/schema.d.ts +1 -1
  225. package/lib/config/schema.js +1 -1
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.d.ts +7 -2
  230. package/lib/constant/domain.js +1 -1
  231. package/lib/constant/env.js +1 -1
  232. package/lib/constant/output.js +1 -1
  233. package/lib/constant/paths.js +1 -1
  234. package/lib/constant/region.d.ts +2 -2
  235. package/lib/constant/region.js +1 -1
  236. package/lib/constant/risk.js +1 -1
  237. package/lib/constant/routing-profile.d.ts +115 -0
  238. package/lib/constant/routing-profile.js +1 -0
  239. package/lib/context/app-resolver.d.ts +2 -0
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +35 -0
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/page/file-system.js +1 -1
  254. package/lib/core/page/hash.js +1 -1
  255. package/lib/core/page/lock.js +1 -1
  256. package/lib/core/sql-index-auditor.js +1 -1
  257. package/lib/core/sql-sync/config.js +1 -1
  258. package/lib/core/sql-sync/file-system.js +1 -1
  259. package/lib/core/sql-sync/hash.js +1 -1
  260. package/lib/core/sql-sync/lock.js +1 -1
  261. package/lib/core/sql-sync/utils.js +1 -1
  262. package/lib/core/sql-validator.js +1 -1
  263. package/lib/errors.js +1 -1
  264. package/lib/framework/build-all-flags.js +1 -1
  265. package/lib/framework/error-output.js +1 -1
  266. package/lib/framework/explicit-yes.js +1 -1
  267. package/lib/framework/flags.js +1 -1
  268. package/lib/framework/help.js +1 -1
  269. package/lib/framework/index.js +1 -1
  270. package/lib/framework/output.js +1 -1
  271. package/lib/framework/response.js +1 -1
  272. package/lib/framework/runner-alias.js +1 -1
  273. package/lib/framework/runner.js +1 -1
  274. package/lib/framework/schema-export.js +1 -1
  275. package/lib/framework/types.d.ts +4 -0
  276. package/lib/framework/types.js +1 -1
  277. package/lib/generated/build-info.d.ts +4 -4
  278. package/lib/generated/build-info.js +1 -1
  279. package/lib/help.js +1 -1
  280. package/lib/postinstall.js +1 -1
  281. package/lib/runtime/confirmation.js +1 -1
  282. package/lib/runtime/event.js +1 -1
  283. package/lib/runtime/index.js +1 -1
  284. package/lib/runtime/queue.js +1 -1
  285. package/lib/runtime/resolve.js +1 -1
  286. package/lib/skills/builtin-skill.js +1 -1
  287. package/lib/skills/main.js +1 -1
  288. package/lib/skills/npx-skills-add.js +1 -1
  289. package/lib/skills/skill-presence.js +1 -1
  290. package/lib/telemetry/cli-command-trace.js +1 -1
  291. package/lib/telemetry/cli-help-trace.js +1 -1
  292. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  293. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  294. package/lib/telemetry/send-cli-trace-log.js +1 -1
  295. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  296. package/lib/utils/ai_config.js +1 -1
  297. package/lib/utils/apply-jq-filter.js +1 -1
  298. package/lib/utils/cdn-config.js +1 -1
  299. package/lib/utils/check-sdk-version.js +1 -1
  300. package/lib/utils/cli-version-check.js +1 -1
  301. package/lib/utils/cli-version-policy.js +1 -1
  302. package/lib/utils/config.js +1 -1
  303. package/lib/utils/entity-with-id.js +1 -1
  304. package/lib/utils/file-utils.js +1 -1
  305. package/lib/utils/guides-cdn.js +1 -1
  306. package/lib/utils/http-client.js +1 -1
  307. package/lib/utils/is-non-interactive.js +1 -1
  308. package/lib/utils/logger.js +1 -1
  309. package/lib/utils/params.js +1 -1
  310. package/lib/utils/platform.js +1 -1
  311. package/lib/utils/sleep.js +1 -1
  312. package/lib/utils/template-replacer.js +1 -1
  313. package/lib/utils/update-notice.js +1 -1
  314. package/lib/utils/version.js +1 -1
  315. package/lib/utils/with-active-cookie.js +1 -1
  316. package/lib/utils/write-cli-side-channel.js +1 -1
  317. package/package.json +1 -2
  318. package/skills/rabetbase/SKILL.md +20 -9
  319. package/skills/rabetbase/guides/frontend-development.md +2 -0
  320. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  321. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  322. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  323. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  324. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  325. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  327. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  328. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  329. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  330. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  331. package/skills/rabetbase.manifest.json +6 -3
  332. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- const a136_0x593862=a136_0x2b23;(function(_0x3c00cd,_0x5764a1){const _0x2ed617=a136_0x2b23,_0x9030e8=_0x3c00cd();while(!![]){try{const _0x26bd90=parseInt(_0x2ed617(0xf2))/0x1*(-parseInt(_0x2ed617(0x101))/0x2)+-parseInt(_0x2ed617(0x100))/0x3*(-parseInt(_0x2ed617(0xfb))/0x4)+parseInt(_0x2ed617(0xed))/0x5*(-parseInt(_0x2ed617(0x10c))/0x6)+parseInt(_0x2ed617(0xfd))/0x7*(-parseInt(_0x2ed617(0x103))/0x8)+parseInt(_0x2ed617(0xfc))/0x9*(-parseInt(_0x2ed617(0xf4))/0xa)+-parseInt(_0x2ed617(0xff))/0xb+parseInt(_0x2ed617(0xf5))/0xc;if(_0x26bd90===_0x5764a1)break;else _0x9030e8['push'](_0x9030e8['shift']());}catch(_0x4effef){_0x9030e8['push'](_0x9030e8['shift']());}}}(a136_0x3895,0x8efda));import{asDryRunResult}from'../../commands/common/dry-run.js';function a136_0x2b23(_0x222d27,_0x5c51cf){_0x222d27=_0x222d27-0xec;const _0x3895ec=a136_0x3895();let _0x2b2371=_0x3895ec[_0x222d27];return _0x2b2371;}import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH='/notification/channel-config/create';function a136_0x3895(){const _0x2860d8=['planned','appCode','verification','5wAjIoT','notification_config_create_outcome_unknown','verified','POST','notification','79DYAvUC','endpointUrl','2129990seBdzu','20191620ncASkS','Inspect\x20with\x20','description','mutation','isSafeInteger','connectTimeout','3524504XmnKXP','9yCBQLb','189231gKmRJB','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','12194226OdwayN','3PyIAGu','1264ZBxbwD','input','56kpxNiU','Created\x20notification\x20config\x20','channelType','config-create','document','configName',';\x20do\x20not\x20resubmit.','configCode','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','2504082NPRbxw','write','create'];a136_0x3895=function(){return _0x2860d8;};return a136_0x3895();}async function prepareCreate(_0x46eb8e){const _0x2bfee5=a136_0x2b23,_0x99204e=await readNotificationDocument(_0x46eb8e,_0x2bfee5(0x10e)),_0x408893=createMutationInput(_0x46eb8e[_0x2bfee5(0x110)],_0x99204e);return{'document':_0x99204e,'input':_0x408893,'planned':projectNotificationConfig({'appCode':_0x46eb8e['appCode'],'configName':_0x99204e['configName'],'channelType':_0x99204e[_0x2bfee5(0x105)],'endpointUrl':_0x99204e[_0x2bfee5(0xf3)],'channelConfig':_0x99204e['channelConfig'],'description':_0x99204e[_0x2bfee5(0xf7)],'connectTimeout':_0x99204e[_0x2bfee5(0xfa)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x99204e['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a136_0x593862(0xf1),'command':a136_0x593862(0x106),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a136_0x593862(0x10d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x286fc3){assertSingleNotificationSource(_0x286fc3);},async 'dryRun'(_0x1f87a2){const _0x5b6e31=a136_0x593862,_0x4be833=await prepareCreate(_0x1f87a2),_0x27981e=notificationLookupCommand(_0x1f87a2[_0x5b6e31(0x110)],_0x4be833[_0x5b6e31(0x107)]['channelType']);return asDryRunResult({'operation':_0x5b6e31(0x10e),'selector':{'appCode':_0x1f87a2[_0x5b6e31(0x110)],'configName':_0x4be833[_0x5b6e31(0x107)][_0x5b6e31(0x108)],'channelType':_0x4be833[_0x5b6e31(0x107)][_0x5b6e31(0x105)]},'before':null,'after':_0x4be833[_0x5b6e31(0x10f)],'dryRun':!![],'backend':{'method':_0x5b6e31(0xf0),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x5b6e31(0x10f),'lookupCommand':_0x27981e}},{'method':_0x5b6e31(0xf0),'url':CREATE_PATH});},async 'execute'(_0x5614e2){const _0x3a8576=a136_0x593862,_0x521f81=await prepareCreate(_0x5614e2),_0x581660=notificationLookupCommand(_0x5614e2['appCode'],_0x521f81[_0x3a8576(0x107)][_0x3a8576(0x105)]);let _0x122b58;try{_0x122b58=await createNotificationChannelConfig(_0x521f81[_0x3a8576(0x102)]);}catch(_0x13ef18){if(isPlatformTransportFailure(_0x13ef18))throw notificationError('notification_config_create_outcome_unknown',_0x3a8576(0xfe),_0x3a8576(0xf6)+_0x581660+_0x3a8576(0x109));throw safeApiFailure(_0x3a8576(0x10e),_0x3a8576(0xf8),'Inspect\x20with\x20'+_0x581660+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x3a8576(0xf9)](_0x122b58)||_0x122b58<=0x0)throw notificationError(_0x3a8576(0xee),_0x3a8576(0x10b),_0x3a8576(0xf6)+_0x581660+';\x20do\x20not\x20resubmit.');let _0xd9b17a;try{const _0x27b113=await getNotificationChannelConfig(_0x122b58,_0x5614e2[_0x3a8576(0x110)]);_0xd9b17a=normalizeExactNotificationConfig(_0x27b113,_0x122b58,_0x5614e2[_0x3a8576(0x110)]);}catch{throw safeApiFailure(_0x3a8576(0x10e),_0x3a8576(0xec),_0x3a8576(0xf6)+_0x581660+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x3a8576(0x10e),'selector':{'appCode':_0xd9b17a[_0x3a8576(0x110)],'id':_0xd9b17a['id'],'configCode':_0xd9b17a[_0x3a8576(0x10a)],'configName':_0xd9b17a[_0x3a8576(0x108)],'channelType':_0xd9b17a[_0x3a8576(0x105)]},'before':null,'after':projectNotificationConfig(_0xd9b17a),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x3a8576(0xef),'lookupCommand':_0x581660}},'message':_0x3a8576(0x104)+_0xd9b17a['id']};}};
1
+ function a141_0x438a(_0x355ffc,_0x4c2424){_0x355ffc=_0x355ffc-0xb3;const _0x1711ca=a141_0x1711();let _0x438aa1=_0x1711ca[_0x355ffc];return _0x438aa1;}const a141_0x2234fa=a141_0x438a;(function(_0x49f6e0,_0x1c500d){const _0x571519=a141_0x438a,_0x1aa013=_0x49f6e0();while(!![]){try{const _0x1cade5=-parseInt(_0x571519(0xc6))/0x1+-parseInt(_0x571519(0xc8))/0x2+-parseInt(_0x571519(0xbf))/0x3*(-parseInt(_0x571519(0xcf))/0x4)+-parseInt(_0x571519(0xc1))/0x5*(-parseInt(_0x571519(0xb5))/0x6)+parseInt(_0x571519(0xcb))/0x7+-parseInt(_0x571519(0xbe))/0x8*(parseInt(_0x571519(0xcd))/0x9)+-parseInt(_0x571519(0xb9))/0xa;if(_0x1cade5===_0x1c500d)break;else _0x1aa013['push'](_0x1aa013['shift']());}catch(_0x2723c6){_0x1aa013['push'](_0x1aa013['shift']());}}}(a141_0x1711,0x2aa36));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a141_0x2234fa(0xce);async function prepareCreate(_0x4472de){const _0x58c628=a141_0x2234fa,_0x43d7d3=await readNotificationDocument(_0x4472de,'create'),_0x395eac=createMutationInput(_0x4472de[_0x58c628(0xd0)],_0x43d7d3);return{'document':_0x43d7d3,'input':_0x395eac,'planned':projectNotificationConfig({'appCode':_0x4472de[_0x58c628(0xd0)],'configName':_0x43d7d3[_0x58c628(0xd4)],'channelType':_0x43d7d3[_0x58c628(0xb3)],'endpointUrl':_0x43d7d3['endpointUrl'],'channelConfig':_0x43d7d3[_0x58c628(0xbc)],'description':_0x43d7d3[_0x58c628(0xd1)],'connectTimeout':_0x43d7d3['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x43d7d3[_0x58c628(0xb7)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a141_0x2234fa(0xd2),'command':a141_0x2234fa(0xd5),'description':a141_0x2234fa(0xc7),'risk':a141_0x2234fa(0xc9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0xf47ae3){assertSingleNotificationSource(_0xf47ae3);},async 'dryRun'(_0x254b26){const _0x4002c2=a141_0x2234fa,_0x3c1ce7=await prepareCreate(_0x254b26),_0x1ac8a9=notificationLookupCommand(_0x254b26[_0x4002c2(0xd0)],_0x3c1ce7[_0x4002c2(0xbd)][_0x4002c2(0xb3)]);return asDryRunResult({'operation':_0x4002c2(0xc3),'selector':{'appCode':_0x254b26['appCode'],'configName':_0x3c1ce7['document'][_0x4002c2(0xd4)],'channelType':_0x3c1ce7[_0x4002c2(0xbd)][_0x4002c2(0xb3)]},'before':null,'after':_0x3c1ce7['planned'],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x4002c2(0xd3),'lookupCommand':_0x1ac8a9}},{'method':_0x4002c2(0xcc),'url':CREATE_PATH});},async 'execute'(_0x4b3f1c){const _0x352834=a141_0x2234fa,_0x3a417e=await prepareCreate(_0x4b3f1c),_0x5cf7b0=notificationLookupCommand(_0x4b3f1c[_0x352834(0xd0)],_0x3a417e[_0x352834(0xbd)]['channelType']);let _0xafe6f7;try{_0xafe6f7=await createNotificationChannelConfig(_0x3a417e[_0x352834(0xc4)]);}catch(_0x2f3adf){if(isPlatformTransportFailure(_0x2f3adf))throw notificationError(_0x352834(0xca),_0x352834(0xc2),'Inspect\x20with\x20'+_0x5cf7b0+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x352834(0xc3),_0x352834(0xba),_0x352834(0xc0)+_0x5cf7b0+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0x352834(0xbb)](_0xafe6f7)||_0xafe6f7<=0x0)throw notificationError(_0x352834(0xca),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.',_0x352834(0xc0)+_0x5cf7b0+_0x352834(0xc5));let _0x1624ec;try{const _0x4ce55f=await getNotificationChannelConfig(_0xafe6f7,_0x4b3f1c['appCode']);_0x1624ec=normalizeExactNotificationConfig(_0x4ce55f,_0xafe6f7,_0x4b3f1c[_0x352834(0xd0)]);}catch{throw safeApiFailure('create','verification',_0x352834(0xc0)+_0x5cf7b0+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x352834(0xc3),'selector':{'appCode':_0x1624ec[_0x352834(0xd0)],'id':_0x1624ec['id'],'configCode':_0x1624ec[_0x352834(0xb6)],'configName':_0x1624ec[_0x352834(0xd4)],'channelType':_0x1624ec[_0x352834(0xb3)]},'before':null,'after':projectNotificationConfig(_0x1624ec),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x352834(0xb8),'lookupCommand':_0x5cf7b0}},'message':_0x352834(0xb4)+_0x1624ec['id']};}};function a141_0x1711(){const _0x4f589b=['readTimeout','verified','2764490WHLdFL','mutation','isSafeInteger','channelConfig','document','5880WLoiMD','346455jUfgcA','Inspect\x20with\x20','1543795EQqioP','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','create','input',';\x20do\x20not\x20resubmit.','84184mJInyd','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','82622wrRyik','write','notification_config_create_outcome_unknown','1045212SJHzNX','POST','1377KHxCXW','/notification/channel-config/create','8IRGLrh','appCode','description','notification','planned','configName','config-create','channelType','Created\x20notification\x20config\x20','6wesMjs','configCode'];a141_0x1711=function(){return _0x4f589b;};return a141_0x1711();}
@@ -1 +1 @@
1
- const a137_0x365e91=a137_0x1230;(function(_0x209b86,_0x36abac){const _0x14734e=a137_0x1230,_0x5b65d5=_0x209b86();while(!![]){try{const _0x3ef8d0=-parseInt(_0x14734e(0x1de))/0x1*(parseInt(_0x14734e(0x1e9))/0x2)+-parseInt(_0x14734e(0x1f4))/0x3+parseInt(_0x14734e(0x1f7))/0x4*(-parseInt(_0x14734e(0x1ef))/0x5)+parseInt(_0x14734e(0x1e4))/0x6+-parseInt(_0x14734e(0x1fa))/0x7+-parseInt(_0x14734e(0x1f8))/0x8+-parseInt(_0x14734e(0x1ea))/0x9*(-parseInt(_0x14734e(0x1f6))/0xa);if(_0x3ef8d0===_0x36abac)break;else _0x5b65d5['push'](_0x5b65d5['shift']());}catch(_0x51650d){_0x5b65d5['push'](_0x5b65d5['shift']());}}}(a137_0x174a,0xb4698));import{asDryRunResult}from'../../commands/common/dry-run.js';function a137_0x174a(){const _0x35c0b5=['unshift','notification_config_delete_verification_unavailable','3122187KIWDGf','delete','42500950tPpFxM','216xcVySB','7428600KaaniM','before','6044787PcYqpl','Notification\x20config\x20','appCode','notification_config_delete_verification_failed','671059MpLhhr','planned','POST','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','high-risk-write',';\x20no\x20automatic\x20retry\x20was\x20attempted.','5639628vtKEvg','channelType','config-delete','/notification/channel-config/delete','mutation','4gCixML','9QFPHrW','notification_config_delete_outcome_unknown','\x20remains\x20present\x20after\x20delete.',';\x20do\x20not\x20resubmit\x20automatically.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','25565sTLLlf','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','Inspect\x20with\x20'];a137_0x174a=function(){return _0x35c0b5;};return a137_0x174a();}import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a137_0x365e91(0x1e7),REFERENCE_WARNING=a137_0x365e91(0x1e1);function a137_0x1230(_0x655bcc,_0x42e960){_0x655bcc=_0x655bcc-0x1de;const _0x174a6b=a137_0x174a();let _0x123029=_0x174a6b[_0x655bcc];return _0x123029;}async function prepareDelete(_0x34120f){const _0x1cb229=a137_0x365e91,_0x5203a6=readNotificationId(_0x34120f),_0x36b653=await requireExactNotificationConfig(_0x34120f[_0x1cb229(0x1fc)],_0x5203a6,_0x1cb229(0x1f5));return{'id':_0x5203a6,'before':_0x36b653};}export const notificationConfigDelete={'service':'notification','command':a137_0x365e91(0x1e6),'description':a137_0x365e91(0x1ee),'risk':a137_0x365e91(0x1e2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x388269){readNotificationId(_0x388269),requireNotificationExplicitYes(_0x388269);},async 'dryRun'(_0x548e97){const _0xf4b900=a137_0x365e91,_0x57884b=await prepareDelete(_0x548e97),_0x4931e0=notificationLookupCommand(_0x548e97[_0xf4b900(0x1fc)],_0x57884b[_0xf4b900(0x1f9)][_0xf4b900(0x1e5)]);return asDryRunResult({'operation':_0xf4b900(0x1f5),'selector':notificationSelector(_0x57884b[_0xf4b900(0x1f9)]),'before':projectNotificationConfig(_0x57884b[_0xf4b900(0x1f9)]),'after':null,'dryRun':!![],'backend':{'method':_0xf4b900(0x1e0),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0xf4b900(0x1df),'lookupCommand':_0x4931e0}},{'method':_0xf4b900(0x1e0),'url':DELETE_PATH});},async 'execute'(_0x3c213a){const _0x3defd4=a137_0x365e91;requireNotificationExplicitYes(_0x3c213a);const _0x47d152=await prepareDelete(_0x3c213a),_0x82f5a0=notificationLookupCommand(_0x3c213a[_0x3defd4(0x1fc)],_0x47d152['before'][_0x3defd4(0x1e5)]);let _0xac8a99=![];try{await deleteNotificationChannelConfig(_0x47d152['id'],_0x3c213a[_0x3defd4(0x1fc)]);}catch(_0x47e99f){if(!isPlatformTransportFailure(_0x47e99f))throw safeApiFailure(_0x3defd4(0x1f5),_0x3defd4(0x1e8),'Inspect\x20with\x20'+_0x82f5a0+_0x3defd4(0x1e3));_0xac8a99=!![];}let _0x3c68ba;try{_0x3c68ba=await listNotificationChannelConfigs(_0x3c213a['appCode'],_0x47d152['before'][_0x3defd4(0x1e5)]),validateNotificationDeleteReadback(_0x3c68ba,_0x3c213a['appCode'],_0x47d152['before'][_0x3defd4(0x1e5)]);}catch{throw notificationError(_0xac8a99?_0x3defd4(0x1eb):_0x3defd4(0x1f3),_0x3defd4(0x1fb)+_0x47d152['id']+'\x20delete\x20could\x20not\x20be\x20verified.',_0x3defd4(0x1f1)+_0x82f5a0+_0x3defd4(0x1ed));}if(_0x3c68ba['some'](_0x3079c4=>_0x3079c4['id']===_0x47d152['id']))throw notificationError(_0xac8a99?'notification_config_delete_outcome_unknown':_0x3defd4(0x1fd),_0x3defd4(0x1fb)+_0x47d152['id']+_0x3defd4(0x1ec),_0x3defd4(0x1f1)+_0x82f5a0+';\x20do\x20not\x20resubmit\x20automatically.');const _0x13ed97=[REFERENCE_WARNING];return _0xac8a99&&_0x13ed97[_0x3defd4(0x1f2)](_0x3defd4(0x1f0)),{'ok':!![],'data':{'operation':'delete','selector':notificationSelector(_0x47d152[_0x3defd4(0x1f9)]),'before':projectNotificationConfig(_0x47d152[_0x3defd4(0x1f9)]),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x13ed97,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0xac8a99,'lookupCommand':_0x82f5a0}},'message':'Deleted\x20notification\x20config\x20'+_0x47d152['id']};}};
1
+ function a142_0x4210(_0x1e7e35,_0x3f1d76){_0x1e7e35=_0x1e7e35-0x1bb;const _0x549b03=a142_0x549b();let _0x421073=_0x549b03[_0x1e7e35];return _0x421073;}const a142_0x1a0c04=a142_0x4210;function a142_0x549b(){const _0x2a8d76=['delete','Notification\x20config\x20','88697XTrlSo','mutation','5FZDKsd','channelType','1097416YgmZfX','\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20','verified',';\x20no\x20automatic\x20retry\x20was\x20attempted.','appCode','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','unshift','287046LOEMTu','3116928SzNdNJ','high-risk-write','2784500nLCpel','2OqrCie','264947narxBq','/notification/channel-config/delete','some','config-delete','POST','9vVfxxT','8600163rIemJU','before','planned','notification_config_delete_verification_failed','notification_config_delete_outcome_unknown','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','90NKSQlF'];a142_0x549b=function(){return _0x2a8d76;};return a142_0x549b();}(function(_0x249abd,_0x2ce970){const _0x26e974=a142_0x4210,_0x37ad50=_0x249abd();while(!![]){try{const _0x14fc9=-parseInt(_0x26e974(0x1d5))/0x1*(-parseInt(_0x26e974(0x1d4))/0x2)+-parseInt(_0x26e974(0x1d0))/0x3+-parseInt(_0x26e974(0x1c8))/0x4*(parseInt(_0x26e974(0x1c6))/0x5)+-parseInt(_0x26e974(0x1c1))/0x6*(-parseInt(_0x26e974(0x1c4))/0x7)+-parseInt(_0x26e974(0x1d1))/0x8+-parseInt(_0x26e974(0x1da))/0x9*(parseInt(_0x26e974(0x1d3))/0xa)+parseInt(_0x26e974(0x1bb))/0xb;if(_0x14fc9===_0x2ce970)break;else _0x37ad50['push'](_0x37ad50['shift']());}catch(_0x311f6e){_0x37ad50['push'](_0x37ad50['shift']());}}}(a142_0x549b,0x30857));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a142_0x1a0c04(0x1d6),REFERENCE_WARNING=a142_0x1a0c04(0x1c0);async function prepareDelete(_0x26b5e6){const _0x5e29ca=a142_0x1a0c04,_0x95e722=readNotificationId(_0x26b5e6),_0x14d5a3=await requireExactNotificationConfig(_0x26b5e6['appCode'],_0x95e722,_0x5e29ca(0x1c2));return{'id':_0x95e722,'before':_0x14d5a3};}export const notificationConfigDelete={'service':'notification','command':a142_0x1a0c04(0x1d8),'description':a142_0x1a0c04(0x1ce),'risk':a142_0x1a0c04(0x1d2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x5f227f){readNotificationId(_0x5f227f),requireNotificationExplicitYes(_0x5f227f);},async 'dryRun'(_0x32bce1){const _0x56a34d=a142_0x1a0c04,_0x3c06d5=await prepareDelete(_0x32bce1),_0x411bf9=notificationLookupCommand(_0x32bce1[_0x56a34d(0x1cd)],_0x3c06d5['before'][_0x56a34d(0x1c7)]);return asDryRunResult({'operation':_0x56a34d(0x1c2),'selector':notificationSelector(_0x3c06d5[_0x56a34d(0x1bc)]),'before':projectNotificationConfig(_0x3c06d5[_0x56a34d(0x1bc)]),'after':null,'dryRun':!![],'backend':{'method':_0x56a34d(0x1d9),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x56a34d(0x1bd),'lookupCommand':_0x411bf9}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x3afed9){const _0x4cc6e6=a142_0x1a0c04;requireNotificationExplicitYes(_0x3afed9);const _0x140107=await prepareDelete(_0x3afed9),_0x423e44=notificationLookupCommand(_0x3afed9['appCode'],_0x140107[_0x4cc6e6(0x1bc)][_0x4cc6e6(0x1c7)]);let _0x4d349d=![];try{await deleteNotificationChannelConfig(_0x140107['id'],_0x3afed9['appCode']);}catch(_0x492b98){if(!isPlatformTransportFailure(_0x492b98))throw safeApiFailure(_0x4cc6e6(0x1c2),_0x4cc6e6(0x1c5),_0x4cc6e6(0x1ca)+_0x423e44+_0x4cc6e6(0x1cc));_0x4d349d=!![];}let _0x4fc1ae;try{_0x4fc1ae=await listNotificationChannelConfigs(_0x3afed9[_0x4cc6e6(0x1cd)],_0x140107['before'][_0x4cc6e6(0x1c7)]),validateNotificationDeleteReadback(_0x4fc1ae,_0x3afed9[_0x4cc6e6(0x1cd)],_0x140107[_0x4cc6e6(0x1bc)][_0x4cc6e6(0x1c7)]);}catch{throw notificationError(_0x4d349d?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x4cc6e6(0x1c3)+_0x140107['id']+_0x4cc6e6(0x1c9),_0x4cc6e6(0x1ca)+_0x423e44+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x4fc1ae[_0x4cc6e6(0x1d7)](_0x38dfdf=>_0x38dfdf['id']===_0x140107['id']))throw notificationError(_0x4d349d?_0x4cc6e6(0x1bf):_0x4cc6e6(0x1be),_0x4cc6e6(0x1c3)+_0x140107['id']+'\x20remains\x20present\x20after\x20delete.',_0x4cc6e6(0x1ca)+_0x423e44+';\x20do\x20not\x20resubmit\x20automatically.');const _0x1cf35f=[REFERENCE_WARNING];return _0x4d349d&&_0x1cf35f[_0x4cc6e6(0x1cf)]('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4cc6e6(0x1c2),'selector':notificationSelector(_0x140107[_0x4cc6e6(0x1bc)]),'before':projectNotificationConfig(_0x140107[_0x4cc6e6(0x1bc)]),'after':null,'dryRun':![],'backend':{'method':_0x4cc6e6(0x1d9),'path':DELETE_PATH},'warnings':_0x1cf35f,'verification':{'status':_0x4cc6e6(0x1cb),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x4d349d,'lookupCommand':_0x423e44}},'message':'Deleted\x20notification\x20config\x20'+_0x140107['id']};}};
@@ -1 +1 @@
1
- const a138_0x1478b1=a138_0x1170;(function(_0x5f4109,_0x384c3b){const _0x5aac3c=a138_0x1170,_0x51d35d=_0x5f4109();while(!![]){try{const _0x4fa5fb=-parseInt(_0x5aac3c(0x152))/0x1*(parseInt(_0x5aac3c(0x15c))/0x2)+-parseInt(_0x5aac3c(0x162))/0x3*(parseInt(_0x5aac3c(0x158))/0x4)+-parseInt(_0x5aac3c(0x161))/0x5*(parseInt(_0x5aac3c(0x166))/0x6)+-parseInt(_0x5aac3c(0x155))/0x7*(parseInt(_0x5aac3c(0x160))/0x8)+-parseInt(_0x5aac3c(0x168))/0x9*(-parseInt(_0x5aac3c(0x167))/0xa)+-parseInt(_0x5aac3c(0x156))/0xb*(-parseInt(_0x5aac3c(0x15a))/0xc)+parseInt(_0x5aac3c(0x157))/0xd;if(_0x4fa5fb===_0x384c3b)break;else _0x51d35d['push'](_0x51d35d['shift']());}catch(_0x2c0d55){_0x51d35d['push'](_0x51d35d['shift']());}}}(a138_0x27b1,0x4c04c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a138_0x1170(_0x461374,_0x47f7b4){_0x461374=_0x461374-0x152;const _0x27b176=a138_0x27b1();let _0x117007=_0x27b176[_0x461374];return _0x117007;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a138_0x27b1(){const _0x46fa67=['243OkYFhU','type','1927IYrYfr','read','notification','133QRxTUk','11dEwjsL','12234534GJfIRV','4KfGlcX','Found\x20','5138580UUEoOc','appCode','150WqDrEU','map','\x20notification\x20config(s)','Notification\x20channel\x20type','96816lLbiMh','5OGmyaE','1104051lZGbVW','string','EMAIL','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1894668fCOfoH','110gbPJqS'];a138_0x27b1=function(){return _0x46fa67;};return a138_0x27b1();}export const notificationConfigList={'service':a138_0x1478b1(0x154),'command':'config-list','description':a138_0x1478b1(0x165),'risk':a138_0x1478b1(0x153),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a138_0x1478b1(0x169),'type':a138_0x1478b1(0x163),'description':a138_0x1478b1(0x15f),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a138_0x1478b1(0x164)}],async 'validate'(_0x3bfce2){readNotificationChannelType(_0x3bfce2);},async 'execute'(_0x802064){const _0x110272=a138_0x1478b1,_0x2747b2=readNotificationChannelType(_0x802064),_0xf3824a=await listNotificationChannelConfigs(_0x802064[_0x110272(0x15b)],_0x2747b2),_0x5e63ea=_0xf3824a[_0x110272(0x15d)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x802064[_0x110272(0x15b)],'channelType':_0x2747b2,'count':_0x5e63ea['length'],'configs':_0x5e63ea},'message':_0x110272(0x159)+_0x5e63ea['length']+'\x20'+_0x2747b2+_0x110272(0x15e)};}};
1
+ const a143_0x54b312=a143_0x3c5b;function a143_0x3c5b(_0x3cdab0,_0x4e5e6a){_0x3cdab0=_0x3cdab0-0xdf;const _0xf09ce8=a143_0xf09c();let _0x3c5be7=_0xf09ce8[_0x3cdab0];return _0x3c5be7;}(function(_0x418d7f,_0x46b28e){const _0x14ac2b=a143_0x3c5b,_0x33b69f=_0x418d7f();while(!![]){try{const _0x36840f=-parseInt(_0x14ac2b(0xf1))/0x1+-parseInt(_0x14ac2b(0xe9))/0x2*(parseInt(_0x14ac2b(0xf3))/0x3)+-parseInt(_0x14ac2b(0xe3))/0x4+-parseInt(_0x14ac2b(0xed))/0x5*(parseInt(_0x14ac2b(0xeb))/0x6)+parseInt(_0x14ac2b(0xe5))/0x7*(-parseInt(_0x14ac2b(0xe8))/0x8)+-parseInt(_0x14ac2b(0xf4))/0x9*(-parseInt(_0x14ac2b(0xef))/0xa)+parseInt(_0x14ac2b(0xe2))/0xb*(parseInt(_0x14ac2b(0xee))/0xc);if(_0x36840f===_0x46b28e)break;else _0x33b69f['push'](_0x33b69f['shift']());}catch(_0x2c38c4){_0x33b69f['push'](_0x33b69f['shift']());}}}(a143_0xf09c,0x64005));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a143_0xf09c(){const _0x4aafaf=['130151EBALEi','\x20notification\x20config(s)','string','296JXdVny','464138PRCLzp','config-list','3576810eZxRDP','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5tKHWyY','12IuWjPZ','34190HBpTkr','notification','468565qZubuD','Notification\x20channel\x20type','6FlhEoN','1809IvTOFg','Found\x20','appCode','map','29528411UkEnlb','2980944YStNeS','length'];a143_0xf09c=function(){return _0x4aafaf;};return a143_0xf09c();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a143_0x54b312(0xf0),'command':a143_0x54b312(0xea),'description':a143_0x54b312(0xec),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a143_0x54b312(0xe7),'description':a143_0x54b312(0xf2),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x20d9c1){readNotificationChannelType(_0x20d9c1);},async 'execute'(_0xb22cf1){const _0x59b957=a143_0x54b312,_0xac7c0c=readNotificationChannelType(_0xb22cf1),_0xa7db1e=await listNotificationChannelConfigs(_0xb22cf1[_0x59b957(0xe0)],_0xac7c0c),_0x3d3cee=_0xa7db1e[_0x59b957(0xe1)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0xb22cf1['appCode'],'channelType':_0xac7c0c,'count':_0x3d3cee[_0x59b957(0xe4)],'configs':_0x3d3cee},'message':_0x59b957(0xdf)+_0x3d3cee[_0x59b957(0xe4)]+'\x20'+_0xac7c0c+_0x59b957(0xe6)};}};
@@ -1 +1 @@
1
- const a139_0x3ee437=a139_0x39b0;(function(_0x26e5ea,_0x590e5f){const _0x28db9a=a139_0x39b0,_0x2cd702=_0x26e5ea();while(!![]){try{const _0x517dad=-parseInt(_0x28db9a(0x1c3))/0x1*(parseInt(_0x28db9a(0x1b5))/0x2)+-parseInt(_0x28db9a(0x1d2))/0x3*(-parseInt(_0x28db9a(0x1b3))/0x4)+parseInt(_0x28db9a(0x1b9))/0x5*(parseInt(_0x28db9a(0x1b6))/0x6)+-parseInt(_0x28db9a(0x1bf))/0x7+parseInt(_0x28db9a(0x1cc))/0x8*(parseInt(_0x28db9a(0x1bb))/0x9)+-parseInt(_0x28db9a(0x1d1))/0xa*(-parseInt(_0x28db9a(0x1c7))/0xb)+parseInt(_0x28db9a(0x1c1))/0xc;if(_0x517dad===_0x590e5f)break;else _0x2cd702['push'](_0x2cd702['shift']());}catch(_0x1e6fb9){_0x2cd702['push'](_0x2cd702['shift']());}}}(a139_0x3a8a,0x8ddc7));import{asDryRunResult}from'../../commands/common/dry-run.js';function a139_0x3a8a(){const _0x319b3c=['4vKmZkj','planned','205622rMLTiY','36TkAJzw',';\x20do\x20not\x20resubmit\x20automatically.','\x20via\x20','653090nOVEFF','verified','126veyGCt','notification_config_update_verification_failed','patch','Inspect\x20with\x20--id\x20','3803240TZNtpp',';\x20no\x20automatic\x20retry\x20was\x20attempted.','3731760LIxLhh','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','11goFWWd','appCode','\x20with\x20','before','360107WHgTnL','notification_config_update_verification_unavailable','Notification\x20config\x20','payload','notification','27088YDBCaP','channelType','notification_config_update_outcome_unknown','POST','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','210iJhTeO','1277205beCtqi','/notification/channel-config/update','update','mutation','config-update','provesChange','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.'];a139_0x3a8a=function(){return _0x319b3c;};return a139_0x3a8a();}import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a139_0x39b0(_0x11f447,_0x5a0cb2){_0x11f447=_0x11f447-0x1ae;const _0x3a8a6b=a139_0x3a8a();let _0x39b059=_0x3a8a6b[_0x11f447];return _0x39b059;}const UPDATE_PATH=a139_0x3ee437(0x1d3);async function prepareUpdate(_0x13609b){const _0x80d115=a139_0x3ee437,_0x53d8e6=readNotificationId(_0x13609b),_0x498c3d=await readNotificationDocument(_0x13609b,_0x80d115(0x1ae)),_0x4342e8=await requireExactNotificationConfig(_0x13609b[_0x80d115(0x1c4)],_0x53d8e6,_0x80d115(0x1ae));return{'id':_0x53d8e6,'patch':_0x498c3d,'before':_0x4342e8,'payload':mergeUpdateInput(_0x4342e8,_0x498c3d),'planned':plannedUpdateProjection(_0x4342e8,_0x498c3d)};}export const notificationConfigUpdate={'service':a139_0x3ee437(0x1cb),'command':a139_0x3ee437(0x1b0),'description':a139_0x3ee437(0x1d0),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x1dcf1e){readNotificationId(_0x1dcf1e),assertSingleNotificationSource(_0x1dcf1e),requireNotificationExplicitYes(_0x1dcf1e);},async 'dryRun'(_0x430ff3){const _0x144ddf=a139_0x3ee437,_0x1396e9=await prepareUpdate(_0x430ff3),_0x27d6b0=notificationLookupCommand(_0x430ff3[_0x144ddf(0x1c4)],_0x1396e9[_0x144ddf(0x1c6)][_0x144ddf(0x1cd)]);return asDryRunResult({'operation':_0x144ddf(0x1ae),'selector':notificationSelector(_0x1396e9[_0x144ddf(0x1c6)]),'before':projectNotificationConfig(_0x1396e9[_0x144ddf(0x1c6)]),'after':_0x1396e9[_0x144ddf(0x1b4)],'dryRun':!![],'backend':{'method':_0x144ddf(0x1cf),'path':UPDATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x27d6b0}},{'method':_0x144ddf(0x1cf),'url':UPDATE_PATH});},async 'execute'(_0x56c211){const _0x31db6f=a139_0x3ee437;requireNotificationExplicitYes(_0x56c211);const _0x442de0=await prepareUpdate(_0x56c211),_0x210509=notificationLookupCommand(_0x56c211['appCode'],_0x442de0[_0x31db6f(0x1c6)][_0x31db6f(0x1cd)]);let _0x19f410=![];try{await updateNotificationChannelConfig(_0x442de0[_0x31db6f(0x1ca)]);}catch(_0x4b0a7b){if(!isPlatformTransportFailure(_0x4b0a7b))throw safeApiFailure('update',_0x31db6f(0x1af),'Inspect\x20ID\x20'+_0x442de0['id']+_0x31db6f(0x1c5)+_0x210509+_0x31db6f(0x1c0));_0x19f410=!![];}let _0x92b6c5;try{const _0x409b55=await getNotificationChannelConfig(_0x442de0['id'],_0x56c211['appCode']);_0x92b6c5=normalizeExactNotificationConfig(_0x409b55,_0x442de0['id'],_0x56c211[_0x31db6f(0x1c4)]);}catch{throw notificationError(_0x19f410?'notification_config_update_outcome_unknown':_0x31db6f(0x1c8),_0x31db6f(0x1c9)+_0x442de0['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x31db6f(0x1be)+_0x442de0['id']+_0x31db6f(0x1b8)+_0x210509+_0x31db6f(0x1b7));}const _0x1c19ef=requestedSafeFieldsMatch(_0x442de0[_0x31db6f(0x1c6)],_0x92b6c5,_0x442de0[_0x31db6f(0x1bd)]);if(!_0x1c19ef['allMatch']||_0x19f410&&!_0x1c19ef[_0x31db6f(0x1b1)])throw notificationError(_0x19f410?_0x31db6f(0x1ce):_0x31db6f(0x1bc),'Notification\x20config\x20'+_0x442de0['id']+_0x31db6f(0x1c2),_0x31db6f(0x1be)+_0x442de0['id']+_0x31db6f(0x1b8)+_0x210509+';\x20do\x20not\x20resubmit\x20automatically.');const _0xd91b7c=_0x19f410?[_0x31db6f(0x1b2)]:[];return{'ok':!![],'data':{'operation':_0x31db6f(0x1ae),'selector':notificationSelector(_0x92b6c5),'before':projectNotificationConfig(_0x442de0[_0x31db6f(0x1c6)]),'after':projectNotificationConfig(_0x92b6c5),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0xd91b7c,'verification':{'status':_0x31db6f(0x1ba),'recoveredAfterUnknownResponse':_0x19f410,'verifiedFields':_0x1c19ef['verifiedFields'],'lookupCommand':_0x210509}},'message':'Updated\x20notification\x20config\x20'+_0x92b6c5['id']};}};
1
+ function a144_0x50a3(){const _0x4540ef=['payload','2456NxWYZF','45243VxiOae','config-update','5553670ZTKdqX','21UzVQEc','planned','Notification\x20config\x20','146361kbsXQk','high-risk-write','729604nIeiWG','Inspect\x20with\x20--id\x20','858PjSLdz','appCode','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','13332121nMZMJy','POST','30hAaqrp',';\x20do\x20not\x20resubmit\x20automatically.','provesChange','\x20with\x20','allMatch','verified','notification','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','before','1739820OoQxYb',';\x20no\x20automatic\x20retry\x20was\x20attempted.','patch','notification_config_update_verification_unavailable','19092zTFLUa','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','notification_config_update_verification_failed','notification_config_update_outcome_unknown','channelType','/notification/channel-config/update','\x20via\x20','verifiedFields','update','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.'];a144_0x50a3=function(){return _0x4540ef;};return a144_0x50a3();}const a144_0x1234a9=a144_0x232f;(function(_0x2d1beb,_0x7b1858){const _0xc4274f=a144_0x232f,_0x1d3b9f=_0x2d1beb();while(!![]){try{const _0x3fe552=parseInt(_0xc4274f(0x9c))/0x1+parseInt(_0xc4274f(0x9e))/0x2+-parseInt(_0xc4274f(0xa0))/0x3*(parseInt(_0xc4274f(0xb2))/0x4)+-parseInt(_0xc4274f(0x98))/0x5+-parseInt(_0xc4274f(0xae))/0x6*(-parseInt(_0xc4274f(0x99))/0x7)+-parseInt(_0xc4274f(0xbd))/0x8*(parseInt(_0xc4274f(0x96))/0x9)+-parseInt(_0xc4274f(0xa5))/0xa*(-parseInt(_0xc4274f(0xa3))/0xb);if(_0x3fe552===_0x7b1858)break;else _0x1d3b9f['push'](_0x1d3b9f['shift']());}catch(_0x8cb9a2){_0x1d3b9f['push'](_0x1d3b9f['shift']());}}}(a144_0x50a3,0xf3a75));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a144_0x1234a9(0xb7);async function prepareUpdate(_0xdd9060){const _0x35ef85=a144_0x1234a9,_0x17e664=readNotificationId(_0xdd9060),_0x253755=await readNotificationDocument(_0xdd9060,_0x35ef85(0xba)),_0x27f4a9=await requireExactNotificationConfig(_0xdd9060[_0x35ef85(0xa1)],_0x17e664,'update');return{'id':_0x17e664,'patch':_0x253755,'before':_0x27f4a9,'payload':mergeUpdateInput(_0x27f4a9,_0x253755),'planned':plannedUpdateProjection(_0x27f4a9,_0x253755)};}function a144_0x232f(_0x529754,_0x3c8aa0){_0x529754=_0x529754-0x96;const _0x50a3dc=a144_0x50a3();let _0x232f6a=_0x50a3dc[_0x529754];return _0x232f6a;}export const notificationConfigUpdate={'service':a144_0x1234a9(0xab),'command':a144_0x1234a9(0x97),'description':a144_0x1234a9(0xb3),'risk':a144_0x1234a9(0x9d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2422dc){readNotificationId(_0x2422dc),assertSingleNotificationSource(_0x2422dc),requireNotificationExplicitYes(_0x2422dc);},async 'dryRun'(_0x4ba418){const _0x4ce4aa=a144_0x1234a9,_0x512178=await prepareUpdate(_0x4ba418),_0x4608bb=notificationLookupCommand(_0x4ba418[_0x4ce4aa(0xa1)],_0x512178[_0x4ce4aa(0xad)][_0x4ce4aa(0xb6)]);return asDryRunResult({'operation':_0x4ce4aa(0xba),'selector':notificationSelector(_0x512178['before']),'before':projectNotificationConfig(_0x512178[_0x4ce4aa(0xad)]),'after':_0x512178[_0x4ce4aa(0x9a)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x4ce4aa(0x9a),'lookupCommand':_0x4608bb}},{'method':_0x4ce4aa(0xa4),'url':UPDATE_PATH});},async 'execute'(_0x6d8078){const _0x3d54d8=a144_0x1234a9;requireNotificationExplicitYes(_0x6d8078);const _0x2c8896=await prepareUpdate(_0x6d8078),_0x24ca4e=notificationLookupCommand(_0x6d8078[_0x3d54d8(0xa1)],_0x2c8896[_0x3d54d8(0xad)][_0x3d54d8(0xb6)]);let _0x3b7b39=![];try{await updateNotificationChannelConfig(_0x2c8896[_0x3d54d8(0xbc)]);}catch(_0x5162ce){if(!isPlatformTransportFailure(_0x5162ce))throw safeApiFailure(_0x3d54d8(0xba),'mutation','Inspect\x20ID\x20'+_0x2c8896['id']+_0x3d54d8(0xa8)+_0x24ca4e+_0x3d54d8(0xaf));_0x3b7b39=!![];}let _0x36c646;try{const _0x4655a6=await getNotificationChannelConfig(_0x2c8896['id'],_0x6d8078[_0x3d54d8(0xa1)]);_0x36c646=normalizeExactNotificationConfig(_0x4655a6,_0x2c8896['id'],_0x6d8078[_0x3d54d8(0xa1)]);}catch{throw notificationError(_0x3b7b39?_0x3d54d8(0xb5):_0x3d54d8(0xb1),_0x3d54d8(0x9b)+_0x2c8896['id']+_0x3d54d8(0xac),_0x3d54d8(0x9f)+_0x2c8896['id']+'\x20via\x20'+_0x24ca4e+_0x3d54d8(0xa6));}const _0x1d869=requestedSafeFieldsMatch(_0x2c8896[_0x3d54d8(0xad)],_0x36c646,_0x2c8896[_0x3d54d8(0xb0)]);if(!_0x1d869[_0x3d54d8(0xa9)]||_0x3b7b39&&!_0x1d869[_0x3d54d8(0xa7)])throw notificationError(_0x3b7b39?_0x3d54d8(0xb5):_0x3d54d8(0xb4),_0x3d54d8(0x9b)+_0x2c8896['id']+_0x3d54d8(0xa2),_0x3d54d8(0x9f)+_0x2c8896['id']+_0x3d54d8(0xb8)+_0x24ca4e+_0x3d54d8(0xa6));const _0x535d77=_0x3b7b39?[_0x3d54d8(0xbb)]:[];return{'ok':!![],'data':{'operation':'update','selector':notificationSelector(_0x36c646),'before':projectNotificationConfig(_0x2c8896[_0x3d54d8(0xad)]),'after':projectNotificationConfig(_0x36c646),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x535d77,'verification':{'status':_0x3d54d8(0xaa),'recoveredAfterUnknownResponse':_0x3b7b39,'verifiedFields':_0x1d869[_0x3d54d8(0xb9)],'lookupCommand':_0x24ca4e}},'message':'Updated\x20notification\x20config\x20'+_0x36c646['id']};}};
@@ -1 +1 @@
1
- (function(_0xf8f3b9,_0x25af3f){const _0x38cf30=a140_0x161c,_0x27a10e=_0xf8f3b9();while(!![]){try{const _0x108eb8=-parseInt(_0x38cf30(0x10e))/0x1+parseInt(_0x38cf30(0x111))/0x2*(-parseInt(_0x38cf30(0x115))/0x3)+parseInt(_0x38cf30(0x110))/0x4+parseInt(_0x38cf30(0x113))/0x5*(-parseInt(_0x38cf30(0x10d))/0x6)+parseInt(_0x38cf30(0x10f))/0x7*(-parseInt(_0x38cf30(0x112))/0x8)+-parseInt(_0x38cf30(0x116))/0x9+-parseInt(_0x38cf30(0x117))/0xa*(-parseInt(_0x38cf30(0x114))/0xb);if(_0x108eb8===_0x25af3f)break;else _0x27a10e['push'](_0x27a10e['shift']());}catch(_0x49be49){_0x27a10e['push'](_0x27a10e['shift']());}}}(a140_0x36a3,0x412fb));import{notificationConfigList}from'../../commands/notification/config-list.js';function a140_0x36a3(){const _0x4959e5=['1065520mHZYoX','24424FgkapT','104jRirbW','213145MFbYxa','573441ocUKAl','6KSpMij','289872THuHga','90DbZoth','18aPXUuS','61906sbdsUW','119609aqcAqW'];a140_0x36a3=function(){return _0x4959e5;};return a140_0x36a3();}import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a140_0x161c(_0x3c17dd,_0x14f00f){_0x3c17dd=_0x3c17dd-0x10d;const _0x36a3a8=a140_0x36a3();let _0x161c69=_0x36a3a8[_0x3c17dd];return _0x161c69;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x4fd7aa,_0x19c3b5){const _0x4689d2=a145_0x184d,_0x19cc41=_0x4fd7aa();while(!![]){try{const _0x294549=parseInt(_0x4689d2(0x121))/0x1+-parseInt(_0x4689d2(0x127))/0x2*(parseInt(_0x4689d2(0x120))/0x3)+parseInt(_0x4689d2(0x126))/0x4+parseInt(_0x4689d2(0x129))/0x5*(parseInt(_0x4689d2(0x12a))/0x6)+-parseInt(_0x4689d2(0x122))/0x7*(parseInt(_0x4689d2(0x123))/0x8)+-parseInt(_0x4689d2(0x125))/0x9*(-parseInt(_0x4689d2(0x128))/0xa)+-parseInt(_0x4689d2(0x124))/0xb;if(_0x294549===_0x19c3b5)break;else _0x19cc41['push'](_0x19cc41['shift']());}catch(_0x3a4e4d){_0x19cc41['push'](_0x19cc41['shift']());}}}(a145_0x297c,0xca35e));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';function a145_0x297c(){const _0x3b6d03=['5143725LJrrSS','4156924UXwyiN','100ECjUwm','10ssLYpo','95SnOshQ','365658LYjeIL','51753bKIRxT','1257638wVSfKV','63ANNOOK','134608HnXCWT','24024803vgKefy'];a145_0x297c=function(){return _0x3b6d03;};return a145_0x297c();}import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a145_0x184d(_0x2b2d40,_0xb1c683){_0x2b2d40=_0x2b2d40-0x120;const _0x297c07=a145_0x297c();let _0x184db0=_0x297c07[_0x2b2d40];return _0x184db0;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
@@ -1 +1 @@
1
- const a141_0x2ec41a=a141_0x60d2;(function(_0x2c9445,_0x294431){const _0x32759f=a141_0x60d2,_0x308a3d=_0x2c9445();while(!![]){try{const _0x301a40=-parseInt(_0x32759f(0x1e0))/0x1*(parseInt(_0x32759f(0x1db))/0x2)+-parseInt(_0x32759f(0x1ce))/0x3*(-parseInt(_0x32759f(0x177))/0x4)+parseInt(_0x32759f(0x1df))/0x5+-parseInt(_0x32759f(0x1f6))/0x6+parseInt(_0x32759f(0x189))/0x7*(-parseInt(_0x32759f(0x182))/0x8)+parseInt(_0x32759f(0x1de))/0x9*(parseInt(_0x32759f(0x1dd))/0xa)+parseInt(_0x32759f(0x1c9))/0xb;if(_0x301a40===_0x294431)break;else _0x308a3d['push'](_0x308a3d['shift']());}catch(_0x466436){_0x308a3d['push'](_0x308a3d['shift']());}}}(a141_0x28f2,0x82d55));function a141_0x60d2(_0x13ab10,_0x4d8864){_0x13ab10=_0x13ab10-0x174;const _0x28f215=a141_0x28f2();let _0x60d2ef=_0x28f215[_0x13ab10];return _0x60d2ef;}import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a141_0x2ec41a(0x1f5),a141_0x2ec41a(0x174),a141_0x2ec41a(0x187),'WECOM',a141_0x2ec41a(0x1d2)];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a141_0x2ec41a(0x1c0),a141_0x2ec41a(0x1e2),a141_0x2ec41a(0x1ec),'channelConfig',a141_0x2ec41a(0x1cf),'connectTimeout',a141_0x2ec41a(0x1ca)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a141_0x2ec41a(0x17d),'configCode',a141_0x2ec41a(0x1e4)]),EMAIL_RECIPIENT_FIELDS=new Set([a141_0x2ec41a(0x18a),'recipients',a141_0x2ec41a(0x1ad),'bccList','replyTo','subjectPrefix',a141_0x2ec41a(0x1d1),'to','cc']);function a141_0x28f2(){const _0x4cf545=['Allowed\x20values:\x20','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','length','configName','kind','Unknown\x20notification\x20JSON\x20field\x20\x22','endpointUrlRaw','\x20has\x20an\x20unsupported\x20channelType.','Notification\x20config\x20list\x20item\x20','updateTime','a\x20JSON\x20object\x20or\x20null','\x22configName\x22.','12898820xWmcDh','readTimeout','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','endpointUrl:null','\x20has\x20an\x20invalid\x20id.','2933697cGHkKU','description','createTime','fromName','WEBHOOK','Item\x20','join','notification_config_field_unknown','stdin','includes','notification_config_field_invalid','has','utf8','86jbeZib','Missing\x20notification\x20JSON\x20source.','30380pFWoeA','216FctAdP','255680eeeabT','13242LzpSgl','str','channelType','a\x20string\x20or\x20null','channelCode','notification_config_','\x20characters.','trim','notification_config_update_empty','keys','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','push','endpointUrl','\x20has\x20invalid\x20field\x20\x22','environment\x20variable\x20','validation','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','_unavailable','Invalid\x20notification\x20config\x20response.','\x22channelType\x22.','notification_config_json_invalid','EMAIL','3781374UjCDLW','bool','\x20is\x20missing\x20required\x20field\x20\x22','FEISHU','configCode','rabetbase\x20notification\x20config-list\x20--appcode\x20','4ftLezl','\x20--format\x20compress','Create\x20JSON\x20requires\x20field\x20','\x20must\x20be\x20an\x20object.','isSafeInteger','call','appCode','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','from-env','channelConfig','apiError','8sOtAdL','string','num','channelConfigRaw','hasOwnProperty','DINGTALK','\x22\x20cannot\x20exceed\x20','3773273rBXosg','emailTargets','some','env','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','boolean','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','a\x20supported\x20string','name','\x20failed.','messageTemplate','Invalid\x20--','update','Notification\x20JSON\x20field\x20\x22','yes','\x20has\x20an\x20invalid\x20channelType.','notification_config_channel_field_forbidden','create','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','file','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','a\x20JSON\x20object','notification_config_id_invalid','type','\x22\x20is\x20forbidden.','connectTimeout','Application-level\x20notification\x20config\x20ID','notification_config_source_unavailable','Notification\x20config\x20','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','entries','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','notification_config_field_required','path','ccList','parse','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','number','a\x20non-empty\x20string','notification_config_field_forbidden','notification_config_response_invalid','prototype','Notification\x20JSON\x20from\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string.','every','Notification\x20JSON\x20source\x20is\x20ambiguous.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','isArray','Notification\x20JSON\x20channelConfig\x20field\x20\x22','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'];a141_0x28f2=function(){return _0x4cf545;};return a141_0x28f2();}export const NOTIFICATION_INPUT_FLAGS=[{'name':a141_0x2ec41a(0x19d),'type':a141_0x2ec41a(0x183),'required':![],'description':a141_0x2ec41a(0x1bc)},{'name':a141_0x2ec41a(0x1d6),'type':a141_0x2ec41a(0x18e),'required':![],'default':![],'description':a141_0x2ec41a(0x1b9)},{'name':a141_0x2ec41a(0x17f),'type':'string','required':![],'description':a141_0x2ec41a(0x1f0)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a141_0x2ec41a(0x1b0),'required':!![],'description':a141_0x2ec41a(0x1a4)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x3269d3,_0x291302,_0x4827ac){return new CliError(_0x3269d3,0x1,_0x291302,_0x4827ac);}export function readNotificationId(_0x38d431){const _0x4ba77c=a141_0x2ec41a,_0x5495f2=_0x38d431[_0x4ba77c(0x184)]('id');if(!Number[_0x4ba77c(0x17b)](_0x5495f2)||_0x5495f2<=0x0)throw notificationError(_0x4ba77c(0x1a0),_0x4ba77c(0x1aa));return _0x5495f2;}export function requireNotificationExplicitYes(_0x34d184){const _0x1f6838=a141_0x2ec41a;if(_0x34d184['bool']('dry-run')||_0x34d184[_0x1f6838(0x1f7)](_0x1f6838(0x198)))return;throw notificationError('notification_config_confirmation_required',_0x1f6838(0x19e),_0x1f6838(0x17e));}export function readNotificationChannelType(_0x30ce05,_0x4b5810=a141_0x2ec41a(0x1a1),_0x2bf864='EMAIL'){const _0x1b2a90=a141_0x2ec41a,_0x1a0e82=_0x30ce05[_0x1b2a90(0x1e1)](_0x4b5810)['trim']()||_0x2bf864;if(!NOTIFICATION_CHANNEL_TYPES[_0x1b2a90(0x1d7)](_0x1a0e82))throw CliErrors[_0x1b2a90(0x1ef)](_0x1b2a90(0x195)+_0x4b5810+':\x20'+_0x1a0e82,_0x1b2a90(0x1bd)+NOTIFICATION_CHANNEL_TYPES[_0x1b2a90(0x1d4)](',\x20')+'.');return _0x1a0e82;}export function assertSingleNotificationSource(_0x43cede){const _0x3bb4dd=a141_0x2ec41a,_0x21fd08=[],_0xfadfc6=_0x43cede[_0x3bb4dd(0x1e1)]('file')[_0x3bb4dd(0x1e7)]();if(_0xfadfc6)_0x21fd08[_0x3bb4dd(0x1eb)]({'kind':_0x3bb4dd(0x19d),'path':_0xfadfc6});if(_0x43cede[_0x3bb4dd(0x1f7)](_0x3bb4dd(0x1d6)))_0x21fd08['push']({'kind':_0x3bb4dd(0x1d6)});const _0x203cb8=_0x43cede[_0x3bb4dd(0x1e1)](_0x3bb4dd(0x17f))['trim']();if(_0x203cb8)_0x21fd08[_0x3bb4dd(0x1eb)]({'kind':_0x3bb4dd(0x18c),'name':_0x203cb8});if(_0x21fd08['length']===0x0)throw CliErrors[_0x3bb4dd(0x1ef)](_0x3bb4dd(0x1dc),_0x3bb4dd(0x1a7));if(_0x21fd08[_0x3bb4dd(0x1bf)]>0x1)throw CliErrors[_0x3bb4dd(0x1ef)](_0x3bb4dd(0x1b8),_0x3bb4dd(0x1a7));return _0x21fd08[0x0];}export async function readNotificationDocument(_0x562676,_0x4372d5){const _0x2bc444=a141_0x2ec41a,_0x1ad750=assertSingleNotificationSource(_0x562676),_0x337693=_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x19d)?'file\x20'+_0x1ad750[_0x2bc444(0x1ac)]:_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x18c)?_0x2bc444(0x1ee)+_0x1ad750[_0x2bc444(0x192)]:_0x2bc444(0x1d6);let _0x120a0f;try{if(_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x19d))_0x120a0f=await readFile(_0x1ad750[_0x2bc444(0x1ac)],_0x2bc444(0x1da));else{if(_0x1ad750[_0x2bc444(0x1c1)]===_0x2bc444(0x18c)){if(!(_0x1ad750['name']in process.env))throw notificationError('notification_config_source_unavailable',_0x2bc444(0x19c)+_0x1ad750[_0x2bc444(0x192)]);_0x120a0f=process.env[_0x1ad750.name]??'';}else _0x120a0f=await readStdin();}}catch(_0x37f0cd){if(_0x37f0cd instanceof CliError)throw _0x37f0cd;throw notificationError(_0x2bc444(0x1a5),_0x2bc444(0x18d)+_0x337693+'.');}let _0x1ce5e6;try{_0x1ce5e6=JSON[_0x2bc444(0x1ae)](_0x120a0f);}catch{throw notificationError(_0x2bc444(0x1f4),_0x2bc444(0x1b5)+_0x337693+'\x20is\x20invalid.',_0x2bc444(0x1cb));}if(!isJsonObject(_0x1ce5e6))throw notificationError('notification_config_json_invalid','Notification\x20JSON\x20from\x20'+_0x337693+_0x2bc444(0x17a));return validateNotificationDocument(_0x1ce5e6,_0x4372d5);}export function projectNotificationListConfig(_0x4100ac,_0x2f98ff){const _0x5290fc=a141_0x2ec41a;return{'id':typeof _0x4100ac['id']===_0x5290fc(0x1b0)?_0x4100ac['id']:null,'configCode':requireResponseString(_0x4100ac[_0x5290fc(0x175)],_0x5290fc(0x175),_0x2f98ff),'configName':requireResponseString(_0x4100ac[_0x5290fc(0x1c0)],'configName',_0x2f98ff),'channelType':requireResponseString(_0x4100ac['channelType'],_0x5290fc(0x1e2),_0x2f98ff),'description':normalizeNullableString(_0x4100ac[_0x5290fc(0x1cf)]),'createTime':normalizeNullableString(_0x4100ac[_0x5290fc(0x1d0)]),'updateTime':normalizeNullableString(_0x4100ac[_0x5290fc(0x1c6)])};}export function normalizeExactNotificationConfig(_0x5dcdfc,_0x2ea76d,_0x630f53){const _0x2e9f52=a141_0x2ec41a;if(!Number['isSafeInteger'](_0x5dcdfc['id'])||_0x5dcdfc['id']!==_0x2ea76d)throw notificationError(_0x2e9f52(0x1b3),'Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x2ea76d+'.');if(_0x5dcdfc[_0x2e9f52(0x17d)]!==_0x630f53)throw notificationError(_0x2e9f52(0x1b3),'Notification\x20config\x20'+_0x2ea76d+_0x2e9f52(0x1ea));const _0x5516e9=requireExactString(_0x5dcdfc[_0x2e9f52(0x1c0)],_0x2e9f52(0x1c0),_0x2ea76d),_0x56c157=requireExactString(_0x5dcdfc[_0x2e9f52(0x175)],_0x2e9f52(0x175),_0x2ea76d),_0xf6b616=requireExactString(_0x5dcdfc[_0x2e9f52(0x1e2)],_0x2e9f52(0x1e2),_0x2ea76d);if(!NOTIFICATION_CHANNEL_TYPES[_0x2e9f52(0x1d7)](_0xf6b616))throw notificationError(_0x2e9f52(0x1b3),_0x2e9f52(0x1a6)+_0x2ea76d+_0x2e9f52(0x1c4));const _0x642425=responseNullableString(_0x5dcdfc[_0x2e9f52(0x1ec)],'endpointUrl',_0x2ea76d),_0x49353=responseNullableString(_0x5dcdfc[_0x2e9f52(0x180)],'channelConfig',_0x2ea76d),_0x145eb2=responseNullableString(_0x5dcdfc[_0x2e9f52(0x1cf)],'description',_0x2ea76d),_0x4b3afb=responseNullableTimeout(_0x5dcdfc['connectTimeout'],_0x2e9f52(0x1a3),_0x2ea76d),_0x21e831=responseNullableTimeout(_0x5dcdfc[_0x2e9f52(0x1ca)],_0x2e9f52(0x1ca),_0x2ea76d);return{'id':_0x2ea76d,'appCode':_0x630f53,'configCode':_0x56c157,'configName':_0x5516e9,'channelType':_0xf6b616,'endpointUrl':redactSensitive(_0x642425),'channelConfig':redactSensitive(_0x49353),'description':_0x145eb2,'connectTimeout':_0x4b3afb,'readTimeout':_0x21e831,'endpointUrlRaw':_0x642425,'channelConfigRaw':_0x49353};}export async function requireExactNotificationConfig(_0x522d66,_0x258371,_0x2c484c){const _0x474e90=a141_0x2ec41a;let _0x56247c;try{_0x56247c=await getNotificationChannelConfig(_0x258371,_0x522d66);}catch{throw safeApiFailure(_0x2c484c,'preflight',_0x474e90(0x18f)+_0x522d66+_0x474e90(0x1a9));}return normalizeExactNotificationConfig(_0x56247c,_0x258371,_0x522d66);}export function projectNotificationConfig(_0x5bd896){const _0x1d7691=a141_0x2ec41a;return{'id':_0x5bd896['id']??null,'appCode':_0x5bd896[_0x1d7691(0x17d)],'configCode':_0x5bd896[_0x1d7691(0x175)]??null,'configName':_0x5bd896[_0x1d7691(0x1c0)],'channelType':_0x5bd896[_0x1d7691(0x1e2)],'endpointUrl':redactSensitive(_0x5bd896[_0x1d7691(0x1ec)]),'channelConfig':redactSensitive(_0x5bd896[_0x1d7691(0x180)]),'description':_0x5bd896[_0x1d7691(0x1cf)]??null,'connectTimeout':_0x5bd896['connectTimeout']??null,'readTimeout':_0x5bd896[_0x1d7691(0x1ca)]??null};}export function notificationSelector(_0x3ca2cb){const _0x2f9764=a141_0x2ec41a;return{'appCode':_0x3ca2cb[_0x2f9764(0x17d)],'id':_0x3ca2cb['id'],'configCode':_0x3ca2cb[_0x2f9764(0x175)],'configName':_0x3ca2cb['configName'],'channelType':_0x3ca2cb['channelType']};}export function createMutationInput(_0xc55acb,_0x47ccf9){const _0x576ba9=a141_0x2ec41a;return{'appCode':_0xc55acb,'configName':_0x47ccf9[_0x576ba9(0x1c0)],'channelType':_0x47ccf9[_0x576ba9(0x1e2)],...hasOwn(_0x47ccf9,'endpointUrl')?{'endpointUrl':_0x47ccf9['endpointUrl']}:{},...hasOwn(_0x47ccf9,_0x576ba9(0x180))?{'channelConfig':serializeChannelConfig(_0x47ccf9[_0x576ba9(0x180)])}:{},...hasOwn(_0x47ccf9,_0x576ba9(0x1cf))?{'description':_0x47ccf9[_0x576ba9(0x1cf)]}:{},...hasOwn(_0x47ccf9,'connectTimeout')?{'connectTimeout':_0x47ccf9[_0x576ba9(0x1a3)]}:{},...hasOwn(_0x47ccf9,'readTimeout')?{'readTimeout':_0x47ccf9[_0x576ba9(0x1ca)]}:{}};}export function mergeUpdateInput(_0x245846,_0x3738c2){const _0x2d5623=a141_0x2ec41a;return{'id':_0x245846['id'],'appCode':_0x245846[_0x2d5623(0x17d)],'configName':_0x3738c2[_0x2d5623(0x1c0)]??_0x245846[_0x2d5623(0x1c0)],'channelType':_0x3738c2[_0x2d5623(0x1e2)]??_0x245846[_0x2d5623(0x1e2)],'endpointUrl':hasOwn(_0x3738c2,_0x2d5623(0x1ec))?_0x3738c2[_0x2d5623(0x1ec)]:_0x245846[_0x2d5623(0x1c3)],'channelConfig':hasOwn(_0x3738c2,'channelConfig')?serializeChannelConfig(_0x3738c2[_0x2d5623(0x180)]):_0x245846['channelConfigRaw'],'description':hasOwn(_0x3738c2,_0x2d5623(0x1cf))?_0x3738c2[_0x2d5623(0x1cf)]:_0x245846['description'],'connectTimeout':hasOwn(_0x3738c2,_0x2d5623(0x1a3))?_0x3738c2[_0x2d5623(0x1a3)]:_0x245846[_0x2d5623(0x1a3)],'readTimeout':hasOwn(_0x3738c2,'readTimeout')?_0x3738c2['readTimeout']:_0x245846[_0x2d5623(0x1ca)]};}export function plannedUpdateProjection(_0x9dac59,_0x4a5198){const _0x54dc41=a141_0x2ec41a;return projectNotificationConfig({'id':_0x9dac59['id'],'appCode':_0x9dac59[_0x54dc41(0x17d)],'configCode':_0x9dac59[_0x54dc41(0x175)],'configName':_0x4a5198[_0x54dc41(0x1c0)]??_0x9dac59[_0x54dc41(0x1c0)],'channelType':_0x4a5198['channelType']??_0x9dac59[_0x54dc41(0x1e2)],'endpointUrl':hasOwn(_0x4a5198,_0x54dc41(0x1ec))?_0x4a5198[_0x54dc41(0x1ec)]:_0x9dac59[_0x54dc41(0x1c3)],'channelConfig':hasOwn(_0x4a5198,_0x54dc41(0x180))?_0x4a5198[_0x54dc41(0x180)]:_0x9dac59[_0x54dc41(0x185)],'description':hasOwn(_0x4a5198,'description')?_0x4a5198[_0x54dc41(0x1cf)]:_0x9dac59[_0x54dc41(0x1cf)],'connectTimeout':hasOwn(_0x4a5198,_0x54dc41(0x1a3))?_0x4a5198[_0x54dc41(0x1a3)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x9dac59[_0x54dc41(0x1a3)],'readTimeout':hasOwn(_0x4a5198,_0x54dc41(0x1ca))?_0x4a5198['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x9dac59[_0x54dc41(0x1ca)]});}export function requestedSafeFieldsMatch(_0x32bc3f,_0x3db517,_0x376913){const _0xe78568=a141_0x2ec41a,_0x5bf788=[],_0x3e8504=[],_0x455c8a=[];for(const _0x431b6c of[_0xe78568(0x1c0),_0xe78568(0x1e2),'description']){if(!hasOwn(_0x376913,_0x431b6c))continue;_0x455c8a['push'](_0x431b6c),_0x5bf788[_0xe78568(0x1eb)](_0x3db517[_0x431b6c]===_0x376913[_0x431b6c]),_0x3e8504['push'](_0x32bc3f[_0x431b6c]!==_0x376913[_0x431b6c]&&_0x3db517[_0x431b6c]===_0x376913[_0x431b6c]);}for(const _0x464a51 of[_0xe78568(0x1a3),_0xe78568(0x1ca)]){if(!hasOwn(_0x376913,_0x464a51))continue;const _0x5ea4c2=_0x376913[_0x464a51]??(_0x464a51==='connectTimeout'?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x455c8a[_0xe78568(0x1eb)](_0x464a51),_0x5bf788['push'](_0x3db517[_0x464a51]===_0x5ea4c2),_0x3e8504[_0xe78568(0x1eb)](_0x32bc3f[_0x464a51]!==_0x5ea4c2&&_0x3db517[_0x464a51]===_0x5ea4c2);}return hasOwn(_0x376913,_0xe78568(0x1ec))&&_0x376913[_0xe78568(0x1ec)]===null&&(_0x455c8a['push'](_0xe78568(0x1cc)),_0x5bf788['push'](_0x3db517['endpointUrlRaw']===null||_0x3db517[_0xe78568(0x1c3)]===''),_0x3e8504['push'](_0x32bc3f[_0xe78568(0x1c3)]!==null&&_0x32bc3f['endpointUrlRaw']!==''&&(_0x3db517[_0xe78568(0x1c3)]===null||_0x3db517[_0xe78568(0x1c3)]===''))),{'allMatch':_0x5bf788[_0xe78568(0x1b7)](Boolean),'provesChange':_0x3e8504[_0xe78568(0x18b)](Boolean),'verifiedFields':_0x455c8a};}export function validateNotificationDeleteReadback(_0x4c3990,_0x464088,_0x38c51e){const _0x26cea9=a141_0x2ec41a;for(const [_0x4a8acc,_0x28949a]of _0x4c3990[_0x26cea9(0x1a8)]()){if(!Number['isSafeInteger'](_0x28949a['id'])||_0x28949a['id']<=0x0)throw notificationError(_0x26cea9(0x1b3),_0x26cea9(0x1c5)+(_0x4a8acc+0x1)+_0x26cea9(0x1cd));if(_0x28949a[_0x26cea9(0x17d)]!==_0x464088)throw notificationError('notification_config_response_invalid',_0x26cea9(0x1c5)+(_0x4a8acc+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0x28949a[_0x26cea9(0x1e2)]!==_0x38c51e)throw notificationError(_0x26cea9(0x1b3),_0x26cea9(0x1c5)+(_0x4a8acc+0x1)+_0x26cea9(0x199));}}export function safeApiFailure(_0xba0d4f,_0xa24088,_0x2bc985){const _0x3ade9d=a141_0x2ec41a;return notificationError(_0x3ade9d(0x1e5)+_0xba0d4f+'_'+(_0xa24088==='mutation'?'failed':_0xa24088+_0x3ade9d(0x1f1)),_0x3ade9d(0x1a6)+_0xba0d4f+'\x20'+_0xa24088+_0x3ade9d(0x193),_0x2bc985);}export function notificationLookupCommand(_0x478cd7,_0x5adb13){const _0x5dd064=a141_0x2ec41a;return _0x5dd064(0x176)+_0x478cd7+'\x20--type\x20'+_0x5adb13+_0x5dd064(0x178);}function validateNotificationDocument(_0x3b218c,_0x5d0cf1){const _0x56ae7b=a141_0x2ec41a;for(const _0x5e7e7d of Object[_0x56ae7b(0x1e9)](_0x3b218c)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x5e7e7d))throw notificationError(_0x56ae7b(0x1b2),_0x56ae7b(0x197)+_0x5e7e7d+_0x56ae7b(0x190));if(!ALLOWED_INPUT_FIELDS[_0x56ae7b(0x1d9)](_0x5e7e7d))throw notificationError(_0x56ae7b(0x1d5),_0x56ae7b(0x1c2)+_0x5e7e7d+'\x22.');}if(_0x5d0cf1==='update'&&Object[_0x56ae7b(0x1e9)](_0x3b218c)['length']===0x0)throw notificationError(_0x56ae7b(0x1e8),_0x56ae7b(0x1af));const _0x8f1b49={};if(hasOwn(_0x3b218c,_0x56ae7b(0x1c0)))_0x8f1b49[_0x56ae7b(0x1c0)]=validateRequiredString(_0x3b218c['configName'],_0x56ae7b(0x1c0),0x80);else{if(_0x5d0cf1===_0x56ae7b(0x19b))throw notificationError(_0x56ae7b(0x1ab),_0x56ae7b(0x179)+_0x56ae7b(0x1c8));}if(hasOwn(_0x3b218c,_0x56ae7b(0x1e2))){if(typeof _0x3b218c['channelType']!==_0x56ae7b(0x183))throw invalidFieldType(_0x56ae7b(0x1e2),_0x56ae7b(0x191));const _0x15a8da=_0x3b218c[_0x56ae7b(0x1e2)][_0x56ae7b(0x1e7)]();if(!NOTIFICATION_CHANNEL_TYPES[_0x56ae7b(0x1d7)](_0x15a8da))throw notificationError(_0x56ae7b(0x1d8),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x56ae7b(0x1d4)](',\x20')+'.');_0x8f1b49[_0x56ae7b(0x1e2)]=_0x15a8da;}else{if(_0x5d0cf1==='create')throw notificationError('notification_config_field_required',_0x56ae7b(0x179)+_0x56ae7b(0x1f3));}for(const [_0x28b348,_0x2b3947]of[[_0x56ae7b(0x1ec),0x200],[_0x56ae7b(0x1cf),0x100]]){if(!hasOwn(_0x3b218c,_0x28b348))continue;const _0x38581a=_0x3b218c[_0x28b348];if(_0x38581a!==null&&typeof _0x38581a!=='string')throw invalidFieldType(_0x28b348,_0x56ae7b(0x1e3));if(typeof _0x38581a===_0x56ae7b(0x183)&&_0x38581a[_0x56ae7b(0x1bf)]>_0x2b3947)throw notificationError('notification_config_field_invalid',_0x56ae7b(0x197)+_0x28b348+_0x56ae7b(0x188)+_0x2b3947+_0x56ae7b(0x1e6));_0x8f1b49[_0x28b348]=_0x38581a;}if(hasOwn(_0x3b218c,_0x56ae7b(0x180))){const _0x62b5fb=_0x3b218c['channelConfig'];if(_0x62b5fb===null&&_0x5d0cf1===_0x56ae7b(0x19b))throw invalidFieldType(_0x56ae7b(0x180),'a\x20JSON\x20object');if(_0x62b5fb!==null&&!isJsonObject(_0x62b5fb))throw invalidFieldType(_0x56ae7b(0x180),_0x5d0cf1===_0x56ae7b(0x196)?_0x56ae7b(0x1c7):_0x56ae7b(0x19f));_0x62b5fb!==null&&validateChannelConfigFields(_0x8f1b49[_0x56ae7b(0x1e2)],_0x62b5fb),_0x8f1b49[_0x56ae7b(0x180)]=_0x62b5fb;}for(const _0x5a2961 of[_0x56ae7b(0x1a3),_0x56ae7b(0x1ca)]){if(!hasOwn(_0x3b218c,_0x5a2961))continue;const _0x9a5e5a=_0x3b218c[_0x5a2961];if(_0x9a5e5a!==null&&(!Number[_0x56ae7b(0x17b)](_0x9a5e5a)||_0x9a5e5a<0x0))throw notificationError('notification_config_field_invalid',_0x56ae7b(0x197)+_0x5a2961+_0x56ae7b(0x1be));_0x8f1b49[_0x5a2961]=_0x9a5e5a;}return _0x8f1b49;}function validateRequiredString(_0x24c826,_0x56927f,_0x38e5b8){const _0x14ce78=a141_0x2ec41a;if(typeof _0x24c826!==_0x14ce78(0x183))throw invalidFieldType(_0x56927f,_0x14ce78(0x1b1));const _0x8bec3e=_0x24c826[_0x14ce78(0x1e7)]();if(!_0x8bec3e)throw notificationError(_0x14ce78(0x1d8),_0x14ce78(0x197)+_0x56927f+_0x14ce78(0x1b6));if(_0x8bec3e[_0x14ce78(0x1bf)]>_0x38e5b8)throw notificationError(_0x14ce78(0x1d8),_0x14ce78(0x197)+_0x56927f+_0x14ce78(0x188)+_0x38e5b8+_0x14ce78(0x1e6));return _0x8bec3e;}function validateChannelConfigFields(_0x16313e,_0x42c0ec){const _0x43edc2=a141_0x2ec41a;if(hasOwn(_0x42c0ec,_0x43edc2(0x194)))throw forbiddenChannelConfigField(_0x43edc2(0x194));if(_0x16313e==='EMAIL')for(const _0xa2aa8e of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x42c0ec,_0xa2aa8e))throw forbiddenChannelConfigField(_0xa2aa8e);}}function forbiddenChannelConfigField(_0x56eef1){const _0x135e79=a141_0x2ec41a;return notificationError(_0x135e79(0x19a),_0x135e79(0x1bb)+_0x56eef1+_0x135e79(0x1a2));}function invalidFieldType(_0x2d2b8a,_0x275fa6){return notificationError('notification_config_field_invalid','Notification\x20JSON\x20field\x20\x22'+_0x2d2b8a+'\x22\x20must\x20be\x20'+_0x275fa6+'.');}function serializeChannelConfig(_0x475d05){return _0x475d05===null||_0x475d05===undefined?null:JSON['stringify'](_0x475d05);}function redactSensitive(_0xcd25a3){return _0xcd25a3===null||_0xcd25a3===undefined||_0xcd25a3===''?null:'<redacted>';}function requireResponseString(_0x5acce9,_0xe8e038,_0x26dea1){const _0x589cf2=a141_0x2ec41a;if(typeof _0x5acce9!==_0x589cf2(0x183)||_0x5acce9['trim']()==='')throw CliErrors[_0x589cf2(0x181)](_0x589cf2(0x1f2),_0x589cf2(0x1d3)+(_0x26dea1+0x1)+_0x589cf2(0x1f8)+_0xe8e038+'\x22.');return _0x5acce9[_0x589cf2(0x1e7)]();}function requireExactString(_0x143347,_0x5bbdb6,_0x598546){const _0x49efad=a141_0x2ec41a;if(typeof _0x143347!=='string'||_0x143347[_0x49efad(0x1e7)]()==='')throw notificationError('notification_config_response_invalid',_0x49efad(0x1a6)+_0x598546+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x5bbdb6+'\x22.');return _0x143347['trim']();}function responseNullableString(_0x4cf539,_0x4d7dee,_0x5508ae){const _0x4a72e9=a141_0x2ec41a;if(_0x4cf539===undefined||_0x4cf539===null)return null;if(typeof _0x4cf539!==_0x4a72e9(0x183))throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x5508ae+_0x4a72e9(0x1ed)+_0x4d7dee+'\x22.');return _0x4cf539;}function responseNullableTimeout(_0x20e3c0,_0x29025b,_0x2669e0){const _0x4c11d4=a141_0x2ec41a;if(_0x20e3c0===undefined||_0x20e3c0===null)return null;if(!Number[_0x4c11d4(0x17b)](_0x20e3c0)||_0x20e3c0<0x0)throw notificationError(_0x4c11d4(0x1b3),_0x4c11d4(0x1a6)+_0x2669e0+_0x4c11d4(0x1ed)+_0x29025b+'\x22.');return _0x20e3c0;}function normalizeNullableString(_0x3092d3){return typeof _0x3092d3==='string'?_0x3092d3:null;}function isJsonObject(_0x540458){const _0x3c7de3=a141_0x2ec41a;return _0x540458!==null&&typeof _0x540458==='object'&&!Array[_0x3c7de3(0x1ba)](_0x540458);}function hasOwn(_0x69137,_0xa38a77){const _0x2625c6=a141_0x2ec41a;return Object[_0x2625c6(0x1b4)][_0x2625c6(0x186)][_0x2625c6(0x17c)](_0x69137,_0xa38a77);}async function readStdin(){const _0x15406d=a141_0x2ec41a;let _0x21680e='';process[_0x15406d(0x1d6)]['setEncoding']('utf8');for await(const _0xf103f0 of process[_0x15406d(0x1d6)])_0x21680e+=_0xf103f0;return _0x21680e;}
1
+ const a146_0x29555b=a146_0x4f3f;(function(_0x2b1968,_0x709479){const _0x397234=a146_0x4f3f,_0x3b285a=_0x2b1968();while(!![]){try{const _0x345ea=-parseInt(_0x397234(0xed))/0x1+parseInt(_0x397234(0xbe))/0x2*(parseInt(_0x397234(0xbc))/0x3)+parseInt(_0x397234(0xbd))/0x4*(-parseInt(_0x397234(0xd2))/0x5)+-parseInt(_0x397234(0xad))/0x6+-parseInt(_0x397234(0x114))/0x7+-parseInt(_0x397234(0xfc))/0x8+parseInt(_0x397234(0xc9))/0x9*(parseInt(_0x397234(0x10c))/0xa);if(_0x345ea===_0x709479)break;else _0x3b285a['push'](_0x3b285a['shift']());}catch(_0x2db2a3){_0x3b285a['push'](_0x3b285a['shift']());}}}(a146_0x3f48,0xea3e0));import{readFile}from'node:fs/promises';function a146_0x3f48(){const _0x20b1ce=['stdin','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','9441186QYtFgJ','FEISHU','\x22\x20must\x20be\x20a\x20non-empty\x20string.','readTimeout','\x22configName\x22.','Invalid\x20--','<redacted>','parse','failed','bool','endpointUrl','Item\x20','create','validation','str','3gPXrOu','12WdSkgD','1347298PdIOSx','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','\x20--type\x20','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','notification_config_field_unknown','\x20has\x20invalid\x20field\x20\x22','a\x20non-empty\x20string','some','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','\x20characters.','Notification\x20config\x20','90KOlwAd','messageTemplate','notification_config_field_required','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','number','ccList','replyTo','name','1514830PtkOyH','a\x20supported\x20string','_unavailable','WECOM','notification_config_confirmation_required','Notification\x20JSON\x20source\x20is\x20ambiguous.','notification_config_json_invalid','Application-level\x20notification\x20config\x20ID','path','\x20failed.','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','isArray','channelType','length','appCode','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','hasOwnProperty','\x20has\x20an\x20invalid\x20appCode.','\x20has\x20an\x20invalid\x20id.','endpointUrlRaw','configCode','update','channelConfigRaw','includes','isSafeInteger','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','rabetbase\x20notification\x20config-list\x20--appcode\x20','978706QTafli','Notification\x20JSON\x20field\x20\x22','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','environment\x20variable\x20','description','entries','\x22\x20must\x20be\x20','Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Invalid\x20notification\x20config\x20response.','Allowed\x20values:\x20','notification_config_response_invalid','prototype','EMAIL','\x20must\x20be\x20an\x20object.','notification_config_field_forbidden','14233000sHPyvU','num','trim','notification_config_field_invalid','kind','a\x20JSON\x20object\x20or\x20null','keys','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','apiError','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','Missing\x20notification\x20JSON\x20source.','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','Notification\x20config\x20list\x20item\x20','join','dry-run','6142530KEhauj','\x22channelType\x22.','channelConfig','Notification\x20JSON\x20from\x20','file','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','\x20has\x20an\x20invalid\x20channelType.','createTime','4315241RvHbIC','boolean','\x20is\x20invalid.','a\x20JSON\x20object','Notification\x20JSON\x20channelConfig\x20field\x20\x22','yes','from-env','utf8','every','configName','has','stringify','env','recipients','file\x20','string','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','connectTimeout','notification_config_id_invalid','push','notification_config_source_unavailable','\x22\x20cannot\x20exceed\x20','notification_config_channel_field_forbidden','channelCode'];a146_0x3f48=function(){return _0x20b1ce;};return a146_0x3f48();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x29555b(0xf9),a146_0x29555b(0xae),'DINGTALK',a146_0x29555b(0xd5),'WEBHOOK'];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x29555b(0x11d),a146_0x29555b(0xde),a146_0x29555b(0xb7),a146_0x29555b(0x10e),a146_0x29555b(0xf1),a146_0x29555b(0xa4),a146_0x29555b(0xb0)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x29555b(0xe0),a146_0x29555b(0xe6),a146_0x29555b(0xaa)]),EMAIL_RECIPIENT_FIELDS=new Set(['emailTargets',a146_0x29555b(0x121),a146_0x29555b(0xcf),'bccList',a146_0x29555b(0xd0),'subjectPrefix','fromName','to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':'file','type':a146_0x29555b(0xa2),'required':![],'description':a146_0x29555b(0xef)},{'name':a146_0x29555b(0xab),'type':a146_0x29555b(0x115),'required':![],'default':![],'description':a146_0x29555b(0x106)},{'name':'from-env','type':'string','required':![],'description':a146_0x29555b(0x103)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x29555b(0xce),'required':!![],'description':a146_0x29555b(0xd9)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x51b02c,_0x3ebede,_0x298c02){return new CliError(_0x51b02c,0x1,_0x3ebede,_0x298c02);}export function readNotificationId(_0x47e115){const _0x56d1cf=a146_0x29555b,_0x558818=_0x47e115[_0x56d1cf(0xfd)]('id');if(!Number[_0x56d1cf(0xea)](_0x558818)||_0x558818<=0x0)throw notificationError(_0x56d1cf(0xa5),_0x56d1cf(0xc1));return _0x558818;}export function requireNotificationExplicitYes(_0x54d055){const _0x5d29b8=a146_0x29555b;if(_0x54d055[_0x5d29b8(0xb6)](_0x5d29b8(0x10b))||_0x54d055[_0x5d29b8(0xb6)](_0x5d29b8(0x119)))return;throw notificationError(_0x5d29b8(0xd6),_0x5d29b8(0x108),_0x5d29b8(0xa3));}export function readNotificationChannelType(_0x380e64,_0x3de8e7='type',_0x2b09e5=a146_0x29555b(0xf9)){const _0x4f8bb8=a146_0x29555b,_0xf42768=_0x380e64['str'](_0x3de8e7)[_0x4f8bb8(0xfe)]()||_0x2b09e5;if(!NOTIFICATION_CHANNEL_TYPES[_0x4f8bb8(0xe9)](_0xf42768))throw CliErrors[_0x4f8bb8(0xba)](_0x4f8bb8(0xb2)+_0x3de8e7+':\x20'+_0xf42768,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x4f8bb8(0x10a)](',\x20')+'.');return _0xf42768;}export function assertSingleNotificationSource(_0x3b0b2b){const _0x3318b5=a146_0x29555b,_0x2d125a=[],_0x26c84c=_0x3b0b2b[_0x3318b5(0xbb)]('file')[_0x3318b5(0xfe)]();if(_0x26c84c)_0x2d125a['push']({'kind':_0x3318b5(0x110),'path':_0x26c84c});if(_0x3b0b2b['bool']('stdin'))_0x2d125a['push']({'kind':_0x3318b5(0xab)});const _0x7c834a=_0x3b0b2b['str'](_0x3318b5(0x11a))[_0x3318b5(0xfe)]();if(_0x7c834a)_0x2d125a[_0x3318b5(0xa6)]({'kind':'env','name':_0x7c834a});if(_0x2d125a[_0x3318b5(0xdf)]===0x0)throw CliErrors[_0x3318b5(0xba)](_0x3318b5(0x107),_0x3318b5(0xe1));if(_0x2d125a['length']>0x1)throw CliErrors[_0x3318b5(0xba)](_0x3318b5(0xd7),_0x3318b5(0xe1));return _0x2d125a[0x0];}export async function readNotificationDocument(_0x5035fe,_0x358533){const _0x326235=a146_0x29555b,_0x4178f5=assertSingleNotificationSource(_0x5035fe),_0xaf91e2=_0x4178f5[_0x326235(0x100)]===_0x326235(0x110)?_0x326235(0xa1)+_0x4178f5['path']:_0x4178f5[_0x326235(0x100)]===_0x326235(0x120)?_0x326235(0xf0)+_0x4178f5['name']:_0x326235(0xab);let _0x1502ba;try{if(_0x4178f5[_0x326235(0x100)]===_0x326235(0x110))_0x1502ba=await readFile(_0x4178f5[_0x326235(0xda)],_0x326235(0x11b));else{if(_0x4178f5[_0x326235(0x100)]===_0x326235(0x120)){if(!(_0x4178f5[_0x326235(0xd1)]in process.env))throw notificationError(_0x326235(0xa7),_0x326235(0xc6)+_0x4178f5[_0x326235(0xd1)]);_0x1502ba=process.env[_0x4178f5.name]??'';}else _0x1502ba=await readStdin();}}catch(_0x50c13a){if(_0x50c13a instanceof CliError)throw _0x50c13a;throw notificationError(_0x326235(0xa7),_0x326235(0xdc)+_0xaf91e2+'.');}let _0x48a146;try{_0x48a146=JSON[_0x326235(0xb4)](_0x1502ba);}catch{throw notificationError('notification_config_json_invalid',_0x326235(0x10f)+_0xaf91e2+_0x326235(0x116),_0x326235(0x111));}if(!isJsonObject(_0x48a146))throw notificationError(_0x326235(0xd8),_0x326235(0x10f)+_0xaf91e2+_0x326235(0xfa));return validateNotificationDocument(_0x48a146,_0x358533);}export function projectNotificationListConfig(_0x3be64a,_0x5aa0fa){const _0x4c10e=a146_0x29555b;return{'id':typeof _0x3be64a['id']==='number'?_0x3be64a['id']:null,'configCode':requireResponseString(_0x3be64a[_0x4c10e(0xe6)],_0x4c10e(0xe6),_0x5aa0fa),'configName':requireResponseString(_0x3be64a['configName'],_0x4c10e(0x11d),_0x5aa0fa),'channelType':requireResponseString(_0x3be64a[_0x4c10e(0xde)],_0x4c10e(0xde),_0x5aa0fa),'description':normalizeNullableString(_0x3be64a[_0x4c10e(0xf1)]),'createTime':normalizeNullableString(_0x3be64a[_0x4c10e(0x113)]),'updateTime':normalizeNullableString(_0x3be64a['updateTime'])};}export function normalizeExactNotificationConfig(_0x566994,_0x4dd531,_0x2c2cac){const _0x5df8ef=a146_0x29555b;if(!Number[_0x5df8ef(0xea)](_0x566994['id'])||_0x566994['id']!==_0x4dd531)throw notificationError(_0x5df8ef(0xf7),_0x5df8ef(0xcd)+_0x4dd531+'.');if(_0x566994['appCode']!==_0x2c2cac)throw notificationError(_0x5df8ef(0xf7),_0x5df8ef(0xc8)+_0x4dd531+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x4deeb5=requireExactString(_0x566994[_0x5df8ef(0x11d)],_0x5df8ef(0x11d),_0x4dd531),_0x22bc08=requireExactString(_0x566994['configCode'],_0x5df8ef(0xe6),_0x4dd531),_0x52b54f=requireExactString(_0x566994[_0x5df8ef(0xde)],_0x5df8ef(0xde),_0x4dd531);if(!NOTIFICATION_CHANNEL_TYPES[_0x5df8ef(0xe9)](_0x52b54f))throw notificationError(_0x5df8ef(0xf7),_0x5df8ef(0xc8)+_0x4dd531+'\x20has\x20an\x20unsupported\x20channelType.');const _0x28506d=responseNullableString(_0x566994['endpointUrl'],'endpointUrl',_0x4dd531),_0x38779d=responseNullableString(_0x566994[_0x5df8ef(0x10e)],'channelConfig',_0x4dd531),_0x33d7db=responseNullableString(_0x566994[_0x5df8ef(0xf1)],_0x5df8ef(0xf1),_0x4dd531),_0x5168ee=responseNullableTimeout(_0x566994['connectTimeout'],_0x5df8ef(0xa4),_0x4dd531),_0x4eb0e0=responseNullableTimeout(_0x566994[_0x5df8ef(0xb0)],_0x5df8ef(0xb0),_0x4dd531);return{'id':_0x4dd531,'appCode':_0x2c2cac,'configCode':_0x22bc08,'configName':_0x4deeb5,'channelType':_0x52b54f,'endpointUrl':redactSensitive(_0x28506d),'channelConfig':redactSensitive(_0x38779d),'description':_0x33d7db,'connectTimeout':_0x5168ee,'readTimeout':_0x4eb0e0,'endpointUrlRaw':_0x28506d,'channelConfigRaw':_0x38779d};}export async function requireExactNotificationConfig(_0x126ba7,_0x4252b3,_0x41c75b){const _0x1f3018=a146_0x29555b;let _0x7f7f2e;try{_0x7f7f2e=await getNotificationChannelConfig(_0x4252b3,_0x126ba7);}catch{throw safeApiFailure(_0x41c75b,'preflight',_0x1f3018(0xeb)+_0x126ba7+_0x1f3018(0xbf));}return normalizeExactNotificationConfig(_0x7f7f2e,_0x4252b3,_0x126ba7);}export function projectNotificationConfig(_0x3f81b5){const _0x5323b7=a146_0x29555b;return{'id':_0x3f81b5['id']??null,'appCode':_0x3f81b5[_0x5323b7(0xe0)],'configCode':_0x3f81b5[_0x5323b7(0xe6)]??null,'configName':_0x3f81b5[_0x5323b7(0x11d)],'channelType':_0x3f81b5[_0x5323b7(0xde)],'endpointUrl':redactSensitive(_0x3f81b5[_0x5323b7(0xb7)]),'channelConfig':redactSensitive(_0x3f81b5[_0x5323b7(0x10e)]),'description':_0x3f81b5[_0x5323b7(0xf1)]??null,'connectTimeout':_0x3f81b5[_0x5323b7(0xa4)]??null,'readTimeout':_0x3f81b5[_0x5323b7(0xb0)]??null};}export function notificationSelector(_0x35b2ce){const _0x12c78a=a146_0x29555b;return{'appCode':_0x35b2ce[_0x12c78a(0xe0)],'id':_0x35b2ce['id'],'configCode':_0x35b2ce['configCode'],'configName':_0x35b2ce[_0x12c78a(0x11d)],'channelType':_0x35b2ce[_0x12c78a(0xde)]};}export function createMutationInput(_0x3bbaec,_0x6fdfb8){const _0x187178=a146_0x29555b;return{'appCode':_0x3bbaec,'configName':_0x6fdfb8[_0x187178(0x11d)],'channelType':_0x6fdfb8['channelType'],...hasOwn(_0x6fdfb8,_0x187178(0xb7))?{'endpointUrl':_0x6fdfb8[_0x187178(0xb7)]}:{},...hasOwn(_0x6fdfb8,_0x187178(0x10e))?{'channelConfig':serializeChannelConfig(_0x6fdfb8['channelConfig'])}:{},...hasOwn(_0x6fdfb8,'description')?{'description':_0x6fdfb8[_0x187178(0xf1)]}:{},...hasOwn(_0x6fdfb8,_0x187178(0xa4))?{'connectTimeout':_0x6fdfb8[_0x187178(0xa4)]}:{},...hasOwn(_0x6fdfb8,_0x187178(0xb0))?{'readTimeout':_0x6fdfb8[_0x187178(0xb0)]}:{}};}export function mergeUpdateInput(_0x342677,_0x44456d){const _0x4d0b51=a146_0x29555b;return{'id':_0x342677['id'],'appCode':_0x342677[_0x4d0b51(0xe0)],'configName':_0x44456d[_0x4d0b51(0x11d)]??_0x342677[_0x4d0b51(0x11d)],'channelType':_0x44456d[_0x4d0b51(0xde)]??_0x342677[_0x4d0b51(0xde)],'endpointUrl':hasOwn(_0x44456d,_0x4d0b51(0xb7))?_0x44456d[_0x4d0b51(0xb7)]:_0x342677[_0x4d0b51(0xe5)],'channelConfig':hasOwn(_0x44456d,_0x4d0b51(0x10e))?serializeChannelConfig(_0x44456d['channelConfig']):_0x342677[_0x4d0b51(0xe8)],'description':hasOwn(_0x44456d,'description')?_0x44456d[_0x4d0b51(0xf1)]:_0x342677[_0x4d0b51(0xf1)],'connectTimeout':hasOwn(_0x44456d,_0x4d0b51(0xa4))?_0x44456d[_0x4d0b51(0xa4)]:_0x342677[_0x4d0b51(0xa4)],'readTimeout':hasOwn(_0x44456d,_0x4d0b51(0xb0))?_0x44456d[_0x4d0b51(0xb0)]:_0x342677[_0x4d0b51(0xb0)]};}export function plannedUpdateProjection(_0xb61e,_0x5f47b2){const _0x2b28b5=a146_0x29555b;return projectNotificationConfig({'id':_0xb61e['id'],'appCode':_0xb61e[_0x2b28b5(0xe0)],'configCode':_0xb61e[_0x2b28b5(0xe6)],'configName':_0x5f47b2['configName']??_0xb61e[_0x2b28b5(0x11d)],'channelType':_0x5f47b2[_0x2b28b5(0xde)]??_0xb61e['channelType'],'endpointUrl':hasOwn(_0x5f47b2,_0x2b28b5(0xb7))?_0x5f47b2[_0x2b28b5(0xb7)]:_0xb61e[_0x2b28b5(0xe5)],'channelConfig':hasOwn(_0x5f47b2,_0x2b28b5(0x10e))?_0x5f47b2[_0x2b28b5(0x10e)]:_0xb61e['channelConfigRaw'],'description':hasOwn(_0x5f47b2,_0x2b28b5(0xf1))?_0x5f47b2[_0x2b28b5(0xf1)]:_0xb61e[_0x2b28b5(0xf1)],'connectTimeout':hasOwn(_0x5f47b2,'connectTimeout')?_0x5f47b2[_0x2b28b5(0xa4)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0xb61e[_0x2b28b5(0xa4)],'readTimeout':hasOwn(_0x5f47b2,_0x2b28b5(0xb0))?_0x5f47b2[_0x2b28b5(0xb0)]??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0xb61e['readTimeout']});}export function requestedSafeFieldsMatch(_0x20f735,_0x1966de,_0x26e2f6){const _0x409223=a146_0x29555b,_0x4f4dc3=[],_0x22d86c=[],_0x53274a=[];for(const _0x1695ba of[_0x409223(0x11d),_0x409223(0xde),_0x409223(0xf1)]){if(!hasOwn(_0x26e2f6,_0x1695ba))continue;_0x53274a[_0x409223(0xa6)](_0x1695ba),_0x4f4dc3['push'](_0x1966de[_0x1695ba]===_0x26e2f6[_0x1695ba]),_0x22d86c[_0x409223(0xa6)](_0x20f735[_0x1695ba]!==_0x26e2f6[_0x1695ba]&&_0x1966de[_0x1695ba]===_0x26e2f6[_0x1695ba]);}for(const _0x12fcaf of[_0x409223(0xa4),_0x409223(0xb0)]){if(!hasOwn(_0x26e2f6,_0x12fcaf))continue;const _0x4cb52e=_0x26e2f6[_0x12fcaf]??(_0x12fcaf===_0x409223(0xa4)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x53274a[_0x409223(0xa6)](_0x12fcaf),_0x4f4dc3[_0x409223(0xa6)](_0x1966de[_0x12fcaf]===_0x4cb52e),_0x22d86c['push'](_0x20f735[_0x12fcaf]!==_0x4cb52e&&_0x1966de[_0x12fcaf]===_0x4cb52e);}return hasOwn(_0x26e2f6,_0x409223(0xb7))&&_0x26e2f6[_0x409223(0xb7)]===null&&(_0x53274a['push']('endpointUrl:null'),_0x4f4dc3[_0x409223(0xa6)](_0x1966de[_0x409223(0xe5)]===null||_0x1966de[_0x409223(0xe5)]===''),_0x22d86c['push'](_0x20f735['endpointUrlRaw']!==null&&_0x20f735['endpointUrlRaw']!==''&&(_0x1966de[_0x409223(0xe5)]===null||_0x1966de[_0x409223(0xe5)]===''))),{'allMatch':_0x4f4dc3[_0x409223(0x11c)](Boolean),'provesChange':_0x22d86c[_0x409223(0xc5)](Boolean),'verifiedFields':_0x53274a};}export function validateNotificationDeleteReadback(_0x5626fc,_0x5cb862,_0x14c5bb){const _0x4680b9=a146_0x29555b;for(const [_0x11d03e,_0x125104]of _0x5626fc[_0x4680b9(0xf2)]()){if(!Number[_0x4680b9(0xea)](_0x125104['id'])||_0x125104['id']<=0x0)throw notificationError(_0x4680b9(0xf7),_0x4680b9(0x109)+(_0x11d03e+0x1)+_0x4680b9(0xe4));if(_0x125104['appCode']!==_0x5cb862)throw notificationError(_0x4680b9(0xf7),_0x4680b9(0x109)+(_0x11d03e+0x1)+_0x4680b9(0xe3));if(_0x125104[_0x4680b9(0xde)]!==_0x14c5bb)throw notificationError(_0x4680b9(0xf7),_0x4680b9(0x109)+(_0x11d03e+0x1)+_0x4680b9(0x112));}}export function safeApiFailure(_0xf3cb97,_0x4a58fc,_0x22d944){const _0x29a7f0=a146_0x29555b;return notificationError('notification_config_'+_0xf3cb97+'_'+(_0x4a58fc==='mutation'?_0x29a7f0(0xb5):_0x4a58fc+_0x29a7f0(0xd4)),_0x29a7f0(0xc8)+_0xf3cb97+'\x20'+_0x4a58fc+_0x29a7f0(0xdb),_0x22d944);}function a146_0x4f3f(_0xfb410d,_0x47b8e5){_0xfb410d=_0xfb410d-0xa1;const _0x3f48e5=a146_0x3f48();let _0x4f3fa4=_0x3f48e5[_0xfb410d];return _0x4f3fa4;}export function notificationLookupCommand(_0x29ee5e,_0x806dc){const _0x46b51e=a146_0x29555b;return _0x46b51e(0xec)+_0x29ee5e+_0x46b51e(0xc0)+_0x806dc+'\x20--format\x20compress';}function validateNotificationDocument(_0x282348,_0x58576c){const _0x4f359e=a146_0x29555b;for(const _0x5a5816 of Object[_0x4f359e(0x102)](_0x282348)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x5a5816))throw notificationError(_0x4f359e(0xfb),_0x4f359e(0xee)+_0x5a5816+_0x4f359e(0xcc));if(!ALLOWED_INPUT_FIELDS[_0x4f359e(0x11e)](_0x5a5816))throw notificationError(_0x4f359e(0xc2),'Unknown\x20notification\x20JSON\x20field\x20\x22'+_0x5a5816+'\x22.');}if(_0x58576c===_0x4f359e(0xe7)&&Object['keys'](_0x282348)[_0x4f359e(0xdf)]===0x0)throw notificationError('notification_config_update_empty',_0x4f359e(0xac));const _0x18f883={};if(hasOwn(_0x282348,_0x4f359e(0x11d)))_0x18f883[_0x4f359e(0x11d)]=validateRequiredString(_0x282348[_0x4f359e(0x11d)],'configName',0x80);else{if(_0x58576c===_0x4f359e(0xb9))throw notificationError(_0x4f359e(0xcb),'Create\x20JSON\x20requires\x20field\x20'+_0x4f359e(0xb1));}if(hasOwn(_0x282348,_0x4f359e(0xde))){if(typeof _0x282348['channelType']!==_0x4f359e(0xa2))throw invalidFieldType('channelType',_0x4f359e(0xd3));const _0x4b80d9=_0x282348[_0x4f359e(0xde)][_0x4f359e(0xfe)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x4b80d9))throw notificationError(_0x4f359e(0xff),_0x4f359e(0xf4),_0x4f359e(0xf6)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');_0x18f883[_0x4f359e(0xde)]=_0x4b80d9;}else{if(_0x58576c==='create')throw notificationError(_0x4f359e(0xcb),'Create\x20JSON\x20requires\x20field\x20'+_0x4f359e(0x10d));}for(const [_0x2ead55,_0x30a0db]of[[_0x4f359e(0xb7),0x200],[_0x4f359e(0xf1),0x100]]){if(!hasOwn(_0x282348,_0x2ead55))continue;const _0x18af1f=_0x282348[_0x2ead55];if(_0x18af1f!==null&&typeof _0x18af1f!==_0x4f359e(0xa2))throw invalidFieldType(_0x2ead55,'a\x20string\x20or\x20null');if(typeof _0x18af1f==='string'&&_0x18af1f[_0x4f359e(0xdf)]>_0x30a0db)throw notificationError(_0x4f359e(0xff),_0x4f359e(0xee)+_0x2ead55+_0x4f359e(0xa8)+_0x30a0db+_0x4f359e(0xc7));_0x18f883[_0x2ead55]=_0x18af1f;}if(hasOwn(_0x282348,_0x4f359e(0x10e))){const _0x4518b2=_0x282348[_0x4f359e(0x10e)];if(_0x4518b2===null&&_0x58576c===_0x4f359e(0xb9))throw invalidFieldType(_0x4f359e(0x10e),_0x4f359e(0x117));if(_0x4518b2!==null&&!isJsonObject(_0x4518b2))throw invalidFieldType('channelConfig',_0x58576c===_0x4f359e(0xe7)?_0x4f359e(0x101):'a\x20JSON\x20object');_0x4518b2!==null&&validateChannelConfigFields(_0x18f883[_0x4f359e(0xde)],_0x4518b2),_0x18f883[_0x4f359e(0x10e)]=_0x4518b2;}for(const _0x89aa88 of['connectTimeout',_0x4f359e(0xb0)]){if(!hasOwn(_0x282348,_0x89aa88))continue;const _0x22d625=_0x282348[_0x89aa88];if(_0x22d625!==null&&(!Number[_0x4f359e(0xea)](_0x22d625)||_0x22d625<0x0))throw notificationError(_0x4f359e(0xff),_0x4f359e(0xee)+_0x89aa88+_0x4f359e(0x105));_0x18f883[_0x89aa88]=_0x22d625;}return _0x18f883;}function validateRequiredString(_0x26bc40,_0x1565fc,_0x1acc04){const _0x11a7bb=a146_0x29555b;if(typeof _0x26bc40!==_0x11a7bb(0xa2))throw invalidFieldType(_0x1565fc,_0x11a7bb(0xc4));const _0xd1b3e8=_0x26bc40[_0x11a7bb(0xfe)]();if(!_0xd1b3e8)throw notificationError(_0x11a7bb(0xff),_0x11a7bb(0xee)+_0x1565fc+_0x11a7bb(0xaf));if(_0xd1b3e8[_0x11a7bb(0xdf)]>_0x1acc04)throw notificationError(_0x11a7bb(0xff),'Notification\x20JSON\x20field\x20\x22'+_0x1565fc+_0x11a7bb(0xa8)+_0x1acc04+'\x20characters.');return _0xd1b3e8;}function validateChannelConfigFields(_0x57d386,_0x12cca6){const _0x2309dd=a146_0x29555b;if(hasOwn(_0x12cca6,'messageTemplate'))throw forbiddenChannelConfigField(_0x2309dd(0xca));if(_0x57d386===_0x2309dd(0xf9))for(const _0x151566 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x12cca6,_0x151566))throw forbiddenChannelConfigField(_0x151566);}}function forbiddenChannelConfigField(_0x1dd2d4){const _0x4fbe60=a146_0x29555b;return notificationError(_0x4fbe60(0xa9),_0x4fbe60(0x118)+_0x1dd2d4+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x3ccc1e,_0x10f51e){const _0x58a84a=a146_0x29555b;return notificationError(_0x58a84a(0xff),_0x58a84a(0xee)+_0x3ccc1e+_0x58a84a(0xf3)+_0x10f51e+'.');}function serializeChannelConfig(_0x240a80){const _0x5548a2=a146_0x29555b;return _0x240a80===null||_0x240a80===undefined?null:JSON[_0x5548a2(0x11f)](_0x240a80);}function redactSensitive(_0x25b92e){const _0x53b46c=a146_0x29555b;return _0x25b92e===null||_0x25b92e===undefined||_0x25b92e===''?null:_0x53b46c(0xb3);}function requireResponseString(_0x5e1109,_0x553deb,_0x54e486){const _0x312975=a146_0x29555b;if(typeof _0x5e1109!==_0x312975(0xa2)||_0x5e1109[_0x312975(0xfe)]()==='')throw CliErrors[_0x312975(0x104)](_0x312975(0xf5),_0x312975(0xb8)+(_0x54e486+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x553deb+'\x22.');return _0x5e1109[_0x312975(0xfe)]();}function requireExactString(_0x5c1cfc,_0x57bfe4,_0x24ac2f){const _0x3460be=a146_0x29555b;if(typeof _0x5c1cfc!==_0x3460be(0xa2)||_0x5c1cfc[_0x3460be(0xfe)]()==='')throw notificationError(_0x3460be(0xf7),_0x3460be(0xc8)+_0x24ac2f+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x57bfe4+'\x22.');return _0x5c1cfc['trim']();}function responseNullableString(_0x1e1f35,_0x1431ef,_0x3112ad){const _0xd5f767=a146_0x29555b;if(_0x1e1f35===undefined||_0x1e1f35===null)return null;if(typeof _0x1e1f35!==_0xd5f767(0xa2))throw notificationError(_0xd5f767(0xf7),_0xd5f767(0xc8)+_0x3112ad+_0xd5f767(0xc3)+_0x1431ef+'\x22.');return _0x1e1f35;}function responseNullableTimeout(_0xd1d164,_0x2bb82a,_0x663371){const _0x5ecde3=a146_0x29555b;if(_0xd1d164===undefined||_0xd1d164===null)return null;if(!Number[_0x5ecde3(0xea)](_0xd1d164)||_0xd1d164<0x0)throw notificationError(_0x5ecde3(0xf7),_0x5ecde3(0xc8)+_0x663371+_0x5ecde3(0xc3)+_0x2bb82a+'\x22.');return _0xd1d164;}function normalizeNullableString(_0x37ba36){const _0x452725=a146_0x29555b;return typeof _0x37ba36===_0x452725(0xa2)?_0x37ba36:null;}function isJsonObject(_0x45408c){const _0x536234=a146_0x29555b;return _0x45408c!==null&&typeof _0x45408c==='object'&&!Array[_0x536234(0xdd)](_0x45408c);}function hasOwn(_0x5e60b3,_0x519c8e){const _0x3768dc=a146_0x29555b;return Object[_0x3768dc(0xf8)][_0x3768dc(0xe2)]['call'](_0x5e60b3,_0x519c8e);}async function readStdin(){const _0x4e703d=a146_0x29555b;let _0x1d441a='';process[_0x4e703d(0xab)]['setEncoding'](_0x4e703d(0x11b));for await(const _0x4b23b4 of process['stdin'])_0x1d441a+=_0x4b23b4;return _0x1d441a;}
@@ -1 +1 @@
1
- const a142_0x2c0e50=a142_0x588c;(function(_0x389e91,_0x4e5402){const _0x45acf5=a142_0x588c,_0x328f5b=_0x389e91();while(!![]){try{const _0xa00977=parseInt(_0x45acf5(0x129))/0x1*(-parseInt(_0x45acf5(0x134))/0x2)+parseInt(_0x45acf5(0x14f))/0x3*(parseInt(_0x45acf5(0x12c))/0x4)+-parseInt(_0x45acf5(0x138))/0x5*(-parseInt(_0x45acf5(0x11d))/0x6)+parseInt(_0x45acf5(0x11f))/0x7*(parseInt(_0x45acf5(0x12b))/0x8)+-parseInt(_0x45acf5(0x14d))/0x9*(-parseInt(_0x45acf5(0x14c))/0xa)+parseInt(_0x45acf5(0x120))/0xb*(-parseInt(_0x45acf5(0x130))/0xc)+-parseInt(_0x45acf5(0x127))/0xd;if(_0xa00977===_0x4e5402)break;else _0x328f5b['push'](_0x328f5b['shift']());}catch(_0x4d5f45){_0x328f5b['push'](_0x328f5b['shift']());}}}(a142_0x43fa,0x28207));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a142_0x588c(_0x48bc9d,_0x365c55){_0x48bc9d=_0x48bc9d-0x117;const _0x43fa84=a142_0x43fa();let _0x588c54=_0x43fa84[_0x48bc9d];return _0x588c54;}const SUPPORTED_SCENES=[a142_0x2c0e50(0x135),a142_0x2c0e50(0x152),a142_0x2c0e50(0x14a),a142_0x2c0e50(0x13f)],SCENE_TO_LEGACY_TYPE={'invoice':a142_0x2c0e50(0x13a),'general':a142_0x2c0e50(0x119),'form':'Table','idCard':a142_0x2c0e50(0x14b)},SCENE_FLAG={'name':a142_0x2c0e50(0x11c),'type':a142_0x2c0e50(0x145),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a142_0x2c0e50(0x142)},IMAGE_FILE_FLAG={'name':a142_0x2c0e50(0x149),'type':'string','description':a142_0x2c0e50(0x121)},IMAGE_URL_FLAG={'name':a142_0x2c0e50(0x140),'type':a142_0x2c0e50(0x145),'description':a142_0x2c0e50(0x13d)};function normalizeScene(_0x2abc79){const _0x147034=a142_0x2c0e50,_0x11551e=_0x2abc79[_0x147034(0x12a)]()[_0x147034(0x124)]();if(_0x11551e===_0x147034(0x151))return _0x147034(0x13f);if(_0x11551e===_0x147034(0x135)||_0x11551e===_0x147034(0x152)||_0x11551e==='form')return _0x11551e;throw CliErrors[_0x147034(0x13c)](_0x147034(0x13b)+_0x2abc79+_0x147034(0x11a)+SUPPORTED_SCENES[_0x147034(0x133)](',\x20'));}function a142_0x43fa(){const _0x4c40aa=['image-file','form','IdCard','5860KTXsHx','4482eLrxKX','Preview:\x20recognize\x20','28347DEhyRN','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','idcard','general','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','count','\x20OCR','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','General','.\x20Supported\x20scenes:\x20','filePath','scene','570nNoqbO','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','91ghZTCx','7117rhrEbW','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','fileUrl','GET','toLowerCase','File\x20URL\x20response\x20missing\x20fileUrl.','fileName','6614205YduXOD','path','1ePOShs','trim','202184Pcvcjz','12EobtFB','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','/smartapi/common/uploadFile','str','48DQkooF','toString','imageUrl','join','104254amsWcy','invoice','\x20OCR\x20from\x20URL','recognize','4165IZlhrm','POST','Invoice','Unsupported\x20OCR\x20scene:\x20','validation','Publicly\x20accessible\x20image\x20or\x20file\x20URL','read','idCard','image-url','/smartapi/ocr/recognize-text?','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','appCode','ocr','string','apiError','length','File\x20upload\x20response\x20missing\x20filePath.'];a142_0x43fa=function(){return _0x4c40aa;};return a142_0x43fa();}function selectedInputs(_0x1d773c){const _0x46aa6c=a142_0x2c0e50,_0x5698f1=_0x1d773c[_0x46aa6c(0x12f)](_0x46aa6c(0x149))[_0x46aa6c(0x12a)](),_0x2e3c14=_0x1d773c['str'](_0x46aa6c(0x140))[_0x46aa6c(0x12a)]();return{'imageFile':_0x5698f1,'imageUrl':_0x2e3c14,'count':[_0x5698f1,_0x2e3c14]['filter'](Boolean)[_0x46aa6c(0x147)]};}function validateInputSelection(_0x244876){const _0x567156=a142_0x2c0e50,_0x12df23=selectedInputs(_0x244876);if(_0x12df23[_0x567156(0x154)]!==0x1)throw CliErrors[_0x567156(0x13c)](_0x567156(0x118));return _0x12df23;}function withScene(_0x547692,_0x26317b,_0x459d90){const _0x954dbe=a142_0x2c0e50;return{..._0x547692,'scene':_0x26317b,..._0x459d90?{'sourceFile':{'fileName':_0x459d90[_0x954dbe(0x126)],'filePath':_0x459d90[_0x954dbe(0x11b)]}}:{}};}const ocrRecognize={'service':a142_0x2c0e50(0x144),'command':a142_0x2c0e50(0x137),'description':a142_0x2c0e50(0x153),'risk':a142_0x2c0e50(0x13e),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x44d0d5){const _0x46afe8=a142_0x2c0e50,_0x211468=normalizeScene(_0x44d0d5[_0x46afe8(0x12f)](_0x46afe8(0x11c))),_0x31c5a0=SCENE_TO_LEGACY_TYPE[_0x211468],_0xea31bc=validateInputSelection(_0x44d0d5);if(_0xea31bc['imageUrl']){const _0x172b94=new URLSearchParams({'url':_0xea31bc['imageUrl'],'type':_0x31c5a0,'appCode':_0x44d0d5[_0x46afe8(0x143)]});return{'method':_0x46afe8(0x123),'url':_0x46afe8(0x141)+_0x172b94[_0x46afe8(0x131)](),'description':_0x46afe8(0x14e)+_0x211468+_0x46afe8(0x136)};}const _0x2783d=requireDevelopmentUploadFile(_0xea31bc['imageFile'],'image-file');return{'method':'POST','url':_0x46afe8(0x12e),'body':{'steps':[{'method':_0x46afe8(0x139),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x44d0d5[_0x46afe8(0x143)],'multipart':{'file':_0x2783d}}},{'method':_0x46afe8(0x139),'url':'/smartapi/common/queryFileUrl','body':{'filePath':_0x46afe8(0x11e),'downloadFlag':![]}},{'method':_0x46afe8(0x123),'url':'/smartapi/ocr/recognize-text','query':{'appCode':_0x44d0d5[_0x46afe8(0x143)],'url':_0x46afe8(0x150),'type':_0x31c5a0}}]},'description':_0x46afe8(0x12d)+_0x211468+_0x46afe8(0x117)};},async 'execute'(_0x50632d){const _0x3fc318=a142_0x2c0e50,_0x385665=normalizeScene(_0x50632d[_0x3fc318(0x12f)](_0x3fc318(0x11c))),_0x4bc091=SCENE_TO_LEGACY_TYPE[_0x385665],_0x2b8e6c=validateInputSelection(_0x50632d);if(_0x2b8e6c[_0x3fc318(0x132)]){const _0x1ad98e=await recognizeDevelopmentOcr(_0x50632d[_0x3fc318(0x143)],{'url':_0x2b8e6c[_0x3fc318(0x132)],'type':_0x4bc091});return{'ok':!![],'data':withScene(_0x1ad98e,_0x385665)};}const _0x17697b=requireDevelopmentUploadFile(_0x2b8e6c['imageFile'],'image-file'),_0x42b327=await uploadDevelopmentFile(_0x50632d[_0x3fc318(0x143)],_0x17697b[_0x3fc318(0x128)]);if(!_0x42b327[_0x3fc318(0x11b)])throw CliErrors['apiError'](_0x3fc318(0x148));const _0xcc60e5=await queryDevelopmentFileUrl(_0x42b327[_0x3fc318(0x11b)],{'download':![]});if(!_0xcc60e5[_0x3fc318(0x122)])throw CliErrors[_0x3fc318(0x146)](_0x3fc318(0x125));const _0x4562af=await recognizeDevelopmentOcr(_0x50632d[_0x3fc318(0x143)],{'url':_0xcc60e5[_0x3fc318(0x122)],'type':_0x4bc091});return{'ok':!![],'data':withScene(_0x4562af,_0x385665,_0x42b327)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a147_0x1df4f2=a147_0x5e6b;(function(_0xde3e9f,_0x2e213d){const _0x380689=a147_0x5e6b,_0x160cd2=_0xde3e9f();while(!![]){try{const _0x39fe2b=parseInt(_0x380689(0xa7))/0x1+-parseInt(_0x380689(0x9b))/0x2+-parseInt(_0x380689(0xb3))/0x3*(parseInt(_0x380689(0x9c))/0x4)+parseInt(_0x380689(0x8a))/0x5*(parseInt(_0x380689(0xa2))/0x6)+parseInt(_0x380689(0x8f))/0x7*(-parseInt(_0x380689(0x82))/0x8)+parseInt(_0x380689(0xa5))/0x9+-parseInt(_0x380689(0x84))/0xa;if(_0x39fe2b===_0x2e213d)break;else _0x160cd2['push'](_0x160cd2['shift']());}catch(_0x3fb763){_0x160cd2['push'](_0x160cd2['shift']());}}}(a147_0x1979,0xd14cf));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=[a147_0x1df4f2(0x94),'general','form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a147_0x1df4f2(0xb4),'form':a147_0x1df4f2(0xa8),'idCard':'IdCard'},SCENE_FLAG={'name':a147_0x1df4f2(0xae),'type':a147_0x1df4f2(0x98),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x1df4f2(0xb2)},IMAGE_FILE_FLAG={'name':a147_0x1df4f2(0x9a),'type':a147_0x1df4f2(0x98),'description':a147_0x1df4f2(0xac)},IMAGE_URL_FLAG={'name':'image-url','type':a147_0x1df4f2(0x98),'description':a147_0x1df4f2(0x97)};function normalizeScene(_0x2a645c){const _0x6418c4=a147_0x1df4f2,_0xef1d32=_0x2a645c[_0x6418c4(0x85)]()[_0x6418c4(0xb0)]();if(_0xef1d32===_0x6418c4(0xab))return'idCard';if(_0xef1d32===_0x6418c4(0x94)||_0xef1d32==='general'||_0xef1d32===_0x6418c4(0xa1))return _0xef1d32;throw CliErrors[_0x6418c4(0x89)](_0x6418c4(0xa4)+_0x2a645c+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x6418c4(0x99)](',\x20'));}function a147_0x5e6b(_0x66c8ce,_0xe4bc7c){_0x66c8ce=_0x66c8ce-0x7d;const _0x197978=a147_0x1979();let _0x5e6b09=_0x197978[_0x66c8ce];return _0x5e6b09;}function selectedInputs(_0x17c6e9){const _0x3a647e=a147_0x1df4f2,_0x318a87=_0x17c6e9['str'](_0x3a647e(0x9a))['trim'](),_0x3232e6=_0x17c6e9[_0x3a647e(0x7e)](_0x3a647e(0x86))['trim']();return{'imageFile':_0x318a87,'imageUrl':_0x3232e6,'count':[_0x318a87,_0x3232e6][_0x3a647e(0x83)](Boolean)['length']};}function validateInputSelection(_0x4c9188){const _0x22cfbb=a147_0x1df4f2,_0x2a9c57=selectedInputs(_0x4c9188);if(_0x2a9c57[_0x22cfbb(0x95)]!==0x1)throw CliErrors[_0x22cfbb(0x89)](_0x22cfbb(0x8c));return _0x2a9c57;}function a147_0x1979(){const _0x41288f=['str','read','\x20OCR','/smartapi/common/queryFileUrl','56qbOYsU','filter','5657820qONztf','trim','image-url','toString','\x20OCR\x20from\x20URL','validation','205060vkuYwl','GET','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','/smartapi/common/uploadFile','path','548863UZzDuT','File\x20URL\x20response\x20missing\x20fileUrl.','fileName','/smartapi/ocr/recognize-text?','fileUrl','invoice','count','filePath','Publicly\x20accessible\x20image\x20or\x20file\x20URL','string','join','image-file','8118AgPobZ','5044840pHbaMl','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','apiError','appCode','form','168aiclae','/smartapi/ocr/recognize-text','Unsupported\x20OCR\x20scene:\x20','10811718ASVBEN','Preview:\x20recognize\x20','887571iiahMc','Table','POST','imageUrl','idcard','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','scene','ocr','toLowerCase','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','3LkUHBP','General','imageFile'];a147_0x1979=function(){return _0x41288f;};return a147_0x1979();}function withScene(_0x261719,_0x469a5c,_0x444a85){const _0x2810c8=a147_0x1df4f2;return{..._0x261719,'scene':_0x469a5c,..._0x444a85?{'sourceFile':{'fileName':_0x444a85[_0x2810c8(0x91)],'filePath':_0x444a85[_0x2810c8(0x96)]}}:{}};}const ocrRecognize={'service':a147_0x1df4f2(0xaf),'command':'recognize','description':a147_0x1df4f2(0x9d),'risk':a147_0x1df4f2(0x7f),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3861a4){const _0x55002f=a147_0x1df4f2,_0x561409=normalizeScene(_0x3861a4[_0x55002f(0x7e)]('scene')),_0x30a7ea=SCENE_TO_LEGACY_TYPE[_0x561409],_0x315bc4=validateInputSelection(_0x3861a4);if(_0x315bc4['imageUrl']){const _0x538f43=new URLSearchParams({'url':_0x315bc4[_0x55002f(0xaa)],'type':_0x30a7ea,'appCode':_0x3861a4[_0x55002f(0xa0)]});return{'method':_0x55002f(0x8b),'url':_0x55002f(0x92)+_0x538f43[_0x55002f(0x87)](),'description':_0x55002f(0xa6)+_0x561409+_0x55002f(0x88)};}const _0x35fedd=requireDevelopmentUploadFile(_0x315bc4[_0x55002f(0x7d)],'image-file');return{'method':_0x55002f(0xa9),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':'POST','url':_0x55002f(0x8d),'body':{'appCode':_0x3861a4[_0x55002f(0xa0)],'multipart':{'file':_0x35fedd}}},{'method':_0x55002f(0xa9),'url':_0x55002f(0x81),'body':{'filePath':_0x55002f(0x9e),'downloadFlag':![]}},{'method':'GET','url':_0x55002f(0xa3),'query':{'appCode':_0x3861a4[_0x55002f(0xa0)],'url':_0x55002f(0xb1),'type':_0x30a7ea}}]},'description':_0x55002f(0xad)+_0x561409+_0x55002f(0x80)};},async 'execute'(_0x3887d9){const _0x464bc0=a147_0x1df4f2,_0x7826c6=normalizeScene(_0x3887d9[_0x464bc0(0x7e)](_0x464bc0(0xae))),_0x552af4=SCENE_TO_LEGACY_TYPE[_0x7826c6],_0x5227c8=validateInputSelection(_0x3887d9);if(_0x5227c8['imageUrl']){const _0x3bdcea=await recognizeDevelopmentOcr(_0x3887d9[_0x464bc0(0xa0)],{'url':_0x5227c8['imageUrl'],'type':_0x552af4});return{'ok':!![],'data':withScene(_0x3bdcea,_0x7826c6)};}const _0x7e5661=requireDevelopmentUploadFile(_0x5227c8['imageFile'],_0x464bc0(0x9a)),_0x49e6a0=await uploadDevelopmentFile(_0x3887d9['appCode'],_0x7e5661[_0x464bc0(0x8e)]);if(!_0x49e6a0[_0x464bc0(0x96)])throw CliErrors[_0x464bc0(0x9f)]('File\x20upload\x20response\x20missing\x20filePath.');const _0x47956a=await queryDevelopmentFileUrl(_0x49e6a0['filePath'],{'download':![]});if(!_0x47956a['fileUrl'])throw CliErrors[_0x464bc0(0x9f)](_0x464bc0(0x90));const _0x4fcee2=await recognizeDevelopmentOcr(_0x3887d9['appCode'],{'url':_0x47956a[_0x464bc0(0x93)],'type':_0x552af4});return{'ok':!![],'data':withScene(_0x4fcee2,_0x7826c6,_0x49e6a0)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a143_0x46f7a9=a143_0x4844;(function(_0x345da7,_0x2722a7){const _0x1bc021=a143_0x4844,_0x491c04=_0x345da7();while(!![]){try{const _0x2306d2=-parseInt(_0x1bc021(0xd2))/0x1+parseInt(_0x1bc021(0xa0))/0x2+-parseInt(_0x1bc021(0xd5))/0x3*(-parseInt(_0x1bc021(0xaf))/0x4)+-parseInt(_0x1bc021(0xd7))/0x5*(-parseInt(_0x1bc021(0xd9))/0x6)+-parseInt(_0x1bc021(0xa9))/0x7+parseInt(_0x1bc021(0xb0))/0x8+-parseInt(_0x1bc021(0xa4))/0x9*(-parseInt(_0x1bc021(0xce))/0xa);if(_0x2306d2===_0x2722a7)break;else _0x491c04['push'](_0x491c04['shift']());}catch(_0x2dd932){_0x491c04['push'](_0x491c04['shift']());}}}(a143_0x5a38,0xd64c3));import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a143_0x46f7a9(0xd6),'en-US'];export const pageCreate={'service':'page','command':a143_0x46f7a9(0xbd),'description':a143_0x46f7a9(0xc1),'risk':a143_0x46f7a9(0xc8),'defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a143_0x46f7a9(0xbe),'message':a143_0x46f7a9(0xac),'hint':a143_0x46f7a9(0xbb)}],'flags':[{'name':'name','type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xb3)},{'name':a143_0x46f7a9(0xc3),'type':'number','description':a143_0x46f7a9(0xa1)},{'name':a143_0x46f7a9(0xc0),'type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xa7),'enum':[a143_0x46f7a9(0xd8)]},{'name':a143_0x46f7a9(0xc4),'type':a143_0x46f7a9(0xc7),'description':a143_0x46f7a9(0xa6)},APPCODE_FLAG],async 'validate'(_0x124133){const _0x29fefc=a143_0x46f7a9,_0x599e50=readPagePattern(_0x124133);await validateCustomPageContent(readInput(_0x124133,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x599e50)[_0x29fefc(0xb5)]);},async 'dryRun'(_0x325efe){const _0x50d107=a143_0x46f7a9,{input:_0x236873}=await prepare(_0x325efe);return{'method':'POST','url':'/smartapi/webcode/page/create','body':{'appCode':_0x236873['appCode'],'pageName':_0x236873['pageName'],..._0x236873['parentMenuId']!=null?{'parentMenuId':_0x236873[_0x50d107(0xb1)]}:{},'createMenu':_0x236873['createMenu'],'codeContent':_0x236873[_0x50d107(0xb5)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON[_0x50d107(0xca)](_0x236873[_0x50d107(0xd1)])+_0x50d107(0xaa)};},async 'execute'(_0x891731){const _0x34bef5=a143_0x46f7a9,_0x1cc0fe=await prepare(_0x891731),_0x4b24ae=await createCustomPage(_0x1cc0fe[_0x34bef5(0xbf)]);if(!Number['isInteger'](_0x4b24ae[_0x34bef5(0xd3)])||_0x4b24ae[_0x34bef5(0xd3)]<=0x0)throw CliErrors[_0x34bef5(0xcd)](_0x34bef5(0xb2));return{'ok':!![],'data':buildMutationData(_0x1cc0fe,_0x4b24ae),'message':_0x34bef5(0xcc)+_0x4b24ae[_0x34bef5(0xd3)]+'.'};}};async function prepare(_0x41cb8e){const _0x487d0c=a143_0x46f7a9,_0x290666=readPagePattern(_0x41cb8e);if(_0x290666===null)return{'input':readInput(_0x41cb8e,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x290666),'warnings':[],'pagePattern':_0x290666};let _0x2a42dc=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3919c3=[];try{const _0x2efb4f=await getI18nInfo(_0x41cb8e[_0x487d0c(0xb7)]);_0x2efb4f[_0x487d0c(0xae)]&&_0x2efb4f[_0x487d0c(0xd0)]?.['length']&&(_0x2a42dc=_0x2efb4f[_0x487d0c(0xd0)]);}catch{_0x3919c3=[_0x487d0c(0xb8)];}return{'input':readInput(_0x41cb8e,_0x2a42dc,_0x290666),'warnings':_0x3919c3,'pagePattern':_0x290666};}function a143_0x5a38(){const _0x3d7427=['stringify','pageName\x20cannot\x20exceed\x20100\x20characters.','Created\x20Custom\x20Page\x20','apiError','3710Sjshcj','isInteger','langs','pageName','834143PoSUGZ','pageId','pagePattern','175254vfPcUP','zh-CN','21265cEWMDa','BLANK','6QSwsyT','version','str','2272472BKplVJ','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','keys','CUSTOM','31491nKuonh','trim','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','now','11972779lwBnZX','\x20and\x20its\x20menu\x20entry.','page.create','page\x20create\x20does\x20not\x20accept\x20--page-type.','num','enableI18n','48GEQnQW','2261352PGzDRI','parentMenuId','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','isNaN','files','warnings','appCode','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','name','menuPath','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','length','create','page-type','input','page-pattern','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','validation','parent-menu-id','page-content','Custom_page_','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','string','write','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.'];a143_0x5a38=function(){return _0x3d7427;};return a143_0x5a38();}function readPagePattern(_0x5a9e1f){const _0x54276b=a143_0x46f7a9,_0x7965d7=_0x5a9e1f['str'](_0x54276b(0xc0))[_0x54276b(0xa5)](),_0x4f826a=_0x5a9e1f[_0x54276b(0x9f)]('page-content')[_0x54276b(0xa5)]()['length']>0x0;if(_0x7965d7&&_0x4f826a)throw CliErrors['validation']('--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.');if(_0x4f826a)return null;if(!_0x7965d7)throw CliErrors[_0x54276b(0xc2)]('Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.');if(_0x7965d7!==_0x54276b(0xd8))throw CliErrors['validation']('--page-pattern\x20currently\x20supports\x20only\x20BLANK.');return _0x7965d7;}function readInput(_0x485829,_0x71fda=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x1c9ab6=readPagePattern(_0x485829)){const _0x50bf4c=a143_0x46f7a9,_0x5182c3=_0x485829[_0x50bf4c(0x9f)](_0x50bf4c(0xb9))[_0x50bf4c(0xa5)]()||_0x50bf4c(0xc5)+Date[_0x50bf4c(0xa8)]();if(_0x5182c3[_0x50bf4c(0xbc)]>0x64)throw CliErrors[_0x50bf4c(0xc2)](_0x50bf4c(0xcb));const _0x3e2c32=_0x485829[_0x50bf4c(0xad)](_0x50bf4c(0xc3),NaN),_0x54a3fc=!Number[_0x50bf4c(0xb4)](_0x3e2c32);if(_0x54a3fc&&(!Number[_0x50bf4c(0xcf)](_0x3e2c32)||_0x3e2c32<=0x0))throw CliErrors[_0x50bf4c(0xc2)](_0x50bf4c(0xc6));return{'appCode':_0x485829['appCode'],'pageName':_0x5182c3,..._0x54a3fc?{'parentMenuId':_0x3e2c32}:{},'createMenu':!![],'files':_0x1c9ab6===null?parseCustomPageContent(_0x485829[_0x50bf4c(0x9f)](_0x50bf4c(0xc4))):buildInitialFiles(_0x5182c3,_0x71fda)};}function a143_0x4844(_0x32c062,_0x4140b8){_0x32c062=_0x32c062-0x9e;const _0x5a38ce=a143_0x5a38();let _0x484477=_0x5a38ce[_0x32c062];return _0x484477;}function buildMutationData(_0x195747,_0x117372){const _0x3f717e=a143_0x46f7a9,{input:_0x9db4b1}=_0x195747,_0x1276fd=_0x117372&&buildCustomPageDevelopmentUrl(_0x9db4b1['appCode'],_0x117372[_0x3f717e(0xba)]),_0x31a8df=_0x117372&&buildCustomPageEditUrl(_0x9db4b1[_0x3f717e(0xb7)],_0x117372['pageId']);return{'operation':_0x3f717e(0xab),'pageType':_0x3f717e(0xa3),'pagePattern':_0x195747[_0x3f717e(0xd4)],'selector':{'appCode':_0x9db4b1[_0x3f717e(0xb7)],'pageName':_0x9db4b1['pageName']},'before':null,'after':{'pageId':_0x117372?.[_0x3f717e(0xd3)]??null,'pageName':_0x117372?.[_0x3f717e(0xd1)]??_0x9db4b1['pageName'],'appCode':_0x117372?.[_0x3f717e(0xb7)]??_0x9db4b1[_0x3f717e(0xb7)],'version':_0x117372?.[_0x3f717e(0x9e)]??null,'menuId':_0x117372?.['menuId']??null,'menuPath':_0x117372?.['menuPath']??null,'files':_0x117372?.['files']??Object[_0x3f717e(0xa2)](_0x9db4b1['files'])},'dryRun':_0x117372===undefined,'request':_0x9db4b1,..._0x1276fd?{'pageUrl':_0x1276fd}:{},..._0x31a8df?{'editPageUrl':_0x31a8df}:{},'warnings':[..._0x195747[_0x3f717e(0xb6)],..._0x117372&&!_0x1276fd?[_0x3f717e(0xc9)]:[]]};}
1
+ const a148_0x55242a=a148_0x37bf;(function(_0x2c3468,_0x15c5f2){const _0x1eca71=a148_0x37bf,_0x5f5396=_0x2c3468();while(!![]){try{const _0xa4ea33=parseInt(_0x1eca71(0x1d5))/0x1*(parseInt(_0x1eca71(0x1c5))/0x2)+-parseInt(_0x1eca71(0x1ce))/0x3+parseInt(_0x1eca71(0x1e2))/0x4*(-parseInt(_0x1eca71(0x1b0))/0x5)+parseInt(_0x1eca71(0x1b9))/0x6+-parseInt(_0x1eca71(0x1d4))/0x7*(parseInt(_0x1eca71(0x1ba))/0x8)+-parseInt(_0x1eca71(0x1b3))/0x9*(-parseInt(_0x1eca71(0x1b2))/0xa)+-parseInt(_0x1eca71(0x1c4))/0xb;if(_0xa4ea33===_0x15c5f2)break;else _0x5f5396['push'](_0x5f5396['shift']());}catch(_0x6565b6){_0x5f5396['push'](_0x5f5396['shift']());}}}(a148_0x242e,0x4ee76));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a148_0x242e(){const _0x4fe3e4=['--page-pattern\x20currently\x20supports\x20only\x20BLANK.','stringify','1257267rZKXRH','30sNzWbb','pageId','page-pattern','Would\x20create\x20Custom\x20Page\x20','parent-menu-id','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','page\x20create\x20does\x20not\x20accept\x20--page-type.','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','358167opKAhK','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','Created\x20Custom\x20Page\x20','warnings','Custom_page_','str','875qBhjuI','22463KrXxTs','appCode','page-content','pageName','parentMenuId','menuPath','length','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','apiError','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','pageName\x20cannot\x20exceed\x20100\x20characters.','validation','files','16972uOIyDj','write','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','compress','name','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','POST','120GbiXWu','/smartapi/webcode/page/create','2135910ruXSit','9jXuqTB','trim','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','langs','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','create','2737782Ondhgr','22280YZwypI','\x20and\x20its\x20menu\x20entry.','menuId','BLANK','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','isNaN','string','pagePattern'];a148_0x242e=function(){return _0x4fe3e4;};return a148_0x242e();}import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a148_0x37bf(_0x41cc1f,_0x3de08f){_0x41cc1f=_0x41cc1f-0x1aa;const _0x242ef9=a148_0x242e();let _0x37bf33=_0x242ef9[_0x41cc1f];return _0x37bf33;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN','en-US'];export const pageCreate={'service':'page','command':a148_0x55242a(0x1b8),'description':a148_0x55242a(0x1de),'risk':a148_0x55242a(0x1aa),'defaultOutputFormat':a148_0x55242a(0x1ac),'structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a148_0x55242a(0x1cb),'hint':a148_0x55242a(0x1ae)}],'flags':[{'name':a148_0x55242a(0x1ad),'type':a148_0x55242a(0x1c0),'description':a148_0x55242a(0x1cd)},{'name':a148_0x55242a(0x1c9),'type':'number','description':a148_0x55242a(0x1b5)},{'name':a148_0x55242a(0x1c7),'type':a148_0x55242a(0x1c0),'description':a148_0x55242a(0x1b7),'enum':[a148_0x55242a(0x1bd)]},{'name':a148_0x55242a(0x1d7),'type':'string','description':'Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0x303e7c){const _0x58a1d0=readPagePattern(_0x303e7c);await validateCustomPageContent(readInput(_0x303e7c,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x58a1d0)['files']);},async 'dryRun'(_0x4c9893){const _0xb9c35f=a148_0x55242a,{input:_0x33fd14}=await prepare(_0x4c9893);return{'method':_0xb9c35f(0x1af),'url':_0xb9c35f(0x1b1),'body':{'appCode':_0x33fd14[_0xb9c35f(0x1d6)],'pageName':_0x33fd14[_0xb9c35f(0x1d8)],..._0x33fd14['parentMenuId']!=null?{'parentMenuId':_0x33fd14[_0xb9c35f(0x1d9)]}:{},'createMenu':_0x33fd14['createMenu'],'codeContent':_0x33fd14['files']},'description':_0xb9c35f(0x1c8)+JSON[_0xb9c35f(0x1c3)](_0x33fd14[_0xb9c35f(0x1d8)])+_0xb9c35f(0x1bb)};},async 'execute'(_0x24dae0){const _0x1cafe7=a148_0x55242a,_0x197c95=await prepare(_0x24dae0),_0x4c6759=await createCustomPage(_0x197c95['input']);if(!Number['isInteger'](_0x4c6759[_0x1cafe7(0x1c6)])||_0x4c6759[_0x1cafe7(0x1c6)]<=0x0)throw CliErrors[_0x1cafe7(0x1dd)](_0x1cafe7(0x1cf));return{'ok':!![],'data':buildMutationData(_0x197c95,_0x4c6759),'message':_0x1cafe7(0x1d0)+_0x4c6759['pageId']+'.'};}};async function prepare(_0x3675e1){const _0x1b83ab=a148_0x55242a,_0x28a6cb=readPagePattern(_0x3675e1);if(_0x28a6cb===null)return{'input':readInput(_0x3675e1,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x28a6cb),'warnings':[],'pagePattern':_0x28a6cb};let _0x23c96a=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0xa4d908=[];try{const _0x1b6638=await getI18nInfo(_0x3675e1[_0x1b83ab(0x1d6)]);_0x1b6638['enableI18n']&&_0x1b6638[_0x1b83ab(0x1b6)]?.[_0x1b83ab(0x1db)]&&(_0x23c96a=_0x1b6638[_0x1b83ab(0x1b6)]);}catch{_0xa4d908=[_0x1b83ab(0x1be)];}return{'input':readInput(_0x3675e1,_0x23c96a,_0x28a6cb),'warnings':_0xa4d908,'pagePattern':_0x28a6cb};}function readPagePattern(_0x2852a1){const _0x2ac2d8=a148_0x55242a,_0x56ebf4=_0x2852a1[_0x2ac2d8(0x1d3)](_0x2ac2d8(0x1c7))[_0x2ac2d8(0x1b4)](),_0x46b5a4=_0x2852a1[_0x2ac2d8(0x1d3)]('page-content')[_0x2ac2d8(0x1b4)]()[_0x2ac2d8(0x1db)]>0x0;if(_0x56ebf4&&_0x46b5a4)throw CliErrors[_0x2ac2d8(0x1e0)](_0x2ac2d8(0x1dc));if(_0x46b5a4)return null;if(!_0x56ebf4)throw CliErrors['validation'](_0x2ac2d8(0x1ca));if(_0x56ebf4!==_0x2ac2d8(0x1bd))throw CliErrors[_0x2ac2d8(0x1e0)](_0x2ac2d8(0x1c2));return _0x56ebf4;}function readInput(_0x2ed0c8,_0x534b03=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x275be6=readPagePattern(_0x2ed0c8)){const _0x1939fb=a148_0x55242a,_0x10c998=_0x2ed0c8[_0x1939fb(0x1d3)](_0x1939fb(0x1ad))[_0x1939fb(0x1b4)]()||_0x1939fb(0x1d2)+Date['now']();if(_0x10c998['length']>0x64)throw CliErrors[_0x1939fb(0x1e0)](_0x1939fb(0x1df));const _0x2e23e0=_0x2ed0c8['num'](_0x1939fb(0x1c9),NaN),_0xd3cf5b=!Number[_0x1939fb(0x1bf)](_0x2e23e0);if(_0xd3cf5b&&(!Number['isInteger'](_0x2e23e0)||_0x2e23e0<=0x0))throw CliErrors[_0x1939fb(0x1e0)](_0x1939fb(0x1ab));return{'appCode':_0x2ed0c8[_0x1939fb(0x1d6)],'pageName':_0x10c998,..._0xd3cf5b?{'parentMenuId':_0x2e23e0}:{},'createMenu':!![],'files':_0x275be6===null?parseCustomPageContent(_0x2ed0c8[_0x1939fb(0x1d3)](_0x1939fb(0x1d7))):buildInitialFiles(_0x10c998,_0x534b03)};}function buildMutationData(_0x2d0e7e,_0x304086){const _0x5c9b24=a148_0x55242a,{input:_0x5dd20e}=_0x2d0e7e,_0x2dbad3=_0x304086&&buildCustomPageDevelopmentUrl(_0x5dd20e[_0x5c9b24(0x1d6)],_0x304086[_0x5c9b24(0x1da)]),_0x2d32c2=_0x304086&&buildCustomPageEditUrl(_0x5dd20e[_0x5c9b24(0x1d6)],_0x304086['pageId']);return{'operation':'page.create','pageType':'CUSTOM','pagePattern':_0x2d0e7e[_0x5c9b24(0x1c1)],'selector':{'appCode':_0x5dd20e[_0x5c9b24(0x1d6)],'pageName':_0x5dd20e[_0x5c9b24(0x1d8)]},'before':null,'after':{'pageId':_0x304086?.[_0x5c9b24(0x1c6)]??null,'pageName':_0x304086?.[_0x5c9b24(0x1d8)]??_0x5dd20e[_0x5c9b24(0x1d8)],'appCode':_0x304086?.['appCode']??_0x5dd20e[_0x5c9b24(0x1d6)],'version':_0x304086?.['version']??null,'menuId':_0x304086?.[_0x5c9b24(0x1bc)]??null,'menuPath':_0x304086?.['menuPath']??null,'files':_0x304086?.['files']??Object['keys'](_0x5dd20e[_0x5c9b24(0x1e1)])},'dryRun':_0x304086===undefined,'request':_0x5dd20e,..._0x2dbad3?{'pageUrl':_0x2dbad3}:{},..._0x2d32c2?{'editPageUrl':_0x2d32c2}:{},'warnings':[..._0x2d0e7e[_0x5c9b24(0x1d1)],..._0x304086&&!_0x2dbad3?[_0x5c9b24(0x1cc)]:[]]};}
@@ -1 +1 @@
1
- function a144_0x4936(){const _0x2b39e2=['page','294sSyHHQ','getHours','7022sVvxXd','getMinutes','3744044fDWgFz','padStart','number','appcode','138urjLic','cookie','custom-detail','trim','appCode','getFullYear','36818Qbclio','74824cgLvaj','48293EaJxsh','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','Retrieved\x20Custom\x20Page\x20','2124010SNHRlf','747OXmKbJ','pageCode','24269800zevnUT','read'];a144_0x4936=function(){return _0x2b39e2;};return a144_0x4936();}const a144_0x431b49=a144_0x2af8;(function(_0x65f13e,_0x5da42e){const _0xa4793e=a144_0x2af8,_0x460f07=_0x65f13e();while(!![]){try{const _0x406fe5=parseInt(_0xa4793e(0x1eb))/0x1+parseInt(_0xa4793e(0x1df))/0x2*(-parseInt(_0xa4793e(0x1e5))/0x3)+-parseInt(_0xa4793e(0x1e1))/0x4+parseInt(_0xa4793e(0x1f0))/0x5+parseInt(_0xa4793e(0x1dd))/0x6*(-parseInt(_0xa4793e(0x1ed))/0x7)+-parseInt(_0xa4793e(0x1ec))/0x8*(parseInt(_0xa4793e(0x1f1))/0x9)+parseInt(_0xa4793e(0x1f3))/0xa;if(_0x406fe5===_0x5da42e)break;else _0x460f07['push'](_0x460f07['shift']());}catch(_0x7abd4d){_0x460f07['push'](_0x460f07['shift']());}}}(a144_0x4936,0xa537d));import{getCustomPageSource}from'../../../core/api-client.js';function a144_0x2af8(_0x278a3,_0x59c6f1){_0x278a3=_0x278a3-0x1dc;const _0x49369d=a144_0x4936();let _0x2af88f=_0x49369d[_0x278a3];return _0x2af88f;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a144_0x431b49(0x1dc),'command':a144_0x431b49(0x1e7),'description':a144_0x431b49(0x1ee),'risk':a144_0x431b49(0x1f4),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x431b49(0x1e3),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xffd2a9){readCustomPageId(_0xffd2a9);},async 'execute'(_0x4e14dd){const _0x117097=a144_0x431b49,_0x34f68d=readCustomPageId(_0x4e14dd),_0x3c81e9=await getCustomPageSource(_0x34f68d),{bundle:_0x5916d3,createTime:_0x3b13e4,updateTime:_0x431577,..._0x18f6fa}=_0x3c81e9,_0x315974=_0x3c81e9['id']??_0x34f68d,_0xbb1236=_0x3c81e9[_0x117097(0x1e9)]?.['trim']()||_0x4e14dd['str'](_0x117097(0x1e4))[_0x117097(0x1e8)](),_0x5b1522=buildCustomPageRuntimeUrl(_0xbb1236,_0x3c81e9[_0x117097(0x1f2)]),_0x14dc4e=buildCustomPageEditUrl(_0xbb1236,_0x315974),_0x3df653=await resolveCustomPageDevelopmentUrl(_0xbb1236,_0x315974,_0x4e14dd[_0x117097(0x1e6)]);return{'ok':!![],'data':{..._0x18f6fa,..._0x5b1522?{'runtimePageUrl':_0x5b1522}:{},..._0x3df653?{'pageUrl':_0x3df653}:{},..._0x14dc4e?{'editPageUrl':_0x14dc4e}:{},..._0x3b13e4==null?{}:{'createTime':formatTime(_0x3b13e4)},..._0x431577==null?{}:{'updateTime':formatTime(_0x431577)}},'message':_0x117097(0x1ef)+_0x34f68d+'.'};}};function formatTime(_0x52a539){const _0x419990=a144_0x431b49,_0x5512ac=new Date(_0x52a539);if(Number['isNaN'](_0x5512ac['getTime']()))return String(_0x52a539);const _0x4ffaef=[_0x5512ac[_0x419990(0x1ea)](),String(_0x5512ac['getMonth']()+0x1)[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac['getDate']())[_0x419990(0x1e2)](0x2,'0')]['join']('-'),_0x1a818d=[String(_0x5512ac[_0x419990(0x1de)]())[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac[_0x419990(0x1e0)]())[_0x419990(0x1e2)](0x2,'0'),String(_0x5512ac['getSeconds']())['padStart'](0x2,'0')]['join'](':');return _0x4ffaef+'\x20'+_0x1a818d;}
1
+ function a149_0x2266(_0x5b32ba,_0x28d1fb){_0x5b32ba=_0x5b32ba-0x1b7;const _0x22d42a=a149_0x22d4();let _0x2266f0=_0x22d42a[_0x5b32ba];return _0x2266f0;}const a149_0x38e34a=a149_0x2266;(function(_0x3646d1,_0x3db48e){const _0x12efb6=a149_0x2266,_0xbc247e=_0x3646d1();while(!![]){try{const _0x279c47=parseInt(_0x12efb6(0x1c8))/0x1*(-parseInt(_0x12efb6(0x1c9))/0x2)+parseInt(_0x12efb6(0x1bc))/0x3+parseInt(_0x12efb6(0x1b8))/0x4+-parseInt(_0x12efb6(0x1d2))/0x5+-parseInt(_0x12efb6(0x1ba))/0x6*(-parseInt(_0x12efb6(0x1d1))/0x7)+parseInt(_0x12efb6(0x1be))/0x8+-parseInt(_0x12efb6(0x1cb))/0x9*(-parseInt(_0x12efb6(0x1c6))/0xa);if(_0x279c47===_0x3db48e)break;else _0xbc247e['push'](_0xbc247e['shift']());}catch(_0x3663bd){_0xbc247e['push'](_0xbc247e['shift']());}}}(a149_0x22d4,0x19690));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':'custom-detail','description':a149_0x38e34a(0x1c4),'risk':'read','defaultOutputFormat':a149_0x38e34a(0x1cf),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x38e34a(0x1bb),'required':!![],'description':a149_0x38e34a(0x1cd)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49bece){readCustomPageId(_0x49bece);},async 'execute'(_0x2117ee){const _0x27568f=a149_0x38e34a,_0x5e1f47=readCustomPageId(_0x2117ee),_0x42d0eb=await getCustomPageSource(_0x5e1f47),{bundle:_0x34bd0e,createTime:_0x2353b9,updateTime:_0x5a6816,..._0x3f62d6}=_0x42d0eb,_0xb611fc=_0x42d0eb['id']??_0x5e1f47,_0x3434f1=_0x42d0eb[_0x27568f(0x1d3)]?.[_0x27568f(0x1b9)]()||_0x2117ee[_0x27568f(0x1bd)](_0x27568f(0x1c0))['trim'](),_0x4cb38d=buildCustomPageRuntimeUrl(_0x3434f1,_0x42d0eb[_0x27568f(0x1c1)]),_0x372e8c=buildCustomPageEditUrl(_0x3434f1,_0xb611fc),_0x46caa5=await resolveCustomPageDevelopmentUrl(_0x3434f1,_0xb611fc,_0x2117ee[_0x27568f(0x1ce)]);return{'ok':!![],'data':{..._0x3f62d6,..._0x4cb38d?{'runtimePageUrl':_0x4cb38d}:{},..._0x46caa5?{'pageUrl':_0x46caa5}:{},..._0x372e8c?{'editPageUrl':_0x372e8c}:{},..._0x2353b9==null?{}:{'createTime':formatTime(_0x2353b9)},..._0x5a6816==null?{}:{'updateTime':formatTime(_0x5a6816)}},'message':_0x27568f(0x1c3)+_0x5e1f47+'.'};}};function a149_0x22d4(){const _0x54342c=['str','1090680PuHyIb','getMinutes','appcode','pageCode','getTime','Retrieved\x20Custom\x20Page\x20','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','isNaN','370fpovvk','padStart','7AxNeok','58390AucAcs','getFullYear','12933YsxzLX','getSeconds','Custom\x20Page\x20ID','cookie','compress','join','7ewweoc','590260rFaUxG','appCode','getHours','47108rFUrPy','trim','265332FryWba','number','542982hfwsei'];a149_0x22d4=function(){return _0x54342c;};return a149_0x22d4();}function formatTime(_0x366e91){const _0x37690b=a149_0x38e34a,_0x3a4806=new Date(_0x366e91);if(Number[_0x37690b(0x1c5)](_0x3a4806[_0x37690b(0x1c2)]()))return String(_0x366e91);const _0x160e2c=[_0x3a4806[_0x37690b(0x1ca)](),String(_0x3a4806['getMonth']()+0x1)[_0x37690b(0x1c7)](0x2,'0'),String(_0x3a4806['getDate']())[_0x37690b(0x1c7)](0x2,'0')][_0x37690b(0x1d0)]('-'),_0x5f57ec=[String(_0x3a4806[_0x37690b(0x1b7)]())[_0x37690b(0x1c7)](0x2,'0'),String(_0x3a4806[_0x37690b(0x1bf)]())['padStart'](0x2,'0'),String(_0x3a4806[_0x37690b(0x1cc)]())['padStart'](0x2,'0')][_0x37690b(0x1d0)](':');return _0x160e2c+'\x20'+_0x5f57ec;}
@@ -1 +1 @@
1
- const a145_0x4e7d52=a145_0x3aea;(function(_0x4a8027,_0x295ba4){const _0x1d2a5b=a145_0x3aea,_0x1c3e5e=_0x4a8027();while(!![]){try{const _0x2a3e38=parseInt(_0x1d2a5b(0x191))/0x1*(-parseInt(_0x1d2a5b(0x196))/0x2)+parseInt(_0x1d2a5b(0x18a))/0x3+parseInt(_0x1d2a5b(0x195))/0x4*(-parseInt(_0x1d2a5b(0x181))/0x5)+parseInt(_0x1d2a5b(0x182))/0x6*(-parseInt(_0x1d2a5b(0x185))/0x7)+-parseInt(_0x1d2a5b(0x183))/0x8*(-parseInt(_0x1d2a5b(0x18e))/0x9)+-parseInt(_0x1d2a5b(0x192))/0xa*(parseInt(_0x1d2a5b(0x18c))/0xb)+parseInt(_0x1d2a5b(0x18d))/0xc*(parseInt(_0x1d2a5b(0x194))/0xd);if(_0x2a3e38===_0x295ba4)break;else _0x1c3e5e['push'](_0x1c3e5e['shift']());}catch(_0x4bc305){_0x1c3e5e['push'](_0x1c3e5e['shift']());}}}(a145_0x2388,0x7f456));function a145_0x3aea(_0x5e4e96,_0x5229c2){_0x5e4e96=_0x5e4e96-0x17f;const _0x238833=a145_0x2388();let _0x3aeaad=_0x238833[_0x5e4e96];return _0x3aeaad;}function a145_0x2388(){const _0x44507f=['203910ynpwiq','100976aPdveM','read','98FsSARk','custom-list','react','appCode','page','1683783TNrFRa','menus','66thWhgM','12cQHELF','270baicnT','No\x20Custom\x20Pages\x20found.','label','20369wkeiWO','1434710wmkqgc','flatMap','35505379VqLMQo','436JTujxT','82MeZWLf','type','pageId','\x20Custom\x20Page(s).','length','44865CYgjvM'];a145_0x2388=function(){return _0x44507f;};return a145_0x2388();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';export const pageCustomList={'service':a145_0x4e7d52(0x189),'command':a145_0x4e7d52(0x186),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a145_0x4e7d52(0x184),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5bbef0){const _0x537264=a145_0x4e7d52,_0x5af601=(await fetchMenuSnapshot(_0x5bbef0[_0x537264(0x188)],_0x5bbef0['cookie']))[_0x537264(0x18b)][_0x537264(0x193)](_0x32260c=>{const _0x1f3280=_0x537264;if(_0x32260c[_0x1f3280(0x197)]!==_0x1f3280(0x187)||_0x32260c[_0x1f3280(0x198)]==null)return[];const _0x3b15a3=buildCustomPageDevelopmentUrl(_0x5bbef0['appCode'],_0x32260c['path']),_0x59d9f1=buildCustomPageEditUrl(_0x5bbef0[_0x1f3280(0x188)],_0x32260c['pageId']);return[{'pageId':_0x32260c[_0x1f3280(0x198)],'label':_0x32260c[_0x1f3280(0x190)],..._0x3b15a3?{'pageUrl':_0x3b15a3}:{},..._0x59d9f1?{'editPageUrl':_0x59d9f1}:{}}];});return{'ok':!![],'data':{'pages':_0x5af601},'message':_0x5af601['length']===0x0?_0x537264(0x18f):'Found\x20'+_0x5af601[_0x537264(0x180)]+_0x537264(0x17f)};}};
1
+ function a150_0x17f6(_0x20cc0c,_0x3d98fd){_0x20cc0c=_0x20cc0c-0x1ea;const _0x57c202=a150_0x57c2();let _0x17f6f5=_0x57c202[_0x20cc0c];return _0x17f6f5;}const a150_0x216475=a150_0x17f6;(function(_0x371e08,_0x2f1e78){const _0x4f4bf6=a150_0x17f6,_0x6bec33=_0x371e08();while(!![]){try{const _0x4c410a=-parseInt(_0x4f4bf6(0x1ef))/0x1+-parseInt(_0x4f4bf6(0x1fc))/0x2*(-parseInt(_0x4f4bf6(0x1ee))/0x3)+parseInt(_0x4f4bf6(0x1f8))/0x4+-parseInt(_0x4f4bf6(0x1f9))/0x5*(-parseInt(_0x4f4bf6(0x1ec))/0x6)+parseInt(_0x4f4bf6(0x1f7))/0x7+-parseInt(_0x4f4bf6(0x1f1))/0x8+parseInt(_0x4f4bf6(0x1ed))/0x9*(-parseInt(_0x4f4bf6(0x1f2))/0xa);if(_0x4c410a===_0x2f1e78)break;else _0x6bec33['push'](_0x6bec33['shift']());}catch(_0x5bdadc){_0x6bec33['push'](_0x6bec33['shift']());}}}(a150_0x57c2,0x6f833));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a150_0x57c2(){const _0xad3ba8=['144gXhzaR','3owEdIb','676203cpZyWX','appCode','1744504cTGtpz','831730JTUFhs','label','type','cookie','length','1450666ObVqRb','3254692huOvWJ','1957940bpaNLk','pageId','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','1755404vTfJDW','path','compress','read','react','page','12HtIWuW'];a150_0x57c2=function(){return _0xad3ba8;};return a150_0x57c2();}export const pageCustomList={'service':a150_0x216475(0x1eb),'command':'custom-list','description':a150_0x216475(0x1fb),'risk':a150_0x216475(0x1ff),'defaultOutputFormat':a150_0x216475(0x1fe),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x436395){const _0x16afde=a150_0x216475,_0x385c23=(await fetchMenuSnapshot(_0x436395[_0x16afde(0x1f0)],_0x436395[_0x16afde(0x1f5)]))['menus']['flatMap'](_0x143a94=>{const _0x4c5a48=_0x16afde;if(_0x143a94[_0x4c5a48(0x1f4)]!==_0x4c5a48(0x1ea)||_0x143a94[_0x4c5a48(0x1fa)]==null)return[];const _0x3c31e4=buildCustomPageDevelopmentUrl(_0x436395[_0x4c5a48(0x1f0)],_0x143a94[_0x4c5a48(0x1fd)]),_0xf6aaf=buildCustomPageEditUrl(_0x436395[_0x4c5a48(0x1f0)],_0x143a94[_0x4c5a48(0x1fa)]);return[{'pageId':_0x143a94[_0x4c5a48(0x1fa)],'label':_0x143a94[_0x4c5a48(0x1f3)],..._0x3c31e4?{'pageUrl':_0x3c31e4}:{},..._0xf6aaf?{'editPageUrl':_0xf6aaf}:{}}];});return{'ok':!![],'data':{'pages':_0x385c23},'message':_0x385c23[_0x16afde(0x1f6)]===0x0?'No\x20Custom\x20Pages\x20found.':'Found\x20'+_0x385c23[_0x16afde(0x1f6)]+'\x20Custom\x20Page(s).'};}};
@@ -1 +1 @@
1
- const a146_0x8cfbde=a146_0x343a;(function(_0x85628,_0x7e7c14){const _0x2aa027=a146_0x343a,_0x48dd09=_0x85628();while(!![]){try{const _0x34877d=-parseInt(_0x2aa027(0x181))/0x1+-parseInt(_0x2aa027(0x17a))/0x2*(parseInt(_0x2aa027(0x199))/0x3)+-parseInt(_0x2aa027(0x17d))/0x4*(parseInt(_0x2aa027(0x176))/0x5)+parseInt(_0x2aa027(0x18d))/0x6*(parseInt(_0x2aa027(0x17e))/0x7)+-parseInt(_0x2aa027(0x19b))/0x8+-parseInt(_0x2aa027(0x17f))/0x9+parseInt(_0x2aa027(0x195))/0xa*(parseInt(_0x2aa027(0x197))/0xb);if(_0x34877d===_0x7e7c14)break;else _0x48dd09['push'](_0x48dd09['shift']());}catch(_0x4659a7){_0x48dd09['push'](_0x48dd09['shift']());}}}(a146_0x2c4f,0xaabc6));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a146_0x8cfbde(0x188),'command':a146_0x8cfbde(0x18b),'description':a146_0x8cfbde(0x186),'risk':'write','defaultOutputFormat':a146_0x8cfbde(0x177),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a146_0x8cfbde(0x17c)},{'name':a146_0x8cfbde(0x190),'type':a146_0x8cfbde(0x184),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x2e0c8e){readCustomPageId(_0x2e0c8e);},async 'dryRun'(_0x53e6cf){const _0x336ec7=a146_0x8cfbde,_0x40d081=readInput(_0x53e6cf);return{'method':_0x336ec7(0x19a),'url':_0x336ec7(0x19d),'body':{'id':_0x40d081[_0x336ec7(0x179)],..._0x40d081[_0x336ec7(0x190)]?{'remark':_0x40d081[_0x336ec7(0x190)]}:{}},'description':_0x336ec7(0x193)+_0x40d081['pageId']+'.'};},async 'execute'(_0x8c689f){const _0x12057e=a146_0x8cfbde,_0x364d7b=readInput(_0x8c689f);await getCustomPageSource(_0x364d7b['pageId']);const _0x5b6f6d=await publishCustomPage(_0x364d7b);if(!Number[_0x12057e(0x180)](_0x5b6f6d)||_0x5b6f6d!==_0x364d7b[_0x12057e(0x179)])throw CliErrors[_0x12057e(0x187)](_0x12057e(0x191));const _0x22661a=await getCustomPageSource(_0x364d7b[_0x12057e(0x179)]);if(_0x22661a[_0x12057e(0x196)]!=='FORMAL')throw CliErrors['apiError'](_0x12057e(0x18c)+(_0x22661a[_0x12057e(0x196)]??_0x12057e(0x185))+'.');const _0x58f999=_0x22661a[_0x12057e(0x18f)]?.[_0x12057e(0x183)](),_0x4f1133=buildCustomPageEditUrl(_0x58f999,_0x364d7b[_0x12057e(0x179)]),_0x584a7a=await resolveCustomPageDevelopmentUrl(_0x58f999,_0x364d7b[_0x12057e(0x179)],_0x8c689f[_0x12057e(0x178)]),_0x330930=buildMutationData(_0x364d7b,!![],_0x584a7a,_0x4f1133);_0x58f999&&!_0x584a7a&&_0x330930['warnings']['push'](_0x12057e(0x182));const _0xe6a9c7=buildCustomPageRuntimeUrl(_0x22661a['appCode'],_0x22661a[_0x12057e(0x192)]);return _0xe6a9c7?_0x330930[_0x12057e(0x18e)]=_0xe6a9c7:_0x330930[_0x12057e(0x194)][_0x12057e(0x18a)](_0x12057e(0x189)),{'ok':!![],'data':_0x330930,'message':'Published\x20Custom\x20Page\x20'+_0x364d7b[_0x12057e(0x179)]+'.'};}};function a146_0x343a(_0x4c7c6a,_0x263b7e){_0x4c7c6a=_0x4c7c6a-0x176;const _0x2c4fe8=a146_0x2c4f();let _0x343a44=_0x2c4fe8[_0x4c7c6a];return _0x343a44;}function readInput(_0x2badae){const _0x5be732=a146_0x8cfbde,_0x3aab0e=readCustomPageId(_0x2badae),_0xdd3ed=_0x2badae[_0x5be732(0x17b)](_0x5be732(0x190))[_0x5be732(0x183)]();return{'pageId':_0x3aab0e,..._0xdd3ed?{'remark':_0xdd3ed}:{}};}function a146_0x2c4f(){const _0x35e25e=['apiError','page','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','push','custom-publish','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','84qqURDo','runtimePageUrl','appCode','remark','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','pageCode','Would\x20publish\x20Custom\x20Page\x20','warnings','58270UdCwgK','status','6809JgYZuu','FORMAL','567612yuLyzX','POST','409072VxDxMe','page.custom-publish','/smartapi/webcode/file/publish','8290vyLQYl','compress','cookie','pageId','4RXzlUV','str','Custom\x20Page\x20ID','2984QZuvpm','76727LVYSxP','4209075rtdLcw','isInteger','926948ZwORwV','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','trim','string','unknown','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a146_0x2c4f=function(){return _0x35e25e;};return a146_0x2c4f();}function buildMutationData(_0xe4dcd2,_0x511b87=![],_0x1754a9,_0x4238a9){const _0xf00a6a=a146_0x8cfbde;return{'operation':_0xf00a6a(0x19c),'selector':{'pageId':_0xe4dcd2['pageId']},'before':null,'after':{'pageId':_0xe4dcd2['pageId'],'status':_0xf00a6a(0x198)},'dryRun':!_0x511b87,'request':_0xe4dcd2,..._0x1754a9?{'pageUrl':_0x1754a9}:{},..._0x4238a9?{'editPageUrl':_0x4238a9}:{},'warnings':[]};}
1
+ const a151_0x34cdbf=a151_0x82e0;(function(_0x1e9bc1,_0x149209){const _0x1f61e5=a151_0x82e0,_0x204b6c=_0x1e9bc1();while(!![]){try{const _0x1f5860=-parseInt(_0x1f61e5(0x1cc))/0x1+parseInt(_0x1f61e5(0x1cf))/0x2+-parseInt(_0x1f61e5(0x1d4))/0x3+parseInt(_0x1f61e5(0x1c3))/0x4*(parseInt(_0x1f61e5(0x1bf))/0x5)+parseInt(_0x1f61e5(0x1c2))/0x6*(parseInt(_0x1f61e5(0x1cb))/0x7)+-parseInt(_0x1f61e5(0x1be))/0x8+-parseInt(_0x1f61e5(0x1cd))/0x9*(-parseInt(_0x1f61e5(0x1c6))/0xa);if(_0x1f5860===_0x149209)break;else _0x204b6c['push'](_0x204b6c['shift']());}catch(_0x4cbf3a){_0x204b6c['push'](_0x204b6c['shift']());}}}(a151_0x36ec,0x7a029));function a151_0x82e0(_0x2a9313,_0xff7186){_0x2a9313=_0x2a9313-0x1b7;const _0x36ec7f=a151_0x36ec();let _0x82e0f5=_0x36ec7f[_0x2a9313];return _0x82e0f5;}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a151_0x36ec(){const _0x85a643=['page','/smartapi/webcode/file/publish','appCode','pageId','Custom\x20Page\x20ID','status','string','page.custom-publish','runtimePageUrl','number','17856iImvBw','65915YjsEtX','unknown','remark','142440AjORfe','20deHidw','apiError','POST','375320gozdNG','warnings','compress','Optional\x20publish\x20remark','cookie','70QoyZbo','701543FqhwNM','243RnJXNb','pageCode','1299344IZCYJE','FORMAL','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','push','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','2288469JKoYyH','trim','Would\x20publish\x20Custom\x20Page\x20'];a151_0x36ec=function(){return _0x85a643;};return a151_0x36ec();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a151_0x34cdbf(0x1d7),'command':'custom-publish','description':a151_0x34cdbf(0x1d1),'risk':'write','defaultOutputFormat':a151_0x34cdbf(0x1c8),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a151_0x34cdbf(0x1bd),'required':!![],'description':a151_0x34cdbf(0x1b8)},{'name':a151_0x34cdbf(0x1c1),'type':a151_0x34cdbf(0x1ba),'description':a151_0x34cdbf(0x1c9)}],async 'validate'(_0x41e4c0){readCustomPageId(_0x41e4c0);},async 'dryRun'(_0x5d6b85){const _0x1b6baf=a151_0x34cdbf,_0xa0f976=readInput(_0x5d6b85);return{'method':_0x1b6baf(0x1c5),'url':_0x1b6baf(0x1d8),'body':{'id':_0xa0f976['pageId'],..._0xa0f976[_0x1b6baf(0x1c1)]?{'remark':_0xa0f976[_0x1b6baf(0x1c1)]}:{}},'description':_0x1b6baf(0x1d6)+_0xa0f976[_0x1b6baf(0x1b7)]+'.'};},async 'execute'(_0x3bf68c){const _0x103778=a151_0x34cdbf,_0xf09ea2=readInput(_0x3bf68c);await getCustomPageSource(_0xf09ea2[_0x103778(0x1b7)]);const _0x2c3ac5=await publishCustomPage(_0xf09ea2);if(!Number['isInteger'](_0x2c3ac5)||_0x2c3ac5!==_0xf09ea2[_0x103778(0x1b7)])throw CliErrors[_0x103778(0x1c4)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x5c321c=await getCustomPageSource(_0xf09ea2[_0x103778(0x1b7)]);if(_0x5c321c[_0x103778(0x1b9)]!==_0x103778(0x1d0))throw CliErrors[_0x103778(0x1c4)]('Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20'+(_0x5c321c['status']??_0x103778(0x1c0))+'.');const _0x3280d1=_0x5c321c[_0x103778(0x1d9)]?.[_0x103778(0x1d5)](),_0x318860=buildCustomPageEditUrl(_0x3280d1,_0xf09ea2[_0x103778(0x1b7)]),_0x6d27e3=await resolveCustomPageDevelopmentUrl(_0x3280d1,_0xf09ea2['pageId'],_0x3bf68c[_0x103778(0x1ca)]),_0xd6c4f6=buildMutationData(_0xf09ea2,!![],_0x6d27e3,_0x318860);_0x3280d1&&!_0x6d27e3&&_0xd6c4f6['warnings'][_0x103778(0x1d2)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x3dae90=buildCustomPageRuntimeUrl(_0x5c321c[_0x103778(0x1d9)],_0x5c321c[_0x103778(0x1ce)]);return _0x3dae90?_0xd6c4f6[_0x103778(0x1bc)]=_0x3dae90:_0xd6c4f6[_0x103778(0x1c7)][_0x103778(0x1d2)](_0x103778(0x1d3)),{'ok':!![],'data':_0xd6c4f6,'message':'Published\x20Custom\x20Page\x20'+_0xf09ea2[_0x103778(0x1b7)]+'.'};}};function readInput(_0x5f068b){const _0x5de65a=a151_0x34cdbf,_0x2e06f1=readCustomPageId(_0x5f068b),_0x23efa3=_0x5f068b['str'](_0x5de65a(0x1c1))[_0x5de65a(0x1d5)]();return{'pageId':_0x2e06f1,..._0x23efa3?{'remark':_0x23efa3}:{}};}function buildMutationData(_0x1ea6f1,_0x796378=![],_0x216fa0,_0x234c78){const _0x1e5e41=a151_0x34cdbf;return{'operation':_0x1e5e41(0x1bb),'selector':{'pageId':_0x1ea6f1['pageId']},'before':null,'after':{'pageId':_0x1ea6f1[_0x1e5e41(0x1b7)],'status':_0x1e5e41(0x1d0)},'dryRun':!_0x796378,'request':_0x1ea6f1,..._0x216fa0?{'pageUrl':_0x216fa0}:{},..._0x234c78?{'editPageUrl':_0x234c78}:{},'warnings':[]};}
@@ -1 +1 @@
1
- (function(_0x1a1826,_0x2cc655){const _0x2208a1=a147_0xe4c1,_0x1a7c10=_0x1a1826();while(!![]){try{const _0x58cffb=-parseInt(_0x2208a1(0x77))/0x1+-parseInt(_0x2208a1(0x76))/0x2+parseInt(_0x2208a1(0x91))/0x3+parseInt(_0x2208a1(0x93))/0x4*(-parseInt(_0x2208a1(0x7d))/0x5)+-parseInt(_0x2208a1(0x88))/0x6*(parseInt(_0x2208a1(0x7a))/0x7)+-parseInt(_0x2208a1(0x79))/0x8*(parseInt(_0x2208a1(0x90))/0x9)+parseInt(_0x2208a1(0x73))/0xa*(parseInt(_0x2208a1(0x7f))/0xb);if(_0x58cffb===_0x2cc655)break;else _0x1a7c10['push'](_0x1a7c10['shift']());}catch(_0xbf8146){_0x1a7c10['push'](_0x1a7c10['shift']());}}}(a147_0x13c9,0x699df));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';function a147_0x13c9(){const _0x41da06=['type','string','object','page-content','Invalid\x20Custom\x20Page\x20content:\x20','map','/ide/','2471772irMyOz','message','isInteger','values','validation','num','--id\x20must\x20be\x20a\x20positive\x20integer.','menus','9QEpdpJ','1598064lvADFI','length','2345788GYvSTl','some','isArray','file','/pages/','85970BybsHI','path','flagMissing','997426gQBJWg','852555oIUQJB','parse','6011608eTrQHp','14gBxOZB','trim','--page-content\x20must\x20be\x20valid\x20JSON.','5KbfJsK','join','4367oyYRSg','find'];a147_0x13c9=function(){return _0x41da06;};return a147_0x13c9();}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x2da7aa){const _0x3cea8b=a147_0xe4c1;return _0x2da7aa?.[_0x3cea8b(0x7b)]()||undefined;}function a147_0xe4c1(_0x28330a,_0x51ba62){_0x28330a=_0x28330a-0x70;const _0x13c96a=a147_0x13c9();let _0xe4c1ee=_0x13c96a[_0x28330a];return _0xe4c1ee;}export function buildCustomPageRuntimeUrl(_0x32da56,_0x37ffda){const _0x1bd008=trimOptional(_0x32da56),_0xfff6ee=trimOptional(_0x37ffda);if(!_0x1bd008||!_0xfff6ee)return undefined;return getPublishedAppDomain(_0x1bd008)+'/'+encodeURIComponent(_0xfff6ee);}export function buildCustomPageDevelopmentUrl(_0x143c4e,_0x10104e){const _0x8debfa=a147_0xe4c1,_0x231eef=trimOptional(_0x143c4e),_0x49c1d4=trimOptional(_0x10104e);if(!_0x231eef||!_0x49c1d4)return undefined;return getAppBaseUrl(_0x231eef)+_0x8debfa(0x72)+encodeURIComponent(_0x49c1d4);}export async function resolveCustomPageDevelopmentUrl(_0x47d44b,_0xb06ff0,_0x2f407f){const _0x2e6bde=a147_0xe4c1,_0x44f8b7=trimOptional(_0x47d44b);if(!_0x44f8b7)return undefined;try{const _0x27bf8f=(await fetchMenuSnapshot(_0x44f8b7,_0x2f407f))[_0x2e6bde(0x8f)][_0x2e6bde(0x80)](_0x125d45=>_0x125d45[_0x2e6bde(0x81)]==='react'&&_0x125d45['pageId']===_0xb06ff0);return buildCustomPageDevelopmentUrl(_0x44f8b7,_0x27bf8f?.[_0x2e6bde(0x74)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x3ee804,_0x245585){const _0x23c7bb=a147_0xe4c1,_0xe60704=trimOptional(_0x3ee804);if(!_0xe60704)return;const _0x482909=trimOptional(_0x245585==null?undefined:String(_0x245585));if(!_0x482909)return;return getAppBaseUrl(_0xe60704)+_0x23c7bb(0x87)+encodeURIComponent(_0x482909);}export function parseCustomPageContent(_0x21546d){const _0x358093=a147_0xe4c1;if(!_0x21546d[_0x358093(0x7b)]())throw CliErrors[_0x358093(0x75)](_0x358093(0x84));let _0x50975e;try{_0x50975e=JSON[_0x358093(0x78)](_0x21546d);}catch{throw CliErrors[_0x358093(0x8c)](_0x358093(0x7c));}if(typeof _0x50975e!==_0x358093(0x83)||_0x50975e===null||Array[_0x358093(0x70)](_0x50975e)||Object[_0x358093(0x8b)](_0x50975e)[_0x358093(0x94)](_0x15cf57=>typeof _0x15cf57!==_0x358093(0x82)))throw CliErrors[_0x358093(0x8c)]('--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.');return _0x50975e;}export async function validateCustomPageContent(_0x2663c3){const _0x51c43b=a147_0xe4c1,_0x18269a=await validateCustomPageSourceFiles(_0x2663c3);if(_0x18269a[_0x51c43b(0x92)]>0x0)throw CliErrors[_0x51c43b(0x8c)](_0x51c43b(0x85)+_0x18269a[_0x51c43b(0x86)](_0x143950=>_0x143950[_0x51c43b(0x71)]+':\x20'+_0x143950[_0x51c43b(0x89)])[_0x51c43b(0x7e)](';\x20'));}export function readCustomPageId(_0x5c2c04){const _0x464c12=a147_0xe4c1,_0x4e081d=_0x5c2c04[_0x464c12(0x8d)]('id');if(!Number[_0x464c12(0x8a)](_0x4e081d)||_0x4e081d<=0x0)throw CliErrors[_0x464c12(0x8c)](_0x464c12(0x8e));return _0x4e081d;}
1
+ const a152_0x299e47=a152_0x54e0;(function(_0x18e6d9,_0x34eec2){const _0x52ade9=a152_0x54e0,_0x2c6280=_0x18e6d9();while(!![]){try{const _0x36302d=-parseInt(_0x52ade9(0x13a))/0x1*(-parseInt(_0x52ade9(0x124))/0x2)+-parseInt(_0x52ade9(0x12a))/0x3*(parseInt(_0x52ade9(0x125))/0x4)+-parseInt(_0x52ade9(0x12c))/0x5*(-parseInt(_0x52ade9(0x12b))/0x6)+-parseInt(_0x52ade9(0x12d))/0x7*(parseInt(_0x52ade9(0x12f))/0x8)+-parseInt(_0x52ade9(0x139))/0x9+-parseInt(_0x52ade9(0x135))/0xa*(parseInt(_0x52ade9(0x148))/0xb)+parseInt(_0x52ade9(0x132))/0xc;if(_0x36302d===_0x34eec2)break;else _0x2c6280['push'](_0x2c6280['shift']());}catch(_0x20b844){_0x2c6280['push'](_0x2c6280['shift']());}}}(a152_0x3788,0x42320));function a152_0x54e0(_0x2083ce,_0x2ef18e){_0x2083ce=_0x2083ce-0x123;const _0x3788ac=a152_0x3788();let _0x54e083=_0x3788ac[_0x2083ce];return _0x54e083;}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':a152_0x299e47(0x136)};function trimOptional(_0x35b492){const _0x2c69e3=a152_0x299e47;return _0x35b492?.[_0x2c69e3(0x13c)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x1fab1a,_0x2a431a){const _0x3e541d=trimOptional(_0x1fab1a),_0x194ff2=trimOptional(_0x2a431a);if(!_0x3e541d||!_0x194ff2)return undefined;return getPublishedAppDomain(_0x3e541d)+'/'+encodeURIComponent(_0x194ff2);}export function buildCustomPageDevelopmentUrl(_0xc31cc8,_0x138960){const _0x39d4c7=a152_0x299e47,_0x1e25b9=trimOptional(_0xc31cc8),_0x462157=trimOptional(_0x138960);if(!_0x1e25b9||!_0x462157)return undefined;return getAppBaseUrl(_0x1e25b9)+_0x39d4c7(0x12e)+encodeURIComponent(_0x462157);}export async function resolveCustomPageDevelopmentUrl(_0xdb070c,_0x3d4f1d,_0x4cb4d4){const _0x23167c=a152_0x299e47,_0x31bd19=trimOptional(_0xdb070c);if(!_0x31bd19)return undefined;try{const _0x3ba66f=(await fetchMenuSnapshot(_0x31bd19,_0x4cb4d4))['menus'][_0x23167c(0x142)](_0x41e9ff=>_0x41e9ff[_0x23167c(0x13d)]===_0x23167c(0x138)&&_0x41e9ff[_0x23167c(0x146)]===_0x3d4f1d);return buildCustomPageDevelopmentUrl(_0x31bd19,_0x3ba66f?.[_0x23167c(0x126)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x3b980d,_0x1d14fd){const _0x1a3b93=a152_0x299e47,_0x1f85f4=trimOptional(_0x3b980d);if(!_0x1f85f4)return;const _0x46cc28=trimOptional(_0x1d14fd==null?undefined:String(_0x1d14fd));if(!_0x46cc28)return;return getAppBaseUrl(_0x1f85f4)+_0x1a3b93(0x13b)+encodeURIComponent(_0x46cc28);}export function parseCustomPageContent(_0x33e9e4){const _0x53fb54=a152_0x299e47;if(!_0x33e9e4[_0x53fb54(0x13c)]())throw CliErrors[_0x53fb54(0x128)](_0x53fb54(0x134));let _0x3dcd40;try{_0x3dcd40=JSON[_0x53fb54(0x141)](_0x33e9e4);}catch{throw CliErrors[_0x53fb54(0x143)](_0x53fb54(0x140));}if(typeof _0x3dcd40!=='object'||_0x3dcd40===null||Array[_0x53fb54(0x129)](_0x3dcd40)||Object[_0x53fb54(0x131)](_0x3dcd40)['some'](_0x18191d=>typeof _0x18191d!==_0x53fb54(0x147)))throw CliErrors[_0x53fb54(0x143)](_0x53fb54(0x13e));return _0x3dcd40;}function a152_0x3788(){const _0x3276fb=['--id\x20must\x20be\x20a\x20positive\x20integer.','flagMissing','isArray','140691DrdxwK','812358FHYsji','5YjQXjs','2002kZoWSW','/pages/','1272xiXIbn','length','values','2967336JlWRHr','join','page-content','132330pLYfIu','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','map','react','3048624QrrNKY','172689JigwvX','/ide/','trim','type','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','message','--page-content\x20must\x20be\x20valid\x20JSON.','parse','find','validation','isInteger','file','pageId','string','165CUJqht','num','6dJCFhB','4CZSScH','path'];a152_0x3788=function(){return _0x3276fb;};return a152_0x3788();}export async function validateCustomPageContent(_0x55a9ed){const _0x2c91c9=a152_0x299e47,_0x2b0be8=await validateCustomPageSourceFiles(_0x55a9ed);if(_0x2b0be8[_0x2c91c9(0x130)]>0x0)throw CliErrors[_0x2c91c9(0x143)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x2b0be8[_0x2c91c9(0x137)](_0x3272dc=>_0x3272dc[_0x2c91c9(0x145)]+':\x20'+_0x3272dc[_0x2c91c9(0x13f)])[_0x2c91c9(0x133)](';\x20'));}export function readCustomPageId(_0x206fb8){const _0x5899aa=a152_0x299e47,_0x348061=_0x206fb8[_0x5899aa(0x123)]('id');if(!Number[_0x5899aa(0x144)](_0x348061)||_0x348061<=0x0)throw CliErrors[_0x5899aa(0x143)](_0x5899aa(0x127));return _0x348061;}
@@ -1 +1 @@
1
- const a148_0x885996=a148_0x15bb;(function(_0x103dc1,_0x382546){const _0x3b3156=a148_0x15bb,_0x26b22f=_0x103dc1();while(!![]){try{const _0x5c6a7d=-parseInt(_0x3b3156(0x10c))/0x1*(-parseInt(_0x3b3156(0x10b))/0x2)+-parseInt(_0x3b3156(0x104))/0x3+-parseInt(_0x3b3156(0x10e))/0x4+-parseInt(_0x3b3156(0x108))/0x5+-parseInt(_0x3b3156(0x107))/0x6+parseInt(_0x3b3156(0x10f))/0x7+parseInt(_0x3b3156(0x111))/0x8;if(_0x5c6a7d===_0x382546)break;else _0x26b22f['push'](_0x26b22f['shift']());}catch(_0x59e06c){_0x26b22f['push'](_0x26b22f['shift']());}}}(a148_0x336b,0xcc338));function a148_0x336b(){const _0x2bfcd3=['4979852sedZBg','3479553WzhvzA','babel','25069864BfDiem','toLowerCase','some','trim','filter','page-content','.jsx','message','.tsx','1322760mlydIx','entries','find','7584378eaXTEc','4926925ygGcxb','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','typescript','2qfSloZ','1140927mKgijm','all'];a148_0x336b=function(){return _0x2bfcd3;};return a148_0x336b();}import{format}from'prettier';function a148_0x15bb(_0x1d1266,_0x4cf0d0){_0x1d1266=_0x1d1266-0xfd;const _0x336bcd=a148_0x336b();let _0x15bb55=_0x336bcd[_0x1d1266];return _0x15bb55;}const SOURCE_PARSERS={'.js':'babel','.jsx':a148_0x885996(0x110),'.ts':'typescript','.tsx':a148_0x885996(0x10a)},CUSTOM_PAGE_EXTENSIONS=[a148_0x885996(0x101),a148_0x885996(0x103)];export async function validateCustomPageSourceFiles(_0x3436fe){const _0x9ad6fa=a148_0x885996,_0x51eea5=Object[_0x9ad6fa(0x105)](_0x3436fe)[_0x9ad6fa(0xff)](([_0x376967])=>getParser(_0x376967));if(!_0x51eea5['some'](([_0x5df294])=>isReactSourceFile(_0x5df294)))return[{'file':_0x9ad6fa(0x100),'message':_0x9ad6fa(0x109)}];const _0x3d2e8d=await Promise[_0x9ad6fa(0x10d)](_0x51eea5['map'](async([_0x2cbd2a,_0x44cacf])=>{const _0x5b5f53=_0x9ad6fa;try{return await format(_0x44cacf,{'parser':getParser(_0x2cbd2a)}),undefined;}catch(_0x4655e6){return{'file':_0x2cbd2a,'message':_0x4655e6 instanceof Error?_0x4655e6[_0x5b5f53(0x102)]:String(_0x4655e6)};}}));return _0x3d2e8d[_0x9ad6fa(0xff)](_0x5dcb2b=>_0x5dcb2b!==undefined);}function getParser(_0x403d45){const _0x1bd941=a148_0x885996,_0x2c6366=_0x403d45[_0x1bd941(0xfe)]()[_0x1bd941(0x112)]();return Object[_0x1bd941(0x105)](SOURCE_PARSERS)[_0x1bd941(0x106)](([_0x84e068])=>_0x2c6366['endsWith'](_0x84e068))?.[0x1];}function isReactSourceFile(_0x3aef3e){const _0x513773=a148_0x885996,_0x407fd0=_0x3aef3e[_0x513773(0xfe)]()[_0x513773(0x112)]();return CUSTOM_PAGE_EXTENSIONS[_0x513773(0xfd)](_0x381cf9=>_0x407fd0['endsWith'](_0x381cf9));}
1
+ const a153_0x2611c7=a153_0x5bb4;(function(_0x59f223,_0x341550){const _0x2a36ce=a153_0x5bb4,_0x152356=_0x59f223();while(!![]){try{const _0x31df51=parseInt(_0x2a36ce(0xac))/0x1+-parseInt(_0x2a36ce(0xa4))/0x2+-parseInt(_0x2a36ce(0xa6))/0x3+parseInt(_0x2a36ce(0x98))/0x4*(parseInt(_0x2a36ce(0xa5))/0x5)+parseInt(_0x2a36ce(0xa8))/0x6*(parseInt(_0x2a36ce(0xa2))/0x7)+parseInt(_0x2a36ce(0xa0))/0x8*(parseInt(_0x2a36ce(0xa3))/0x9)+-parseInt(_0x2a36ce(0x97))/0xa;if(_0x31df51===_0x341550)break;else _0x152356['push'](_0x152356['shift']());}catch(_0x3b5095){_0x152356['push'](_0x152356['shift']());}}}(a153_0x3819,0x42bf8));import{format}from'prettier';const SOURCE_PARSERS={'.js':a153_0x2611c7(0xa9),'.jsx':a153_0x2611c7(0xa9),'.ts':'typescript','.tsx':a153_0x2611c7(0x9e)},CUSTOM_PAGE_EXTENSIONS=[a153_0x2611c7(0x9c),a153_0x2611c7(0x9d)];function a153_0x3819(){const _0x4b78ec=['page-content','.jsx','.tsx','typescript','map','615768kgCPHf','some','2987908xWVndi','63gvRGBv','800910JjzISi','5QCAbZm','765726veOJnP','message','6UCbAmO','babel','find','entries','328843DDvAEI','endsWith','filter','6719650MLiYjd','1226312AIJNaU','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','toLowerCase'];a153_0x3819=function(){return _0x4b78ec;};return a153_0x3819();}function a153_0x5bb4(_0x377f95,_0x417003){_0x377f95=_0x377f95-0x97;const _0x3819ce=a153_0x3819();let _0x5bb4a6=_0x3819ce[_0x377f95];return _0x5bb4a6;}export async function validateCustomPageSourceFiles(_0x184943){const _0x42edfb=a153_0x2611c7,_0x168c03=Object[_0x42edfb(0xab)](_0x184943)[_0x42edfb(0xae)](([_0x2ca4f3])=>getParser(_0x2ca4f3));if(!_0x168c03[_0x42edfb(0xa1)](([_0x3f6af8])=>isReactSourceFile(_0x3f6af8)))return[{'file':_0x42edfb(0x9b),'message':_0x42edfb(0x99)}];const _0x3f488f=await Promise['all'](_0x168c03[_0x42edfb(0x9f)](async([_0x43a005,_0x528bcf])=>{const _0x4cbd38=_0x42edfb;try{return await format(_0x528bcf,{'parser':getParser(_0x43a005)}),undefined;}catch(_0x1418e1){return{'file':_0x43a005,'message':_0x1418e1 instanceof Error?_0x1418e1[_0x4cbd38(0xa7)]:String(_0x1418e1)};}}));return _0x3f488f[_0x42edfb(0xae)](_0x2ec9de=>_0x2ec9de!==undefined);}function getParser(_0x54432c){const _0xf9c37d=a153_0x2611c7,_0xde896c=_0x54432c['trim']()[_0xf9c37d(0x9a)]();return Object[_0xf9c37d(0xab)](SOURCE_PARSERS)[_0xf9c37d(0xaa)](([_0x103da2])=>_0xde896c[_0xf9c37d(0xad)](_0x103da2))?.[0x1];}function isReactSourceFile(_0x780cb5){const _0x8a1439=a153_0x2611c7,_0x34ca1f=_0x780cb5['trim']()[_0x8a1439(0x9a)]();return CUSTOM_PAGE_EXTENSIONS[_0x8a1439(0xa1)](_0x3988d0=>_0x34ca1f[_0x8a1439(0xad)](_0x3988d0));}