@treasuredata/tdx 2026.4.11 → 2026.4.13

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 (232) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.d.ts +1 -0
  68. package/dist/core/profile.d.ts.map +1 -1
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/profile.js.map +1 -1
  71. package/dist/core/project-config.js +1 -1
  72. package/dist/core/session.js +1 -1
  73. package/dist/core/user-cache.js +1 -1
  74. package/dist/core/version.js +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/mcp/server.js +1 -1
  77. package/dist/mcp/tools/index.js +1 -1
  78. package/dist/mcp/tools/tdx-run.js +1 -1
  79. package/dist/mcp/tools/tdx-search.js +1 -1
  80. package/dist/mcp/tools/work-create-item.js +1 -1
  81. package/dist/mcp/utils.js +1 -1
  82. package/dist/proxy/claude-usage-tracker.js +1 -1
  83. package/dist/proxy/passthrough-server.js +1 -1
  84. package/dist/proxy/sse-usage-parser.js +1 -1
  85. package/dist/sdk/agent/agent-config.js +1 -1
  86. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  87. package/dist/sdk/agent/agent-yaml.js +1 -1
  88. package/dist/sdk/agent/test/evaluator.js +1 -1
  89. package/dist/sdk/agent/test/executor.js +1 -1
  90. package/dist/sdk/agent/test/index.js +1 -1
  91. package/dist/sdk/agent/test/output.js +1 -1
  92. package/dist/sdk/agent/test/parser.js +1 -1
  93. package/dist/sdk/agent/tool-target-registry.js +1 -1
  94. package/dist/sdk/api.js +1 -1
  95. package/dist/sdk/cas/cas-api-client.js +1 -1
  96. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  97. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  98. package/dist/sdk/cas/index.js +1 -1
  99. package/dist/sdk/cas/pull-workflow.js +1 -1
  100. package/dist/sdk/cas/push-workflow.js +1 -1
  101. package/dist/sdk/client/cdp-api-client.js +1 -1
  102. package/dist/sdk/client/delivery-api-client.js +1 -1
  103. package/dist/sdk/client/endpoints.js +1 -1
  104. package/dist/sdk/client/engage-api-client.js +1 -1
  105. package/dist/sdk/client/http-client.js +1 -1
  106. package/dist/sdk/client/llm-api-client.js +1 -1
  107. package/dist/sdk/client/oauth-refresh.js +1 -1
  108. package/dist/sdk/client/rate-limiter.js +1 -1
  109. package/dist/sdk/client/td-api-client.js +1 -1
  110. package/dist/sdk/client/trino-api-client.js +1 -1
  111. package/dist/sdk/client/workflow-client.js +1 -1
  112. package/dist/sdk/connection-validator.js +1 -1
  113. package/dist/sdk/connection.js +1 -1
  114. package/dist/sdk/delivery.js +1 -1
  115. package/dist/sdk/engage/campaign-pull.js +1 -1
  116. package/dist/sdk/engage/campaign-push.js +1 -1
  117. package/dist/sdk/engage/campaign-validator.js +1 -1
  118. package/dist/sdk/engage/campaign-yaml.js +1 -1
  119. package/dist/sdk/engage/template-pull.js +1 -1
  120. package/dist/sdk/engage/template-push.js +1 -1
  121. package/dist/sdk/engage/template-validator.js +1 -1
  122. package/dist/sdk/engage/template-yaml.js +1 -1
  123. package/dist/sdk/engage/types/campaign-def.js +1 -1
  124. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  125. package/dist/sdk/engage/types/template-schema.js +1 -1
  126. package/dist/sdk/engage.js +1 -1
  127. package/dist/sdk/errors.js +1 -1
  128. package/dist/sdk/index.js +1 -1
  129. package/dist/sdk/io/index.js +1 -1
  130. package/dist/sdk/io/node-filesystem.js +1 -1
  131. package/dist/sdk/job.js +1 -1
  132. package/dist/sdk/journey.d.ts +6 -0
  133. package/dist/sdk/journey.d.ts.map +1 -1
  134. package/dist/sdk/journey.js +1 -1
  135. package/dist/sdk/journey.js.map +1 -1
  136. package/dist/sdk/llm/chat-cache.js +1 -1
  137. package/dist/sdk/llm/index.js +1 -1
  138. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  139. package/dist/sdk/llm/model-factors.js +1 -1
  140. package/dist/sdk/personalization.js +1 -1
  141. package/dist/sdk/policy.js +1 -1
  142. package/dist/sdk/query/index.js +1 -1
  143. package/dist/sdk/query/sql-parser.js +1 -1
  144. package/dist/sdk/realtime.js +1 -1
  145. package/dist/sdk/schedule.js +1 -1
  146. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  147. package/dist/sdk/segment/fields-display.js +1 -1
  148. package/dist/sdk/segment/file-discovery.js +1 -1
  149. package/dist/sdk/segment/journey-utils.js +1 -1
  150. package/dist/sdk/segment/journey-validator.js +1 -1
  151. package/dist/sdk/segment/journey-yaml.js +1 -1
  152. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  153. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/pull-workflow.js +1 -1
  155. package/dist/sdk/segment/push-recovery.js +1 -1
  156. package/dist/sdk/segment/push-workflow.js +1 -1
  157. package/dist/sdk/segment/resolution-context.js +1 -1
  158. package/dist/sdk/segment/segment-path-parser.js +1 -1
  159. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  160. package/dist/sdk/segment/segment-validator.js +1 -1
  161. package/dist/sdk/segment/target-resolution.js +1 -1
  162. package/dist/sdk/segment/tdx-config.js +1 -1
  163. package/dist/sdk/segment/types/activation-schema.js +1 -1
  164. package/dist/sdk/segment/types/journey-def.js +1 -1
  165. package/dist/sdk/segment/types/journey-schema.js +1 -1
  166. package/dist/sdk/segment/types/segment-def.js +1 -1
  167. package/dist/sdk/segment/types/segment-schema.js +1 -1
  168. package/dist/sdk/segment/validate-files.js +1 -1
  169. package/dist/sdk/segment/yaml-validator.js +1 -1
  170. package/dist/sdk/segment.js +1 -1
  171. package/dist/sdk/types/index.js +1 -1
  172. package/dist/sdk/types/progress.js +1 -1
  173. package/dist/sdk/types/workspace.d.ts +2 -0
  174. package/dist/sdk/types/workspace.d.ts.map +1 -1
  175. package/dist/sdk/types/workspace.js +1 -1
  176. package/dist/sdk/user.js +1 -1
  177. package/dist/sdk/util/format-detector.js +1 -1
  178. package/dist/sdk/util/formatters.js +1 -1
  179. package/dist/sdk/util/index.js +1 -1
  180. package/dist/sdk/util/paginate.js +1 -1
  181. package/dist/sdk/util/tree-formatter.js +1 -1
  182. package/dist/sdk/workflow/archive-validation.js +1 -1
  183. package/dist/sdk/workflow/clone-workflow.js +1 -1
  184. package/dist/sdk/workflow/index.js +1 -1
  185. package/dist/sdk/workflow/pull-workflow.js +1 -1
  186. package/dist/sdk/workflow/push-workflow.js +1 -1
  187. package/dist/sdk/workflow/tdx-config.js +1 -1
  188. package/dist/sdk/workflow/workflow-utils.js +1 -1
  189. package/dist/sdk/workspace/access-tracker.js +1 -1
  190. package/dist/sdk/workspace/frontmatter.js +1 -1
  191. package/dist/sdk/workspace/git.js +1 -1
  192. package/dist/sdk/workspace/index.d.ts.map +1 -1
  193. package/dist/sdk/workspace/index.js +1 -1
  194. package/dist/sdk/workspace/index.js.map +1 -1
  195. package/dist/sdk/workspace/templates.d.ts.map +1 -1
  196. package/dist/sdk/workspace/templates.js +1 -1
  197. package/dist/sdk/workspace/templates.js.map +1 -1
  198. package/dist/sdk/workspace/weekly.js +1 -1
  199. package/dist/sdk/workspace/wikilinks.js +1 -1
  200. package/dist/test-utils/command-runner.js +1 -1
  201. package/dist/test-utils/factories.js +1 -1
  202. package/dist/test-utils/fixtures.js +1 -1
  203. package/dist/test-utils/http-mock.js +1 -1
  204. package/dist/test-utils/index.js +1 -1
  205. package/dist/utils/async.js +1 -1
  206. package/dist/utils/colors.js +1 -1
  207. package/dist/utils/diff.js +1 -1
  208. package/dist/utils/file-permissions.js +1 -1
  209. package/dist/utils/file-reader.js +1 -1
  210. package/dist/utils/github-releases.js +1 -1
  211. package/dist/utils/global-cache.js +1 -1
  212. package/dist/utils/json-loader.js +1 -1
  213. package/dist/utils/local-cache.js +1 -1
  214. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  215. package/dist/utils/logger/formatters/index.js +1 -1
  216. package/dist/utils/logger/handlers/console-handler.js +1 -1
  217. package/dist/utils/logger/handlers/file-handler.js +1 -1
  218. package/dist/utils/logger/handlers/index.js +1 -1
  219. package/dist/utils/logger/handlers/null-handler.js +1 -1
  220. package/dist/utils/logger/index.js +1 -1
  221. package/dist/utils/logger/logger.js +1 -1
  222. package/dist/utils/logger/types.js +1 -1
  223. package/dist/utils/option-validation.js +1 -1
  224. package/dist/utils/process.js +1 -1
  225. package/dist/utils/prompt.js +1 -1
  226. package/dist/utils/spinner.js +1 -1
  227. package/dist/utils/sse-parser.js +1 -1
  228. package/dist/utils/string-utils.js +1 -1
  229. package/dist/utils/table-ref-parser.js +1 -1
  230. package/dist/utils/tdx-logger.js +1 -1
  231. package/dist/utils/version-check.js +1 -1
  232. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2f7ef3,_0x385d8f){const _0x4d36d7=a157_0x2e0b,_0x315bbf=_0x2f7ef3();while(!![]){try{const _0x8ca86c=-parseInt(_0x4d36d7(0xc6))/0x1+parseInt(_0x4d36d7(0xd3))/0x2+-parseInt(_0x4d36d7(0xd5))/0x3*(parseInt(_0x4d36d7(0xce))/0x4)+parseInt(_0x4d36d7(0xd9))/0x5*(-parseInt(_0x4d36d7(0xee))/0x6)+-parseInt(_0x4d36d7(0xd7))/0x7*(-parseInt(_0x4d36d7(0xe1))/0x8)+-parseInt(_0x4d36d7(0xd8))/0x9+parseInt(_0x4d36d7(0xdc))/0xa;if(_0x8ca86c===_0x385d8f)break;else _0x315bbf['push'](_0x315bbf['shift']());}catch(_0x4a8725){_0x315bbf['push'](_0x315bbf['shift']());}}}(a157_0x53d0,0x43837));import a157_0x3e19ef from'path';import{sanitizeFileName}from'../../utils/string-utils.js';function a157_0x2e0b(_0x4e60b1,_0x1d6a5e){_0x4e60b1=_0x4e60b1-0xbe;const _0x53d06e=a157_0x53d0();let _0x2e0be2=_0x53d06e[_0x4e60b1];return _0x2e0be2;}import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x5c2c1a){const _0x235f85=a157_0x2e0b;return _0x5c2c1a['type']!==_0x235f85(0xd6);}export function isScopedResolution(_0x5beb50){const _0x597bfb=a157_0x2e0b;return _0x5beb50['type']==='directory'||_0x5beb50[_0x597bfb(0xeb)]===_0x597bfb(0xdd)||_0x5beb50[_0x597bfb(0xeb)]===_0x597bfb(0xcb);}export function getScopedDetails(_0x18bf6a){const _0x13d4e0=a157_0x2e0b;if(isScopedResolution(_0x18bf6a))return{'isScoped':_0x18bf6a[_0x13d4e0(0xc0)],'scopedFolderPath':_0x18bf6a[_0x13d4e0(0xe7)]};return undefined;}async function findTdxConfigAsync(_0x14e3d2,_0x2100ad){const _0x3f58e3=a157_0x2e0b;let _0x55ec6f=a157_0x3e19ef['resolve'](_0x14e3d2);const _0x121b9d=a157_0x3e19ef['parse'](_0x55ec6f)['root'];while(_0x55ec6f!==_0x121b9d){const _0x35d62f=a157_0x3e19ef['join'](_0x55ec6f,_0x3f58e3(0xec));if(await _0x2100ad[_0x3f58e3(0xcc)](_0x35d62f))try{const _0x3d1a79=await _0x2100ad['readFile'](_0x35d62f),_0x3fb01d=JSON['parse'](_0x3d1a79);if(_0x3fb01d[_0x3f58e3(0xd4)]&&typeof _0x3fb01d[_0x3f58e3(0xd4)]===_0x3f58e3(0xf0))return{'configPath':_0x35d62f,'configDir':_0x55ec6f,'parentSegment':_0x3fb01d[_0x3f58e3(0xd4)]};}catch{}_0x55ec6f=a157_0x3e19ef[_0x3f58e3(0xc7)](_0x55ec6f);}return null;}function calculateScopedPath(_0x5bd565,_0x159241){const _0x5e7849=a157_0x2e0b,_0x46639c=a157_0x3e19ef[_0x5e7849(0xe4)](_0x159241,_0x5bd565),_0x54da35=_0x46639c!==''&&_0x46639c!=='.'&&!_0x46639c[_0x5e7849(0xc4)]('..');return{'isScoped':_0x54da35,'scopedFolderPath':_0x54da35?_0x46639c[_0x5e7849(0xcd)](/\\/g,'/'):''};}export async function resolveTarget(_0x2788ca){const _0x4dc384=a157_0x2e0b,{arg:_0x1a5d55,contextParent:_0x1c0bd8,cwd:cwd=process[_0x4dc384(0xc8)](),fs:fs=nodeFileSystem}=_0x2788ca;if(_0x1a5d55&&isYamlFilePath(_0x1a5d55))try{const _0x16f0d6=await resolveYamlFilePath(_0x1a5d55,fs),_0x63ef57=a157_0x3e19ef[_0x4dc384(0xe3)](_0x1a5d55),_0x32d390=a157_0x3e19ef[_0x4dc384(0xc7)](_0x63ef57),_0x3704e0=await findTdxConfigAsync(_0x32d390,fs);if(!_0x3704e0){if(_0x1c0bd8){const _0x5dc9dd=a157_0x3e19ef[_0x4dc384(0xc7)](_0x63ef57);return{'type':_0x4dc384(0xdd),'parentName':_0x1c0bd8,'targetDir':_0x5dc9dd,'configRoot':_0x5dc9dd,'filePath':_0x63ef57,'resourceName':_0x16f0d6[_0x4dc384(0xbf)],'folderPath':_0x16f0d6['folderPath'],'resourceType':_0x16f0d6['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4dc384(0xd6),'errorCode':_0x4dc384(0xc5),'message':_0x4dc384(0xef)+_0x1a5d55,'arg':_0x1a5d55,'helpText':_0x4dc384(0xc3)};}const _0x2d3341=calculateScopedPath(_0x32d390,_0x3704e0['configDir']);return{'type':'file','parentName':_0x3704e0[_0x4dc384(0xd1)],'targetDir':_0x3704e0[_0x4dc384(0xc9)],'configRoot':_0x3704e0[_0x4dc384(0xc9)],'filePath':_0x63ef57,'resourceName':_0x16f0d6[_0x4dc384(0xbf)],'folderPath':_0x16f0d6[_0x4dc384(0xdf)],'resourceType':_0x16f0d6['resourceType'],'isScoped':_0x2d3341['isScoped'],'scopedFolderPath':_0x2d3341[_0x4dc384(0xe7)]};}catch(_0xfad9dd){const _0x16b182=_0xfad9dd instanceof Error?_0xfad9dd['message']:String(_0xfad9dd);if(_0x16b182['includes'](_0x4dc384(0xbe)))return{'type':_0x4dc384(0xd6),'errorCode':_0x4dc384(0xe2),'message':_0x4dc384(0xde)+_0x1a5d55,'arg':_0x1a5d55};if(_0x16b182['includes']('No\x20tdx.json\x20found')){if(_0x1c0bd8){const _0x2d97ed=a157_0x3e19ef[_0x4dc384(0xe3)](_0x1a5d55);if(await fs[_0x4dc384(0xcc)](_0x2d97ed)){const _0x3ddffb=a157_0x3e19ef[_0x4dc384(0xc7)](_0x2d97ed),_0x30f9d5=await fs[_0x4dc384(0xe0)](_0x2d97ed),_0x2b4285=_0x30f9d5[_0x4dc384(0xd0)](/^name:\s*["']?([^"'\n]+)["']?/m),_0xc132f6=_0x30f9d5['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1c2382=_0x2b4285?_0x2b4285[0x1][_0x4dc384(0xe5)]():a157_0x3e19ef[_0x4dc384(0xea)](_0x1a5d55,a157_0x3e19ef['extname'](_0x1a5d55)),_0x2884f5=_0xc132f6&&_0xc132f6[0x1][_0x4dc384(0xe5)]()==='journey'?'journey':_0x4dc384(0xd2);return{'type':'file','parentName':_0x1c0bd8,'targetDir':_0x3ddffb,'configRoot':_0x3ddffb,'filePath':_0x2d97ed,'resourceName':_0x1c2382,'folderPath':'','resourceType':_0x2884f5,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0x4dc384(0xc5),'message':_0x4dc384(0xef)+_0x1a5d55,'arg':_0x1a5d55,'helpText':_0x4dc384(0xc3)};}return{'type':_0x4dc384(0xd6),'errorCode':_0x4dc384(0xdb),'message':_0x16b182,'arg':_0x1a5d55};}if(_0x1a5d55){const _0x41f892=a157_0x3e19ef[_0x4dc384(0xe3)](cwd,_0x1a5d55);let _0x2301a1=null;try{_0x2301a1=await fs[_0x4dc384(0xe9)](_0x41f892);}catch{}if(_0x2301a1?.[_0x4dc384(0xda)]()){const _0x3e28dc=await findTdxConfigAsync(_0x41f892,fs);if(_0x3e28dc){const _0x48e7ae=calculateScopedPath(_0x41f892,_0x3e28dc[_0x4dc384(0xc9)]);return{'type':_0x4dc384(0xc1),'parentName':_0x3e28dc[_0x4dc384(0xd1)],'targetDir':_0x41f892,'configRoot':_0x3e28dc[_0x4dc384(0xc9)],'isScoped':_0x48e7ae[_0x4dc384(0xc0)],'scopedFolderPath':_0x48e7ae['scopedFolderPath']};}if(_0x1c0bd8)return{'type':_0x4dc384(0xc1),'parentName':_0x1c0bd8,'targetDir':_0x41f892,'configRoot':_0x41f892,'isScoped':![],'scopedFolderPath':''};return{'type':_0x4dc384(0xd6),'errorCode':_0x4dc384(0xc5),'message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x1a5d55,'arg':_0x1a5d55,'helpText':_0x4dc384(0xc3)};}if(_0x2301a1?.[_0x4dc384(0xca)]())return{'type':'error','errorCode':_0x4dc384(0xdb),'message':_0x4dc384(0xe8)+_0x1a5d55,'arg':_0x1a5d55,'helpText':_0x4dc384(0xed)};const _0x40d45e=sanitizeFileName(_0x1a5d55),_0x5cb2aa=getSegmentRootDir(_0x40d45e,cwd);return{'type':'parent_name','parentName':_0x1a5d55,'targetDir':_0x5cb2aa,'configRoot':_0x5cb2aa};}const _0x36accc=await findTdxConfigAsync(cwd,fs);if(_0x36accc){const _0x2cd58a=calculateScopedPath(cwd,_0x36accc[_0x4dc384(0xc9)]);return{'type':_0x4dc384(0xcb),'parentName':_0x36accc['parentSegment'],'targetDir':cwd,'configRoot':_0x36accc[_0x4dc384(0xc9)],'isScoped':_0x2cd58a[_0x4dc384(0xc0)],'scopedFolderPath':_0x2cd58a[_0x4dc384(0xe7)]};}if(_0x1c0bd8){const _0x18a9e4=sanitizeFileName(_0x1c0bd8),_0xa97d12=getSegmentRootDir(_0x18a9e4,cwd);return{'type':_0x4dc384(0xcb),'parentName':_0x1c0bd8,'targetDir':_0xa97d12,'configRoot':_0xa97d12,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x4dc384(0xcf),'message':_0x4dc384(0xc2),'helpText':_0x4dc384(0xe6)};}function a157_0x53d0(){const _0x22c45=['cwd','configDir','isFile','context','exists','replace','7612jZYhfY','no_parent','match','parentSegment','segment','1044056CvjTWA','parent_segment','579dlUcUH','error','483CkRdwR','3033486dJmMhd','60PiJfZq','isDirectory','invalid_yaml','8942930OAzAZV','file','File\x20not\x20found:\x20','folderPath','readFile','15432zZeNDQ','file_not_found','resolve','relative','trim','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','scopedFolderPath','Not\x20a\x20YAML\x20file:\x20','stat','basename','type','tdx.json','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','160482MJcncM','No\x20tdx.json\x20found\x20for\x20file:\x20','string','File\x20not\x20found','segmentName','isScoped','directory','Parent\x20segment\x20not\x20specified','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','startsWith','no_config','247590tSfise','dirname'];a157_0x53d0=function(){return _0x22c45;};return a157_0x53d0();}
1
+ (function(_0x4490b8,_0x3a0736){const _0x156610=a157_0x1b51,_0x3a8cd0=_0x4490b8();while(!![]){try{const _0x150fb5=parseInt(_0x156610(0xb6))/0x1+-parseInt(_0x156610(0xb7))/0x2+-parseInt(_0x156610(0xc5))/0x3*(-parseInt(_0x156610(0xd3))/0x4)+parseInt(_0x156610(0xc7))/0x5+-parseInt(_0x156610(0xcd))/0x6+parseInt(_0x156610(0xdd))/0x7*(parseInt(_0x156610(0xe0))/0x8)+parseInt(_0x156610(0xd0))/0x9*(parseInt(_0x156610(0xe2))/0xa);if(_0x150fb5===_0x3a0736)break;else _0x3a8cd0['push'](_0x3a8cd0['shift']());}catch(_0x2f9dc4){_0x3a8cd0['push'](_0x3a8cd0['shift']());}}}(a157_0x466c,0x6bcf6));import a157_0x3cbf17 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x13359a){const _0x47886a=a157_0x1b51;return _0x13359a[_0x47886a(0xce)]!==_0x47886a(0xbd);}export function isScopedResolution(_0x4b0520){const _0x519362=a157_0x1b51;return _0x4b0520[_0x519362(0xce)]==='directory'||_0x4b0520[_0x519362(0xce)]===_0x519362(0xc4)||_0x4b0520['type']===_0x519362(0xb1);}export function getScopedDetails(_0x4d7437){const _0x15c35f=a157_0x1b51;if(isScopedResolution(_0x4d7437))return{'isScoped':_0x4d7437[_0x15c35f(0xcf)],'scopedFolderPath':_0x4d7437[_0x15c35f(0xd1)]};return undefined;}function a157_0x1b51(_0xf4eb1a,_0x1526bc){_0xf4eb1a=_0xf4eb1a-0xb0;const _0x466c9b=a157_0x466c();let _0x1b5165=_0x466c9b[_0xf4eb1a];return _0x1b5165;}async function findTdxConfigAsync(_0x4809e9,_0x3a1511){const _0x1c6918=a157_0x1b51;let _0x483432=a157_0x3cbf17[_0x1c6918(0xdf)](_0x4809e9);const _0x56f6cd=a157_0x3cbf17[_0x1c6918(0xb2)](_0x483432)[_0x1c6918(0xd5)];while(_0x483432!==_0x56f6cd){const _0x56fff0=a157_0x3cbf17[_0x1c6918(0xca)](_0x483432,_0x1c6918(0xc0));if(await _0x3a1511[_0x1c6918(0xd7)](_0x56fff0))try{const _0x8994f2=await _0x3a1511[_0x1c6918(0xe1)](_0x56fff0),_0x8d1494=JSON[_0x1c6918(0xb2)](_0x8994f2);if(_0x8d1494[_0x1c6918(0xd9)]&&typeof _0x8d1494[_0x1c6918(0xd9)]===_0x1c6918(0xb9))return{'configPath':_0x56fff0,'configDir':_0x483432,'parentSegment':_0x8d1494['parent_segment']};}catch{}_0x483432=a157_0x3cbf17[_0x1c6918(0xbe)](_0x483432);}return null;}function calculateScopedPath(_0x35be9d,_0xdba196){const _0x912c53=a157_0x1b51,_0x5761c3=a157_0x3cbf17[_0x912c53(0xbf)](_0xdba196,_0x35be9d),_0x4085d0=_0x5761c3!==''&&_0x5761c3!=='.'&&!_0x5761c3['startsWith']('..');return{'isScoped':_0x4085d0,'scopedFolderPath':_0x4085d0?_0x5761c3[_0x912c53(0xc3)](/\\/g,'/'):''};}export async function resolveTarget(_0x26259f){const _0x3dbdd6=a157_0x1b51,{arg:_0x533688,contextParent:_0x637f47,cwd:cwd=process[_0x3dbdd6(0xc1)](),fs:fs=nodeFileSystem}=_0x26259f;if(_0x533688&&isYamlFilePath(_0x533688))try{const _0x5ee06d=await resolveYamlFilePath(_0x533688,fs),_0x370455=a157_0x3cbf17[_0x3dbdd6(0xdf)](_0x533688),_0x45a3ce=a157_0x3cbf17[_0x3dbdd6(0xbe)](_0x370455),_0xdf676c=await findTdxConfigAsync(_0x45a3ce,fs);if(!_0xdf676c){if(_0x637f47){const _0x30c318=a157_0x3cbf17[_0x3dbdd6(0xbe)](_0x370455);return{'type':'file','parentName':_0x637f47,'targetDir':_0x30c318,'configRoot':_0x30c318,'filePath':_0x370455,'resourceName':_0x5ee06d['segmentName'],'folderPath':_0x5ee06d['folderPath'],'resourceType':_0x5ee06d[_0x3dbdd6(0xbb)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x3dbdd6(0xbd),'errorCode':_0x3dbdd6(0xcc),'message':_0x3dbdd6(0xd8)+_0x533688,'arg':_0x533688,'helpText':_0x3dbdd6(0xd4)};}const _0xcde179=calculateScopedPath(_0x45a3ce,_0xdf676c['configDir']);return{'type':'file','parentName':_0xdf676c[_0x3dbdd6(0xcb)],'targetDir':_0xdf676c[_0x3dbdd6(0xc2)],'configRoot':_0xdf676c[_0x3dbdd6(0xc2)],'filePath':_0x370455,'resourceName':_0x5ee06d['segmentName'],'folderPath':_0x5ee06d[_0x3dbdd6(0xda)],'resourceType':_0x5ee06d['resourceType'],'isScoped':_0xcde179[_0x3dbdd6(0xcf)],'scopedFolderPath':_0xcde179['scopedFolderPath']};}catch(_0x474dd8){const _0x28a604=_0x474dd8 instanceof Error?_0x474dd8[_0x3dbdd6(0xdb)]:String(_0x474dd8);if(_0x28a604[_0x3dbdd6(0xbc)](_0x3dbdd6(0xde)))return{'type':'error','errorCode':_0x3dbdd6(0xc8),'message':_0x3dbdd6(0xba)+_0x533688,'arg':_0x533688};if(_0x28a604[_0x3dbdd6(0xbc)]('No\x20tdx.json\x20found')){if(_0x637f47){const _0x191aab=a157_0x3cbf17[_0x3dbdd6(0xdf)](_0x533688);if(await fs[_0x3dbdd6(0xd7)](_0x191aab)){const _0x14e021=a157_0x3cbf17['dirname'](_0x191aab),_0x203266=await fs['readFile'](_0x191aab),_0x9d07f4=_0x203266[_0x3dbdd6(0xb4)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x81b00f=_0x203266[_0x3dbdd6(0xb4)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5eae51=_0x9d07f4?_0x9d07f4[0x1][_0x3dbdd6(0xd2)]():a157_0x3cbf17[_0x3dbdd6(0xd6)](_0x533688,a157_0x3cbf17['extname'](_0x533688)),_0x1a4def=_0x81b00f&&_0x81b00f[0x1]['trim']()===_0x3dbdd6(0xc6)?_0x3dbdd6(0xc6):_0x3dbdd6(0xb3);return{'type':_0x3dbdd6(0xc4),'parentName':_0x637f47,'targetDir':_0x14e021,'configRoot':_0x14e021,'filePath':_0x191aab,'resourceName':_0x5eae51,'folderPath':'','resourceType':_0x1a4def,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x3dbdd6(0xbd),'errorCode':_0x3dbdd6(0xcc),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x533688,'arg':_0x533688,'helpText':_0x3dbdd6(0xd4)};}return{'type':_0x3dbdd6(0xbd),'errorCode':'invalid_yaml','message':_0x28a604,'arg':_0x533688};}if(_0x533688){const _0x14a117=a157_0x3cbf17[_0x3dbdd6(0xdf)](cwd,_0x533688);let _0x3e3f86=null;try{_0x3e3f86=await fs['stat'](_0x14a117);}catch{}if(_0x3e3f86?.['isDirectory']()){const _0x5497b7=await findTdxConfigAsync(_0x14a117,fs);if(_0x5497b7){const _0x421d74=calculateScopedPath(_0x14a117,_0x5497b7['configDir']);return{'type':_0x3dbdd6(0xb8),'parentName':_0x5497b7[_0x3dbdd6(0xcb)],'targetDir':_0x14a117,'configRoot':_0x5497b7['configDir'],'isScoped':_0x421d74[_0x3dbdd6(0xcf)],'scopedFolderPath':_0x421d74[_0x3dbdd6(0xd1)]};}if(_0x637f47)return{'type':_0x3dbdd6(0xb8),'parentName':_0x637f47,'targetDir':_0x14a117,'configRoot':_0x14a117,'isScoped':![],'scopedFolderPath':''};return{'type':'error','errorCode':_0x3dbdd6(0xcc),'message':_0x3dbdd6(0xc9)+_0x533688,'arg':_0x533688,'helpText':_0x3dbdd6(0xd4)};}if(_0x3e3f86?.[_0x3dbdd6(0xb5)]())return{'type':_0x3dbdd6(0xbd),'errorCode':_0x3dbdd6(0xdc),'message':_0x3dbdd6(0xb0)+_0x533688,'arg':_0x533688,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x25c15c=sanitizeFileName(_0x533688),_0x14cef9=getSegmentRootDir(_0x25c15c,cwd);return{'type':_0x3dbdd6(0xe4),'parentName':_0x533688,'targetDir':_0x14cef9,'configRoot':_0x14cef9};}const _0x52baf1=await findTdxConfigAsync(cwd,fs);if(_0x52baf1){const _0x1cf37d=calculateScopedPath(cwd,_0x52baf1['configDir']);return{'type':_0x3dbdd6(0xb1),'parentName':_0x52baf1['parentSegment'],'targetDir':cwd,'configRoot':_0x52baf1[_0x3dbdd6(0xc2)],'isScoped':_0x1cf37d['isScoped'],'scopedFolderPath':_0x1cf37d[_0x3dbdd6(0xd1)]};}if(_0x637f47){const _0x4734fb=sanitizeFileName(_0x637f47),_0x22f869=getSegmentRootDir(_0x4734fb,cwd);return{'type':_0x3dbdd6(0xb1),'parentName':_0x637f47,'targetDir':_0x22f869,'configRoot':_0x22f869,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x3dbdd6(0xe3),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x3dbdd6(0xe5)};}function a157_0x466c(){const _0x31145a=['4854wfxoNe','852108PqdrEg','directory','string','File\x20not\x20found:\x20','resourceType','includes','error','dirname','relative','tdx.json','cwd','configDir','replace','file','1132119yiATFN','journey','877050AOboEC','file_not_found','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','join','parentSegment','no_config','4521498LZUKFy','type','isScoped','43803GddQhO','scopedFolderPath','trim','8SNgAXE','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','root','basename','exists','No\x20tdx.json\x20found\x20for\x20file:\x20','parent_segment','folderPath','message','invalid_yaml','163289oAtZny','File\x20not\x20found','resolve','232DESxMf','readFile','20HLrDRv','no_parent','parent_name','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','Not\x20a\x20YAML\x20file:\x20','context','parse','segment','match','isFile'];a157_0x466c=function(){return _0x31145a;};return a157_0x466c();}
@@ -1 +1 @@
1
- function a158_0x3932(_0x48f14a,_0x46a3d8){_0x48f14a=_0x48f14a-0x14f;const _0x26cddb=a158_0x26cd();let _0x393261=_0x26cddb[_0x48f14a];return _0x393261;}const a158_0x4e8b01=a158_0x3932;function a158_0x26cd(){const _0x185d10=['root','string','resolve','3927536nOLnAM','relative','73086QNFKRp','cwd','110oYBqMR','3pTNKHu','1829868RHUqgt','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','replace','tdx.json','dirname','2297590LEFneG','1887501FyRXdK','Invalid\x20JSON\x20in\x20','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','Invalid\x20tdx.json:\x20expected\x20object','989164FgilTD','31363mFCDvT','9eyCKer','segments','stringify','engage_workspace','parent_segment','join','parse','startsWith'];a158_0x26cd=function(){return _0x185d10;};return a158_0x26cd();}(function(_0x1ae2f0,_0x533178){const _0x2878fb=a158_0x3932,_0x95edd6=_0x1ae2f0();while(!![]){try{const _0x3d0d00=parseInt(_0x2878fb(0x153))/0x1+parseInt(_0x2878fb(0x152))/0x2+parseInt(_0x2878fb(0x164))/0x3*(-parseInt(_0x2878fb(0x165))/0x4)+-parseInt(_0x2878fb(0x163))/0x5*(parseInt(_0x2878fb(0x161))/0x6)+-parseInt(_0x2878fb(0x16b))/0x7+parseInt(_0x2878fb(0x15f))/0x8+parseInt(_0x2878fb(0x154))/0x9*(parseInt(_0x2878fb(0x16a))/0xa);if(_0x3d0d00===_0x533178)break;else _0x95edd6['push'](_0x95edd6['shift']());}catch(_0x33a24d){_0x95edd6['push'](_0x95edd6['shift']());}}}(a158_0x26cd,0x3d6a2));import{existsSync,readFileSync}from'fs';import a158_0x1fd01d from'path';const TDX_CONFIG_FILE=a158_0x4e8b01(0x168),SEGMENTS_DIR=a158_0x4e8b01(0x155);export function findTdxConfigPath(_0x2e1876=process[a158_0x4e8b01(0x162)]()){const _0x49ee02=a158_0x4e8b01;let _0x3dbda9=a158_0x1fd01d[_0x49ee02(0x15e)](_0x2e1876);const _0x8d9a5b=a158_0x1fd01d[_0x49ee02(0x15a)](_0x3dbda9)[_0x49ee02(0x15c)];while(_0x3dbda9!==_0x8d9a5b){const _0x66e2a=a158_0x1fd01d[_0x49ee02(0x159)](_0x3dbda9,TDX_CONFIG_FILE);if(existsSync(_0x66e2a))return _0x66e2a;_0x3dbda9=a158_0x1fd01d[_0x49ee02(0x169)](_0x3dbda9);}return null;}export function loadTdxConfig(_0x56014d){const _0x44c798=a158_0x4e8b01,_0x1d2b20=readFileSync(_0x56014d,'utf-8');let _0x1c83fe;try{_0x1c83fe=JSON['parse'](_0x1d2b20);}catch{throw new Error(_0x44c798(0x14f)+_0x56014d);}if(!_0x1c83fe||typeof _0x1c83fe!=='object')throw new Error(_0x44c798(0x151));const _0x542a10=_0x1c83fe,_0x313cc8=_0x542a10[_0x44c798(0x158)]&&typeof _0x542a10[_0x44c798(0x158)]===_0x44c798(0x15d),_0x1a6e14=_0x542a10[_0x44c798(0x157)]&&typeof _0x542a10['engage_workspace']===_0x44c798(0x15d);if(!_0x313cc8&&!_0x1a6e14)throw new Error(_0x44c798(0x166));const _0x530815={};return _0x313cc8&&(_0x530815[_0x44c798(0x158)]=_0x542a10[_0x44c798(0x158)]),_0x1a6e14&&(_0x530815[_0x44c798(0x157)]=_0x542a10['engage_workspace']),_0x530815;}export function findTdxConfig(_0x59f33e=process['cwd']()){const _0x2ca828=a158_0x4e8b01,_0x3fc7f3=findTdxConfigPath(_0x59f33e);if(!_0x3fc7f3)throw new Error(_0x2ca828(0x150));const _0x27d24c=loadTdxConfig(_0x3fc7f3),_0x58b9e8=a158_0x1fd01d[_0x2ca828(0x169)](_0x3fc7f3);return{'config':_0x27d24c,'configPath':_0x3fc7f3,'configDir':_0x58b9e8};}export function tryFindTdxConfig(_0x15578a){try{return findTdxConfig(_0x15578a);}catch{return null;}}export function getSegmentRootDir(_0x5682f7,_0x45d55c=process[a158_0x4e8b01(0x162)]()){return a158_0x1fd01d['join'](_0x45d55c,SEGMENTS_DIR,_0x5682f7);}export function getTdxConfigPath(_0x54768c,_0x3e1106=process[a158_0x4e8b01(0x162)]()){const _0x33a44d=a158_0x4e8b01;return a158_0x1fd01d[_0x33a44d(0x159)](getSegmentRootDir(_0x54768c,_0x3e1106),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x349830,_0xc2fa7e){const _0x12a096=a158_0x4e8b01,_0x288bc1=a158_0x1fd01d['resolve'](_0x349830),_0x224f1c=a158_0x1fd01d[_0x12a096(0x160)](_0xc2fa7e,_0x288bc1);if(_0x224f1c[_0x12a096(0x15b)]('..'))return'';return _0x224f1c;}export function localPathToTdFolderPath(_0x28661c){const _0x3a1928=a158_0x4e8b01,_0x244fa9=a158_0x1fd01d[_0x3a1928(0x169)](_0x28661c);if(_0x244fa9==='.'||_0x244fa9==='')return'';return _0x244fa9[_0x3a1928(0x167)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x1a7d49,_0x15f972){const _0x4925fe=a158_0x4e8b01;if(!_0x1a7d49)return _0x15f972;return a158_0x1fd01d[_0x4925fe(0x159)](_0x15f972,_0x1a7d49);}export function createTdxConfigContent(_0xb41970){const _0x2fb678=a158_0x4e8b01,_0x3655e2={'parent_segment':_0xb41970};return JSON[_0x2fb678(0x156)](_0x3655e2,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x156fc8){const _0x4424c0={'engage_workspace':_0x156fc8};return JSON['stringify'](_0x4424c0,null,0x2)+'\x0a';}
1
+ const a158_0x16b319=a158_0x23b6;(function(_0x1dfb7e,_0x30ee8d){const _0x8858b7=a158_0x23b6,_0x26ca85=_0x1dfb7e();while(!![]){try{const _0x180a6e=parseInt(_0x8858b7(0xfa))/0x1+parseInt(_0x8858b7(0xf7))/0x2*(parseInt(_0x8858b7(0xe1))/0x3)+-parseInt(_0x8858b7(0xdd))/0x4*(-parseInt(_0x8858b7(0xe0))/0x5)+parseInt(_0x8858b7(0xe5))/0x6+-parseInt(_0x8858b7(0xf3))/0x7+parseInt(_0x8858b7(0xe7))/0x8*(-parseInt(_0x8858b7(0xee))/0x9)+-parseInt(_0x8858b7(0xeb))/0xa;if(_0x180a6e===_0x30ee8d)break;else _0x26ca85['push'](_0x26ca85['shift']());}catch(_0x1b7b0f){_0x26ca85['push'](_0x26ca85['shift']());}}}(a158_0x44ca,0x689be));import{existsSync,readFileSync}from'fs';function a158_0x23b6(_0x2fd0f7,_0x5b95f0){_0x2fd0f7=_0x2fd0f7-0xdd;const _0x44ca4e=a158_0x44ca();let _0x23b6c5=_0x44ca4e[_0x2fd0f7];return _0x23b6c5;}function a158_0x44ca(){const _0xf0089=['root','cwd','relative','85282SiFGaz','segments','string','429700uzMeIw','22352GsFvOX','startsWith','dirname','170ptHWcF','42hYBxuF','stringify','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','parent_segment','3909084QzJswQ','parse','120ljxQwJ','join','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','object','5951140kEZxPm','resolve','replace','482373ApFhRi','Invalid\x20JSON\x20in\x20','utf-8','engage_workspace','Invalid\x20tdx.json:\x20expected\x20object','284431SqzQnx'];a158_0x44ca=function(){return _0xf0089;};return a158_0x44ca();}import a158_0x149124 from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a158_0x16b319(0xf8);export function findTdxConfigPath(_0x4aadc9=process[a158_0x16b319(0xf5)]()){const _0x116167=a158_0x16b319;let _0x31a861=a158_0x149124[_0x116167(0xec)](_0x4aadc9);const _0x43a452=a158_0x149124['parse'](_0x31a861)[_0x116167(0xf4)];while(_0x31a861!==_0x43a452){const _0x1d266f=a158_0x149124[_0x116167(0xe8)](_0x31a861,TDX_CONFIG_FILE);if(existsSync(_0x1d266f))return _0x1d266f;_0x31a861=a158_0x149124[_0x116167(0xdf)](_0x31a861);}return null;}export function loadTdxConfig(_0x1331e4){const _0x222e87=a158_0x16b319,_0x1fd25d=readFileSync(_0x1331e4,_0x222e87(0xf0));let _0x35db5f;try{_0x35db5f=JSON[_0x222e87(0xe6)](_0x1fd25d);}catch{throw new Error(_0x222e87(0xef)+_0x1331e4);}if(!_0x35db5f||typeof _0x35db5f!==_0x222e87(0xea))throw new Error(_0x222e87(0xf2));const _0x4047a0=_0x35db5f,_0x4e2de2=_0x4047a0[_0x222e87(0xe4)]&&typeof _0x4047a0[_0x222e87(0xe4)]==='string',_0x5ed94b=_0x4047a0[_0x222e87(0xf1)]&&typeof _0x4047a0[_0x222e87(0xf1)]===_0x222e87(0xf9);if(!_0x4e2de2&&!_0x5ed94b)throw new Error(_0x222e87(0xe9));const _0x3cdea8={};return _0x4e2de2&&(_0x3cdea8[_0x222e87(0xe4)]=_0x4047a0['parent_segment']),_0x5ed94b&&(_0x3cdea8[_0x222e87(0xf1)]=_0x4047a0['engage_workspace']),_0x3cdea8;}export function findTdxConfig(_0x26fd8c=process['cwd']()){const _0x4bdf77=a158_0x16b319,_0x270d41=findTdxConfigPath(_0x26fd8c);if(!_0x270d41)throw new Error(_0x4bdf77(0xe3));const _0x225545=loadTdxConfig(_0x270d41),_0x3c6957=a158_0x149124[_0x4bdf77(0xdf)](_0x270d41);return{'config':_0x225545,'configPath':_0x270d41,'configDir':_0x3c6957};}export function tryFindTdxConfig(_0x493bc0){try{return findTdxConfig(_0x493bc0);}catch{return null;}}export function getSegmentRootDir(_0x2eec38,_0x49997c=process['cwd']()){return a158_0x149124['join'](_0x49997c,SEGMENTS_DIR,_0x2eec38);}export function getTdxConfigPath(_0x591c60,_0xebda27=process[a158_0x16b319(0xf5)]()){const _0x1209db=a158_0x16b319;return a158_0x149124[_0x1209db(0xe8)](getSegmentRootDir(_0x591c60,_0xebda27),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x1d75cc,_0x4a9160){const _0x4815eb=a158_0x16b319,_0x340888=a158_0x149124['resolve'](_0x1d75cc),_0x3fb0e3=a158_0x149124[_0x4815eb(0xf6)](_0x4a9160,_0x340888);if(_0x3fb0e3[_0x4815eb(0xde)]('..'))return'';return _0x3fb0e3;}export function localPathToTdFolderPath(_0xa97a47){const _0x472029=a158_0x16b319,_0x5d2569=a158_0x149124['dirname'](_0xa97a47);if(_0x5d2569==='.'||_0x5d2569==='')return'';return _0x5d2569[_0x472029(0xed)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x575e73,_0x21fa00){const _0xf0780c=a158_0x16b319;if(!_0x575e73)return _0x21fa00;return a158_0x149124[_0xf0780c(0xe8)](_0x21fa00,_0x575e73);}export function createTdxConfigContent(_0x41c144){const _0x11f30b=a158_0x16b319,_0x2a2772={'parent_segment':_0x41c144};return JSON[_0x11f30b(0xe2)](_0x2a2772,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x1b5a48){const _0xe3632b=a158_0x16b319,_0x2c9ba6={'engage_workspace':_0x1b5a48};return JSON[_0xe3632b(0xe2)](_0x2c9ba6,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a159_0x6f1172=a159_0x156d;(function(_0x4d2fc2,_0x41dc6e){const _0x8aa32f=a159_0x156d,_0x4f489c=_0x4d2fc2();while(!![]){try{const _0x1694a4=parseInt(_0x8aa32f(0xe5))/0x1+-parseInt(_0x8aa32f(0xf8))/0x2*(parseInt(_0x8aa32f(0xeb))/0x3)+-parseInt(_0x8aa32f(0x107))/0x4*(parseInt(_0x8aa32f(0xf3))/0x5)+parseInt(_0x8aa32f(0xfe))/0x6+parseInt(_0x8aa32f(0xfa))/0x7+-parseInt(_0x8aa32f(0xf5))/0x8+-parseInt(_0x8aa32f(0xf2))/0x9*(-parseInt(_0x8aa32f(0xe7))/0xa);if(_0x1694a4===_0x41dc6e)break;else _0x4f489c['push'](_0x4f489c['shift']());}catch(_0x3f0da3){_0x4f489c['push'](_0x4f489c['shift']());}}}(a159_0x388e,0x5d824));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x6f1172(0xe4)]([a159_0x6f1172(0xf4),a159_0x6f1172(0xe3),a159_0x6f1172(0x106),a159_0x6f1172(0x100),'monthly',a159_0x6f1172(0xee),'minutes_interval']);export const RepeatUnitSchema=z[a159_0x6f1172(0xe4)]([a159_0x6f1172(0xec),a159_0x6f1172(0x102),a159_0x6f1172(0xfb),a159_0x6f1172(0xe9),a159_0x6f1172(0xef),a159_0x6f1172(0xe6),a159_0x6f1172(0xf4)]);export const ScheduleDefSchema=z[a159_0x6f1172(0xf1)]({'type':ScheduleTypeSchema[a159_0x6f1172(0xf0)](),'repeat_unit':RepeatUnitSchema[a159_0x6f1172(0xf0)](),'repeat_frequency':z['number']()[a159_0x6f1172(0xf0)](),'repeat_sub_frequency':z[a159_0x6f1172(0xde)](z[a159_0x6f1172(0xf6)]())[a159_0x6f1172(0xf0)](),'start_at':z[a159_0x6f1172(0x101)]()['nullable']()['optional'](),'end_on':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xe0)]()['optional'](),'timezone':z['string']()[a159_0x6f1172(0xf0)]()});export const NotificationDefSchema=z[a159_0x6f1172(0xf1)]({'notify_on':z[a159_0x6f1172(0xde)](z['enum']([a159_0x6f1172(0x108),'onFailure']))[a159_0x6f1172(0xf0)](),'email_recipients':z[a159_0x6f1172(0xde)](z[a159_0x6f1172(0x101)]())['optional']()});export const ActivationColumnDefSchema=z['union']([z[a159_0x6f1172(0x101)](),z[a159_0x6f1172(0xf1)]({'name':z[a159_0x6f1172(0x101)](),'type':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xf0)](),'visibility':z['enum']([a159_0x6f1172(0xed),a159_0x6f1172(0xdf)])[a159_0x6f1172(0xf0)]()})]);function a159_0x156d(_0x4b3da9,_0x2df34f){_0x4b3da9=_0x4b3da9-0xde;const _0x388e6b=a159_0x388e();let _0x156ddf=_0x388e6b[_0x4b3da9];return _0x156ddf;}export const ActivationBehaviorDefSchema=z[a159_0x6f1172(0xf1)]({'columns':z[a159_0x6f1172(0xde)](z['object']({'name':z[a159_0x6f1172(0x101)](),'type':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xf0)](),'visibility':z['enum']([a159_0x6f1172(0xed),a159_0x6f1172(0xdf)])[a159_0x6f1172(0xf0)]()}))[a159_0x6f1172(0xf0)](),'behavior_table':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xf0)](),'join_row':z[a159_0x6f1172(0xf6)]()[a159_0x6f1172(0xe0)]()[a159_0x6f1172(0xf0)](),'join_strategy':z[a159_0x6f1172(0xe4)]([a159_0x6f1172(0xff),a159_0x6f1172(0xfc),a159_0x6f1172(0xf9),a159_0x6f1172(0x104)])['optional'](),'formatting':z[a159_0x6f1172(0xe4)]([a159_0x6f1172(0xf7),'cols'])[a159_0x6f1172(0xf0)](),'order_by':z[a159_0x6f1172(0xde)](z[a159_0x6f1172(0xf1)]({'key':z[a159_0x6f1172(0x101)](),'order':z['enum']([a159_0x6f1172(0x103),'desc'])}))[a159_0x6f1172(0xf0)]()});export const ActivationDefSchema=z[a159_0x6f1172(0xf1)]({'name':z['string']()[a159_0x6f1172(0xea)](0x1,a159_0x6f1172(0xe2)),'description':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xf0)](),'connection':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xea)](0x1,a159_0x6f1172(0xe8)),'all_columns':z['boolean']()['optional'](),'columns':z[a159_0x6f1172(0xde)](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x6f1172(0xf0)](),'connector_config':z[a159_0x6f1172(0xfd)](z[a159_0x6f1172(0x101)](),z[a159_0x6f1172(0xe1)]())[a159_0x6f1172(0xf0)](),'activation_template_id':z['string']()[a159_0x6f1172(0xe0)]()['optional'](),'behavior':ActivationBehaviorDefSchema[a159_0x6f1172(0xe0)]()[a159_0x6f1172(0xf0)](),'run_after_journey_refresh':z[a159_0x6f1172(0x105)]()[a159_0x6f1172(0xf0)](),'nested_workflow_project_name':z[a159_0x6f1172(0x101)]()[a159_0x6f1172(0xf0)](),'nested_workflow_name':z['string']()[a159_0x6f1172(0xf0)](),'lock_enabled':z[a159_0x6f1172(0x105)]()[a159_0x6f1172(0xf0)]()});function a159_0x388e(){const _0x2955e9=['hour','asc','Top-N','boolean','daily','98088nIsNUg','onSuccess','array','masked','nullable','unknown','Activation\x20name\x20is\x20required','hourly','enum','302621dcChUo','once','20tcwlDh','Connection\x20name\x20is\x20required','week','min','435633pIhkDU','minute','clear','cron','month','optional','object','2307069JLkREE','5mqBnSA','none','5312600EYvmeT','number','rows','6rBbNtx','Last','2926098tPDsUd','day','First','record','1643550fzITfD','All','weekly','string'];a159_0x388e=function(){return _0x2955e9;};return a159_0x388e();}
1
+ function a159_0x41c4(){const _0x254f7f=['353928JXTVYZ','enum','object','union','clear','All','8BfkIBq','week','min','string','weekly','none','minutes_interval','cols','asc','daily','rows','387385trebPX','Activation\x20name\x20is\x20required','70AxiMLM','unknown','nullable','number','month','714759LnSTfw','2832939evgiQY','minute','Connection\x20name\x20is\x20required','monthly','optional','boolean','array','once','479797TuUTVz','record','First','2652640YQdNHb','cron','Top-N','2Cnmcww','desc','masked','4450512kBHpmE','hourly'];a159_0x41c4=function(){return _0x254f7f;};return a159_0x41c4();}const a159_0x1a9885=a159_0x55e7;(function(_0x59c9ee,_0x5ee762){const _0x1ac7f5=a159_0x55e7,_0x5e8218=_0x59c9ee();while(!![]){try{const _0x347607=parseInt(_0x1ac7f5(0xae))/0x1*(parseInt(_0x1ac7f5(0xb4))/0x2)+parseInt(_0x1ac7f5(0xa5))/0x3+parseInt(_0x1ac7f5(0xbf))/0x4*(parseInt(_0x1ac7f5(0xca))/0x5)+parseInt(_0x1ac7f5(0xb9))/0x6*(-parseInt(_0x1ac7f5(0xcc))/0x7)+-parseInt(_0x1ac7f5(0xb7))/0x8+parseInt(_0x1ac7f5(0xa6))/0x9+parseInt(_0x1ac7f5(0xb1))/0xa;if(_0x347607===_0x5ee762)break;else _0x5e8218['push'](_0x5e8218['shift']());}catch(_0x47645f){_0x5e8218['push'](_0x5e8218['shift']());}}}(a159_0x41c4,0x4ae9d));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x1a9885(0xba)]([a159_0x1a9885(0xc4),a159_0x1a9885(0xb8),a159_0x1a9885(0xc8),a159_0x1a9885(0xc3),a159_0x1a9885(0xa9),a159_0x1a9885(0xb2),a159_0x1a9885(0xc5)]);export const RepeatUnitSchema=z[a159_0x1a9885(0xba)]([a159_0x1a9885(0xa7),'hour','day',a159_0x1a9885(0xc0),a159_0x1a9885(0xa4),a159_0x1a9885(0xad),'none']);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema[a159_0x1a9885(0xaa)](),'repeat_unit':RepeatUnitSchema[a159_0x1a9885(0xaa)](),'repeat_frequency':z[a159_0x1a9885(0xcf)]()['optional'](),'repeat_sub_frequency':z['array'](z[a159_0x1a9885(0xcf)]())[a159_0x1a9885(0xaa)](),'start_at':z[a159_0x1a9885(0xc2)]()[a159_0x1a9885(0xce)]()['optional'](),'end_on':z[a159_0x1a9885(0xc2)]()[a159_0x1a9885(0xce)]()['optional'](),'timezone':z[a159_0x1a9885(0xc2)]()['optional']()});function a159_0x55e7(_0x44b7a3,_0x51afbd){_0x44b7a3=_0x44b7a3-0xa4;const _0x41c4af=a159_0x41c4();let _0x55e796=_0x41c4af[_0x44b7a3];return _0x55e796;}export const NotificationDefSchema=z[a159_0x1a9885(0xbb)]({'notify_on':z[a159_0x1a9885(0xac)](z['enum'](['onSuccess','onFailure']))[a159_0x1a9885(0xaa)](),'email_recipients':z[a159_0x1a9885(0xac)](z['string']())[a159_0x1a9885(0xaa)]()});export const ActivationColumnDefSchema=z[a159_0x1a9885(0xbc)]([z[a159_0x1a9885(0xc2)](),z[a159_0x1a9885(0xbb)]({'name':z['string'](),'type':z[a159_0x1a9885(0xc2)]()[a159_0x1a9885(0xaa)](),'visibility':z[a159_0x1a9885(0xba)](['clear',a159_0x1a9885(0xb6)])['optional']()})]);export const ActivationBehaviorDefSchema=z[a159_0x1a9885(0xbb)]({'columns':z['array'](z['object']({'name':z[a159_0x1a9885(0xc2)](),'type':z[a159_0x1a9885(0xc2)]()['optional'](),'visibility':z[a159_0x1a9885(0xba)]([a159_0x1a9885(0xbd),a159_0x1a9885(0xb6)])['optional']()}))[a159_0x1a9885(0xaa)](),'behavior_table':z[a159_0x1a9885(0xc2)]()[a159_0x1a9885(0xaa)](),'join_row':z[a159_0x1a9885(0xcf)]()[a159_0x1a9885(0xce)]()[a159_0x1a9885(0xaa)](),'join_strategy':z[a159_0x1a9885(0xba)]([a159_0x1a9885(0xbe),a159_0x1a9885(0xb0),'Last',a159_0x1a9885(0xb3)])[a159_0x1a9885(0xaa)](),'formatting':z[a159_0x1a9885(0xba)]([a159_0x1a9885(0xc9),a159_0x1a9885(0xc6)])[a159_0x1a9885(0xaa)](),'order_by':z[a159_0x1a9885(0xac)](z[a159_0x1a9885(0xbb)]({'key':z[a159_0x1a9885(0xc2)](),'order':z[a159_0x1a9885(0xba)]([a159_0x1a9885(0xc7),a159_0x1a9885(0xb5)])}))[a159_0x1a9885(0xaa)]()});export const ActivationDefSchema=z['object']({'name':z[a159_0x1a9885(0xc2)]()['min'](0x1,a159_0x1a9885(0xcb)),'description':z[a159_0x1a9885(0xc2)]()[a159_0x1a9885(0xaa)](),'connection':z['string']()[a159_0x1a9885(0xc1)](0x1,a159_0x1a9885(0xa8)),'all_columns':z[a159_0x1a9885(0xab)]()[a159_0x1a9885(0xaa)](),'columns':z[a159_0x1a9885(0xac)](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a159_0x1a9885(0xaa)](),'notification':NotificationDefSchema[a159_0x1a9885(0xaa)](),'connector_config':z[a159_0x1a9885(0xaf)](z[a159_0x1a9885(0xc2)](),z[a159_0x1a9885(0xcd)]())[a159_0x1a9885(0xaa)](),'activation_template_id':z['string']()['nullable']()[a159_0x1a9885(0xaa)](),'behavior':ActivationBehaviorDefSchema[a159_0x1a9885(0xce)]()[a159_0x1a9885(0xaa)](),'run_after_journey_refresh':z[a159_0x1a9885(0xab)]()[a159_0x1a9885(0xaa)](),'nested_workflow_project_name':z[a159_0x1a9885(0xc2)]()[a159_0x1a9885(0xaa)](),'nested_workflow_name':z['string']()[a159_0x1a9885(0xaa)](),'lock_enabled':z[a159_0x1a9885(0xab)]()[a159_0x1a9885(0xaa)]()});
@@ -1 +1 @@
1
- function a160_0x190a(_0x4874db,_0xac6e6a){_0x4874db=_0x4874db-0xed;var _0x2c21b0=a160_0x2c21();var _0x190a3a=_0x2c21b0[_0x4874db];return _0x190a3a;}(function(_0x1eb6ec,_0x599550){var _0x1229ba=a160_0x190a,_0x1e344b=_0x1eb6ec();while(!![]){try{var _0x1dac75=-parseInt(_0x1229ba(0xf5))/0x1+parseInt(_0x1229ba(0xf3))/0x2+parseInt(_0x1229ba(0xf1))/0x3*(-parseInt(_0x1229ba(0xef))/0x4)+parseInt(_0x1229ba(0xed))/0x5+parseInt(_0x1229ba(0xf2))/0x6+parseInt(_0x1229ba(0xee))/0x7+parseInt(_0x1229ba(0xf0))/0x8*(-parseInt(_0x1229ba(0xf4))/0x9);if(_0x1dac75===_0x599550)break;else _0x1e344b['push'](_0x1e344b['shift']());}catch(_0x176bdd){_0x1e344b['push'](_0x1e344b['shift']());}}}(a160_0x2c21,0xd8ade));function a160_0x2c21(){var _0x5f2b6d=['4556900hociAl','8382376rkdAmd','3bnnmRd','10067994UOoEoH','3155428ReqaEw','18wngDJW','505005rwHMWh','3428570qKrPjZ','4801405kRlxBh'];a160_0x2c21=function(){return _0x5f2b6d;};return a160_0x2c21();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a160_0x1c65(_0x1bcf0a,_0x4a6dca){_0x1bcf0a=_0x1bcf0a-0xa5;var _0x5d8f2f=a160_0x5d8f();var _0x1c6597=_0x5d8f2f[_0x1bcf0a];return _0x1c6597;}function a160_0x5d8f(){var _0x45dd8e=['2188089hyNkzA','222032gfRend','50ZuhDQr','4265436WzffLZ','20614470MvRlon','4084724nquoqi','52593QJVxhg','8CpRgug','5765zYEqRp','5412uDphAp'];a160_0x5d8f=function(){return _0x45dd8e;};return a160_0x5d8f();}(function(_0x5b5487,_0x403221){var _0x320704=a160_0x1c65,_0x240fc7=_0x5b5487();while(!![]){try{var _0x158d7e=parseInt(_0x320704(0xae))/0x1+-parseInt(_0x320704(0xa5))/0x2*(parseInt(_0x320704(0xa9))/0x3)+-parseInt(_0x320704(0xa8))/0x4+parseInt(_0x320704(0xab))/0x5*(-parseInt(_0x320704(0xac))/0x6)+parseInt(_0x320704(0xa6))/0x7+parseInt(_0x320704(0xaa))/0x8*(parseInt(_0x320704(0xad))/0x9)+parseInt(_0x320704(0xa7))/0xa;if(_0x158d7e===_0x403221)break;else _0x240fc7['push'](_0x240fc7['shift']());}catch(_0x272398){_0x240fc7['push'](_0x240fc7['shift']());}}}(a160_0x5d8f,0x9b646));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a161_0xa5c8f5=a161_0x2adb;(function(_0xda5df6,_0x4d911e){const _0x580618=a161_0x2adb,_0x26dd38=_0xda5df6();while(!![]){try{const _0x5d5866=-parseInt(_0x580618(0x169))/0x1*(-parseInt(_0x580618(0x15b))/0x2)+parseInt(_0x580618(0x160))/0x3*(-parseInt(_0x580618(0x162))/0x4)+-parseInt(_0x580618(0x156))/0x5*(parseInt(_0x580618(0x15a))/0x6)+-parseInt(_0x580618(0x171))/0x7*(-parseInt(_0x580618(0x155))/0x8)+-parseInt(_0x580618(0x183))/0x9*(parseInt(_0x580618(0x16a))/0xa)+parseInt(_0x580618(0x168))/0xb*(parseInt(_0x580618(0x178))/0xc)+parseInt(_0x580618(0x161))/0xd*(parseInt(_0x580618(0x184))/0xe);if(_0x5d5866===_0x4d911e)break;else _0x26dd38['push'](_0x26dd38['shift']());}catch(_0x542025){_0x26dd38['push'](_0x26dd38['shift']());}}}(a161_0x4ea4,0x82480));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';function a161_0x2adb(_0x47daef,_0x3c066e){_0x47daef=_0x47daef-0x155;const _0x4ea407=a161_0x4ea4();let _0x2adbda=_0x4ea407[_0x47daef];return _0x2adbda;}export const JourneyStateTypeSchema=z[a161_0xa5c8f5(0x15e)](['draft',a161_0xa5c8f5(0x170),'launched']);export const ReentryModeTypeSchema=z[a161_0xa5c8f5(0x15e)]([a161_0xa5c8f5(0x17b),a161_0xa5c8f5(0x163),a161_0xa5c8f5(0x15d)]);export const WaitUnitTypeSchema=z[a161_0xa5c8f5(0x15e)]([a161_0xa5c8f5(0x15c),'week']);export const StepTypeValueSchema=z[a161_0xa5c8f5(0x15e)]([a161_0xa5c8f5(0x15f),'activation','decision_point',a161_0xa5c8f5(0x182),a161_0xa5c8f5(0x17f),a161_0xa5c8f5(0x175),'end']);export const EmbeddedSegmentDefSchema=z[a161_0xa5c8f5(0x173)]({'description':z['string']()[a161_0xa5c8f5(0x166)](),'rule':RuleDefSchema});function a161_0x4ea4(){const _0x38bbbf=['8MrKyNi','5100280VRKiTJ','journeys','stages','Journey\x20name\x20is\x20required','6oULHTk','2HNrIPx','day','reentry_always','enum','wait','69861UsUrqS','235898DTektN','124NDGCKe','reentry_unless_goal_achieved','boolean','journey','optional','literal','267069NvHeXV','84163OVANLc','10hOCtBk','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','filter','type','refine','string','simulation','3631306OsKGwv','record','object','passthrough','jump','versions','array','60JrYBuy','lazy','discriminatedUnion','no_reentry','isArray','activation','end','merge','number','length','ab_test','5962887SlTgLn','1708NKOOTg'];a161_0x4ea4=function(){return _0x38bbbf;};return a161_0x4ea4();}const JumpTargetDefSchema=z[a161_0xa5c8f5(0x173)]({'journey':z[a161_0xa5c8f5(0x16f)](),'stage':z['string'](),'bundle_id':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)]()});export const CriteriaDefSchema=z['object']({'name':z[a161_0xa5c8f5(0x16f)](),'description':z['string']()['optional'](),'segment':z['string'](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a161_0xa5c8f5(0x173)]({'duration':z[a161_0xa5c8f5(0x180)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a161_0xa5c8f5(0x166)]()}),WaitConditionDefSchema=z[a161_0xa5c8f5(0x173)]({'segment':z[a161_0xa5c8f5(0x16f)](),'next':z[a161_0xa5c8f5(0x16f)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a161_0xa5c8f5(0x166)]()}),WaitStepParamsDefSchema=z[a161_0xa5c8f5(0x173)]({'duration':z[a161_0xa5c8f5(0x180)]()['optional'](),'unit':WaitUnitTypeSchema[a161_0xa5c8f5(0x166)](),'wait_until':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'condition':WaitConditionDefSchema[a161_0xa5c8f5(0x166)](),'days_of_week':z[a161_0xa5c8f5(0x177)](z[a161_0xa5c8f5(0x16f)]())['optional']()}),StepBaseFields={'name':z[a161_0xa5c8f5(0x16f)](),'uuid':z[a161_0xa5c8f5(0x16f)]()['optional'](),'next':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)]()},WaitStepDefSchema=z[a161_0xa5c8f5(0x173)]({...StepBaseFields,'type':z[a161_0xa5c8f5(0x167)](a161_0xa5c8f5(0x15f)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a161_0xa5c8f5(0x16f)]()}),ActivationStepDefSchema=z[a161_0xa5c8f5(0x173)]({...StepBaseFields,'type':z['literal'](a161_0xa5c8f5(0x17d)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0xa5c8f5(0x173)]({'name':z[a161_0xa5c8f5(0x16f)](),'segment':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'segment_id':z[a161_0xa5c8f5(0x16f)]()['optional'](),'excluded':z[a161_0xa5c8f5(0x164)]()[a161_0xa5c8f5(0x166)](),'next':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)]()}),DecisionPointStepParamsDefSchema=z[a161_0xa5c8f5(0x173)]({'branches':z[a161_0xa5c8f5(0x177)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0xa5c8f5(0x167)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0xa5c8f5(0x173)]({'id':z[a161_0xa5c8f5(0x16f)]()['optional'](),'name':z[a161_0xa5c8f5(0x16f)](),'percentage':z[a161_0xa5c8f5(0x180)](),'next':z['string']()[a161_0xa5c8f5(0x166)]()}),AbTestStepParamsDefSchema=z[a161_0xa5c8f5(0x173)]({'variants':z[a161_0xa5c8f5(0x177)](AbTestVariantDefSchema),'unique_id':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'customized_split':z[a161_0xa5c8f5(0x164)]()[a161_0xa5c8f5(0x166)]()}),AbTestStepDefSchema=z[a161_0xa5c8f5(0x173)]({...StepBaseFields,'type':z[a161_0xa5c8f5(0x167)](a161_0xa5c8f5(0x182)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0xa5c8f5(0x167)](a161_0xa5c8f5(0x17f))}),JumpStepParamsDefSchema=z[a161_0xa5c8f5(0x173)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0xa5c8f5(0x173)]({...StepBaseFields,'type':z[a161_0xa5c8f5(0x167)](a161_0xa5c8f5(0x175)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0xa5c8f5(0x173)]({...StepBaseFields,'type':z[a161_0xa5c8f5(0x167)](a161_0xa5c8f5(0x17e))})[a161_0xa5c8f5(0x174)]();export const StepDefSchema=z[a161_0xa5c8f5(0x17a)](a161_0xa5c8f5(0x16d),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0xa5c8f5(0x173)]({'name':z[a161_0xa5c8f5(0x16f)](),'description':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'id':z[a161_0xa5c8f5(0x16f)]()['optional'](),'entry_criteria':CriteriaDefSchema[a161_0xa5c8f5(0x166)](),'exit_criteria':z[a161_0xa5c8f5(0x177)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a161_0xa5c8f5(0x166)](),'root_step':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'steps':z['array'](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z['object']({'name':z[a161_0xa5c8f5(0x16f)]()['optional'](),'version':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'state':JourneyStateTypeSchema[a161_0xa5c8f5(0x166)](),'latest':z[a161_0xa5c8f5(0x164)]()[a161_0xa5c8f5(0x166)](),'stages':z[a161_0xa5c8f5(0x177)](StageDefSchema),'id':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'version_number':z[a161_0xa5c8f5(0x180)]()[a161_0xa5c8f5(0x166)](),'goal':CriteriaDefSchema[a161_0xa5c8f5(0x166)](),'reentry':ReentryModeTypeSchema[a161_0xa5c8f5(0x166)]()});export const JourneyDefSchema=z[a161_0xa5c8f5(0x179)](()=>z[a161_0xa5c8f5(0x173)]({'type':z[a161_0xa5c8f5(0x167)](a161_0xa5c8f5(0x165)),'name':z[a161_0xa5c8f5(0x16f)]()['min'](0x1,a161_0xa5c8f5(0x159)),'description':z[a161_0xa5c8f5(0x16f)]()['optional'](),'bundle_id':z['string']()[a161_0xa5c8f5(0x166)](),'bundle_name':z[a161_0xa5c8f5(0x16f)]()['optional'](),'folder_id':z[a161_0xa5c8f5(0x16f)]()[a161_0xa5c8f5(0x166)](),'reentry':ReentryModeTypeSchema[a161_0xa5c8f5(0x166)](),'allow_reentry':z[a161_0xa5c8f5(0x164)]()[a161_0xa5c8f5(0x166)](),'goal':CriteriaDefSchema['optional'](),'id':z['string']()[a161_0xa5c8f5(0x166)](),'version':z['string']()['optional'](),'version_number':z[a161_0xa5c8f5(0x180)]()[a161_0xa5c8f5(0x166)](),'stages':z[a161_0xa5c8f5(0x177)](StageDefSchema)[a161_0xa5c8f5(0x166)](),'versions':z[a161_0xa5c8f5(0x177)](JourneyEntryDefSchema)[a161_0xa5c8f5(0x166)](),'journeys':z[a161_0xa5c8f5(0x177)](JourneyEntryDefSchema)[a161_0xa5c8f5(0x166)](),'segments':z[a161_0xa5c8f5(0x172)](z[a161_0xa5c8f5(0x16f)](),EmbeddedSegmentDefSchema)[a161_0xa5c8f5(0x166)](),'activations':z[a161_0xa5c8f5(0x172)](z[a161_0xa5c8f5(0x16f)](),ActivationDefSchema)[a161_0xa5c8f5(0x166)]()})[a161_0xa5c8f5(0x16e)](_0x2fc895=>{const _0x322914=a161_0xa5c8f5,_0x47e16b=[_0x2fc895[_0x322914(0x157)],_0x2fc895[_0x322914(0x158)],_0x2fc895[_0x322914(0x176)]][_0x322914(0x16c)](_0x174377=>Array[_0x322914(0x17c)](_0x174377)&&_0x174377[_0x322914(0x181)]>0x0)['length'];return _0x47e16b===0x1;},{'message':a161_0xa5c8f5(0x16b)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a161_0x249fc6=a161_0x143e;function a161_0x399e(){const _0x429e3d=['type','launched','string','16YXxdAE','length','journeys','428932zRSMBv','wait','end','week','4197672dNqniO','no_reentry','draft','discriminatedUnion','min','enum','literal','jump','number','journey','record','decision_point','ab_test','object','3635001QBCKos','5WLNXXx','optional','reentry_unless_goal_achieved','lazy','refine','233954wBWlEl','184722pRXTRU','isArray','boolean','886676JhpxeL','reentry_always','array','28REPZTC','simulation','35499178dSIZKT','merge','20aJLuzn','versions'];a161_0x399e=function(){return _0x429e3d;};return a161_0x399e();}(function(_0x38b7ea,_0x2d4be4){const _0x5c16e2=a161_0x143e,_0x1d9528=_0x38b7ea();while(!![]){try{const _0x52b055=-parseInt(_0x5c16e2(0x85))/0x1+parseInt(_0x5c16e2(0x8c))/0x2*(-parseInt(_0x5c16e2(0x86))/0x3)+-parseInt(_0x5c16e2(0x89))/0x4*(parseInt(_0x5c16e2(0xab))/0x5)+-parseInt(_0x5c16e2(0x9c))/0x6+-parseInt(_0x5c16e2(0x98))/0x7*(-parseInt(_0x5c16e2(0x95))/0x8)+-parseInt(_0x5c16e2(0xaa))/0x9*(parseInt(_0x5c16e2(0x90))/0xa)+parseInt(_0x5c16e2(0x8e))/0xb;if(_0x52b055===_0x2d4be4)break;else _0x1d9528['push'](_0x1d9528['shift']());}catch(_0x259fbc){_0x1d9528['push'](_0x1d9528['shift']());}}}(a161_0x399e,0x8019d));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x249fc6(0xa1)]([a161_0x249fc6(0x9e),a161_0x249fc6(0x8d),a161_0x249fc6(0x93)]);export const ReentryModeTypeSchema=z['enum']([a161_0x249fc6(0x9d),a161_0x249fc6(0x82),a161_0x249fc6(0x8a)]);export const WaitUnitTypeSchema=z[a161_0x249fc6(0xa1)](['day',a161_0x249fc6(0x9b)]);export const StepTypeValueSchema=z['enum']([a161_0x249fc6(0x99),'activation',a161_0x249fc6(0xa7),a161_0x249fc6(0xa8),a161_0x249fc6(0x8f),a161_0x249fc6(0xa3),'end']);export const EmbeddedSegmentDefSchema=z[a161_0x249fc6(0xa9)]({'description':z['string']()[a161_0x249fc6(0x81)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x249fc6(0xa9)]({'journey':z['string'](),'stage':z[a161_0x249fc6(0x94)](),'bundle_id':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)]()});export const CriteriaDefSchema=z[a161_0x249fc6(0xa9)]({'name':z[a161_0x249fc6(0x94)](),'description':z[a161_0x249fc6(0x94)]()['optional'](),'segment':z['string'](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a161_0x249fc6(0xa9)]({'duration':z[a161_0x249fc6(0xa4)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)]()}),WaitConditionDefSchema=z[a161_0x249fc6(0xa9)]({'segment':z[a161_0x249fc6(0x94)](),'next':z['string']()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a161_0x249fc6(0x81)]()}),WaitStepParamsDefSchema=z[a161_0x249fc6(0xa9)]({'duration':z[a161_0x249fc6(0xa4)]()[a161_0x249fc6(0x81)](),'unit':WaitUnitTypeSchema[a161_0x249fc6(0x81)](),'wait_until':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'condition':WaitConditionDefSchema[a161_0x249fc6(0x81)](),'days_of_week':z[a161_0x249fc6(0x8b)](z[a161_0x249fc6(0x94)]())['optional']()}),StepBaseFields={'name':z[a161_0x249fc6(0x94)](),'uuid':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'next':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)]()},WaitStepDefSchema=z[a161_0x249fc6(0xa9)]({...StepBaseFields,'type':z[a161_0x249fc6(0xa2)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x249fc6(0xa9)]({'activation':z[a161_0x249fc6(0x94)]()}),ActivationStepDefSchema=z[a161_0x249fc6(0xa9)]({...StepBaseFields,'type':z[a161_0x249fc6(0xa2)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x249fc6(0xa9)]({'name':z['string'](),'segment':z[a161_0x249fc6(0x94)]()['optional'](),'segment_id':z['string']()[a161_0x249fc6(0x81)](),'excluded':z['boolean']()[a161_0x249fc6(0x81)](),'next':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)]()}),DecisionPointStepParamsDefSchema=z[a161_0x249fc6(0xa9)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x249fc6(0xa9)]({...StepBaseFields,'type':z[a161_0x249fc6(0xa2)](a161_0x249fc6(0xa7)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x249fc6(0xa9)]({'id':z[a161_0x249fc6(0x94)]()['optional'](),'name':z['string'](),'percentage':z[a161_0x249fc6(0xa4)](),'next':z['string']()[a161_0x249fc6(0x81)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z['string']()[a161_0x249fc6(0x81)](),'customized_split':z[a161_0x249fc6(0x88)]()[a161_0x249fc6(0x81)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x249fc6(0xa2)](a161_0x249fc6(0xa8)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x249fc6(0xa9)]({...StepBaseFields,'type':z['literal'](a161_0x249fc6(0x8f))}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x249fc6(0xa9)]({...StepBaseFields,'type':z['literal'](a161_0x249fc6(0xa3)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x249fc6(0xa9)]({...StepBaseFields,'type':z[a161_0x249fc6(0xa2)](a161_0x249fc6(0x9a))})['passthrough']();function a161_0x143e(_0xc34b0d,_0x4ab24b){_0xc34b0d=_0xc34b0d-0x81;const _0x399e3c=a161_0x399e();let _0x143eab=_0x399e3c[_0xc34b0d];return _0x143eab;}export const StepDefSchema=z[a161_0x249fc6(0x9f)](a161_0x249fc6(0x92),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x249fc6(0xa9)]({'name':z[a161_0x249fc6(0x94)](),'description':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'id':z[a161_0x249fc6(0x94)]()['optional'](),'entry_criteria':CriteriaDefSchema[a161_0x249fc6(0x81)](),'exit_criteria':z[a161_0x249fc6(0x8b)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a161_0x249fc6(0x81)](),'root_step':z['string']()[a161_0x249fc6(0x81)](),'steps':z[a161_0x249fc6(0x8b)](StepDefSchema)[a161_0x249fc6(0x81)]()});export const JourneyEntryDefSchema=z[a161_0x249fc6(0xa9)]({'name':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'version':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'state':JourneyStateTypeSchema[a161_0x249fc6(0x81)](),'latest':z[a161_0x249fc6(0x88)]()[a161_0x249fc6(0x81)](),'stages':z['array'](StageDefSchema),'id':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'version_number':z['number']()['optional'](),'goal':CriteriaDefSchema[a161_0x249fc6(0x81)](),'reentry':ReentryModeTypeSchema[a161_0x249fc6(0x81)]()});export const JourneyDefSchema=z[a161_0x249fc6(0x83)](()=>z[a161_0x249fc6(0xa9)]({'type':z['literal'](a161_0x249fc6(0xa5)),'name':z['string']()[a161_0x249fc6(0xa0)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a161_0x249fc6(0x94)]()['optional'](),'bundle_id':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'bundle_name':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'folder_id':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'reentry':ReentryModeTypeSchema[a161_0x249fc6(0x81)](),'allow_reentry':z[a161_0x249fc6(0x88)]()['optional'](),'goal':CriteriaDefSchema['optional'](),'id':z[a161_0x249fc6(0x94)]()[a161_0x249fc6(0x81)](),'version':z['string']()[a161_0x249fc6(0x81)](),'version_number':z[a161_0x249fc6(0xa4)]()[a161_0x249fc6(0x81)](),'stages':z[a161_0x249fc6(0x8b)](StageDefSchema)['optional'](),'versions':z['array'](JourneyEntryDefSchema)['optional'](),'journeys':z[a161_0x249fc6(0x8b)](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x249fc6(0xa6)](z[a161_0x249fc6(0x94)](),EmbeddedSegmentDefSchema)[a161_0x249fc6(0x81)](),'activations':z[a161_0x249fc6(0xa6)](z[a161_0x249fc6(0x94)](),ActivationDefSchema)['optional']()})[a161_0x249fc6(0x84)](_0x7ac724=>{const _0x4696e6=a161_0x249fc6,_0xa44900=[_0x7ac724[_0x4696e6(0x97)],_0x7ac724['stages'],_0x7ac724[_0x4696e6(0x91)]]['filter'](_0x54dee6=>Array[_0x4696e6(0x87)](_0x54dee6)&&_0x54dee6[_0x4696e6(0x96)]>0x0)[_0x4696e6(0x96)];return _0xa44900===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x3412c0,_0x14cea9){var _0x1028eb=a163_0x5959,_0x2b5be5=_0x3412c0();while(!![]){try{var _0x5e4d63=parseInt(_0x1028eb(0x17c))/0x1*(-parseInt(_0x1028eb(0x17b))/0x2)+parseInt(_0x1028eb(0x174))/0x3*(parseInt(_0x1028eb(0x172))/0x4)+parseInt(_0x1028eb(0x177))/0x5+parseInt(_0x1028eb(0x175))/0x6*(parseInt(_0x1028eb(0x178))/0x7)+parseInt(_0x1028eb(0x179))/0x8+parseInt(_0x1028eb(0x17a))/0x9+-parseInt(_0x1028eb(0x176))/0xa*(parseInt(_0x1028eb(0x173))/0xb);if(_0x5e4d63===_0x14cea9)break;else _0x2b5be5['push'](_0x2b5be5['shift']());}catch(_0x59f04c){_0x2b5be5['push'](_0x2b5be5['shift']());}}}(a163_0x134f,0x1db1b));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x5959(_0x1347c5,_0x484999){_0x1347c5=_0x1347c5-0x172;var _0x134f63=a163_0x134f();var _0x5959b6=_0x134f63[_0x1347c5];return _0x5959b6;}function a163_0x134f(){var _0x3c9cc8=['2387ukyzOJ','15039FGBZvn','870WaJXwW','13850kkdspm','415000fupUIV','3689acRROM','1421312AUQWPi','294030UghzYF','75622ERpjVd','1oSLxMs','72RUpxXs'];a163_0x134f=function(){return _0x3c9cc8;};return a163_0x134f();}
1
+ (function(_0x3989a0,_0x1e0ecc){var _0x38770e=a163_0x1b9f,_0x1be240=_0x3989a0();while(!![]){try{var _0x31dea1=-parseInt(_0x38770e(0xe0))/0x1+-parseInt(_0x38770e(0xe2))/0x2+parseInt(_0x38770e(0xdb))/0x3*(parseInt(_0x38770e(0xe1))/0x4)+-parseInt(_0x38770e(0xdc))/0x5*(-parseInt(_0x38770e(0xdf))/0x6)+-parseInt(_0x38770e(0xe4))/0x7*(-parseInt(_0x38770e(0xda))/0x8)+parseInt(_0x38770e(0xe3))/0x9+parseInt(_0x38770e(0xdd))/0xa*(-parseInt(_0x38770e(0xde))/0xb);if(_0x31dea1===_0x1e0ecc)break;else _0x1be240['push'](_0x1be240['shift']());}catch(_0x82ddcb){_0x1be240['push'](_0x1be240['shift']());}}}(a163_0x1107,0x9ddd7));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0x1b9f(_0x3c01f5,_0x54bf03){_0x3c01f5=_0x3c01f5-0xda;var _0x11077e=a163_0x1107();var _0x1b9f3b=_0x11077e[_0x3c01f5];return _0x1b9f3b;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x1107(){var _0x1ec16b=['1241964YIvNMJ','5587498kQAcIZ','8zTugCI','6iZaNnu','5wsHlaL','94260MKjXqt','1727xnxOqJ','5181360HvAuSv','181961ksZick','1840172wwguox','822796gSPeoS'];a163_0x1107=function(){return _0x1ec16b;};return a163_0x1107();}
@@ -1 +1 @@
1
- const a164_0x2e2bb4=a164_0x18ef;(function(_0x29cf98,_0x241cc4){const _0x49bd92=a164_0x18ef,_0x3adf9e=_0x29cf98();while(!![]){try{const _0x5dd916=parseInt(_0x49bd92(0x178))/0x1*(parseInt(_0x49bd92(0x18a))/0x2)+parseInt(_0x49bd92(0x162))/0x3*(parseInt(_0x49bd92(0x199))/0x4)+parseInt(_0x49bd92(0x198))/0x5+parseInt(_0x49bd92(0x181))/0x6*(parseInt(_0x49bd92(0x1a9))/0x7)+parseInt(_0x49bd92(0x196))/0x8+parseInt(_0x49bd92(0x1b2))/0x9*(-parseInt(_0x49bd92(0x17a))/0xa)+-parseInt(_0x49bd92(0x182))/0xb*(parseInt(_0x49bd92(0x166))/0xc);if(_0x5dd916===_0x241cc4)break;else _0x3adf9e['push'](_0x3adf9e['shift']());}catch(_0x36a98d){_0x3adf9e['push'](_0x3adf9e['shift']());}}}(a164_0x3e4b,0xb977c));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x2e2bb4(0x183)]([a164_0x2e2bb4(0x186),a164_0x2e2bb4(0x192),'Less',a164_0x2e2bb4(0x193),a164_0x2e2bb4(0x1a0),'In','Between',a164_0x2e2bb4(0x1a5),'IsNull',a164_0x2e2bb4(0x1a6),a164_0x2e2bb4(0x174),a164_0x2e2bb4(0x170),a164_0x2e2bb4(0x1b0),'EndWith','TimeRange']);export const TimeUnitSchema=z['enum']([a164_0x2e2bb4(0x173),a164_0x2e2bb4(0x176),a164_0x2e2bb4(0x190),'day',a164_0x2e2bb4(0x19e),a164_0x2e2bb4(0x161),a164_0x2e2bb4(0x17b)]);export const AggregationTypeSchema=z[a164_0x2e2bb4(0x183)]([a164_0x2e2bb4(0x1a3),a164_0x2e2bb4(0x1a2),a164_0x2e2bb4(0x17c),'Min',a164_0x2e2bb4(0x18f),a164_0x2e2bb4(0x1a7),a164_0x2e2bb4(0x16b),'Last']);function a164_0x3e4b(){const _0x4fe5bb=['unit','batch','second','TimeWithinNext','Segment\x20reference\x20must\x20not\x20be\x20empty','minute','TimeRange\x20operator\x20requires\x20\x27from\x27','27PnaAqL','TimeRange\x20operator\x20requires\x20\x27duration\x27','4810RTlHmN','year','Average','Less','EndWith','And','boolean','1371486yfFzGc','8525LQcfEp','enum','timestamp','has','Equal','Last','string','superRefine','94698wYiQEC','optional','Segment\x20name\x20is\x20required','include','number','Max','hour','realtime','Greater','GreaterEqual','Between','\x27\x20requires\x20a\x20time\x20unit','7781336bRGXNp','from','5927490QccpOA','44VgqKCa','array','record','type','min','week','Operator\x20\x27','LessEqual','object','Sum','Count','exclude','Regexp','TimeWithinPast','CountDistinct','column','35OLQxSp','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','lazy','any','TimeRange','custom','Value','StartWith','MISSING_BETWEEN_BOUNDS','8100iNiItU','month','131634wnjIzt','all','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','operator','59916qbXYEx','literal','addIssue','value','Column','First','union','duration','max','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Contain'];a164_0x3e4b=function(){return _0x4fe5bb;};return a164_0x3e4b();}const TemporalValueSchema=z[a164_0x2e2bb4(0x16c)]([z[a164_0x2e2bb4(0x1a1)]({'timestamp':z[a164_0x2e2bb4(0x188)]()}),z[a164_0x2e2bb4(0x1a1)]({'last':z[a164_0x2e2bb4(0x16c)]([z[a164_0x2e2bb4(0x18e)](),z[a164_0x2e2bb4(0x19b)](z[a164_0x2e2bb4(0x188)](),z[a164_0x2e2bb4(0x18e)]())]),'unit':z[a164_0x2e2bb4(0x188)]()})]),OperatorValueSchema=z[a164_0x2e2bb4(0x16c)]([z[a164_0x2e2bb4(0x188)](),z[a164_0x2e2bb4(0x18e)](),z[a164_0x2e2bb4(0x180)](),TemporalValueSchema,z[a164_0x2e2bb4(0x19a)](z['union']([z[a164_0x2e2bb4(0x188)](),z['number'](),z[a164_0x2e2bb4(0x180)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a164_0x2e2bb4(0x192),a164_0x2e2bb4(0x193),a164_0x2e2bb4(0x17d),'LessEqual','In','Contain',a164_0x2e2bb4(0x1b0),a164_0x2e2bb4(0x17e),'Regexp',a164_0x2e2bb4(0x1a6),a164_0x2e2bb4(0x174)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x2e2bb4(0x1a6),'TimeWithinNext']);export const OperatorDefSchema=z[a164_0x2e2bb4(0x1a1)]({'type':OperatorTypeSchema,'not':z[a164_0x2e2bb4(0x180)]()[a164_0x2e2bb4(0x18b)](),'value':OperatorValueSchema[a164_0x2e2bb4(0x18b)](),'min':z[a164_0x2e2bb4(0x16c)]([z['number'](),z['string'](),TemporalValueSchema])[a164_0x2e2bb4(0x18b)](),'max':z[a164_0x2e2bb4(0x16c)]([z['number'](),z[a164_0x2e2bb4(0x188)](),TemporalValueSchema])[a164_0x2e2bb4(0x18b)](),'unit':TimeUnitSchema[a164_0x2e2bb4(0x18b)](),'duration':z[a164_0x2e2bb4(0x1a1)]({'day':z[a164_0x2e2bb4(0x18e)]()[a164_0x2e2bb4(0x18b)](),'week':z['number']()['optional'](),'month':z[a164_0x2e2bb4(0x18e)]()[a164_0x2e2bb4(0x18b)](),'year':z['number']()['optional'](),'hour':z[a164_0x2e2bb4(0x18e)]()['optional'](),'minute':z[a164_0x2e2bb4(0x18e)]()[a164_0x2e2bb4(0x18b)](),'second':z[a164_0x2e2bb4(0x18e)]()[a164_0x2e2bb4(0x18b)]()})[a164_0x2e2bb4(0x18b)](),'from':z[a164_0x2e2bb4(0x1a1)]({'last':z[a164_0x2e2bb4(0x16c)]([z[a164_0x2e2bb4(0x18e)](),z[a164_0x2e2bb4(0x188)]()]),'unit':TimeUnitSchema})[a164_0x2e2bb4(0x18b)](),'reverse':z[a164_0x2e2bb4(0x180)]()[a164_0x2e2bb4(0x18b)]()})[a164_0x2e2bb4(0x189)]((_0x2f3c0e,_0xc7d9eb)=>{const _0x375922=a164_0x2e2bb4;OPERATORS_REQUIRING_VALUE['has'](_0x2f3c0e[_0x375922(0x19c)])&&(_0x2f3c0e[_0x375922(0x169)]===undefined||_0x2f3c0e[_0x375922(0x169)]===null)&&_0xc7d9eb[_0x375922(0x168)]({'code':_0x375922(0x1ae),'message':'Operator\x20\x27'+_0x2f3c0e[_0x375922(0x19c)]+'\x27\x20requires\x20a\x20value','path':['value']}),_0x2f3c0e[_0x375922(0x19c)]===_0x375922(0x194)&&_0x2f3c0e[_0x375922(0x19d)]===undefined&&_0x2f3c0e[_0x375922(0x16e)]===undefined&&_0xc7d9eb[_0x375922(0x168)]({'code':_0x375922(0x1ae),'message':_0x375922(0x16f),'params':{'validationCode':_0x375922(0x1b1)}}),OPERATORS_REQUIRING_UNIT['has'](_0x2f3c0e[_0x375922(0x19c)])&&_0x2f3c0e[_0x375922(0x169)]!==undefined&&!_0x2f3c0e[_0x375922(0x171)]&&_0xc7d9eb['addIssue']({'code':_0x375922(0x1ae),'message':_0x375922(0x19f)+_0x2f3c0e[_0x375922(0x19c)]+_0x375922(0x195),'path':[_0x375922(0x171)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x2f3c0e[_0x375922(0x19c)]===_0x375922(0x1ad)&&(!_0x2f3c0e[_0x375922(0x16d)]&&_0xc7d9eb[_0x375922(0x168)]({'code':_0x375922(0x1ae),'message':_0x375922(0x179),'path':[_0x375922(0x16d)]}),!_0x2f3c0e[_0x375922(0x197)]&&_0xc7d9eb[_0x375922(0x168)]({'code':_0x375922(0x1ae),'message':_0x375922(0x177),'path':['from']}));});export const ArrayMatchingSchema=z[a164_0x2e2bb4(0x16c)]([z[a164_0x2e2bb4(0x167)]('any'),z[a164_0x2e2bb4(0x167)](a164_0x2e2bb4(0x163)),z[a164_0x2e2bb4(0x1a1)]({'atLeast':z[a164_0x2e2bb4(0x18e)]()}),z[a164_0x2e2bb4(0x1a1)]({'atMost':z[a164_0x2e2bb4(0x18e)]()}),z[a164_0x2e2bb4(0x1a1)]({'exactly':z[a164_0x2e2bb4(0x18e)]()})]);export const AggregationDefSchema=z['discriminatedUnion'](a164_0x2e2bb4(0x19c),[z[a164_0x2e2bb4(0x1a1)]({'type':z['enum']([a164_0x2e2bb4(0x1a2),'Min',a164_0x2e2bb4(0x18f),'Average']),'column':z[a164_0x2e2bb4(0x188)](),'groupingColumns':z[a164_0x2e2bb4(0x19a)](z[a164_0x2e2bb4(0x188)]())[a164_0x2e2bb4(0x18b)]()}),z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x167)]('Count'),'groupingColumns':z[a164_0x2e2bb4(0x19a)](z['string']())['optional']()}),z['object']({'type':z[a164_0x2e2bb4(0x167)](a164_0x2e2bb4(0x1a7)),'columns':z[a164_0x2e2bb4(0x19a)](z[a164_0x2e2bb4(0x188)]())}),z['object']({'type':z[a164_0x2e2bb4(0x183)](['First',a164_0x2e2bb4(0x187)]),'column':z[a164_0x2e2bb4(0x188)](),'orderColumn':z[a164_0x2e2bb4(0x188)](),'groupingColumns':z[a164_0x2e2bb4(0x19a)](z[a164_0x2e2bb4(0x188)]())[a164_0x2e2bb4(0x18b)]()})]);export const TimeWindowDefSchema=z[a164_0x2e2bb4(0x1a1)]({'duration':z[a164_0x2e2bb4(0x18e)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x2e2bb4(0x1a6),'TimeWithinNext',a164_0x2e2bb4(0x1ad)]);export const FilterColumnConditionDefSchema=z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x167)](a164_0x2e2bb4(0x16a)),'column':z[a164_0x2e2bb4(0x188)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2e2bb4(0x18b)]()})[a164_0x2e2bb4(0x189)]((_0x1218ed,_0x3ababd)=>{const _0x8cb9bc=a164_0x2e2bb4,_0x5b6e55=_0x1218ed[_0x8cb9bc(0x165)]['type'];_0x1218ed[_0x8cb9bc(0x1a8)]===_0x8cb9bc(0x184)?!TIMESTAMP_OPERATORS['has'](_0x5b6e55)&&_0x3ababd[_0x8cb9bc(0x168)]({'code':_0x8cb9bc(0x1ae),'message':_0x8cb9bc(0x1aa)+_0x5b6e55+'\x27)','path':[_0x8cb9bc(0x165),_0x8cb9bc(0x19c)]}):TIMESTAMP_OPERATORS[_0x8cb9bc(0x185)](_0x5b6e55)&&_0x3ababd['addIssue']({'code':_0x8cb9bc(0x1ae),'message':_0x8cb9bc(0x19f)+_0x5b6e55+_0x8cb9bc(0x164),'path':[_0x8cb9bc(0x165),_0x8cb9bc(0x19c)]});});export const FilterRuleDefSchema=z['object']({'type':z['literal'](a164_0x2e2bb4(0x17f)),'conditions':z[a164_0x2e2bb4(0x19a)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z['lazy'](()=>z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x167)](a164_0x2e2bb4(0x1af)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2e2bb4(0x18b)](),'exclude':z[a164_0x2e2bb4(0x180)]()['optional'](),'aggregation':AggregationDefSchema[a164_0x2e2bb4(0x18b)](),'source':z[a164_0x2e2bb4(0x188)]()[a164_0x2e2bb4(0x18b)](),'filter':FilterRuleDefSchema[a164_0x2e2bb4(0x18b)](),'limit':z[a164_0x2e2bb4(0x18e)]()['optional']()}));export const BehaviorConditionDefSchema=z[a164_0x2e2bb4(0x1ab)](()=>z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x167)]('Behavior'),'attribute':z[a164_0x2e2bb4(0x188)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a164_0x2e2bb4(0x180)]()[a164_0x2e2bb4(0x18b)](),'aggregation':AggregationDefSchema[a164_0x2e2bb4(0x18b)](),'source':z['string']()['optional'](),'filter':FilterRuleDefSchema[a164_0x2e2bb4(0x18b)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a164_0x2e2bb4(0x18e)]()['optional']()}));export const ColumnConditionDefSchema=z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x167)]('Column'),'column':z[a164_0x2e2bb4(0x188)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z[a164_0x2e2bb4(0x183)](['And','Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a164_0x2e2bb4(0x188)]()[a164_0x2e2bb4(0x18b)]()}));export const SegmentRefConditionDefSchema=z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x183)]([a164_0x2e2bb4(0x18d),a164_0x2e2bb4(0x1a4)]),'segment':z[a164_0x2e2bb4(0x188)]()[a164_0x2e2bb4(0x19d)](0x1,a164_0x2e2bb4(0x175))});export const ConditionDefSchema=z[a164_0x2e2bb4(0x1ab)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));function a164_0x18ef(_0x10927b,_0x3e8bf6){_0x10927b=_0x10927b-0x161;const _0x3e4bdc=a164_0x3e4b();let _0x18ef71=_0x3e4bdc[_0x10927b];return _0x18ef71;}export const RuleDefSchema=z[a164_0x2e2bb4(0x1ab)](()=>z['object']({'type':z[a164_0x2e2bb4(0x183)]([a164_0x2e2bb4(0x17f),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a164_0x2e2bb4(0x188)]()['optional']()}));export const SegmentDefSchema=z[a164_0x2e2bb4(0x1a1)]({'type':z[a164_0x2e2bb4(0x167)]('segment')[a164_0x2e2bb4(0x18b)](),'name':z[a164_0x2e2bb4(0x188)]()['min'](0x1,a164_0x2e2bb4(0x18c)),'description':z[a164_0x2e2bb4(0x188)]()['optional'](),'folder':z[a164_0x2e2bb4(0x188)]()[a164_0x2e2bb4(0x18b)](),'rule':RuleDefSchema[a164_0x2e2bb4(0x18b)](),'kind':z[a164_0x2e2bb4(0x183)]([a164_0x2e2bb4(0x172),a164_0x2e2bb4(0x191),'funnel_stage'])['optional'](),'visible':z[a164_0x2e2bb4(0x180)]()['optional'](),'activations':z[a164_0x2e2bb4(0x19a)](z[a164_0x2e2bb4(0x1ac)]())[a164_0x2e2bb4(0x18b)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ function a164_0x4ee4(_0xf40a89,_0x4516a6){_0xf40a89=_0xf40a89-0x143;const _0x492c5e=a164_0x492c();let _0x4ee44e=_0x492c5e[_0xf40a89];return _0x4ee44e;}const a164_0x51f226=a164_0x4ee4;(function(_0x399052,_0x28dd84){const _0x889808=a164_0x4ee4,_0x575677=_0x399052();while(!![]){try{const _0x2a8f7e=parseInt(_0x889808(0x161))/0x1*(parseInt(_0x889808(0x196))/0x2)+-parseInt(_0x889808(0x148))/0x3*(parseInt(_0x889808(0x17c))/0x4)+parseInt(_0x889808(0x183))/0x5*(parseInt(_0x889808(0x185))/0x6)+parseInt(_0x889808(0x14e))/0x7*(parseInt(_0x889808(0x159))/0x8)+-parseInt(_0x889808(0x170))/0x9*(-parseInt(_0x889808(0x164))/0xa)+parseInt(_0x889808(0x18c))/0xb*(-parseInt(_0x889808(0x195))/0xc)+parseInt(_0x889808(0x152))/0xd*(-parseInt(_0x889808(0x168))/0xe);if(_0x2a8f7e===_0x28dd84)break;else _0x575677['push'](_0x575677['shift']());}catch(_0x13c340){_0x575677['push'](_0x575677['shift']());}}}(a164_0x492c,0xb6309));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a164_0x51f226(0x172),a164_0x51f226(0x157),a164_0x51f226(0x171),a164_0x51f226(0x146),a164_0x51f226(0x14f),'In',a164_0x51f226(0x16a),a164_0x51f226(0x15a),a164_0x51f226(0x17a),a164_0x51f226(0x165),'TimeWithinNext','Contain',a164_0x51f226(0x176),a164_0x51f226(0x178),a164_0x51f226(0x18b)]);export const TimeUnitSchema=z[a164_0x51f226(0x197)]([a164_0x51f226(0x193),a164_0x51f226(0x179),a164_0x51f226(0x186),a164_0x51f226(0x154),a164_0x51f226(0x174),a164_0x51f226(0x192),a164_0x51f226(0x173)]);export const AggregationTypeSchema=z['enum']([a164_0x51f226(0x156),a164_0x51f226(0x16b),a164_0x51f226(0x145),'Min','Max',a164_0x51f226(0x18d),a164_0x51f226(0x166),a164_0x51f226(0x181)]);const TemporalValueSchema=z['union']([z['object']({'timestamp':z[a164_0x51f226(0x143)]()}),z[a164_0x51f226(0x190)]({'last':z[a164_0x51f226(0x188)]([z[a164_0x51f226(0x149)](),z['record'](z[a164_0x51f226(0x143)](),z[a164_0x51f226(0x149)]())]),'unit':z[a164_0x51f226(0x143)]()})]),OperatorValueSchema=z['union']([z[a164_0x51f226(0x143)](),z[a164_0x51f226(0x149)](),z[a164_0x51f226(0x191)](),TemporalValueSchema,z[a164_0x51f226(0x18f)](z['union']([z['string'](),z[a164_0x51f226(0x149)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal','Greater','GreaterEqual',a164_0x51f226(0x171),a164_0x51f226(0x14f),'In','Contain',a164_0x51f226(0x176),'EndWith',a164_0x51f226(0x15a),a164_0x51f226(0x165),a164_0x51f226(0x194)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x51f226(0x165),a164_0x51f226(0x194)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z['boolean']()[a164_0x51f226(0x16c)](),'value':OperatorValueSchema[a164_0x51f226(0x16c)](),'min':z['union']([z[a164_0x51f226(0x149)](),z[a164_0x51f226(0x143)](),TemporalValueSchema])['optional'](),'max':z['union']([z[a164_0x51f226(0x149)](),z[a164_0x51f226(0x143)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema['optional'](),'duration':z['object']({'day':z[a164_0x51f226(0x149)]()[a164_0x51f226(0x16c)](),'week':z['number']()[a164_0x51f226(0x16c)](),'month':z['number']()[a164_0x51f226(0x16c)](),'year':z[a164_0x51f226(0x149)]()['optional'](),'hour':z[a164_0x51f226(0x149)]()[a164_0x51f226(0x16c)](),'minute':z[a164_0x51f226(0x149)]()[a164_0x51f226(0x16c)](),'second':z[a164_0x51f226(0x149)]()[a164_0x51f226(0x16c)]()})[a164_0x51f226(0x16c)](),'from':z['object']({'last':z['union']([z[a164_0x51f226(0x149)](),z[a164_0x51f226(0x143)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x51f226(0x191)]()[a164_0x51f226(0x16c)]()})[a164_0x51f226(0x15d)]((_0x1db412,_0x337075)=>{const _0x17df5d=a164_0x51f226;OPERATORS_REQUIRING_VALUE[_0x17df5d(0x14c)](_0x1db412[_0x17df5d(0x167)])&&(_0x1db412[_0x17df5d(0x182)]===undefined||_0x1db412[_0x17df5d(0x182)]===null)&&_0x337075[_0x17df5d(0x163)]({'code':_0x17df5d(0x15c),'message':_0x17df5d(0x144)+_0x1db412[_0x17df5d(0x167)]+_0x17df5d(0x175),'path':[_0x17df5d(0x182)]}),_0x1db412[_0x17df5d(0x167)]==='Between'&&_0x1db412[_0x17df5d(0x147)]===undefined&&_0x1db412[_0x17df5d(0x187)]===undefined&&_0x337075[_0x17df5d(0x163)]({'code':_0x17df5d(0x15c),'message':_0x17df5d(0x17b),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT['has'](_0x1db412[_0x17df5d(0x167)])&&_0x1db412[_0x17df5d(0x182)]!==undefined&&!_0x1db412[_0x17df5d(0x16d)]&&_0x337075[_0x17df5d(0x163)]({'code':'custom','message':_0x17df5d(0x144)+_0x1db412[_0x17df5d(0x167)]+_0x17df5d(0x153),'path':[_0x17df5d(0x16d)],'params':{'validationCode':_0x17df5d(0x14a)}}),_0x1db412[_0x17df5d(0x167)]===_0x17df5d(0x18b)&&(!_0x1db412[_0x17df5d(0x17d)]&&_0x337075[_0x17df5d(0x163)]({'code':_0x17df5d(0x15c),'message':_0x17df5d(0x160),'path':[_0x17df5d(0x17d)]}),!_0x1db412[_0x17df5d(0x189)]&&_0x337075[_0x17df5d(0x163)]({'code':'custom','message':_0x17df5d(0x15e),'path':['from']}));});export const ArrayMatchingSchema=z['union']([z[a164_0x51f226(0x14b)](a164_0x51f226(0x15f)),z['literal'](a164_0x51f226(0x17f)),z[a164_0x51f226(0x190)]({'atLeast':z['number']()}),z[a164_0x51f226(0x190)]({'atMost':z[a164_0x51f226(0x149)]()}),z[a164_0x51f226(0x190)]({'exactly':z['number']()})]);function a164_0x492c(){const _0x3e7eaa=['Last','value','1595675gqfaBA','operator','18dhVvbJ','hour','max','union','from','lazy','TimeRange','22HwvcFa','CountDistinct','Column','array','object','boolean','month','second','TimeWithinNext','1333740IFMStn','8jZPvsd','enum','string','Operator\x20\x27','Average','GreaterEqual','min','3SKXWPi','number','MISSING_TIME_UNIT','literal','has','Segment\x20name\x20is\x20required','63tLriqO','LessEqual','realtime','Max','23644309SxmvQA','\x27\x20requires\x20a\x20time\x20unit','day','batch','Count','Greater','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','823496UXBxNj','Regexp','segment','custom','superRefine','TimeRange\x20operator\x20requires\x20\x27from\x27','any','TimeRange\x20operator\x20requires\x20\x27duration\x27','295637IIaZHH','And','addIssue','585760IVZrQr','TimeWithinPast','First','type','14CnkFdS','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Between','Sum','optional','unit','Value','exclude','9RhzNaA','Less','Equal','year','week','\x27\x20requires\x20a\x20value','StartWith','discriminatedUnion','EndWith','minute','IsNull','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','1350520yfrSqn','duration','Behavior','all','column'];a164_0x492c=function(){return _0x3e7eaa;};return a164_0x492c();}export const AggregationDefSchema=z[a164_0x51f226(0x177)](a164_0x51f226(0x167),[z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x197)]([a164_0x51f226(0x16b),'Min',a164_0x51f226(0x151),'Average']),'column':z['string'](),'groupingColumns':z[a164_0x51f226(0x18f)](z[a164_0x51f226(0x143)]())[a164_0x51f226(0x16c)]()}),z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x14b)]('Count'),'groupingColumns':z[a164_0x51f226(0x18f)](z[a164_0x51f226(0x143)]())[a164_0x51f226(0x16c)]()}),z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x14b)](a164_0x51f226(0x18d)),'columns':z[a164_0x51f226(0x18f)](z[a164_0x51f226(0x143)]())}),z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x197)]([a164_0x51f226(0x166),a164_0x51f226(0x181)]),'column':z[a164_0x51f226(0x143)](),'orderColumn':z[a164_0x51f226(0x143)](),'groupingColumns':z[a164_0x51f226(0x18f)](z[a164_0x51f226(0x143)]())['optional']()})]);export const TimeWindowDefSchema=z[a164_0x51f226(0x190)]({'duration':z[a164_0x51f226(0x149)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set(['TimeWithinPast','TimeWithinNext','TimeRange']);export const FilterColumnConditionDefSchema=z[a164_0x51f226(0x190)]({'type':z['literal']('Column'),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})['superRefine']((_0x10cd10,_0x5ab103)=>{const _0x379063=a164_0x51f226,_0x204e8c=_0x10cd10['operator']['type'];_0x10cd10[_0x379063(0x180)]==='timestamp'?!TIMESTAMP_OPERATORS[_0x379063(0x14c)](_0x204e8c)&&_0x5ab103[_0x379063(0x163)]({'code':_0x379063(0x15c),'message':_0x379063(0x169)+_0x204e8c+'\x27)','path':[_0x379063(0x184),_0x379063(0x167)]}):TIMESTAMP_OPERATORS[_0x379063(0x14c)](_0x204e8c)&&_0x5ab103['addIssue']({'code':_0x379063(0x15c),'message':_0x379063(0x144)+_0x204e8c+_0x379063(0x158),'path':[_0x379063(0x184),_0x379063(0x167)]});});export const FilterRuleDefSchema=z[a164_0x51f226(0x190)]({'type':z['literal'](a164_0x51f226(0x162)),'conditions':z[a164_0x51f226(0x18f)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x51f226(0x18a)](()=>z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x14b)](a164_0x51f226(0x16e)),'attribute':z[a164_0x51f226(0x143)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z['boolean']()[a164_0x51f226(0x16c)](),'aggregation':AggregationDefSchema[a164_0x51f226(0x16c)](),'source':z[a164_0x51f226(0x143)]()[a164_0x51f226(0x16c)](),'filter':FilterRuleDefSchema[a164_0x51f226(0x16c)](),'limit':z[a164_0x51f226(0x149)]()[a164_0x51f226(0x16c)]()}));export const BehaviorConditionDefSchema=z[a164_0x51f226(0x18a)](()=>z['object']({'type':z[a164_0x51f226(0x14b)](a164_0x51f226(0x17e)),'attribute':z[a164_0x51f226(0x143)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x51f226(0x16c)](),'exclude':z[a164_0x51f226(0x191)]()[a164_0x51f226(0x16c)](),'aggregation':AggregationDefSchema[a164_0x51f226(0x16c)](),'source':z[a164_0x51f226(0x143)]()[a164_0x51f226(0x16c)](),'filter':FilterRuleDefSchema[a164_0x51f226(0x16c)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a164_0x51f226(0x149)]()[a164_0x51f226(0x16c)]()}));export const ColumnConditionDefSchema=z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x14b)](a164_0x51f226(0x18e)),'column':z[a164_0x51f226(0x143)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x51f226(0x18a)](()=>z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x197)](['And','Or']),'conditions':z[a164_0x51f226(0x18f)](ConditionDefSchema),'description':z[a164_0x51f226(0x143)]()[a164_0x51f226(0x16c)]()}));export const SegmentRefConditionDefSchema=z[a164_0x51f226(0x190)]({'type':z[a164_0x51f226(0x197)](['include',a164_0x51f226(0x16f)]),'segment':z[a164_0x51f226(0x143)]()[a164_0x51f226(0x147)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a164_0x51f226(0x18a)](()=>z[a164_0x51f226(0x188)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x51f226(0x18a)](()=>z[a164_0x51f226(0x190)]({'type':z['enum'](['And','Or']),'conditions':z['array'](ConditionDefSchema),'description':z['string']()[a164_0x51f226(0x16c)]()}));export const SegmentDefSchema=z[a164_0x51f226(0x190)]({'type':z['literal'](a164_0x51f226(0x15b))[a164_0x51f226(0x16c)](),'name':z[a164_0x51f226(0x143)]()[a164_0x51f226(0x147)](0x1,a164_0x51f226(0x14d)),'description':z[a164_0x51f226(0x143)]()[a164_0x51f226(0x16c)](),'folder':z[a164_0x51f226(0x143)]()['optional'](),'rule':RuleDefSchema['optional'](),'kind':z[a164_0x51f226(0x197)]([a164_0x51f226(0x155),a164_0x51f226(0x150),'funnel_stage'])[a164_0x51f226(0x16c)](),'visible':z[a164_0x51f226(0x191)]()[a164_0x51f226(0x16c)](),'activations':z[a164_0x51f226(0x18f)](z[a164_0x51f226(0x15f)]())[a164_0x51f226(0x16c)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a165_0x1f611f=a165_0x30fe;(function(_0x3dd067,_0x45d949){const _0x399684=a165_0x30fe,_0x37c887=_0x3dd067();while(!![]){try{const _0x38009c=parseInt(_0x399684(0x19f))/0x1*(parseInt(_0x399684(0x192))/0x2)+parseInt(_0x399684(0x1a2))/0x3+-parseInt(_0x399684(0x1a5))/0x4*(parseInt(_0x399684(0x18b))/0x5)+parseInt(_0x399684(0x1aa))/0x6*(parseInt(_0x399684(0x199))/0x7)+parseInt(_0x399684(0x18f))/0x8*(-parseInt(_0x399684(0x190))/0x9)+-parseInt(_0x399684(0x1a1))/0xa*(-parseInt(_0x399684(0x19e))/0xb)+parseInt(_0x399684(0x197))/0xc*(-parseInt(_0x399684(0x193))/0xd);if(_0x38009c===_0x45d949)break;else _0x37c887['push'](_0x37c887['shift']());}catch(_0x1d171e){_0x37c887['push'](_0x37c887['shift']());}}}(a165_0x106b,0x365be));import{readFileSync}from'fs';import*as a165_0x56e137 from'path';import*as a165_0xf08607 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';function a165_0x106b(){const _0x45abaf=['854486aPKhkz','13ouDOHO','segment','campaign','journey','9132936WMHbeh','type','56OYGuLC','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','YAML_PARSE_ERROR','result','message','33RISlxv','1QQbccp','utf-8','578610TAOPhL','1199619eNBUOX','valid','push','1732yUGuei','campaign_type','email','template','map','246756llNLUD','has','warnings','filterType','2825izSDVQ','YAML\x20parse\x20error:\x20','error','basename','40xlrbmA','182394TAWemp','relative'];a165_0x106b=function(){return _0x45abaf;};return a165_0x106b();}import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a165_0x1f611f(0x1a7),a165_0x1f611f(0x1a4)]);export function isJourneyDef(_0x1a8e9e){const _0x521465=a165_0x1f611f;return typeof _0x1a8e9e==='object'&&_0x1a8e9e!==null&&_0x521465(0x198)in _0x1a8e9e&&_0x1a8e9e[_0x521465(0x198)]===_0x521465(0x196);}export function isCampaignDef(_0x132fe8){const _0xd91913=a165_0x1f611f;if(typeof _0x132fe8!=='object'||_0x132fe8===null)return![];const _0x4f4004=_0x132fe8,_0x1dcbdc=VALID_CAMPAIGN_TYPES[_0xd91913(0x1ab)](_0x4f4004[_0xd91913(0x1a6)]);if(_0x4f4004[_0xd91913(0x198)]===_0xd91913(0x195)&&_0x1dcbdc)return!![];if(_0x1dcbdc&&!_0x4f4004['type'])return!![];return![];}function a165_0x30fe(_0x311251,_0x5a577c){_0x311251=_0x311251-0x18b;const _0x106b50=a165_0x106b();let _0x30fed0=_0x106b50[_0x311251];return _0x30fed0;}export function isTemplateDef(_0x16eab0){const _0x31273e=a165_0x1f611f;return typeof _0x16eab0==='object'&&_0x16eab0!==null&&_0x31273e(0x198)in _0x16eab0&&_0x16eab0[_0x31273e(0x198)]===_0x31273e(0x1a8);}export function isValidationResult(_0x4adbd3){return!('skipped'in _0x4adbd3);}export function createParseErrorResult(_0x92e9c,_0x1bf999,_0x4a20c1,_0x4bebd7,_0x1133a3=a165_0x1f611f(0x194)){const _0x4e207b=a165_0x1f611f;return{'filePath':_0x92e9c,'relativePath':_0x1bf999,'source':_0x4a20c1,'result':{'valid':![],'errors':[{'level':_0x4e207b(0x18d),'path':'','code':_0x4e207b(0x19b),'message':_0x4bebd7}],'warnings':[]},'fileType':_0x1133a3};}export function validateYamlFile(_0x101bd7,_0x462df9,_0x5077fa={}){const _0x3db289=a165_0x1f611f,_0x54ff0e=a165_0x56e137[_0x3db289(0x191)](_0x462df9,_0x101bd7)||a165_0x56e137[_0x3db289(0x18e)](_0x101bd7);try{const _0x4aecfa=readFileSync(_0x101bd7,_0x3db289(0x1a0)),_0x32d7dd=a165_0xf08607['parseDocument'](_0x4aecfa),_0x28fe5d=_0x32d7dd['toJSON']();if(!_0x28fe5d)return createParseErrorResult(_0x101bd7,_0x54ff0e,_0x4aecfa,_0x3db289(0x19a));let _0x10dec0;if(isJourneyDef(_0x28fe5d))_0x10dec0=_0x3db289(0x196);else{if(isCampaignDef(_0x28fe5d))_0x10dec0=_0x3db289(0x195);else isTemplateDef(_0x28fe5d)?_0x10dec0=_0x3db289(0x1a8):_0x10dec0='segment';}if(_0x5077fa[_0x3db289(0x1ad)]&&_0x10dec0!==_0x5077fa['filterType'])return{'filePath':_0x101bd7,'relativePath':_0x54ff0e,'skipped':!![],'reason':'not\x20a\x20'+_0x5077fa[_0x3db289(0x1ad)]};const _0x509e80={'source':_0x4aecfa,'document':_0x32d7dd};let _0x27d9a9;if(_0x10dec0===_0x3db289(0x196))_0x27d9a9=validateJourneyDef(_0x28fe5d,_0x509e80);else{if(_0x10dec0===_0x3db289(0x195))_0x27d9a9=validateCampaignDef(_0x28fe5d,_0x509e80);else _0x10dec0===_0x3db289(0x1a8)?_0x27d9a9=validateTemplateDef(_0x28fe5d,_0x509e80):_0x27d9a9=validateSegmentDef(_0x28fe5d,_0x509e80);}return{'filePath':_0x101bd7,'relativePath':_0x54ff0e,'source':_0x4aecfa,'result':_0x27d9a9,'fileType':_0x10dec0};}catch(_0x469f69){const _0x3b0708=_0x469f69 instanceof Error?_0x469f69[_0x3db289(0x19d)]:String(_0x469f69);return createParseErrorResult(_0x101bd7,_0x54ff0e,'',_0x3db289(0x18c)+_0x3b0708);}}export function validateYamlFiles(_0x3ae505,_0x467669,_0x9977a4={}){const _0x2476a4=a165_0x1f611f;return _0x3ae505[_0x2476a4(0x1a9)](_0xfd4e2=>validateYamlFile(_0xfd4e2,_0x467669,_0x9977a4));}export function calculateSummary(_0x21f8ef){const _0x221a0b=a165_0x1f611f;let _0x237195=0x0,_0x57944c=0x0,_0xac4c92=0x0,_0x5747f4=0x0;for(const _0x5269fd of _0x21f8ef){if(!isValidationResult(_0x5269fd)){_0x5747f4++;continue;}_0x5269fd[_0x221a0b(0x19c)][_0x221a0b(0x1a3)]?_0x237195++:_0x57944c++,_0xac4c92+=_0x5269fd[_0x221a0b(0x19c)][_0x221a0b(0x1ac)]['length'];}return{'validCount':_0x237195,'invalidCount':_0x57944c,'warningCount':_0xac4c92,'skippedCount':_0x5747f4,'hasErrors':_0x57944c>0x0};}
1
+ const a165_0x3c163=a165_0x2562;(function(_0xdf782a,_0x402485){const _0x55804c=a165_0x2562,_0x21e21e=_0xdf782a();while(!![]){try{const _0x26f671=-parseInt(_0x55804c(0x189))/0x1*(-parseInt(_0x55804c(0x180))/0x2)+parseInt(_0x55804c(0x18f))/0x3*(parseInt(_0x55804c(0x18a))/0x4)+parseInt(_0x55804c(0x17c))/0x5+-parseInt(_0x55804c(0x193))/0x6+parseInt(_0x55804c(0x17d))/0x7*(parseInt(_0x55804c(0x185))/0x8)+-parseInt(_0x55804c(0x18e))/0x9*(parseInt(_0x55804c(0x177))/0xa)+-parseInt(_0x55804c(0x17f))/0xb*(parseInt(_0x55804c(0x182))/0xc);if(_0x26f671===_0x402485)break;else _0x21e21e['push'](_0x21e21e['shift']());}catch(_0x5e87d5){_0x21e21e['push'](_0x21e21e['shift']());}}}(a165_0x6647,0xc302c));import{readFileSync}from'fs';function a165_0x2562(_0x31dd65,_0x2f206b){_0x31dd65=_0x31dd65-0x172;const _0x6647bc=a165_0x6647();let _0x2562a2=_0x6647bc[_0x31dd65];return _0x2562a2;}import*as a165_0x52dcee from'path';import*as a165_0x27a3f7 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a165_0x3c163(0x172),a165_0x3c163(0x17e)]);function a165_0x6647(){const _0x5456a9=['3084cWoMqB','has','type','10184GevDAs','error','valid','toJSON','373748xbFMBT','972FSMdwF','basename','journey','campaign','526986Zzwvhr','1041tvrPHx','campaign_type','map','parseDocument','3438984NcZHjd','utf-8','segment','warnings','email','template','message','object','length','210gaHWpT','filterType','relative','skipped','result','6531475mbVlaK','2884BfViTZ','push','34606ZrntJB','8JYLCdL','not\x20a\x20'];a165_0x6647=function(){return _0x5456a9;};return a165_0x6647();}export function isJourneyDef(_0x1f7cc3){const _0x345df4=a165_0x3c163;return typeof _0x1f7cc3===_0x345df4(0x175)&&_0x1f7cc3!==null&&_0x345df4(0x184)in _0x1f7cc3&&_0x1f7cc3[_0x345df4(0x184)]===_0x345df4(0x18c);}export function isCampaignDef(_0x5b7be5){const _0x5558a2=a165_0x3c163;if(typeof _0x5b7be5!==_0x5558a2(0x175)||_0x5b7be5===null)return![];const _0x4c67d6=_0x5b7be5,_0x25fac0=VALID_CAMPAIGN_TYPES[_0x5558a2(0x183)](_0x4c67d6[_0x5558a2(0x190)]);if(_0x4c67d6[_0x5558a2(0x184)]===_0x5558a2(0x18d)&&_0x25fac0)return!![];if(_0x25fac0&&!_0x4c67d6['type'])return!![];return![];}export function isTemplateDef(_0x17c7c9){const _0x5d4d45=a165_0x3c163;return typeof _0x17c7c9===_0x5d4d45(0x175)&&_0x17c7c9!==null&&'type'in _0x17c7c9&&_0x17c7c9[_0x5d4d45(0x184)]==='template';}export function isValidationResult(_0x3a1210){const _0xeb28b=a165_0x3c163;return!(_0xeb28b(0x17a)in _0x3a1210);}export function createParseErrorResult(_0x5dd572,_0x44d6b7,_0x5a7637,_0x16bd19,_0x21d54c=a165_0x3c163(0x195)){const _0x43e26b=a165_0x3c163;return{'filePath':_0x5dd572,'relativePath':_0x44d6b7,'source':_0x5a7637,'result':{'valid':![],'errors':[{'level':_0x43e26b(0x186),'path':'','code':'YAML_PARSE_ERROR','message':_0x16bd19}],'warnings':[]},'fileType':_0x21d54c};}export function validateYamlFile(_0x329ab3,_0x29dbdf,_0x12342a={}){const _0x974ec8=a165_0x3c163,_0x52fad1=a165_0x52dcee[_0x974ec8(0x179)](_0x29dbdf,_0x329ab3)||a165_0x52dcee[_0x974ec8(0x18b)](_0x329ab3);try{const _0x479143=readFileSync(_0x329ab3,_0x974ec8(0x194)),_0x56ec23=a165_0x27a3f7[_0x974ec8(0x192)](_0x479143),_0x24088f=_0x56ec23[_0x974ec8(0x188)]();if(!_0x24088f)return createParseErrorResult(_0x329ab3,_0x52fad1,_0x479143,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0x95b7d2;if(isJourneyDef(_0x24088f))_0x95b7d2=_0x974ec8(0x18c);else{if(isCampaignDef(_0x24088f))_0x95b7d2='campaign';else isTemplateDef(_0x24088f)?_0x95b7d2=_0x974ec8(0x173):_0x95b7d2=_0x974ec8(0x195);}if(_0x12342a[_0x974ec8(0x178)]&&_0x95b7d2!==_0x12342a['filterType'])return{'filePath':_0x329ab3,'relativePath':_0x52fad1,'skipped':!![],'reason':_0x974ec8(0x181)+_0x12342a[_0x974ec8(0x178)]};const _0x4560c9={'source':_0x479143,'document':_0x56ec23};let _0x199490;if(_0x95b7d2===_0x974ec8(0x18c))_0x199490=validateJourneyDef(_0x24088f,_0x4560c9);else{if(_0x95b7d2==='campaign')_0x199490=validateCampaignDef(_0x24088f,_0x4560c9);else _0x95b7d2===_0x974ec8(0x173)?_0x199490=validateTemplateDef(_0x24088f,_0x4560c9):_0x199490=validateSegmentDef(_0x24088f,_0x4560c9);}return{'filePath':_0x329ab3,'relativePath':_0x52fad1,'source':_0x479143,'result':_0x199490,'fileType':_0x95b7d2};}catch(_0x11bc21){const _0x104203=_0x11bc21 instanceof Error?_0x11bc21[_0x974ec8(0x174)]:String(_0x11bc21);return createParseErrorResult(_0x329ab3,_0x52fad1,'','YAML\x20parse\x20error:\x20'+_0x104203);}}export function validateYamlFiles(_0x1f300f,_0xa70d59,_0x4da89a={}){const _0xb5ab7c=a165_0x3c163;return _0x1f300f[_0xb5ab7c(0x191)](_0x308ce9=>validateYamlFile(_0x308ce9,_0xa70d59,_0x4da89a));}export function calculateSummary(_0x481fa2){const _0x52bf40=a165_0x3c163;let _0x4f9bdc=0x0,_0x59bf40=0x0,_0x20e19d=0x0,_0x3902f4=0x0;for(const _0x21fc4c of _0x481fa2){if(!isValidationResult(_0x21fc4c)){_0x3902f4++;continue;}_0x21fc4c[_0x52bf40(0x17b)][_0x52bf40(0x187)]?_0x4f9bdc++:_0x59bf40++,_0x20e19d+=_0x21fc4c[_0x52bf40(0x17b)][_0x52bf40(0x196)][_0x52bf40(0x176)];}return{'validCount':_0x4f9bdc,'invalidCount':_0x59bf40,'warningCount':_0x20e19d,'skippedCount':_0x3902f4,'hasErrors':_0x59bf40>0x0};}
@@ -1 +1 @@
1
- (function(_0x3750a5,_0x3b2272){const _0x2f20c2=a166_0x4289,_0x2ccc9c=_0x3750a5();while(!![]){try{const _0x1021b7=parseInt(_0x2f20c2(0x188))/0x1*(-parseInt(_0x2f20c2(0x16a))/0x2)+parseInt(_0x2f20c2(0x17e))/0x3+parseInt(_0x2f20c2(0x176))/0x4+-parseInt(_0x2f20c2(0x17b))/0x5*(parseInt(_0x2f20c2(0x160))/0x6)+parseInt(_0x2f20c2(0x182))/0x7*(-parseInt(_0x2f20c2(0x16b))/0x8)+parseInt(_0x2f20c2(0x173))/0x9*(-parseInt(_0x2f20c2(0x172))/0xa)+parseInt(_0x2f20c2(0x17f))/0xb;if(_0x1021b7===_0x3b2272)break;else _0x2ccc9c['push'](_0x2ccc9c['shift']());}catch(_0x772a13){_0x2ccc9c['push'](_0x2ccc9c['shift']());}}}(a166_0x3ec6,0xc3bc8));import*as a166_0x11940b from'yaml';import a166_0x316d48 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x508d2a,_0x321e2f,_0x3b5309){const _0x2d340a=a166_0x4289;if(!_0x508d2a||!_0x321e2f)return undefined;try{let _0x1d0447=_0x508d2a[_0x2d340a(0x18f)](_0x3b5309,!![]),_0x80bf8d=[..._0x3b5309];while((!_0x1d0447||typeof _0x1d0447!=='object'||!(_0x2d340a(0x165)in _0x1d0447)||!_0x1d0447[_0x2d340a(0x165)])&&_0x80bf8d['length']>0x0){_0x80bf8d[_0x2d340a(0x18b)](),_0x1d0447=_0x80bf8d['length']>0x0?_0x508d2a['getIn'](_0x80bf8d,!![]):_0x508d2a[_0x2d340a(0x16d)];}if(!_0x1d0447||typeof _0x1d0447!=='object'||!('range'in _0x1d0447)||!_0x1d0447[_0x2d340a(0x165)])return undefined;const [_0x5f0ce3]=_0x1d0447[_0x2d340a(0x165)];return offsetToLocation(_0x321e2f,_0x5f0ce3);}catch{return undefined;}}export function offsetToLocation(_0x1a2a6a,_0xff9ad3){let _0x393a50=0x1,_0x3bff6d=0x1;for(let _0x10dbe8=0x0;_0x10dbe8<_0xff9ad3&&_0x10dbe8<_0x1a2a6a['length'];_0x10dbe8++){_0x1a2a6a[_0x10dbe8]==='\x0a'?(_0x393a50++,_0x3bff6d=0x1):_0x3bff6d++;}return{'line':_0x393a50,'column':_0x3bff6d,'offset':_0xff9ad3};}export function pathToArray(_0x3afa5a){const _0x245d4b=a166_0x4289;if(!_0x3afa5a)return[];return _0x3afa5a[_0x245d4b(0x175)]('.')[_0x245d4b(0x163)](_0x3ca324=>{const _0x5e17a4=_0x3ca324['match'](/^(\w+)\[(\d+)\]$/);if(_0x5e17a4)return[_0x5e17a4[0x1],parseInt(_0x5e17a4[0x2],0xa)];return[_0x3ca324];});}export function formatZodPath(_0x48aef1){const _0x165d82=a166_0x4289;let _0x179873='';for(const _0x58a7ff of _0x48aef1){if(typeof _0x58a7ff===_0x165d82(0x184))_0x179873+='['+_0x58a7ff+']';else{const _0x2bbac4=String(_0x58a7ff);_0x179873+=_0x179873?'.'+_0x2bbac4:_0x2bbac4;}}return _0x179873;}export function flattenZodIssues(_0x3e989f){const _0x564a8d=a166_0x4289,_0x358e6d=[];for(const _0x43cbd4 of _0x3e989f){if(_0x43cbd4[_0x564a8d(0x18e)]===_0x564a8d(0x167)&&_0x564a8d(0x174)in _0x43cbd4){const _0x47d58a=_0x43cbd4[_0x564a8d(0x174)];let _0x47fe8d=_0x47d58a[0x0]||[];for(const _0x275afe of _0x47d58a){_0x275afe[_0x564a8d(0x16e)]<_0x47fe8d[_0x564a8d(0x16e)]&&(_0x47fe8d=_0x275afe);}const _0x29f6b7=_0x47fe8d[_0x564a8d(0x17c)](_0x19a4b9=>({..._0x19a4b9,'path':[..._0x43cbd4[_0x564a8d(0x186)],..._0x19a4b9[_0x564a8d(0x186)]]}));_0x358e6d[_0x564a8d(0x168)](...flattenZodIssues(_0x29f6b7));}else _0x358e6d['push'](_0x43cbd4);}return _0x358e6d;}function a166_0x3ec6(){const _0x877ff2=['success','120qVQqyA','map','object','2027625HPYkif','31645559MTxNda','message','error','7JnOEvY','yellow','number','location','path','issues','962909DsMcqQ','repeat','toString','pop','dim','red','code','getIn','312252WAhcST','Invalid\x20YAML:\x20expected\x20an\x20object','join','flatMap','data','range','max','invalid_union','push','cyan','2PHMrRA','2678408nvvEgJ','min','contents','length','level','\x20|\x20','column','30UgnNat','721719VyrtZd','errors','split','145132arBgqv','\x27:\x20','YAML\x20validation\x20error\x20at\x20\x27','warnings'];a166_0x3ec6=function(){return _0x877ff2;};return a166_0x3ec6();}export function safeParseYaml(_0x1daeca,_0x3e0050){const _0x3ad63d=a166_0x4289,_0x2112ec=a166_0x11940b['parse'](_0x1daeca);if(!_0x2112ec||typeof _0x2112ec!==_0x3ad63d(0x17d))throw new Error(_0x3ad63d(0x161));const _0x3a3c23=_0x3e0050['safeParse'](_0x2112ec);if(!_0x3a3c23[_0x3ad63d(0x17a)]){const _0x4fc5b7=_0x3a3c23[_0x3ad63d(0x181)][_0x3ad63d(0x187)][0x0],_0x16cfef=formatZodPath(_0x4fc5b7[_0x3ad63d(0x186)]);throw new Error(_0x16cfef?_0x3ad63d(0x178)+_0x16cfef+_0x3ad63d(0x177)+_0x4fc5b7[_0x3ad63d(0x180)]:'YAML\x20validation\x20error:\x20'+_0x4fc5b7[_0x3ad63d(0x180)]);}return _0x3a3c23[_0x3ad63d(0x164)];}function a166_0x4289(_0x3341e4,_0x55dbc4){_0x3341e4=_0x3341e4-0x160;const _0x3ec6aa=a166_0x3ec6();let _0x428929=_0x3ec6aa[_0x3341e4];return _0x428929;}export function formatIssueWithContext(_0xf7fce7,_0x2c74a7,_0x2582e0){const _0x363934=a166_0x4289,_0x332767=[],_0x341a89=_0xf7fce7['level']===_0x363934(0x181),_0x42e45c=_0x341a89?a166_0x316d48['red']:a166_0x316d48[_0x363934(0x183)],_0x3258c7=_0x341a89?a166_0x316d48[_0x363934(0x18d)]:a166_0x316d48[_0x363934(0x183)],_0x4576f1=_0x2582e0?a166_0x316d48[_0x363934(0x169)](_0x2582e0+':'):'';if(_0xf7fce7['location']){const _0x1dc56b=a166_0x316d48[_0x363934(0x169)](_0xf7fce7[_0x363934(0x185)]['line']+':'+_0xf7fce7[_0x363934(0x185)][_0x363934(0x171)]);_0x332767['push'](''+_0x4576f1+_0x1dc56b+':\x20'+_0x42e45c(_0xf7fce7[_0x363934(0x16f)])+'\x20'+_0x3258c7('['+_0xf7fce7['code']+']'));}else _0x332767['push'](''+_0x4576f1+a166_0x316d48['dim'](_0xf7fce7[_0x363934(0x186)])+':\x20'+_0x42e45c(_0xf7fce7[_0x363934(0x16f)])+'\x20'+_0x3258c7('['+_0xf7fce7['code']+']'));_0x332767[_0x363934(0x168)](_0xf7fce7[_0x363934(0x180)]);if(_0xf7fce7[_0x363934(0x185)]&&_0x2c74a7){const _0x46ca21=_0x2c74a7[_0x363934(0x175)]('\x0a'),{line:_0x10317e,column:_0x301835}=_0xf7fce7[_0x363934(0x185)],_0x42b54b=Math[_0x363934(0x166)](0x1,_0x10317e-0x1),_0x5e7525=Math[_0x363934(0x16c)](_0x46ca21['length'],_0x10317e+0x1);_0x332767[_0x363934(0x168)]('');for(let _0x5169a0=_0x42b54b;_0x5169a0<=_0x5e7525;_0x5169a0++){const _0x54cd0f=_0x46ca21[_0x5169a0-0x1]||'',_0x8aa964=a166_0x316d48[_0x363934(0x18c)](_0x5169a0[_0x363934(0x18a)]()['padStart'](0x4)),_0x34d958=a166_0x316d48['dim'](_0x363934(0x170));if(_0x5169a0===_0x10317e){_0x332767[_0x363934(0x168)]('\x20\x20'+_0x8aa964+_0x34d958+_0x42e45c(_0x54cd0f));const _0x2f981d='\x20'[_0x363934(0x189)](0x4+0x3+_0x301835-0x1);_0x332767[_0x363934(0x168)]('\x20\x20'+_0x2f981d+_0x42e45c('^'));}else _0x332767['push']('\x20\x20'+_0x8aa964+_0x34d958+a166_0x316d48[_0x363934(0x18c)](_0x54cd0f));}}return _0x332767[_0x363934(0x162)]('\x0a');}export function formatValidationResult(_0x372ea7,_0x3369e3,_0x3e081f){const _0x4e4f74=a166_0x4289,_0x4e634b=[];for(const _0x2b9ddf of _0x372ea7[_0x4e4f74(0x174)]){_0x4e634b[_0x4e4f74(0x168)](formatIssueWithContext(_0x2b9ddf,_0x3369e3,_0x3e081f)),_0x4e634b[_0x4e4f74(0x168)]('');}for(const _0x406344 of _0x372ea7[_0x4e4f74(0x179)]){_0x4e634b['push'](formatIssueWithContext(_0x406344,_0x3369e3,_0x3e081f)),_0x4e634b[_0x4e4f74(0x168)]('');}return _0x4e634b[_0x4e4f74(0x162)]('\x0a');}
1
+ (function(_0x1eeaae,_0xaee9c9){const _0x4ff9d5=a166_0x2ecb,_0x4f73f3=_0x1eeaae();while(!![]){try{const _0x430d6c=parseInt(_0x4ff9d5(0x9d))/0x1*(parseInt(_0x4ff9d5(0xa8))/0x2)+-parseInt(_0x4ff9d5(0xbc))/0x3+parseInt(_0x4ff9d5(0xb2))/0x4+parseInt(_0x4ff9d5(0xa3))/0x5+-parseInt(_0x4ff9d5(0xc0))/0x6*(-parseInt(_0x4ff9d5(0xb1))/0x7)+-parseInt(_0x4ff9d5(0xab))/0x8+-parseInt(_0x4ff9d5(0xa1))/0x9;if(_0x430d6c===_0xaee9c9)break;else _0x4f73f3['push'](_0x4f73f3['shift']());}catch(_0xc2346b){_0x4f73f3['push'](_0x4f73f3['shift']());}}}(a166_0x3ab3,0x8a264));import*as a166_0x5db85d from'yaml';import a166_0x119c72 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x1a89c4,_0x568f02,_0x1aec1f){const _0x8256d5=a166_0x2ecb;if(!_0x1a89c4||!_0x568f02)return undefined;try{let _0x1f2f4d=_0x1a89c4[_0x8256d5(0xb5)](_0x1aec1f,!![]),_0x1d0c7e=[..._0x1aec1f];while((!_0x1f2f4d||typeof _0x1f2f4d!==_0x8256d5(0xa7)||!(_0x8256d5(0xbd)in _0x1f2f4d)||!_0x1f2f4d['range'])&&_0x1d0c7e[_0x8256d5(0xa2)]>0x0){_0x1d0c7e['pop'](),_0x1f2f4d=_0x1d0c7e[_0x8256d5(0xa2)]>0x0?_0x1a89c4['getIn'](_0x1d0c7e,!![]):_0x1a89c4[_0x8256d5(0xc4)];}if(!_0x1f2f4d||typeof _0x1f2f4d!==_0x8256d5(0xa7)||!('range'in _0x1f2f4d)||!_0x1f2f4d[_0x8256d5(0xbd)])return undefined;const [_0x1e5207]=_0x1f2f4d[_0x8256d5(0xbd)];return offsetToLocation(_0x568f02,_0x1e5207);}catch{return undefined;}}export function offsetToLocation(_0x5a857a,_0x29d7a3){let _0x142496=0x1,_0x5c3241=0x1;for(let _0x335a4e=0x0;_0x335a4e<_0x29d7a3&&_0x335a4e<_0x5a857a['length'];_0x335a4e++){_0x5a857a[_0x335a4e]==='\x0a'?(_0x142496++,_0x5c3241=0x1):_0x5c3241++;}return{'line':_0x142496,'column':_0x5c3241,'offset':_0x29d7a3};}export function pathToArray(_0x510bbd){const _0x27542a=a166_0x2ecb;if(!_0x510bbd)return[];return _0x510bbd[_0x27542a(0xbf)]('.')['flatMap'](_0x2f6aae=>{const _0x11a5fd=_0x27542a,_0xd70d0=_0x2f6aae[_0x11a5fd(0xa9)](/^(\w+)\[(\d+)\]$/);if(_0xd70d0)return[_0xd70d0[0x1],parseInt(_0xd70d0[0x2],0xa)];return[_0x2f6aae];});}function a166_0x2ecb(_0x4cb79f,_0x167ece){_0x4cb79f=_0x4cb79f-0x9b;const _0x3ab3c7=a166_0x3ab3();let _0x2ecb4e=_0x3ab3c7[_0x4cb79f];return _0x2ecb4e;}function a166_0x3ab3(){const _0x568147=['path','5592736urcMLG','level','\x20|\x20','join','toString','\x27:\x20','14602sbDWCg','1953064ImitqZ','YAML\x20validation\x20error\x20at\x20\x27','Invalid\x20YAML:\x20expected\x20an\x20object','getIn','red','dim','number','code','location','cyan','2451135yXTvac','range','repeat','split','504mbKgsO','column','error','line','contents','issues','padStart','YAML\x20validation\x20error:\x20','success','454592hYEzdn','push','max','message','5242689BQGiqu','length','5459220Zncrap','warnings','errors','data','object','4hqlfey','match'];a166_0x3ab3=function(){return _0x568147;};return a166_0x3ab3();}export function formatZodPath(_0x5f4456){const _0x30077c=a166_0x2ecb;let _0x84717e='';for(const _0x5873b0 of _0x5f4456){if(typeof _0x5873b0===_0x30077c(0xb8))_0x84717e+='['+_0x5873b0+']';else{const _0x3b1388=String(_0x5873b0);_0x84717e+=_0x84717e?'.'+_0x3b1388:_0x3b1388;}}return _0x84717e;}export function flattenZodIssues(_0x41d14f){const _0x32282a=a166_0x2ecb,_0x32cabe=[];for(const _0x129f55 of _0x41d14f){if(_0x129f55['code']==='invalid_union'&&'errors'in _0x129f55){const _0x28363b=_0x129f55[_0x32282a(0xa5)];let _0x215751=_0x28363b[0x0]||[];for(const _0x1c84c2 of _0x28363b){_0x1c84c2[_0x32282a(0xa2)]<_0x215751[_0x32282a(0xa2)]&&(_0x215751=_0x1c84c2);}const _0x476007=_0x215751['map'](_0x534999=>({..._0x534999,'path':[..._0x129f55[_0x32282a(0xaa)],..._0x534999['path']]}));_0x32cabe['push'](...flattenZodIssues(_0x476007));}else _0x32cabe[_0x32282a(0x9e)](_0x129f55);}return _0x32cabe;}export function safeParseYaml(_0x40251b,_0x2f75b9){const _0x2e80c5=a166_0x2ecb,_0x4ab21e=a166_0x5db85d['parse'](_0x40251b);if(!_0x4ab21e||typeof _0x4ab21e!==_0x2e80c5(0xa7))throw new Error(_0x2e80c5(0xb4));const _0x3de56c=_0x2f75b9['safeParse'](_0x4ab21e);if(!_0x3de56c[_0x2e80c5(0x9c)]){const _0x5dca62=_0x3de56c[_0x2e80c5(0xc2)][_0x2e80c5(0xc5)][0x0],_0x4300ed=formatZodPath(_0x5dca62[_0x2e80c5(0xaa)]);throw new Error(_0x4300ed?_0x2e80c5(0xb3)+_0x4300ed+_0x2e80c5(0xb0)+_0x5dca62[_0x2e80c5(0xa0)]:_0x2e80c5(0x9b)+_0x5dca62['message']);}return _0x3de56c[_0x2e80c5(0xa6)];}export function formatIssueWithContext(_0x5639c5,_0xf74899,_0xbc5e4){const _0x5b4c0e=a166_0x2ecb,_0x153b68=[],_0x1503fe=_0x5639c5[_0x5b4c0e(0xac)]===_0x5b4c0e(0xc2),_0x17845d=_0x1503fe?a166_0x119c72['red']:a166_0x119c72['yellow'],_0x2571d1=_0x1503fe?a166_0x119c72[_0x5b4c0e(0xb6)]:a166_0x119c72['yellow'],_0x5bab43=_0xbc5e4?a166_0x119c72[_0x5b4c0e(0xbb)](_0xbc5e4+':'):'';if(_0x5639c5[_0x5b4c0e(0xba)]){const _0x438b16=a166_0x119c72[_0x5b4c0e(0xbb)](_0x5639c5[_0x5b4c0e(0xba)][_0x5b4c0e(0xc3)]+':'+_0x5639c5[_0x5b4c0e(0xba)][_0x5b4c0e(0xc1)]);_0x153b68[_0x5b4c0e(0x9e)](''+_0x5bab43+_0x438b16+':\x20'+_0x17845d(_0x5639c5[_0x5b4c0e(0xac)])+'\x20'+_0x2571d1('['+_0x5639c5[_0x5b4c0e(0xb9)]+']'));}else _0x153b68[_0x5b4c0e(0x9e)](''+_0x5bab43+a166_0x119c72[_0x5b4c0e(0xb7)](_0x5639c5['path'])+':\x20'+_0x17845d(_0x5639c5[_0x5b4c0e(0xac)])+'\x20'+_0x2571d1('['+_0x5639c5[_0x5b4c0e(0xb9)]+']'));_0x153b68[_0x5b4c0e(0x9e)](_0x5639c5[_0x5b4c0e(0xa0)]);if(_0x5639c5[_0x5b4c0e(0xba)]&&_0xf74899){const _0x23ab3c=_0xf74899[_0x5b4c0e(0xbf)]('\x0a'),{line:_0x3680fb,column:_0x530782}=_0x5639c5[_0x5b4c0e(0xba)],_0x3eef02=Math[_0x5b4c0e(0x9f)](0x1,_0x3680fb-0x1),_0x3a083f=Math['min'](_0x23ab3c['length'],_0x3680fb+0x1);_0x153b68['push']('');for(let _0x16fafb=_0x3eef02;_0x16fafb<=_0x3a083f;_0x16fafb++){const _0x278764=_0x23ab3c[_0x16fafb-0x1]||'',_0x58dbd0=a166_0x119c72[_0x5b4c0e(0xb7)](_0x16fafb[_0x5b4c0e(0xaf)]()[_0x5b4c0e(0xc6)](0x4)),_0xa15ad0=a166_0x119c72[_0x5b4c0e(0xb7)](_0x5b4c0e(0xad));if(_0x16fafb===_0x3680fb){_0x153b68['push']('\x20\x20'+_0x58dbd0+_0xa15ad0+_0x17845d(_0x278764));const _0x38b2a1='\x20'[_0x5b4c0e(0xbe)](0x4+0x3+_0x530782-0x1);_0x153b68[_0x5b4c0e(0x9e)]('\x20\x20'+_0x38b2a1+_0x17845d('^'));}else _0x153b68[_0x5b4c0e(0x9e)]('\x20\x20'+_0x58dbd0+_0xa15ad0+a166_0x119c72['dim'](_0x278764));}}return _0x153b68['join']('\x0a');}export function formatValidationResult(_0x4bc2d2,_0x4bf180,_0x477e82){const _0x29f5ae=a166_0x2ecb,_0x3edcff=[];for(const _0x5f11fb of _0x4bc2d2[_0x29f5ae(0xa5)]){_0x3edcff[_0x29f5ae(0x9e)](formatIssueWithContext(_0x5f11fb,_0x4bf180,_0x477e82)),_0x3edcff[_0x29f5ae(0x9e)]('');}for(const _0xc3bc16 of _0x4bc2d2[_0x29f5ae(0xa4)]){_0x3edcff[_0x29f5ae(0x9e)](formatIssueWithContext(_0xc3bc16,_0x4bf180,_0x477e82)),_0x3edcff[_0x29f5ae(0x9e)]('');}return _0x3edcff[_0x29f5ae(0xae)]('\x0a');}