@treasuredata/tdx 2026.6.1 → 2026.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/engage-template-pull-command.js +1 -1
  28. package/dist/commands/engage-template-push-command.js +1 -1
  29. package/dist/commands/engage-template-validate-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/journey-command.js +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/policy-command.js +1 -1
  37. package/dist/commands/profile-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/schedule-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/status-command.js +1 -1
  52. package/dist/commands/table-deleted.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/unset-command.js +1 -1
  55. package/dist/commands/upgrade-command.js +1 -1
  56. package/dist/commands/use-command.js +1 -1
  57. package/dist/commands/user-command.js +1 -1
  58. package/dist/commands/work-command.js +1 -1
  59. package/dist/commands/workflow-command.d.ts +2 -2
  60. package/dist/commands/workflow-command.d.ts.map +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/commands/workflow-command.js.map +1 -1
  63. package/dist/core/auth.js +1 -1
  64. package/dist/core/command-output.js +1 -1
  65. package/dist/core/config.js +1 -1
  66. package/dist/core/connection-cache.js +1 -1
  67. package/dist/core/constants.js +1 -1
  68. package/dist/core/credential-cache.js +1 -1
  69. package/dist/core/global-context.js +1 -1
  70. package/dist/core/keychain.js +1 -1
  71. package/dist/core/oauth-keychain.js +1 -1
  72. package/dist/core/oauth.js +1 -1
  73. package/dist/core/profile.js +1 -1
  74. package/dist/core/project-config.js +1 -1
  75. package/dist/core/session.js +1 -1
  76. package/dist/core/user-cache.js +1 -1
  77. package/dist/core/version.js +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/mcp/server.js +1 -1
  80. package/dist/mcp/tools/index.js +1 -1
  81. package/dist/mcp/tools/tdx-run.js +1 -1
  82. package/dist/mcp/tools/tdx-search.js +1 -1
  83. package/dist/mcp/tools/work-create-item.js +1 -1
  84. package/dist/mcp/utils.js +1 -1
  85. package/dist/proxy/claude-usage-tracker.js +1 -1
  86. package/dist/proxy/passthrough-server.js +1 -1
  87. package/dist/proxy/sse-usage-parser.js +1 -1
  88. package/dist/sdk/agent/agent-config.js +1 -1
  89. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  90. package/dist/sdk/agent/agent-yaml.js +1 -1
  91. package/dist/sdk/agent/test/evaluator.js +1 -1
  92. package/dist/sdk/agent/test/executor.js +1 -1
  93. package/dist/sdk/agent/test/index.js +1 -1
  94. package/dist/sdk/agent/test/output.js +1 -1
  95. package/dist/sdk/agent/test/parser.js +1 -1
  96. package/dist/sdk/agent/tool-target-registry.js +1 -1
  97. package/dist/sdk/api.js +1 -1
  98. package/dist/sdk/cas/cas-api-client.js +1 -1
  99. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  100. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  101. package/dist/sdk/cas/index.js +1 -1
  102. package/dist/sdk/cas/pull-workflow.js +1 -1
  103. package/dist/sdk/cas/push-workflow.js +1 -1
  104. package/dist/sdk/client/cdp-api-client.js +1 -1
  105. package/dist/sdk/client/delivery-api-client.js +1 -1
  106. package/dist/sdk/client/endpoints.js +1 -1
  107. package/dist/sdk/client/engage-api-client.js +1 -1
  108. package/dist/sdk/client/http-client.js +1 -1
  109. package/dist/sdk/client/llm-api-client.js +1 -1
  110. package/dist/sdk/client/oauth-refresh.js +1 -1
  111. package/dist/sdk/client/rate-limiter.js +1 -1
  112. package/dist/sdk/client/td-api-client.js +1 -1
  113. package/dist/sdk/client/trino-api-client.js +1 -1
  114. package/dist/sdk/client/workflow-client.d.ts +23 -1
  115. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  116. package/dist/sdk/client/workflow-client.js +1 -1
  117. package/dist/sdk/client/workflow-client.js.map +1 -1
  118. package/dist/sdk/connection-validator.js +1 -1
  119. package/dist/sdk/connection.js +1 -1
  120. package/dist/sdk/delivery.js +1 -1
  121. package/dist/sdk/engage/campaign-pull.js +1 -1
  122. package/dist/sdk/engage/campaign-push.js +1 -1
  123. package/dist/sdk/engage/campaign-validator.js +1 -1
  124. package/dist/sdk/engage/campaign-yaml.js +1 -1
  125. package/dist/sdk/engage/template-pull.js +1 -1
  126. package/dist/sdk/engage/template-push.js +1 -1
  127. package/dist/sdk/engage/template-validator.js +1 -1
  128. package/dist/sdk/engage/template-yaml.js +1 -1
  129. package/dist/sdk/engage/types/campaign-def.js +1 -1
  130. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  131. package/dist/sdk/engage/types/template-schema.js +1 -1
  132. package/dist/sdk/engage.js +1 -1
  133. package/dist/sdk/errors.js +1 -1
  134. package/dist/sdk/index.js +1 -1
  135. package/dist/sdk/io/index.js +1 -1
  136. package/dist/sdk/io/node-filesystem.js +1 -1
  137. package/dist/sdk/job.js +1 -1
  138. package/dist/sdk/journey.js +1 -1
  139. package/dist/sdk/llm/chat-cache.js +1 -1
  140. package/dist/sdk/llm/index.js +1 -1
  141. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  142. package/dist/sdk/llm/model-factors.js +1 -1
  143. package/dist/sdk/llm/user-settings.js +1 -1
  144. package/dist/sdk/personalization.js +1 -1
  145. package/dist/sdk/policy.js +1 -1
  146. package/dist/sdk/query/deleted-table-validation.js +1 -1
  147. package/dist/sdk/query/index.js +1 -1
  148. package/dist/sdk/query/sql-parser.js +1 -1
  149. package/dist/sdk/realtime.js +1 -1
  150. package/dist/sdk/schedule.js +1 -1
  151. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  152. package/dist/sdk/segment/fields-display.js +1 -1
  153. package/dist/sdk/segment/file-discovery.js +1 -1
  154. package/dist/sdk/segment/journey-utils.js +1 -1
  155. package/dist/sdk/segment/journey-validator.js +1 -1
  156. package/dist/sdk/segment/journey-yaml.js +1 -1
  157. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  158. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  159. package/dist/sdk/segment/pull-workflow.js +1 -1
  160. package/dist/sdk/segment/push-recovery.js +1 -1
  161. package/dist/sdk/segment/push-workflow.js +1 -1
  162. package/dist/sdk/segment/resolution-context.js +1 -1
  163. package/dist/sdk/segment/segment-path-parser.js +1 -1
  164. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  165. package/dist/sdk/segment/segment-validator.js +1 -1
  166. package/dist/sdk/segment/target-resolution.js +1 -1
  167. package/dist/sdk/segment/tdx-config.js +1 -1
  168. package/dist/sdk/segment/types/activation-schema.js +1 -1
  169. package/dist/sdk/segment/types/journey-def.js +1 -1
  170. package/dist/sdk/segment/types/journey-schema.js +1 -1
  171. package/dist/sdk/segment/types/segment-def.js +1 -1
  172. package/dist/sdk/segment/types/segment-schema.js +1 -1
  173. package/dist/sdk/segment/validate-files.js +1 -1
  174. package/dist/sdk/segment/yaml-validator.js +1 -1
  175. package/dist/sdk/segment.js +1 -1
  176. package/dist/sdk/types/index.js +1 -1
  177. package/dist/sdk/types/progress.js +1 -1
  178. package/dist/sdk/types/workflow.d.ts +1 -1
  179. package/dist/sdk/types/workflow.d.ts.map +1 -1
  180. package/dist/sdk/types/workspace.js +1 -1
  181. package/dist/sdk/user.js +1 -1
  182. package/dist/sdk/util/format-detector.js +1 -1
  183. package/dist/sdk/util/formatters.js +1 -1
  184. package/dist/sdk/util/index.js +1 -1
  185. package/dist/sdk/util/paginate.js +1 -1
  186. package/dist/sdk/util/tree-formatter.js +1 -1
  187. package/dist/sdk/workflow/archive-validation.js +1 -1
  188. package/dist/sdk/workflow/clone-workflow.js +1 -1
  189. package/dist/sdk/workflow/index.d.ts +23 -2
  190. package/dist/sdk/workflow/index.d.ts.map +1 -1
  191. package/dist/sdk/workflow/index.js +1 -1
  192. package/dist/sdk/workflow/index.js.map +1 -1
  193. package/dist/sdk/workflow/pull-workflow.js +1 -1
  194. package/dist/sdk/workflow/push-workflow.d.ts +4 -0
  195. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  196. package/dist/sdk/workflow/push-workflow.js +1 -1
  197. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  198. package/dist/sdk/workflow/task-graph.js +1 -1
  199. package/dist/sdk/workflow/tdx-config.js +1 -1
  200. package/dist/sdk/workflow/workflow-utils.js +1 -1
  201. package/dist/sdk/workspace/access-tracker.js +1 -1
  202. package/dist/sdk/workspace/frontmatter.js +1 -1
  203. package/dist/sdk/workspace/git.js +1 -1
  204. package/dist/sdk/workspace/index.js +1 -1
  205. package/dist/sdk/workspace/templates.js +1 -1
  206. package/dist/sdk/workspace/weekly.js +1 -1
  207. package/dist/sdk/workspace/wikilinks.js +1 -1
  208. package/dist/test-utils/command-runner.js +1 -1
  209. package/dist/test-utils/factories.js +1 -1
  210. package/dist/test-utils/fixtures.js +1 -1
  211. package/dist/test-utils/http-mock.js +1 -1
  212. package/dist/test-utils/index.js +1 -1
  213. package/dist/utils/async.js +1 -1
  214. package/dist/utils/colors.js +1 -1
  215. package/dist/utils/diff.js +1 -1
  216. package/dist/utils/file-permissions.js +1 -1
  217. package/dist/utils/file-reader.js +1 -1
  218. package/dist/utils/github-releases.js +1 -1
  219. package/dist/utils/global-cache.js +1 -1
  220. package/dist/utils/json-loader.js +1 -1
  221. package/dist/utils/local-cache.js +1 -1
  222. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  223. package/dist/utils/logger/formatters/index.js +1 -1
  224. package/dist/utils/logger/handlers/console-handler.js +1 -1
  225. package/dist/utils/logger/handlers/file-handler.js +1 -1
  226. package/dist/utils/logger/handlers/index.js +1 -1
  227. package/dist/utils/logger/handlers/null-handler.js +1 -1
  228. package/dist/utils/logger/index.js +1 -1
  229. package/dist/utils/logger/logger.js +1 -1
  230. package/dist/utils/logger/types.js +1 -1
  231. package/dist/utils/option-validation.js +1 -1
  232. package/dist/utils/process.js +1 -1
  233. package/dist/utils/prompt.js +1 -1
  234. package/dist/utils/spinner.js +1 -1
  235. package/dist/utils/sse-parser.js +1 -1
  236. package/dist/utils/string-utils.js +1 -1
  237. package/dist/utils/table-ref-parser.js +1 -1
  238. package/dist/utils/tdx-logger.js +1 -1
  239. package/dist/utils/version-check.js +1 -1
  240. package/package.json +1 -1
@@ -1 +1 @@
1
- function a160_0x2d72(){const _0x4198d7=['basename','match','scopedFolderPath','replace','extname','parse','type','dirname','No\x20tdx.json\x20found','227116wxzuag','No\x20tdx.json\x20found\x20for\x20file:\x20','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','file','parent_name','tdx.json','context','invalid_yaml','parentSegment','4204571ncprsu','File\x20not\x20found','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','cwd','resolve','isDirectory','segmentName','35qvKGXx','18DqMMtm','segment','no_parent','file_not_found','no_config','directory','folderPath','journey','177KeKUcO','parent_segment','File\x20not\x20found:\x20','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','configDir','relative','resourceType','382021CcnZFZ','5229310uaNGzM','1887798MUpMmN','trim','error','readFile','root','message','4279392ujqYQO','string','2008VIhlfl','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','exists'];a160_0x2d72=function(){return _0x4198d7;};return a160_0x2d72();}(function(_0x28e984,_0x54bcc8){const _0x363dc0=a160_0x957b,_0x57dcea=_0x28e984();while(!![]){try{const _0xda80a7=parseInt(_0x363dc0(0xc1))/0x1+-parseInt(_0x363dc0(0xcb))/0x2*(parseInt(_0x363dc0(0xba))/0x3)+-parseInt(_0x363dc0(0xa1))/0x4*(-parseInt(_0x363dc0(0xb1))/0x5)+-parseInt(_0x363dc0(0xc3))/0x6+-parseInt(_0x363dc0(0xaa))/0x7+-parseInt(_0x363dc0(0xc9))/0x8+parseInt(_0x363dc0(0xb2))/0x9*(parseInt(_0x363dc0(0xc2))/0xa);if(_0xda80a7===_0x54bcc8)break;else _0x57dcea['push'](_0x57dcea['shift']());}catch(_0x95b9ba){_0x57dcea['push'](_0x57dcea['shift']());}}}(a160_0x2d72,0x4d1f2));import a160_0x16a708 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';function a160_0x957b(_0x48596d,_0x4e9bb7){_0x48596d=_0x48596d-0x96;const _0x2d7226=a160_0x2d72();let _0x957b03=_0x2d7226[_0x48596d];return _0x957b03;}import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x2425d6){const _0x1e75d8=a160_0x957b;return _0x2425d6[_0x1e75d8(0x9e)]!==_0x1e75d8(0xc5);}export function isScopedResolution(_0x2a103a){const _0xc56def=a160_0x957b;return _0x2a103a[_0xc56def(0x9e)]==='directory'||_0x2a103a[_0xc56def(0x9e)]==='file'||_0x2a103a[_0xc56def(0x9e)]===_0xc56def(0xa7);}export function getScopedDetails(_0x41f518){const _0x3640a3=a160_0x957b;if(isScopedResolution(_0x41f518))return{'isScoped':_0x41f518['isScoped'],'scopedFolderPath':_0x41f518[_0x3640a3(0x9a)]};return undefined;}async function findTdxConfigAsync(_0x1e2382,_0x432f5b){const _0x40148c=a160_0x957b;let _0x4ffe44=a160_0x16a708['resolve'](_0x1e2382);const _0x555545=a160_0x16a708['parse'](_0x4ffe44)[_0x40148c(0xc7)];while(_0x4ffe44!==_0x555545){const _0x2f1078=a160_0x16a708['join'](_0x4ffe44,_0x40148c(0xa6));if(await _0x432f5b['exists'](_0x2f1078))try{const _0x587802=await _0x432f5b[_0x40148c(0xc6)](_0x2f1078),_0x3f2bbc=JSON[_0x40148c(0x9d)](_0x587802);if(_0x3f2bbc[_0x40148c(0xbb)]&&typeof _0x3f2bbc[_0x40148c(0xbb)]===_0x40148c(0xca))return{'configPath':_0x2f1078,'configDir':_0x4ffe44,'parentSegment':_0x3f2bbc['parent_segment']};}catch{}_0x4ffe44=a160_0x16a708[_0x40148c(0x9f)](_0x4ffe44);}return null;}function calculateScopedPath(_0x1c374b,_0x5d16ee){const _0x30158e=a160_0x957b,_0x237c68=a160_0x16a708[_0x30158e(0xbf)](_0x5d16ee,_0x1c374b),_0x16d933=_0x237c68!==''&&_0x237c68!=='.'&&!_0x237c68['startsWith']('..');return{'isScoped':_0x16d933,'scopedFolderPath':_0x16d933?_0x237c68[_0x30158e(0x9b)](/\\/g,'/'):''};}export async function resolveTarget(_0x108df6){const _0x14f94c=a160_0x957b,{arg:_0x218596,contextParent:_0x560603,cwd:cwd=process[_0x14f94c(0xad)](),fs:fs=nodeFileSystem}=_0x108df6;if(_0x218596&&isYamlFilePath(_0x218596))try{const _0x56bc70=await resolveYamlFilePath(_0x218596,fs),_0x4f577b=a160_0x16a708[_0x14f94c(0xae)](_0x218596),_0x35be0a=a160_0x16a708[_0x14f94c(0x9f)](_0x4f577b),_0x3817a1=await findTdxConfigAsync(_0x35be0a,fs);if(!_0x3817a1){if(_0x560603){const _0x4cf49c=a160_0x16a708[_0x14f94c(0x9f)](_0x4f577b);return{'type':_0x14f94c(0xa4),'parentName':_0x560603,'targetDir':_0x4cf49c,'configRoot':_0x4cf49c,'filePath':_0x4f577b,'resourceName':_0x56bc70[_0x14f94c(0xb0)],'folderPath':_0x56bc70[_0x14f94c(0xb8)],'resourceType':_0x56bc70[_0x14f94c(0xc0)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x14f94c(0xc5),'errorCode':'no_config','message':_0x14f94c(0xa2)+_0x218596,'arg':_0x218596,'helpText':_0x14f94c(0xbd)};}const _0x4ede3e=calculateScopedPath(_0x35be0a,_0x3817a1['configDir']);return{'type':_0x14f94c(0xa4),'parentName':_0x3817a1[_0x14f94c(0xa9)],'targetDir':_0x3817a1['configDir'],'configRoot':_0x3817a1[_0x14f94c(0xbe)],'filePath':_0x4f577b,'resourceName':_0x56bc70[_0x14f94c(0xb0)],'folderPath':_0x56bc70['folderPath'],'resourceType':_0x56bc70[_0x14f94c(0xc0)],'isScoped':_0x4ede3e['isScoped'],'scopedFolderPath':_0x4ede3e[_0x14f94c(0x9a)]};}catch(_0x219799){const _0x791595=_0x219799 instanceof Error?_0x219799[_0x14f94c(0xc8)]:String(_0x219799);if(_0x791595['includes'](_0x14f94c(0xab)))return{'type':_0x14f94c(0xc5),'errorCode':_0x14f94c(0xb5),'message':_0x14f94c(0xbc)+_0x218596,'arg':_0x218596};if(_0x791595['includes'](_0x14f94c(0xa0))){if(_0x560603){const _0x3665fb=a160_0x16a708[_0x14f94c(0xae)](_0x218596);if(await fs[_0x14f94c(0x97)](_0x3665fb)){const _0x270fea=a160_0x16a708[_0x14f94c(0x9f)](_0x3665fb),_0x509fac=await fs['readFile'](_0x3665fb),_0x44373d=_0x509fac[_0x14f94c(0x99)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x2c7257=_0x509fac[_0x14f94c(0x99)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x312b4a=_0x44373d?_0x44373d[0x1][_0x14f94c(0xc4)]():a160_0x16a708[_0x14f94c(0x98)](_0x218596,a160_0x16a708[_0x14f94c(0x9c)](_0x218596)),_0x10820a=_0x2c7257&&_0x2c7257[0x1][_0x14f94c(0xc4)]()===_0x14f94c(0xb9)?'journey':_0x14f94c(0xb3);return{'type':_0x14f94c(0xa4),'parentName':_0x560603,'targetDir':_0x270fea,'configRoot':_0x270fea,'filePath':_0x3665fb,'resourceName':_0x312b4a,'folderPath':'','resourceType':_0x10820a,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x14f94c(0xc5),'errorCode':_0x14f94c(0xb6),'message':_0x14f94c(0xa2)+_0x218596,'arg':_0x218596,'helpText':_0x14f94c(0xbd)};}return{'type':'error','errorCode':_0x14f94c(0xa8),'message':_0x791595,'arg':_0x218596};}if(_0x218596){const _0x13cdeb=a160_0x16a708[_0x14f94c(0xae)](cwd,_0x218596);let _0x294c27=null;try{_0x294c27=await fs['stat'](_0x13cdeb);}catch{}if(_0x294c27?.[_0x14f94c(0xaf)]()){const _0x2a3c76=await findTdxConfigAsync(_0x13cdeb,fs);if(_0x2a3c76){const _0x1b374e=calculateScopedPath(_0x13cdeb,_0x2a3c76[_0x14f94c(0xbe)]);return{'type':_0x14f94c(0xb7),'parentName':_0x2a3c76['parentSegment'],'targetDir':_0x13cdeb,'configRoot':_0x2a3c76[_0x14f94c(0xbe)],'isScoped':_0x1b374e['isScoped'],'scopedFolderPath':_0x1b374e[_0x14f94c(0x9a)]};}if(_0x560603)return{'type':_0x14f94c(0xb7),'parentName':_0x560603,'targetDir':_0x13cdeb,'configRoot':_0x13cdeb,'isScoped':![],'scopedFolderPath':''};return{'type':_0x14f94c(0xc5),'errorCode':_0x14f94c(0xb6),'message':_0x14f94c(0x96)+_0x218596,'arg':_0x218596,'helpText':'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'};}if(_0x294c27?.['isFile']())return{'type':_0x14f94c(0xc5),'errorCode':_0x14f94c(0xa8),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x218596,'arg':_0x218596,'helpText':_0x14f94c(0xa3)};const _0x21d86a=sanitizeFileName(_0x218596),_0x4b40a7=getSegmentRootDir(_0x21d86a,cwd);return{'type':_0x14f94c(0xa5),'parentName':_0x218596,'targetDir':_0x4b40a7,'configRoot':_0x4b40a7};}const _0x2902a7=await findTdxConfigAsync(cwd,fs);if(_0x2902a7){const _0x130ce5=calculateScopedPath(cwd,_0x2902a7[_0x14f94c(0xbe)]);return{'type':_0x14f94c(0xa7),'parentName':_0x2902a7['parentSegment'],'targetDir':cwd,'configRoot':_0x2902a7[_0x14f94c(0xbe)],'isScoped':_0x130ce5['isScoped'],'scopedFolderPath':_0x130ce5[_0x14f94c(0x9a)]};}if(_0x560603){const _0x4053e2=sanitizeFileName(_0x560603),_0x3c5811=getSegmentRootDir(_0x4053e2,cwd);return{'type':'context','parentName':_0x560603,'targetDir':_0x3c5811,'configRoot':_0x3c5811,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x14f94c(0xc5),'errorCode':_0x14f94c(0xb4),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x14f94c(0xac)};}
1
+ function a160_0x51c3(){const _0x16cb4d=['stat','No\x20tdx.json\x20found','1836TrgdeI','directory','exists','parse','File\x20not\x20found:\x20','no_config','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','message','72GupMRq','resolve','type','parent_name','invalid_yaml','tdx.json','3274124oFBxlD','Parent\x20segment\x20not\x20specified','899248oKBhJC','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','2034EvYMzR','resourceType','segmentName','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','replace','startsWith','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','Not\x20a\x20YAML\x20file:\x20','segment','1049625kfzTdn','3131838yqnQFb','isDirectory','journey','trim','includes','116630RagZPh','96378lEHnDa','no_parent','No\x20tdx.json\x20found\x20for\x20file:\x20','configDir','error','file_not_found','match','basename','file','parent_segment','scopedFolderPath','readFile','isScoped','parentSegment','5TGSBXb','cwd','root','relative','File\x20not\x20found','context','dirname'];a160_0x51c3=function(){return _0x16cb4d;};return a160_0x51c3();}(function(_0x32e5ff,_0x5ef078){const _0x5cd0d5=a160_0xd3c7,_0x49cb6b=_0x32e5ff();while(!![]){try{const _0x216c6f=-parseInt(_0x5cd0d5(0x123))/0x1*(parseInt(_0x5cd0d5(0x115))/0x2)+-parseInt(_0x5cd0d5(0x105))/0x3*(-parseInt(_0x5cd0d5(0xf3))/0x4)+parseInt(_0x5cd0d5(0x10e))/0x5+parseInt(_0x5cd0d5(0x10f))/0x6+-parseInt(_0x5cd0d5(0x101))/0x7+-parseInt(_0x5cd0d5(0x103))/0x8+parseInt(_0x5cd0d5(0xfb))/0x9*(parseInt(_0x5cd0d5(0x114))/0xa);if(_0x216c6f===_0x5ef078)break;else _0x49cb6b['push'](_0x49cb6b['shift']());}catch(_0x468632){_0x49cb6b['push'](_0x49cb6b['shift']());}}}(a160_0x51c3,0x4cfb9));import a160_0x5c7016 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(_0xa3cec6){const _0x5200f7=a160_0xd3c7;return _0xa3cec6[_0x5200f7(0xfd)]!=='error';}export function isScopedResolution(_0x826997){const _0xc3548f=a160_0xd3c7;return _0x826997[_0xc3548f(0xfd)]==='directory'||_0x826997[_0xc3548f(0xfd)]===_0xc3548f(0x11d)||_0x826997[_0xc3548f(0xfd)]===_0xc3548f(0x128);}export function getScopedDetails(_0x3414d4){const _0x59f280=a160_0xd3c7;if(isScopedResolution(_0x3414d4))return{'isScoped':_0x3414d4[_0x59f280(0x121)],'scopedFolderPath':_0x3414d4[_0x59f280(0x11f)]};return undefined;}async function findTdxConfigAsync(_0xf425d3,_0x199064){const _0x2efa18=a160_0xd3c7;let _0x4af820=a160_0x5c7016[_0x2efa18(0xfc)](_0xf425d3);const _0x592846=a160_0x5c7016[_0x2efa18(0xf6)](_0x4af820)[_0x2efa18(0x125)];while(_0x4af820!==_0x592846){const _0x520491=a160_0x5c7016['join'](_0x4af820,_0x2efa18(0x100));if(await _0x199064['exists'](_0x520491))try{const _0x700882=await _0x199064[_0x2efa18(0x120)](_0x520491),_0x5dbfcf=JSON[_0x2efa18(0xf6)](_0x700882);if(_0x5dbfcf[_0x2efa18(0x11e)]&&typeof _0x5dbfcf[_0x2efa18(0x11e)]==='string')return{'configPath':_0x520491,'configDir':_0x4af820,'parentSegment':_0x5dbfcf[_0x2efa18(0x11e)]};}catch{}_0x4af820=a160_0x5c7016[_0x2efa18(0x129)](_0x4af820);}return null;}function a160_0xd3c7(_0x12b855,_0xc98357){_0x12b855=_0x12b855-0xf1;const _0x51c3ac=a160_0x51c3();let _0xd3c7b6=_0x51c3ac[_0x12b855];return _0xd3c7b6;}function calculateScopedPath(_0x154ce2,_0x27530c){const _0x45722b=a160_0xd3c7,_0x21fa90=a160_0x5c7016[_0x45722b(0x126)](_0x27530c,_0x154ce2),_0x12cc3b=_0x21fa90!==''&&_0x21fa90!=='.'&&!_0x21fa90[_0x45722b(0x10a)]('..');return{'isScoped':_0x12cc3b,'scopedFolderPath':_0x12cc3b?_0x21fa90[_0x45722b(0x109)](/\\/g,'/'):''};}export async function resolveTarget(_0x338839){const _0x9fb4c6=a160_0xd3c7,{arg:_0x539650,contextParent:_0x32565b,cwd:cwd=process[_0x9fb4c6(0x124)](),fs:fs=nodeFileSystem}=_0x338839;if(_0x539650&&isYamlFilePath(_0x539650))try{const _0x4dd5fc=await resolveYamlFilePath(_0x539650,fs),_0x15a4fc=a160_0x5c7016['resolve'](_0x539650),_0x21bf1b=a160_0x5c7016['dirname'](_0x15a4fc),_0x5e5468=await findTdxConfigAsync(_0x21bf1b,fs);if(!_0x5e5468){if(_0x32565b){const _0x5a86ab=a160_0x5c7016[_0x9fb4c6(0x129)](_0x15a4fc);return{'type':_0x9fb4c6(0x11d),'parentName':_0x32565b,'targetDir':_0x5a86ab,'configRoot':_0x5a86ab,'filePath':_0x15a4fc,'resourceName':_0x4dd5fc[_0x9fb4c6(0x107)],'folderPath':_0x4dd5fc['folderPath'],'resourceType':_0x4dd5fc[_0x9fb4c6(0x106)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x9fb4c6(0x119),'errorCode':_0x9fb4c6(0xf8),'message':_0x9fb4c6(0x117)+_0x539650,'arg':_0x539650,'helpText':'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'};}const _0x1da87d=calculateScopedPath(_0x21bf1b,_0x5e5468['configDir']);return{'type':_0x9fb4c6(0x11d),'parentName':_0x5e5468[_0x9fb4c6(0x122)],'targetDir':_0x5e5468[_0x9fb4c6(0x118)],'configRoot':_0x5e5468[_0x9fb4c6(0x118)],'filePath':_0x15a4fc,'resourceName':_0x4dd5fc[_0x9fb4c6(0x107)],'folderPath':_0x4dd5fc['folderPath'],'resourceType':_0x4dd5fc[_0x9fb4c6(0x106)],'isScoped':_0x1da87d[_0x9fb4c6(0x121)],'scopedFolderPath':_0x1da87d[_0x9fb4c6(0x11f)]};}catch(_0x2a8e5a){const _0x1fba2d=_0x2a8e5a instanceof Error?_0x2a8e5a[_0x9fb4c6(0xfa)]:String(_0x2a8e5a);if(_0x1fba2d[_0x9fb4c6(0x113)](_0x9fb4c6(0x127)))return{'type':_0x9fb4c6(0x119),'errorCode':_0x9fb4c6(0x11a),'message':_0x9fb4c6(0xf7)+_0x539650,'arg':_0x539650};if(_0x1fba2d[_0x9fb4c6(0x113)](_0x9fb4c6(0xf2))){if(_0x32565b){const _0x2a8748=a160_0x5c7016['resolve'](_0x539650);if(await fs[_0x9fb4c6(0xf5)](_0x2a8748)){const _0x1d0b8d=a160_0x5c7016['dirname'](_0x2a8748),_0x5c8f22=await fs['readFile'](_0x2a8748),_0x65ea79=_0x5c8f22[_0x9fb4c6(0x11b)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x3dd13d=_0x5c8f22[_0x9fb4c6(0x11b)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x539266=_0x65ea79?_0x65ea79[0x1][_0x9fb4c6(0x112)]():a160_0x5c7016[_0x9fb4c6(0x11c)](_0x539650,a160_0x5c7016['extname'](_0x539650)),_0xa3ce74=_0x3dd13d&&_0x3dd13d[0x1][_0x9fb4c6(0x112)]()===_0x9fb4c6(0x111)?_0x9fb4c6(0x111):_0x9fb4c6(0x10d);return{'type':_0x9fb4c6(0x11d),'parentName':_0x32565b,'targetDir':_0x1d0b8d,'configRoot':_0x1d0b8d,'filePath':_0x2a8748,'resourceName':_0x539266,'folderPath':'','resourceType':_0xa3ce74,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x9fb4c6(0x119),'errorCode':_0x9fb4c6(0xf8),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x539650,'arg':_0x539650,'helpText':_0x9fb4c6(0x104)};}return{'type':_0x9fb4c6(0x119),'errorCode':_0x9fb4c6(0xff),'message':_0x1fba2d,'arg':_0x539650};}if(_0x539650){const _0xe601c9=a160_0x5c7016[_0x9fb4c6(0xfc)](cwd,_0x539650);let _0x7730e4=null;try{_0x7730e4=await fs[_0x9fb4c6(0xf1)](_0xe601c9);}catch{}if(_0x7730e4?.[_0x9fb4c6(0x110)]()){const _0x259538=await findTdxConfigAsync(_0xe601c9,fs);if(_0x259538){const _0x55c621=calculateScopedPath(_0xe601c9,_0x259538[_0x9fb4c6(0x118)]);return{'type':_0x9fb4c6(0xf4),'parentName':_0x259538['parentSegment'],'targetDir':_0xe601c9,'configRoot':_0x259538['configDir'],'isScoped':_0x55c621[_0x9fb4c6(0x121)],'scopedFolderPath':_0x55c621[_0x9fb4c6(0x11f)]};}if(_0x32565b)return{'type':_0x9fb4c6(0xf4),'parentName':_0x32565b,'targetDir':_0xe601c9,'configRoot':_0xe601c9,'isScoped':![],'scopedFolderPath':''};return{'type':_0x9fb4c6(0x119),'errorCode':_0x9fb4c6(0xf8),'message':_0x9fb4c6(0x108)+_0x539650,'arg':_0x539650,'helpText':_0x9fb4c6(0x104)};}if(_0x7730e4?.['isFile']())return{'type':_0x9fb4c6(0x119),'errorCode':_0x9fb4c6(0xff),'message':_0x9fb4c6(0x10c)+_0x539650,'arg':_0x539650,'helpText':_0x9fb4c6(0x10b)};const _0x506146=sanitizeFileName(_0x539650),_0xeed5e3=getSegmentRootDir(_0x506146,cwd);return{'type':_0x9fb4c6(0xfe),'parentName':_0x539650,'targetDir':_0xeed5e3,'configRoot':_0xeed5e3};}const _0x1d9728=await findTdxConfigAsync(cwd,fs);if(_0x1d9728){const _0x486146=calculateScopedPath(cwd,_0x1d9728[_0x9fb4c6(0x118)]);return{'type':_0x9fb4c6(0x128),'parentName':_0x1d9728[_0x9fb4c6(0x122)],'targetDir':cwd,'configRoot':_0x1d9728[_0x9fb4c6(0x118)],'isScoped':_0x486146[_0x9fb4c6(0x121)],'scopedFolderPath':_0x486146[_0x9fb4c6(0x11f)]};}if(_0x32565b){const _0x4a089f=sanitizeFileName(_0x32565b),_0x4e96d1=getSegmentRootDir(_0x4a089f,cwd);return{'type':_0x9fb4c6(0x128),'parentName':_0x32565b,'targetDir':_0x4e96d1,'configRoot':_0x4e96d1,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x9fb4c6(0x116),'message':_0x9fb4c6(0x102),'helpText':_0x9fb4c6(0xf9)};}
@@ -1 +1 @@
1
- function a161_0x1fcd(){const _0x592397=['7050728BXkgqT','engage_workspace','parent_segment','root','cwd','stringify','3959970ZTgtnv','parse','tdx.json','replace','resolve','string','dirname','6818763swOgbF','Invalid\x20JSON\x20in\x20','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','18UDuiLx','segments','startsWith','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','23274zjoZbF','join','4302170VDOnRd','203513NTOBlM','utf-8','relative','124lCpYfv','407916NukiqY'];a161_0x1fcd=function(){return _0x592397;};return a161_0x1fcd();}const a161_0x565dff=a161_0x20cb;(function(_0x56f17f,_0x19a8bf){const _0x2dabd1=a161_0x20cb,_0x4dfeb8=_0x56f17f();while(!![]){try{const _0x14052d=parseInt(_0x2dabd1(0x154))/0x1+-parseInt(_0x2dabd1(0x158))/0x2+-parseInt(_0x2dabd1(0x151))/0x3*(parseInt(_0x2dabd1(0x157))/0x4)+parseInt(_0x2dabd1(0x153))/0x5+parseInt(_0x2dabd1(0x15f))/0x6+parseInt(_0x2dabd1(0x166))/0x7+-parseInt(_0x2dabd1(0x159))/0x8*(parseInt(_0x2dabd1(0x14d))/0x9);if(_0x14052d===_0x19a8bf)break;else _0x4dfeb8['push'](_0x4dfeb8['shift']());}catch(_0x33e414){_0x4dfeb8['push'](_0x4dfeb8['shift']());}}}(a161_0x1fcd,0x77da1));import{existsSync,readFileSync}from'fs';import a161_0xda1685 from'path';const TDX_CONFIG_FILE=a161_0x565dff(0x161),SEGMENTS_DIR=a161_0x565dff(0x14e);export function findTdxConfigPath(_0x3e7f97=process[a161_0x565dff(0x15d)]()){const _0x3435b7=a161_0x565dff;let _0x2e7e93=a161_0xda1685[_0x3435b7(0x163)](_0x3e7f97);const _0x2e18bd=a161_0xda1685[_0x3435b7(0x160)](_0x2e7e93)[_0x3435b7(0x15c)];while(_0x2e7e93!==_0x2e18bd){const _0x1cadca=a161_0xda1685[_0x3435b7(0x152)](_0x2e7e93,TDX_CONFIG_FILE);if(existsSync(_0x1cadca))return _0x1cadca;_0x2e7e93=a161_0xda1685[_0x3435b7(0x165)](_0x2e7e93);}return null;}export function loadTdxConfig(_0x345c4f){const _0x454bdb=a161_0x565dff,_0x23d0fa=readFileSync(_0x345c4f,_0x454bdb(0x155));let _0x457890;try{_0x457890=JSON[_0x454bdb(0x160)](_0x23d0fa);}catch{throw new Error(_0x454bdb(0x167)+_0x345c4f);}if(!_0x457890||typeof _0x457890!=='object')throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x5132e1=_0x457890,_0x4eba16=_0x5132e1[_0x454bdb(0x15b)]&&typeof _0x5132e1[_0x454bdb(0x15b)]===_0x454bdb(0x164),_0x56fe8f=_0x5132e1['engage_workspace']&&typeof _0x5132e1[_0x454bdb(0x15a)]==='string';if(!_0x4eba16&&!_0x56fe8f)throw new Error(_0x454bdb(0x150));const _0x588fb5={};return _0x4eba16&&(_0x588fb5[_0x454bdb(0x15b)]=_0x5132e1[_0x454bdb(0x15b)]),_0x56fe8f&&(_0x588fb5[_0x454bdb(0x15a)]=_0x5132e1[_0x454bdb(0x15a)]),_0x588fb5;}export function findTdxConfig(_0x637cfa=process[a161_0x565dff(0x15d)]()){const _0x4f36f4=a161_0x565dff,_0x410896=findTdxConfigPath(_0x637cfa);if(!_0x410896)throw new Error(_0x4f36f4(0x14c));const _0xf68249=loadTdxConfig(_0x410896),_0x338f15=a161_0xda1685[_0x4f36f4(0x165)](_0x410896);return{'config':_0xf68249,'configPath':_0x410896,'configDir':_0x338f15};}export function tryFindTdxConfig(_0x326e7e){try{return findTdxConfig(_0x326e7e);}catch{return null;}}export function getSegmentRootDir(_0x190813,_0x54e85f=process[a161_0x565dff(0x15d)]()){const _0x312c21=a161_0x565dff;return a161_0xda1685[_0x312c21(0x152)](_0x54e85f,SEGMENTS_DIR,_0x190813);}export function getTdxConfigPath(_0x587a60,_0x49bd78=process[a161_0x565dff(0x15d)]()){const _0x2da4f8=a161_0x565dff;return a161_0xda1685[_0x2da4f8(0x152)](getSegmentRootDir(_0x587a60,_0x49bd78),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0xd5ba7,_0x7d6465){const _0x19509e=a161_0x565dff,_0x996d11=a161_0xda1685[_0x19509e(0x163)](_0xd5ba7),_0x2f80dc=a161_0xda1685[_0x19509e(0x156)](_0x7d6465,_0x996d11);if(_0x2f80dc[_0x19509e(0x14f)]('..'))return'';return _0x2f80dc;}export function localPathToTdFolderPath(_0x111a8c){const _0x1c6694=a161_0x565dff,_0x175f97=a161_0xda1685[_0x1c6694(0x165)](_0x111a8c);if(_0x175f97==='.'||_0x175f97==='')return'';return _0x175f97[_0x1c6694(0x162)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x2b4118,_0x82ac09){const _0x3af94f=a161_0x565dff;if(!_0x2b4118)return _0x82ac09;return a161_0xda1685[_0x3af94f(0x152)](_0x82ac09,_0x2b4118);}export function createTdxConfigContent(_0x215ded){const _0x73fb08={'parent_segment':_0x215ded};return JSON['stringify'](_0x73fb08,null,0x2)+'\x0a';}function a161_0x20cb(_0x327a77,_0x2881af){_0x327a77=_0x327a77-0x14c;const _0x1fcdab=a161_0x1fcd();let _0x20cbd7=_0x1fcdab[_0x327a77];return _0x20cbd7;}export function createEngageTdxConfigContent(_0x5e3744){const _0x45b7e0=a161_0x565dff,_0x1af127={'engage_workspace':_0x5e3744};return JSON[_0x45b7e0(0x15e)](_0x1af127,null,0x2)+'\x0a';}
1
+ const a161_0x13f52f=a161_0x2461;(function(_0x5837a8,_0x19bbfd){const _0x254b26=a161_0x2461,_0xbe257d=_0x5837a8();while(!![]){try{const _0x576713=-parseInt(_0x254b26(0xd7))/0x1*(-parseInt(_0x254b26(0xca))/0x2)+-parseInt(_0x254b26(0xce))/0x3*(-parseInt(_0x254b26(0xdd))/0x4)+parseInt(_0x254b26(0xcb))/0x5*(-parseInt(_0x254b26(0xdc))/0x6)+-parseInt(_0x254b26(0xe2))/0x7*(-parseInt(_0x254b26(0xd6))/0x8)+parseInt(_0x254b26(0xc3))/0x9*(-parseInt(_0x254b26(0xc8))/0xa)+parseInt(_0x254b26(0xe0))/0xb+-parseInt(_0x254b26(0xd0))/0xc*(-parseInt(_0x254b26(0xc6))/0xd);if(_0x576713===_0x19bbfd)break;else _0xbe257d['push'](_0xbe257d['shift']());}catch(_0x57de99){_0xbe257d['push'](_0xbe257d['shift']());}}}(a161_0x4771,0x734c0));import{existsSync,readFileSync}from'fs';import a161_0x43002a from'path';const TDX_CONFIG_FILE=a161_0x13f52f(0xd4),SEGMENTS_DIR=a161_0x13f52f(0xd3);function a161_0x4771(){const _0x18aa03=['segments','tdx.json','replace','8zVQCtk','3ZDmmnl','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','resolve','engage_workspace','dirname','59352ngFPXN','124AWJWgu','join','parent_segment','4565165GmSTLu','cwd','1948261jABnvo','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','122544olIaHM','startsWith','parse','1050933MsWbJW','relative','640pDMvpK','Invalid\x20JSON\x20in\x20','416762jEVQie','190IPhgaF','object','root','23169BJekld','stringify','24HOxAFL','string','utf-8'];a161_0x4771=function(){return _0x18aa03;};return a161_0x4771();}export function findTdxConfigPath(_0x1c8935=process[a161_0x13f52f(0xe1)]()){const _0x2e05db=a161_0x13f52f;let _0x4d8e02=a161_0x43002a[_0x2e05db(0xd9)](_0x1c8935);const _0xfcfde3=a161_0x43002a[_0x2e05db(0xc5)](_0x4d8e02)[_0x2e05db(0xcd)];while(_0x4d8e02!==_0xfcfde3){const _0x211baf=a161_0x43002a[_0x2e05db(0xde)](_0x4d8e02,TDX_CONFIG_FILE);if(existsSync(_0x211baf))return _0x211baf;_0x4d8e02=a161_0x43002a['dirname'](_0x4d8e02);}return null;}export function loadTdxConfig(_0x355d55){const _0x3e1c56=a161_0x13f52f,_0x55ce88=readFileSync(_0x355d55,_0x3e1c56(0xd2));let _0x22cea0;try{_0x22cea0=JSON[_0x3e1c56(0xc5)](_0x55ce88);}catch{throw new Error(_0x3e1c56(0xc9)+_0x355d55);}if(!_0x22cea0||typeof _0x22cea0!==_0x3e1c56(0xcc))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x523b70=_0x22cea0,_0x3690ca=_0x523b70[_0x3e1c56(0xdf)]&&typeof _0x523b70[_0x3e1c56(0xdf)]==='string',_0xa9ce74=_0x523b70[_0x3e1c56(0xda)]&&typeof _0x523b70[_0x3e1c56(0xda)]===_0x3e1c56(0xd1);if(!_0x3690ca&&!_0xa9ce74)throw new Error(_0x3e1c56(0xd8));const _0x5b9138={};return _0x3690ca&&(_0x5b9138['parent_segment']=_0x523b70[_0x3e1c56(0xdf)]),_0xa9ce74&&(_0x5b9138[_0x3e1c56(0xda)]=_0x523b70[_0x3e1c56(0xda)]),_0x5b9138;}export function findTdxConfig(_0x542390=process['cwd']()){const _0x58240d=a161_0x13f52f,_0x314107=findTdxConfigPath(_0x542390);if(!_0x314107)throw new Error(_0x58240d(0xc2));const _0x2f1ffe=loadTdxConfig(_0x314107),_0x142068=a161_0x43002a[_0x58240d(0xdb)](_0x314107);return{'config':_0x2f1ffe,'configPath':_0x314107,'configDir':_0x142068};}function a161_0x2461(_0x20a074,_0x438dad){_0x20a074=_0x20a074-0xc2;const _0x47717c=a161_0x4771();let _0x246170=_0x47717c[_0x20a074];return _0x246170;}export function tryFindTdxConfig(_0x4349ad){try{return findTdxConfig(_0x4349ad);}catch{return null;}}export function getSegmentRootDir(_0x4a17d8,_0x431332=process[a161_0x13f52f(0xe1)]()){const _0x909bdb=a161_0x13f52f;return a161_0x43002a[_0x909bdb(0xde)](_0x431332,SEGMENTS_DIR,_0x4a17d8);}export function getTdxConfigPath(_0x188b0d,_0x1dc520=process[a161_0x13f52f(0xe1)]()){const _0x57693c=a161_0x13f52f;return a161_0x43002a[_0x57693c(0xde)](getSegmentRootDir(_0x188b0d,_0x1dc520),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x526f8e,_0x169ec2){const _0x20baa4=a161_0x13f52f,_0xc53ff1=a161_0x43002a[_0x20baa4(0xd9)](_0x526f8e),_0x1b822e=a161_0x43002a[_0x20baa4(0xc7)](_0x169ec2,_0xc53ff1);if(_0x1b822e[_0x20baa4(0xc4)]('..'))return'';return _0x1b822e;}export function localPathToTdFolderPath(_0xff9659){const _0x32a715=a161_0x13f52f,_0x252d5a=a161_0x43002a[_0x32a715(0xdb)](_0xff9659);if(_0x252d5a==='.'||_0x252d5a==='')return'';return _0x252d5a[_0x32a715(0xd5)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x1cc35f,_0xe69e9){const _0x3e9eaa=a161_0x13f52f;if(!_0x1cc35f)return _0xe69e9;return a161_0x43002a[_0x3e9eaa(0xde)](_0xe69e9,_0x1cc35f);}export function createTdxConfigContent(_0x40becc){const _0x5530bd=a161_0x13f52f,_0x3f3d6b={'parent_segment':_0x40becc};return JSON[_0x5530bd(0xcf)](_0x3f3d6b,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x19a1f2){const _0x19c30c=a161_0x13f52f,_0x508008={'engage_workspace':_0x19a1f2};return JSON[_0x19c30c(0xcf)](_0x508008,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a162_0xb57a22=a162_0x5904;(function(_0x29d791,_0x5b4105){const _0x132868=a162_0x5904,_0x10bf5f=_0x29d791();while(!![]){try{const _0x25152c=parseInt(_0x132868(0x1cc))/0x1*(-parseInt(_0x132868(0x1e0))/0x2)+parseInt(_0x132868(0x1da))/0x3*(parseInt(_0x132868(0x1e4))/0x4)+-parseInt(_0x132868(0x1cd))/0x5+-parseInt(_0x132868(0x1ef))/0x6+-parseInt(_0x132868(0x1d8))/0x7*(parseInt(_0x132868(0x1d0))/0x8)+-parseInt(_0x132868(0x1f5))/0x9+parseInt(_0x132868(0x1e3))/0xa;if(_0x25152c===_0x5b4105)break;else _0x10bf5f['push'](_0x10bf5f['shift']());}catch(_0x412b52){_0x10bf5f['push'](_0x10bf5f['shift']());}}}(a162_0xdc5a,0xf34cf));import{z}from'zod';export const ScheduleTypeSchema=z[a162_0xb57a22(0x1ea)](['none','hourly',a162_0xb57a22(0x1e9),a162_0xb57a22(0x1f7),a162_0xb57a22(0x1df),a162_0xb57a22(0x1d7),a162_0xb57a22(0x1f2)]);export const RepeatUnitSchema=z[a162_0xb57a22(0x1ea)]([a162_0xb57a22(0x1d9),a162_0xb57a22(0x1e6),a162_0xb57a22(0x1f1),a162_0xb57a22(0x1e1),a162_0xb57a22(0x1f6),a162_0xb57a22(0x1ed),a162_0xb57a22(0x1db)]);export const ScheduleDefSchema=z[a162_0xb57a22(0x1dd)]({'type':ScheduleTypeSchema[a162_0xb57a22(0x1de)](),'repeat_unit':RepeatUnitSchema[a162_0xb57a22(0x1de)](),'repeat_frequency':z[a162_0xb57a22(0x1cf)]()[a162_0xb57a22(0x1de)](),'repeat_sub_frequency':z[a162_0xb57a22(0x1cb)](z[a162_0xb57a22(0x1cf)]())[a162_0xb57a22(0x1de)](),'start_at':z['string']()[a162_0xb57a22(0x1ee)]()[a162_0xb57a22(0x1de)](),'end_on':z['string']()[a162_0xb57a22(0x1ee)]()[a162_0xb57a22(0x1de)](),'timezone':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)]()});function a162_0x5904(_0xfefd9e,_0x322a4a){_0xfefd9e=_0xfefd9e-0x1cb;const _0xdc5ac6=a162_0xdc5a();let _0x590470=_0xdc5ac6[_0xfefd9e];return _0x590470;}export const NotificationDefSchema=z[a162_0xb57a22(0x1dd)]({'notify_on':z[a162_0xb57a22(0x1cb)](z[a162_0xb57a22(0x1ea)]([a162_0xb57a22(0x1dc),a162_0xb57a22(0x1ce)]))[a162_0xb57a22(0x1de)](),'email_recipients':z['array'](z[a162_0xb57a22(0x1f0)]())['optional']()});export const ActivationColumnDefSchema=z[a162_0xb57a22(0x1e5)]([z[a162_0xb57a22(0x1f0)](),z[a162_0xb57a22(0x1dd)]({'name':z[a162_0xb57a22(0x1f0)](),'type':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)](),'visibility':z[a162_0xb57a22(0x1ea)](['clear',a162_0xb57a22(0x1d1)])[a162_0xb57a22(0x1de)]()})]);function a162_0xdc5a(){const _0x42c8f3=['10374408XOkuLa','string','day','minutes_interval','Activation\x20name\x20is\x20required','desc','333198yiZlrf','month','weekly','array','26pgoKPb','5072200kkfyYD','onFailure','number','16pjAOFO','masked','clear','First','rows','All','unknown','cron','3625741uGbuNz','minute','145329znLYcz','none','onSuccess','object','optional','monthly','16838RXVIkL','week','min','42083780UjMXXo','68JjICaJ','union','hour','Connection\x20name\x20is\x20required','boolean','daily','enum','asc','cols','once','nullable'];a162_0xdc5a=function(){return _0x42c8f3;};return a162_0xdc5a();}export const ActivationBehaviorDefSchema=z[a162_0xb57a22(0x1dd)]({'columns':z['array'](z['object']({'name':z[a162_0xb57a22(0x1f0)](),'type':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)](),'visibility':z['enum']([a162_0xb57a22(0x1d2),'masked'])[a162_0xb57a22(0x1de)]()}))[a162_0xb57a22(0x1de)](),'behavior_table':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)](),'join_row':z[a162_0xb57a22(0x1cf)]()['nullable']()[a162_0xb57a22(0x1de)](),'join_strategy':z[a162_0xb57a22(0x1ea)]([a162_0xb57a22(0x1d5),a162_0xb57a22(0x1d3),'Last','Top-N'])['optional'](),'formatting':z[a162_0xb57a22(0x1ea)]([a162_0xb57a22(0x1d4),a162_0xb57a22(0x1ec)])['optional'](),'order_by':z[a162_0xb57a22(0x1cb)](z['object']({'key':z[a162_0xb57a22(0x1f0)](),'order':z[a162_0xb57a22(0x1ea)]([a162_0xb57a22(0x1eb),a162_0xb57a22(0x1f4)])}))[a162_0xb57a22(0x1de)]()});export const ActivationDefSchema=z[a162_0xb57a22(0x1dd)]({'name':z['string']()[a162_0xb57a22(0x1e2)](0x1,a162_0xb57a22(0x1f3)),'description':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)](),'connection':z[a162_0xb57a22(0x1f0)]()['min'](0x1,a162_0xb57a22(0x1e7)),'all_columns':z[a162_0xb57a22(0x1e8)]()[a162_0xb57a22(0x1de)](),'columns':z[a162_0xb57a22(0x1cb)](ActivationColumnDefSchema)[a162_0xb57a22(0x1de)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema['optional'](),'connector_config':z['record'](z[a162_0xb57a22(0x1f0)](),z[a162_0xb57a22(0x1d6)]())[a162_0xb57a22(0x1de)](),'activation_template_id':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1ee)]()[a162_0xb57a22(0x1de)](),'behavior':ActivationBehaviorDefSchema[a162_0xb57a22(0x1ee)]()[a162_0xb57a22(0x1de)](),'run_after_journey_refresh':z['boolean']()[a162_0xb57a22(0x1de)](),'nested_workflow_project_name':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)](),'nested_workflow_name':z[a162_0xb57a22(0x1f0)]()[a162_0xb57a22(0x1de)](),'lock_enabled':z[a162_0xb57a22(0x1e8)]()[a162_0xb57a22(0x1de)]()});
1
+ const a162_0x358d7f=a162_0xb7e2;(function(_0xb4c6c,_0x551158){const _0x30b486=a162_0xb7e2,_0x27faae=_0xb4c6c();while(!![]){try{const _0x399873=-parseInt(_0x30b486(0x1db))/0x1+parseInt(_0x30b486(0x1d4))/0x2+-parseInt(_0x30b486(0x1bc))/0x3+-parseInt(_0x30b486(0x1cb))/0x4*(-parseInt(_0x30b486(0x1b9))/0x5)+parseInt(_0x30b486(0x1b7))/0x6+parseInt(_0x30b486(0x1b3))/0x7+-parseInt(_0x30b486(0x1d9))/0x8;if(_0x399873===_0x551158)break;else _0x27faae['push'](_0x27faae['shift']());}catch(_0x2e2d29){_0x27faae['push'](_0x27faae['shift']());}}}(a162_0x4297,0xc332c));function a162_0x4297(){const _0x46caf5=['record','First','desc','min','rows','enum','minutes_interval','80pRTwKx','All','union','week','onFailure','month','minute','hourly','once','270084tMDSsB','hour','Activation\x20name\x20is\x20required','array','unknown','5716576GJQzMe','optional','1318427mcjeWw','object','Last','9684234bWZEWU','number','daily','Top-N','3811524NkBZiX','clear','323690ZvPixI','string','nullable','1847961Uvmqvo','asc','none','Connection\x20name\x20is\x20required','monthly','boolean','masked','cron'];a162_0x4297=function(){return _0x46caf5;};return a162_0x4297();}function a162_0xb7e2(_0x498062,_0xad935d){_0x498062=_0x498062-0x1b2;const _0x429727=a162_0x4297();let _0xb7e285=_0x429727[_0x498062];return _0xb7e285;}import{z}from'zod';export const ScheduleTypeSchema=z['enum']([a162_0x358d7f(0x1be),a162_0x358d7f(0x1d2),a162_0x358d7f(0x1b5),'weekly',a162_0x358d7f(0x1c0),a162_0x358d7f(0x1c3),a162_0x358d7f(0x1ca)]);export const RepeatUnitSchema=z[a162_0x358d7f(0x1c9)]([a162_0x358d7f(0x1d1),a162_0x358d7f(0x1d5),'day',a162_0x358d7f(0x1ce),a162_0x358d7f(0x1d0),a162_0x358d7f(0x1d3),a162_0x358d7f(0x1be)]);export const ScheduleDefSchema=z[a162_0x358d7f(0x1dc)]({'type':ScheduleTypeSchema[a162_0x358d7f(0x1da)](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a162_0x358d7f(0x1b4)]()[a162_0x358d7f(0x1da)](),'repeat_sub_frequency':z[a162_0x358d7f(0x1d7)](z[a162_0x358d7f(0x1b4)]())[a162_0x358d7f(0x1da)](),'start_at':z['string']()[a162_0x358d7f(0x1bb)]()['optional'](),'end_on':z[a162_0x358d7f(0x1ba)]()[a162_0x358d7f(0x1bb)]()['optional'](),'timezone':z['string']()[a162_0x358d7f(0x1da)]()});export const NotificationDefSchema=z[a162_0x358d7f(0x1dc)]({'notify_on':z[a162_0x358d7f(0x1d7)](z['enum'](['onSuccess',a162_0x358d7f(0x1cf)]))[a162_0x358d7f(0x1da)](),'email_recipients':z['array'](z[a162_0x358d7f(0x1ba)]())[a162_0x358d7f(0x1da)]()});export const ActivationColumnDefSchema=z[a162_0x358d7f(0x1cd)]([z[a162_0x358d7f(0x1ba)](),z['object']({'name':z[a162_0x358d7f(0x1ba)](),'type':z[a162_0x358d7f(0x1ba)]()[a162_0x358d7f(0x1da)](),'visibility':z[a162_0x358d7f(0x1c9)]([a162_0x358d7f(0x1b8),a162_0x358d7f(0x1c2)])[a162_0x358d7f(0x1da)]()})]);export const ActivationBehaviorDefSchema=z[a162_0x358d7f(0x1dc)]({'columns':z[a162_0x358d7f(0x1d7)](z['object']({'name':z[a162_0x358d7f(0x1ba)](),'type':z[a162_0x358d7f(0x1ba)]()[a162_0x358d7f(0x1da)](),'visibility':z[a162_0x358d7f(0x1c9)]([a162_0x358d7f(0x1b8),a162_0x358d7f(0x1c2)])[a162_0x358d7f(0x1da)]()}))[a162_0x358d7f(0x1da)](),'behavior_table':z[a162_0x358d7f(0x1ba)]()['optional'](),'join_row':z[a162_0x358d7f(0x1b4)]()['nullable']()[a162_0x358d7f(0x1da)](),'join_strategy':z['enum']([a162_0x358d7f(0x1cc),a162_0x358d7f(0x1c5),a162_0x358d7f(0x1b2),a162_0x358d7f(0x1b6)])[a162_0x358d7f(0x1da)](),'formatting':z['enum']([a162_0x358d7f(0x1c8),'cols'])[a162_0x358d7f(0x1da)](),'order_by':z[a162_0x358d7f(0x1d7)](z[a162_0x358d7f(0x1dc)]({'key':z[a162_0x358d7f(0x1ba)](),'order':z[a162_0x358d7f(0x1c9)]([a162_0x358d7f(0x1bd),a162_0x358d7f(0x1c6)])}))['optional']()});export const ActivationDefSchema=z[a162_0x358d7f(0x1dc)]({'name':z[a162_0x358d7f(0x1ba)]()[a162_0x358d7f(0x1c7)](0x1,a162_0x358d7f(0x1d6)),'description':z['string']()[a162_0x358d7f(0x1da)](),'connection':z[a162_0x358d7f(0x1ba)]()['min'](0x1,a162_0x358d7f(0x1bf)),'all_columns':z[a162_0x358d7f(0x1c1)]()[a162_0x358d7f(0x1da)](),'columns':z[a162_0x358d7f(0x1d7)](ActivationColumnDefSchema)[a162_0x358d7f(0x1da)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a162_0x358d7f(0x1c4)](z[a162_0x358d7f(0x1ba)](),z[a162_0x358d7f(0x1d8)]())[a162_0x358d7f(0x1da)](),'activation_template_id':z['string']()[a162_0x358d7f(0x1bb)]()['optional'](),'behavior':ActivationBehaviorDefSchema[a162_0x358d7f(0x1bb)]()[a162_0x358d7f(0x1da)](),'run_after_journey_refresh':z['boolean']()[a162_0x358d7f(0x1da)](),'nested_workflow_project_name':z[a162_0x358d7f(0x1ba)]()['optional'](),'nested_workflow_name':z['string']()[a162_0x358d7f(0x1da)](),'lock_enabled':z[a162_0x358d7f(0x1c1)]()[a162_0x358d7f(0x1da)]()});
@@ -1 +1 @@
1
- (function(_0x259d0b,_0x28bba6){var _0x53b567=a163_0x3b75,_0x33f127=_0x259d0b();while(!![]){try{var _0x4cfc93=-parseInt(_0x53b567(0x84))/0x1+-parseInt(_0x53b567(0x79))/0x2*(-parseInt(_0x53b567(0x7d))/0x3)+parseInt(_0x53b567(0x80))/0x4*(-parseInt(_0x53b567(0x7a))/0x5)+-parseInt(_0x53b567(0x7b))/0x6*(-parseInt(_0x53b567(0x7e))/0x7)+parseInt(_0x53b567(0x81))/0x8*(-parseInt(_0x53b567(0x78))/0x9)+parseInt(_0x53b567(0x82))/0xa*(parseInt(_0x53b567(0x83))/0xb)+parseInt(_0x53b567(0x7f))/0xc*(parseInt(_0x53b567(0x7c))/0xd);if(_0x4cfc93===_0x28bba6)break;else _0x33f127['push'](_0x33f127['shift']());}catch(_0x25c40f){_0x33f127['push'](_0x33f127['shift']());}}}(a163_0x5459,0x5d3b4));function a163_0x3b75(_0x35b9ff,_0x137cbe){_0x35b9ff=_0x35b9ff-0x78;var _0x5459db=a163_0x5459();var _0x3b7530=_0x5459db[_0x35b9ff];return _0x3b7530;}function a163_0x5459(){var _0x5ca33b=['8047gVemIA','3oOfCug','14kFbsyS','9480AwApqp','4ScPYHJ','65288GVnCtJ','10Okbvlr','4552383ccBLTh','356983wNKpIK','153qcQIKe','592610UszfCH','3272410qFfQJV','998730Owvsrz'];a163_0x5459=function(){return _0x5ca33b;};return a163_0x5459();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a163_0x5d46(_0x360fd2,_0x1236db){_0x360fd2=_0x360fd2-0xd5;var _0x47b0f2=a163_0x47b0();var _0x5d46ea=_0x47b0f2[_0x360fd2];return _0x5d46ea;}(function(_0x1c9237,_0x344ed7){var _0x440d5f=a163_0x5d46,_0x5c6e80=_0x1c9237();while(!![]){try{var _0xe5355d=-parseInt(_0x440d5f(0xd9))/0x1*(-parseInt(_0x440d5f(0xd7))/0x2)+parseInt(_0x440d5f(0xdc))/0x3+parseInt(_0x440d5f(0xd5))/0x4+parseInt(_0x440d5f(0xde))/0x5+-parseInt(_0x440d5f(0xdb))/0x6*(parseInt(_0x440d5f(0xd8))/0x7)+-parseInt(_0x440d5f(0xd6))/0x8*(-parseInt(_0x440d5f(0xda))/0x9)+-parseInt(_0x440d5f(0xdd))/0xa;if(_0xe5355d===_0x344ed7)break;else _0x5c6e80['push'](_0x5c6e80['shift']());}catch(_0x71070){_0x5c6e80['push'](_0x5c6e80['shift']());}}}(a163_0x47b0,0x5f0a4));function a163_0x47b0(){var _0x36aff2=['293659LDvMLH','4256685QMDRAq','36ZImHhE','892629zpkpjs','17638160XjHEHm','2684805sxKJfa','2216264ltUpqG','8UeFpdW','2DmjQso','2443fSwVBL'];a163_0x47b0=function(){return _0x36aff2;};return a163_0x47b0();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a164_0x19cc6f=a164_0x3bf3;(function(_0x22935f,_0x30a38c){const _0x1ffeeb=a164_0x3bf3,_0x5a3650=_0x22935f();while(!![]){try{const _0x104bc1=parseInt(_0x1ffeeb(0x107))/0x1*(parseInt(_0x1ffeeb(0x10a))/0x2)+parseInt(_0x1ffeeb(0x128))/0x3+parseInt(_0x1ffeeb(0x124))/0x4*(-parseInt(_0x1ffeeb(0x11f))/0x5)+parseInt(_0x1ffeeb(0x122))/0x6*(-parseInt(_0x1ffeeb(0x115))/0x7)+-parseInt(_0x1ffeeb(0x129))/0x8+parseInt(_0x1ffeeb(0x103))/0x9*(parseInt(_0x1ffeeb(0x126))/0xa)+-parseInt(_0x1ffeeb(0x113))/0xb;if(_0x104bc1===_0x30a38c)break;else _0x5a3650['push'](_0x5a3650['shift']());}catch(_0x4cb556){_0x5a3650['push'](_0x5a3650['shift']());}}}(a164_0x58aa,0x6e8d9));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a164_0x19cc6f(0x112),a164_0x19cc6f(0x12c),a164_0x19cc6f(0x10b)]);export const ReentryModeTypeSchema=z[a164_0x19cc6f(0x123)]([a164_0x19cc6f(0x11d),a164_0x19cc6f(0xff),a164_0x19cc6f(0x127)]);export const WaitUnitTypeSchema=z[a164_0x19cc6f(0x123)]([a164_0x19cc6f(0x10c),'week']);export const StepTypeValueSchema=z[a164_0x19cc6f(0x123)]([a164_0x19cc6f(0x101),a164_0x19cc6f(0x12b),'decision_point',a164_0x19cc6f(0x11a),a164_0x19cc6f(0x116),a164_0x19cc6f(0x10f),a164_0x19cc6f(0x119)]);function a164_0x3bf3(_0x330786,_0xd1e778){_0x330786=_0x330786-0xff;const _0x58aad5=a164_0x58aa();let _0x3bf354=_0x58aad5[_0x330786];return _0x3bf354;}export const EmbeddedSegmentDefSchema=z[a164_0x19cc6f(0x10e)]({'description':z['string']()[a164_0x19cc6f(0x104)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a164_0x19cc6f(0x10e)]({'journey':z[a164_0x19cc6f(0x118)](),'stage':z['string'](),'bundle_id':z['string']()['optional']()});export const CriteriaDefSchema=z['object']({'name':z[a164_0x19cc6f(0x118)](),'description':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'segment':z[a164_0x19cc6f(0x118)](),'target':JumpTargetDefSchema[a164_0x19cc6f(0x104)]()});const WaitConditionTimeoutDefSchema=z[a164_0x19cc6f(0x10e)]({'duration':z[a164_0x19cc6f(0x100)](),'unit':WaitUnitTypeSchema,'next':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)]()}),WaitConditionDefSchema=z[a164_0x19cc6f(0x10e)]({'segment':z[a164_0x19cc6f(0x118)](),'next':z['string']()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a164_0x19cc6f(0x104)]()}),WaitStepParamsDefSchema=z[a164_0x19cc6f(0x10e)]({'duration':z[a164_0x19cc6f(0x100)]()[a164_0x19cc6f(0x104)](),'unit':WaitUnitTypeSchema[a164_0x19cc6f(0x104)](),'wait_until':z[a164_0x19cc6f(0x118)]()['optional'](),'condition':WaitConditionDefSchema[a164_0x19cc6f(0x104)](),'days_of_week':z[a164_0x19cc6f(0x11c)](z[a164_0x19cc6f(0x118)]())[a164_0x19cc6f(0x104)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'next':z[a164_0x19cc6f(0x118)]()['optional']()},WaitStepDefSchema=z[a164_0x19cc6f(0x10e)]({...StepBaseFields,'type':z['literal'](a164_0x19cc6f(0x101)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a164_0x19cc6f(0x10e)]({'activation':z[a164_0x19cc6f(0x118)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a164_0x19cc6f(0x108)](a164_0x19cc6f(0x12b)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a164_0x19cc6f(0x10e)]({'name':z[a164_0x19cc6f(0x118)](),'segment':z['string']()[a164_0x19cc6f(0x104)](),'segment_id':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'excluded':z['boolean']()[a164_0x19cc6f(0x104)](),'next':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a164_0x19cc6f(0x10e)]({...StepBaseFields,'type':z[a164_0x19cc6f(0x108)](a164_0x19cc6f(0x111)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a164_0x19cc6f(0x10e)]({'id':z[a164_0x19cc6f(0x118)]()['optional'](),'name':z['string'](),'percentage':z[a164_0x19cc6f(0x100)](),'next':z[a164_0x19cc6f(0x118)]()['optional']()}),AbTestStepParamsDefSchema=z[a164_0x19cc6f(0x10e)]({'variants':z[a164_0x19cc6f(0x11c)](AbTestVariantDefSchema),'unique_id':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'customized_split':z['boolean']()[a164_0x19cc6f(0x104)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a164_0x19cc6f(0x108)]('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a164_0x19cc6f(0x10e)]({...StepBaseFields,'type':z[a164_0x19cc6f(0x108)]('merge')}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a164_0x19cc6f(0x10e)]({...StepBaseFields,'type':z['literal'](a164_0x19cc6f(0x10f)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a164_0x19cc6f(0x108)](a164_0x19cc6f(0x119))})['passthrough']();export const StepDefSchema=z[a164_0x19cc6f(0x120)](a164_0x19cc6f(0x105),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a164_0x58aa(){const _0x39786f=['journey','activation','simulation','reentry_unless_goal_achieved','number','wait','lazy','7220079UzRXtr','optional','type','journeys','115070mkFpyU','literal','versions','6PNbTWg','launched','day','length','object','jump','record','decision_point','draft','8971886AoCTyE','isArray','7QXfVUz','merge','refine','string','end','ab_test','filter','array','no_reentry','min','150iLLGeE','discriminatedUnion','stages','492618gczucB','enum','26124TJaTDl','boolean','10ohgvXQ','reentry_always','2579685tSRFcB','3686816qAzOuE'];a164_0x58aa=function(){return _0x39786f;};return a164_0x58aa();}export const StageDefSchema=z[a164_0x19cc6f(0x10e)]({'name':z[a164_0x19cc6f(0x118)](),'description':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'id':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'entry_criteria':CriteriaDefSchema[a164_0x19cc6f(0x104)](),'exit_criteria':z[a164_0x19cc6f(0x11c)](CriteriaDefSchema)[a164_0x19cc6f(0x104)](),'milestone':CriteriaDefSchema[a164_0x19cc6f(0x104)](),'root_step':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'steps':z[a164_0x19cc6f(0x11c)](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z[a164_0x19cc6f(0x10e)]({'name':z['string']()[a164_0x19cc6f(0x104)](),'version':z[a164_0x19cc6f(0x118)]()['optional'](),'state':JourneyStateTypeSchema[a164_0x19cc6f(0x104)](),'latest':z[a164_0x19cc6f(0x125)]()[a164_0x19cc6f(0x104)](),'stages':z['array'](StageDefSchema),'id':z['string']()['optional'](),'version_number':z[a164_0x19cc6f(0x100)]()['optional'](),'goal':CriteriaDefSchema[a164_0x19cc6f(0x104)](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a164_0x19cc6f(0x102)](()=>z[a164_0x19cc6f(0x10e)]({'type':z['literal'](a164_0x19cc6f(0x12a)),'name':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x11e)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'bundle_id':z[a164_0x19cc6f(0x118)]()['optional'](),'bundle_name':z[a164_0x19cc6f(0x118)]()['optional'](),'folder_id':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'reentry':ReentryModeTypeSchema[a164_0x19cc6f(0x104)](),'allow_reentry':z['boolean']()[a164_0x19cc6f(0x104)](),'goal':CriteriaDefSchema[a164_0x19cc6f(0x104)](),'id':z[a164_0x19cc6f(0x118)]()['optional'](),'version':z[a164_0x19cc6f(0x118)]()[a164_0x19cc6f(0x104)](),'version_number':z[a164_0x19cc6f(0x100)]()[a164_0x19cc6f(0x104)](),'stages':z['array'](StageDefSchema)[a164_0x19cc6f(0x104)](),'versions':z['array'](JourneyEntryDefSchema)[a164_0x19cc6f(0x104)](),'journeys':z[a164_0x19cc6f(0x11c)](JourneyEntryDefSchema)[a164_0x19cc6f(0x104)](),'segments':z[a164_0x19cc6f(0x110)](z['string'](),EmbeddedSegmentDefSchema)[a164_0x19cc6f(0x104)](),'activations':z[a164_0x19cc6f(0x110)](z[a164_0x19cc6f(0x118)](),ActivationDefSchema)[a164_0x19cc6f(0x104)]()})[a164_0x19cc6f(0x117)](_0x43e999=>{const _0x34701b=a164_0x19cc6f,_0x2e1692=[_0x43e999[_0x34701b(0x106)],_0x43e999[_0x34701b(0x121)],_0x43e999[_0x34701b(0x109)]][_0x34701b(0x11b)](_0x1b7342=>Array[_0x34701b(0x114)](_0x1b7342)&&_0x1b7342[_0x34701b(0x10d)]>0x0)[_0x34701b(0x10d)];return _0x2e1692===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x124f05=a164_0x1db9;(function(_0x2ce634,_0x5cfb09){const _0x5ea00e=a164_0x1db9,_0x26bcbd=_0x2ce634();while(!![]){try{const _0xe90c8a=-parseInt(_0x5ea00e(0x125))/0x1*(parseInt(_0x5ea00e(0x11e))/0x2)+-parseInt(_0x5ea00e(0x111))/0x3+-parseInt(_0x5ea00e(0x127))/0x4*(-parseInt(_0x5ea00e(0x11f))/0x5)+parseInt(_0x5ea00e(0x114))/0x6*(-parseInt(_0x5ea00e(0x112))/0x7)+-parseInt(_0x5ea00e(0x120))/0x8*(parseInt(_0x5ea00e(0x124))/0x9)+-parseInt(_0x5ea00e(0x110))/0xa+parseInt(_0x5ea00e(0x10b))/0xb*(parseInt(_0x5ea00e(0x128))/0xc);if(_0xe90c8a===_0x5cfb09)break;else _0x26bcbd['push'](_0x26bcbd['shift']());}catch(_0x3e9b8b){_0x26bcbd['push'](_0x26bcbd['shift']());}}}(a164_0x171e,0xd34bc));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a164_0x124f05(0x116)](['draft',a164_0x124f05(0x106),a164_0x124f05(0x122)]);export const ReentryModeTypeSchema=z['enum']([a164_0x124f05(0x102),a164_0x124f05(0x11b),a164_0x124f05(0x10c)]);export const WaitUnitTypeSchema=z['enum']([a164_0x124f05(0x107),a164_0x124f05(0x10a)]);export const StepTypeValueSchema=z[a164_0x124f05(0x116)]([a164_0x124f05(0xfb),a164_0x124f05(0x115),a164_0x124f05(0x11d),a164_0x124f05(0x108),a164_0x124f05(0x104),a164_0x124f05(0x109),a164_0x124f05(0x126)]);function a164_0x171e(){const _0x8f2258=['275187wEdBxT','14brdYmW','record','1548138eXEFzv','activation','enum','lazy','min','literal','versions','reentry_unless_goal_achieved','journeys','decision_point','228JiJbTN','862525PzQaDK','16TxyYYj','boolean','launched','string','5304519caaxdb','10813IXcOVe','end','28hltTad','660WVnKMU','Journey\x20name\x20is\x20required','wait','discriminatedUnion','array','object','type','filter','length','no_reentry','number','merge','passthrough','simulation','day','ab_test','jump','week','686169TOwMht','reentry_always','stages','optional','journey','7536730dynwWY'];a164_0x171e=function(){return _0x8f2258;};return a164_0x171e();}export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a164_0x124f05(0xfe)]({'journey':z[a164_0x124f05(0x123)](),'stage':z[a164_0x124f05(0x123)](),'bundle_id':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)]()});export const CriteriaDefSchema=z[a164_0x124f05(0xfe)]({'name':z[a164_0x124f05(0x123)](),'description':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'segment':z['string'](),'target':JumpTargetDefSchema[a164_0x124f05(0x10e)]()});const WaitConditionTimeoutDefSchema=z[a164_0x124f05(0xfe)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)]()}),WaitConditionDefSchema=z[a164_0x124f05(0xfe)]({'segment':z['string'](),'next':z['string']()[a164_0x124f05(0x10e)](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z['object']({'duration':z[a164_0x124f05(0x103)]()['optional'](),'unit':WaitUnitTypeSchema[a164_0x124f05(0x10e)](),'wait_until':z['string']()[a164_0x124f05(0x10e)](),'condition':WaitConditionDefSchema[a164_0x124f05(0x10e)](),'days_of_week':z['array'](z['string']())[a164_0x124f05(0x10e)]()}),StepBaseFields={'name':z[a164_0x124f05(0x123)](),'uuid':z['string']()['optional'](),'next':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)]()},WaitStepDefSchema=z[a164_0x124f05(0xfe)]({...StepBaseFields,'type':z[a164_0x124f05(0x119)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z['string']()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a164_0x124f05(0x115)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a164_0x124f05(0xfe)]({'name':z['string'](),'segment':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'segment_id':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'excluded':z[a164_0x124f05(0x121)]()[a164_0x124f05(0x10e)](),'next':z['string']()[a164_0x124f05(0x10e)]()}),DecisionPointStepParamsDefSchema=z[a164_0x124f05(0xfe)]({'branches':z[a164_0x124f05(0xfd)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a164_0x124f05(0xfe)]({...StepBaseFields,'type':z[a164_0x124f05(0x119)](a164_0x124f05(0x11d)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a164_0x124f05(0xfe)]({'id':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'name':z[a164_0x124f05(0x123)](),'percentage':z[a164_0x124f05(0x103)](),'next':z['string']()[a164_0x124f05(0x10e)]()}),AbTestStepParamsDefSchema=z[a164_0x124f05(0xfe)]({'variants':z[a164_0x124f05(0xfd)](AbTestVariantDefSchema),'unique_id':z[a164_0x124f05(0x123)]()['optional'](),'customized_split':z['boolean']()[a164_0x124f05(0x10e)]()}),AbTestStepDefSchema=z[a164_0x124f05(0xfe)]({...StepBaseFields,'type':z[a164_0x124f05(0x119)](a164_0x124f05(0x108)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a164_0x124f05(0xfe)]({...StepBaseFields,'type':z[a164_0x124f05(0x119)]('merge')}),JumpStepParamsDefSchema=z[a164_0x124f05(0xfe)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a164_0x124f05(0xfe)]({...StepBaseFields,'type':z[a164_0x124f05(0x119)]('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a164_0x124f05(0xfe)]({...StepBaseFields,'type':z[a164_0x124f05(0x119)](a164_0x124f05(0x126))})[a164_0x124f05(0x105)]();export const StepDefSchema=z[a164_0x124f05(0xfc)](a164_0x124f05(0xff),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a164_0x124f05(0xfe)]({'name':z[a164_0x124f05(0x123)](),'description':z[a164_0x124f05(0x123)]()['optional'](),'id':z['string']()[a164_0x124f05(0x10e)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a164_0x124f05(0xfd)](CriteriaDefSchema)[a164_0x124f05(0x10e)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'steps':z['array'](StepDefSchema)[a164_0x124f05(0x10e)]()});export const JourneyEntryDefSchema=z[a164_0x124f05(0xfe)]({'name':z['string']()['optional'](),'version':z[a164_0x124f05(0x123)]()['optional'](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a164_0x124f05(0x121)]()[a164_0x124f05(0x10e)](),'stages':z[a164_0x124f05(0xfd)](StageDefSchema),'id':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'version_number':z[a164_0x124f05(0x103)]()['optional'](),'goal':CriteriaDefSchema[a164_0x124f05(0x10e)](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a164_0x124f05(0x117)](()=>z[a164_0x124f05(0xfe)]({'type':z[a164_0x124f05(0x119)](a164_0x124f05(0x10f)),'name':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x118)](0x1,a164_0x124f05(0x129)),'description':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'bundle_id':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'bundle_name':z[a164_0x124f05(0x123)]()[a164_0x124f05(0x10e)](),'folder_id':z['string']()[a164_0x124f05(0x10e)](),'reentry':ReentryModeTypeSchema[a164_0x124f05(0x10e)](),'allow_reentry':z[a164_0x124f05(0x121)]()['optional'](),'goal':CriteriaDefSchema[a164_0x124f05(0x10e)](),'id':z[a164_0x124f05(0x123)]()['optional'](),'version':z[a164_0x124f05(0x123)]()['optional'](),'version_number':z[a164_0x124f05(0x103)]()[a164_0x124f05(0x10e)](),'stages':z[a164_0x124f05(0xfd)](StageDefSchema)[a164_0x124f05(0x10e)](),'versions':z[a164_0x124f05(0xfd)](JourneyEntryDefSchema)['optional'](),'journeys':z[a164_0x124f05(0xfd)](JourneyEntryDefSchema)[a164_0x124f05(0x10e)](),'segments':z[a164_0x124f05(0x113)](z[a164_0x124f05(0x123)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a164_0x124f05(0x113)](z['string'](),ActivationDefSchema)[a164_0x124f05(0x10e)]()})['refine'](_0x140336=>{const _0x5d5c35=a164_0x124f05,_0x45168c=[_0x140336[_0x5d5c35(0x11c)],_0x140336[_0x5d5c35(0x10d)],_0x140336[_0x5d5c35(0x11a)]][_0x5d5c35(0x100)](_0x41d3f7=>Array['isArray'](_0x41d3f7)&&_0x41d3f7[_0x5d5c35(0x101)]>0x0)['length'];return _0x45168c===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];function a164_0x1db9(_0x4b4c13,_0x5225c6){_0x4b4c13=_0x4b4c13-0xfb;const _0x171ee2=a164_0x171e();let _0x1db990=_0x171ee2[_0x4b4c13];return _0x1db990;}void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a166_0x174a(_0x22baab,_0x1234ed){_0x22baab=_0x22baab-0x14e;var _0x11982a=a166_0x1198();var _0x174aae=_0x11982a[_0x22baab];return _0x174aae;}function a166_0x1198(){var _0x1d414f=['31703bCYSQU','16EtFEwQ','496eYpPFO','500765WdwTLk','1808730eSnSHm','278ESimee','6948RSpgBK','1927900xdLXsr','904746jKiYiz','159392jeCHEM'];a166_0x1198=function(){return _0x1d414f;};return a166_0x1198();}(function(_0x43410d,_0x30bc70){var _0x24ee85=a166_0x174a,_0x1947ac=_0x43410d();while(!![]){try{var _0x2b74d5=parseInt(_0x24ee85(0x156))/0x1+parseInt(_0x24ee85(0x152))/0x2*(-parseInt(_0x24ee85(0x153))/0x3)+parseInt(_0x24ee85(0x14e))/0x4*(-parseInt(_0x24ee85(0x150))/0x5)+parseInt(_0x24ee85(0x155))/0x6+parseInt(_0x24ee85(0x157))/0x7*(parseInt(_0x24ee85(0x14f))/0x8)+parseInt(_0x24ee85(0x151))/0x9+parseInt(_0x24ee85(0x154))/0xa;if(_0x2b74d5===_0x30bc70)break;else _0x1947ac['push'](_0x1947ac['shift']());}catch(_0x5e97c2){_0x1947ac['push'](_0x1947ac['shift']());}}}(a166_0x1198,0x4003d));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';
1
+ (function(_0x510a5f,_0x37a3b3){var _0x3b4db3=a166_0x4366,_0x3d1f9c=_0x510a5f();while(!![]){try{var _0x458b10=parseInt(_0x3b4db3(0xb9))/0x1*(parseInt(_0x3b4db3(0xbc))/0x2)+parseInt(_0x3b4db3(0xbb))/0x3+-parseInt(_0x3b4db3(0xc0))/0x4+parseInt(_0x3b4db3(0xb8))/0x5*(parseInt(_0x3b4db3(0xc1))/0x6)+-parseInt(_0x3b4db3(0xbd))/0x7+parseInt(_0x3b4db3(0xba))/0x8*(-parseInt(_0x3b4db3(0xbe))/0x9)+parseInt(_0x3b4db3(0xbf))/0xa;if(_0x458b10===_0x37a3b3)break;else _0x3d1f9c['push'](_0x3d1f9c['shift']());}catch(_0x9ad14e){_0x3d1f9c['push'](_0x3d1f9c['shift']());}}}(a166_0x1a74,0xaac20));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a166_0x4366(_0x462e69,_0x7d8e5){_0x462e69=_0x462e69-0xb8;var _0x1a7483=a166_0x1a74();var _0x43661d=_0x1a7483[_0x462e69];return _0x43661d;}function a166_0x1a74(){var _0x5e5924=['9CqVqlX','11560420boTwEZ','1786416bgjvoU','271638EEueqe','140xoYazy','2QTNyVu','9619544NJdxaS','507633oGZcgX','360298xNTJdv','4233068eKGFPl'];a166_0x1a74=function(){return _0x5e5924;};return a166_0x1a74();}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
@@ -1 +1 @@
1
- const a167_0x545559=a167_0x173e;(function(_0x15560d,_0x273c57){const _0x59a051=a167_0x173e,_0xfb1f6=_0x15560d();while(!![]){try{const _0x58a952=parseInt(_0x59a051(0x151))/0x1*(parseInt(_0x59a051(0x143))/0x2)+-parseInt(_0x59a051(0x15b))/0x3*(-parseInt(_0x59a051(0x14b))/0x4)+-parseInt(_0x59a051(0x15a))/0x5+-parseInt(_0x59a051(0x13b))/0x6+parseInt(_0x59a051(0x163))/0x7+parseInt(_0x59a051(0x16d))/0x8+parseInt(_0x59a051(0x14c))/0x9*(-parseInt(_0x59a051(0x12c))/0xa);if(_0x58a952===_0x273c57)break;else _0xfb1f6['push'](_0xfb1f6['shift']());}catch(_0x5bc20d){_0xfb1f6['push'](_0xfb1f6['shift']());}}}(a167_0x3809,0xf196a));function a167_0x173e(_0x5a1fe0,_0x459671){_0x5a1fe0=_0x5a1fe0-0x11f;const _0x3809f2=a167_0x3809();let _0x173e07=_0x3809f2[_0x5a1fe0];return _0x173e07;}import{z}from'zod';export const OperatorTypeSchema=z[a167_0x545559(0x127)]([a167_0x545559(0x124),'Greater',a167_0x545559(0x155),a167_0x545559(0x125),a167_0x545559(0x15d),'In',a167_0x545559(0x15f),a167_0x545559(0x13c),'IsNull',a167_0x545559(0x165),a167_0x545559(0x13e),'Contain',a167_0x545559(0x14f),'EndWith',a167_0x545559(0x16a)]);export const TimeUnitSchema=z[a167_0x545559(0x127)]([a167_0x545559(0x149),'minute','hour',a167_0x545559(0x126),a167_0x545559(0x12d),a167_0x545559(0x130),a167_0x545559(0x169)]);export const AggregationTypeSchema=z[a167_0x545559(0x127)]([a167_0x545559(0x123),'Sum',a167_0x545559(0x158),'Min',a167_0x545559(0x14e),a167_0x545559(0x136),'First','Last']);const TemporalValueSchema=z['union']([z[a167_0x545559(0x12e)]({'timestamp':z[a167_0x545559(0x142)]()}),z[a167_0x545559(0x12e)]({'last':z[a167_0x545559(0x12f)]([z[a167_0x545559(0x122)](),z[a167_0x545559(0x154)](z['string'](),z[a167_0x545559(0x122)]())]),'unit':z[a167_0x545559(0x142)]()})]),OperatorValueSchema=z[a167_0x545559(0x12f)]([z[a167_0x545559(0x142)](),z[a167_0x545559(0x122)](),z[a167_0x545559(0x140)](),TemporalValueSchema,z[a167_0x545559(0x15e)](z[a167_0x545559(0x12f)]([z[a167_0x545559(0x142)](),z[a167_0x545559(0x122)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a167_0x545559(0x124),a167_0x545559(0x147),a167_0x545559(0x125),'Less',a167_0x545559(0x15d),'In',a167_0x545559(0x161),a167_0x545559(0x14f),a167_0x545559(0x13f),a167_0x545559(0x13c),a167_0x545559(0x165),a167_0x545559(0x13e)]),OPERATORS_REQUIRING_UNIT=new Set([a167_0x545559(0x165),a167_0x545559(0x13e)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a167_0x545559(0x140)]()['optional'](),'value':OperatorValueSchema[a167_0x545559(0x11f)](),'min':z['union']([z['number'](),z['string'](),TemporalValueSchema])['optional'](),'max':z[a167_0x545559(0x12f)]([z['number'](),z[a167_0x545559(0x142)](),TemporalValueSchema])[a167_0x545559(0x11f)](),'unit':TimeUnitSchema[a167_0x545559(0x11f)](),'duration':z[a167_0x545559(0x12e)]({'day':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)](),'week':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)](),'month':z[a167_0x545559(0x122)]()['optional'](),'year':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)](),'hour':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)](),'minute':z[a167_0x545559(0x122)]()['optional'](),'second':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)]()})[a167_0x545559(0x11f)](),'from':z[a167_0x545559(0x12e)]({'last':z[a167_0x545559(0x12f)]([z[a167_0x545559(0x122)](),z[a167_0x545559(0x142)]()]),'unit':TimeUnitSchema})[a167_0x545559(0x11f)](),'reverse':z[a167_0x545559(0x140)]()[a167_0x545559(0x11f)]()})[a167_0x545559(0x170)]((_0x2a5fb2,_0x2acb63)=>{const _0x30c6b0=a167_0x545559;OPERATORS_REQUIRING_VALUE['has'](_0x2a5fb2[_0x30c6b0(0x121)])&&(_0x2a5fb2['value']===undefined||_0x2a5fb2['value']===null)&&_0x2acb63[_0x30c6b0(0x145)]({'code':_0x30c6b0(0x164),'message':_0x30c6b0(0x150)+_0x2a5fb2['type']+_0x30c6b0(0x16c),'path':[_0x30c6b0(0x133)]}),_0x2a5fb2[_0x30c6b0(0x121)]===_0x30c6b0(0x15f)&&_0x2a5fb2['min']===undefined&&_0x2a5fb2[_0x30c6b0(0x162)]===undefined&&_0x2acb63[_0x30c6b0(0x145)]({'code':_0x30c6b0(0x164),'message':_0x30c6b0(0x167),'params':{'validationCode':_0x30c6b0(0x160)}}),OPERATORS_REQUIRING_UNIT[_0x30c6b0(0x16b)](_0x2a5fb2['type'])&&_0x2a5fb2['value']!==undefined&&!_0x2a5fb2['unit']&&_0x2acb63[_0x30c6b0(0x145)]({'code':_0x30c6b0(0x164),'message':_0x30c6b0(0x150)+_0x2a5fb2['type']+_0x30c6b0(0x16e),'path':[_0x30c6b0(0x138)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x2a5fb2[_0x30c6b0(0x121)]===_0x30c6b0(0x16a)&&(!_0x2a5fb2['duration']&&_0x2acb63['addIssue']({'code':_0x30c6b0(0x164),'message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0x30c6b0(0x152)]}),!_0x2a5fb2[_0x30c6b0(0x159)]&&_0x2acb63[_0x30c6b0(0x145)]({'code':_0x30c6b0(0x164),'message':_0x30c6b0(0x135),'path':[_0x30c6b0(0x159)]}));});export const ArrayMatchingSchema=z[a167_0x545559(0x12f)]([z[a167_0x545559(0x12a)](a167_0x545559(0x131)),z['literal'](a167_0x545559(0x132)),z[a167_0x545559(0x12e)]({'atLeast':z[a167_0x545559(0x122)]()}),z[a167_0x545559(0x12e)]({'atMost':z[a167_0x545559(0x122)]()}),z[a167_0x545559(0x12e)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a167_0x545559(0x153)](a167_0x545559(0x121),[z['object']({'type':z[a167_0x545559(0x127)]([a167_0x545559(0x14d),a167_0x545559(0x139),a167_0x545559(0x14e),a167_0x545559(0x158)]),'column':z[a167_0x545559(0x142)](),'groupingColumns':z[a167_0x545559(0x15e)](z[a167_0x545559(0x142)]())[a167_0x545559(0x11f)]()}),z['object']({'type':z[a167_0x545559(0x12a)](a167_0x545559(0x123)),'groupingColumns':z[a167_0x545559(0x15e)](z[a167_0x545559(0x142)]())[a167_0x545559(0x11f)]()}),z[a167_0x545559(0x12e)]({'type':z['literal'](a167_0x545559(0x136)),'columns':z[a167_0x545559(0x15e)](z['string']())}),z[a167_0x545559(0x12e)]({'type':z[a167_0x545559(0x127)]([a167_0x545559(0x13a),a167_0x545559(0x148)]),'column':z[a167_0x545559(0x142)](),'orderColumn':z[a167_0x545559(0x142)](),'groupingColumns':z[a167_0x545559(0x15e)](z[a167_0x545559(0x142)]())['optional']()})]);export const TimeWindowDefSchema=z[a167_0x545559(0x12e)]({'duration':z[a167_0x545559(0x122)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a167_0x545559(0x165),'TimeWithinNext',a167_0x545559(0x16a)]);export const FilterColumnConditionDefSchema=z[a167_0x545559(0x12e)]({'type':z[a167_0x545559(0x12a)](a167_0x545559(0x12b)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})[a167_0x545559(0x170)]((_0xf7b707,_0x50c286)=>{const _0x972d8c=a167_0x545559,_0x135966=_0xf7b707[_0x972d8c(0x134)][_0x972d8c(0x121)];_0xf7b707[_0x972d8c(0x16f)]===_0x972d8c(0x141)?!TIMESTAMP_OPERATORS[_0x972d8c(0x16b)](_0x135966)&&_0x50c286[_0x972d8c(0x145)]({'code':_0x972d8c(0x164),'message':_0x972d8c(0x168)+_0x135966+'\x27)','path':[_0x972d8c(0x134),_0x972d8c(0x121)]}):TIMESTAMP_OPERATORS[_0x972d8c(0x16b)](_0x135966)&&_0x50c286[_0x972d8c(0x145)]({'code':'custom','message':'Operator\x20\x27'+_0x135966+_0x972d8c(0x156),'path':[_0x972d8c(0x134),'type']});});function a167_0x3809(){const _0x4743b6=['And','Behavior','literal','Column','22880YMCewI','week','object','union','month','any','all','value','operator','TimeRange\x20operator\x20requires\x20\x27from\x27','CountDistinct','lazy','unit','Min','First','3686922JKGLfA','Regexp','funnel_stage','TimeWithinNext','EndWith','boolean','timestamp','string','154LzPLcG','segment','addIssue','include','Greater','Last','second','realtime','20616fnVIhS','10629xDMpxG','Sum','Max','StartWith','Operator\x20\x27','24166ABWtLm','duration','discriminatedUnion','record','Less','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Segment\x20name\x20is\x20required','Average','from','6033125ofRfsG','447TpzyNa','exclude','LessEqual','array','Between','MISSING_BETWEEN_BOUNDS','Contain','max','13341790sfLwMq','custom','TimeWithinPast','Segment\x20reference\x20must\x20not\x20be\x20empty','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','year','TimeRange','has','\x27\x20requires\x20a\x20value','7824704ybAHAq','\x27\x20requires\x20a\x20time\x20unit','column','superRefine','optional','Composite','type','number','Count','Equal','GreaterEqual','day','enum'];a167_0x3809=function(){return _0x4743b6;};return a167_0x3809();}export const FilterRuleDefSchema=z[a167_0x545559(0x12e)]({'type':z['literal'](a167_0x545559(0x128)),'conditions':z[a167_0x545559(0x15e)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a167_0x545559(0x137)](()=>z[a167_0x545559(0x12e)]({'type':z[a167_0x545559(0x12a)]('Value'),'attribute':z[a167_0x545559(0x142)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x545559(0x11f)](),'exclude':z['boolean']()[a167_0x545559(0x11f)](),'aggregation':AggregationDefSchema['optional'](),'source':z['string']()[a167_0x545559(0x11f)](),'filter':FilterRuleDefSchema[a167_0x545559(0x11f)](),'limit':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)]()}));export const BehaviorConditionDefSchema=z[a167_0x545559(0x137)](()=>z[a167_0x545559(0x12e)]({'type':z['literal'](a167_0x545559(0x129)),'attribute':z[a167_0x545559(0x142)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x545559(0x11f)](),'exclude':z['boolean']()[a167_0x545559(0x11f)](),'aggregation':AggregationDefSchema[a167_0x545559(0x11f)](),'source':z[a167_0x545559(0x142)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a167_0x545559(0x11f)](),'limit':z[a167_0x545559(0x122)]()[a167_0x545559(0x11f)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a167_0x545559(0x12a)](a167_0x545559(0x12b)),'column':z[a167_0x545559(0x142)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a167_0x545559(0x137)](()=>z[a167_0x545559(0x12e)]({'type':z['enum']([a167_0x545559(0x128),'Or','Composite']),'conditions':z[a167_0x545559(0x15e)](ConditionDefSchema),'description':z[a167_0x545559(0x142)]()[a167_0x545559(0x11f)](),'expr':z[a167_0x545559(0x142)]()['optional']()}));export const SegmentRefConditionDefSchema=z[a167_0x545559(0x12e)]({'type':z[a167_0x545559(0x127)]([a167_0x545559(0x146),a167_0x545559(0x15c)]),'segment':z[a167_0x545559(0x142)]()['min'](0x1,a167_0x545559(0x166))});export const ConditionDefSchema=z['lazy'](()=>z[a167_0x545559(0x12f)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a167_0x545559(0x137)](()=>z['object']({'type':z[a167_0x545559(0x127)]([a167_0x545559(0x128),'Or',a167_0x545559(0x120)]),'conditions':z[a167_0x545559(0x15e)](ConditionDefSchema),'description':z[a167_0x545559(0x142)]()[a167_0x545559(0x11f)](),'expr':z[a167_0x545559(0x142)]()[a167_0x545559(0x11f)]()}));export const SegmentDefSchema=z[a167_0x545559(0x12e)]({'type':z[a167_0x545559(0x12a)](a167_0x545559(0x144))[a167_0x545559(0x11f)](),'name':z[a167_0x545559(0x142)]()['min'](0x1,a167_0x545559(0x157)),'description':z['string']()[a167_0x545559(0x11f)](),'folder':z[a167_0x545559(0x142)]()[a167_0x545559(0x11f)](),'rule':RuleDefSchema['optional'](),'kind':z[a167_0x545559(0x127)](['batch',a167_0x545559(0x14a),a167_0x545559(0x13d)])[a167_0x545559(0x11f)](),'visible':z[a167_0x545559(0x140)]()['optional'](),'activations':z['array'](z[a167_0x545559(0x131)]())[a167_0x545559(0x11f)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a167_0x5e449e=a167_0xfd33;(function(_0x407dd2,_0x99727e){const _0x59ea48=a167_0xfd33,_0x51f6d3=_0x407dd2();while(!![]){try{const _0x60acae=parseInt(_0x59ea48(0xf4))/0x1+-parseInt(_0x59ea48(0x119))/0x2*(parseInt(_0x59ea48(0xec))/0x3)+-parseInt(_0x59ea48(0xda))/0x4*(parseInt(_0x59ea48(0xd9))/0x5)+-parseInt(_0x59ea48(0xcf))/0x6*(-parseInt(_0x59ea48(0xd1))/0x7)+parseInt(_0x59ea48(0xdd))/0x8+parseInt(_0x59ea48(0xce))/0x9*(-parseInt(_0x59ea48(0x109))/0xa)+-parseInt(_0x59ea48(0xfb))/0xb*(-parseInt(_0x59ea48(0xdb))/0xc);if(_0x60acae===_0x99727e)break;else _0x51f6d3['push'](_0x51f6d3['shift']());}catch(_0x311bd7){_0x51f6d3['push'](_0x51f6d3['shift']());}}}(a167_0x1d72,0x9a6a2));import{z}from'zod';export const OperatorTypeSchema=z[a167_0x5e449e(0xe2)](['Equal',a167_0x5e449e(0xd4),a167_0x5e449e(0xfe),a167_0x5e449e(0xe8),'LessEqual','In',a167_0x5e449e(0xd2),a167_0x5e449e(0xf9),a167_0x5e449e(0xe1),a167_0x5e449e(0x11f),a167_0x5e449e(0xd6),a167_0x5e449e(0x11d),'StartWith',a167_0x5e449e(0xed),a167_0x5e449e(0x120)]);export const TimeUnitSchema=z[a167_0x5e449e(0xe2)]([a167_0x5e449e(0xe0),a167_0x5e449e(0xe4),a167_0x5e449e(0xcc),a167_0x5e449e(0xff),a167_0x5e449e(0xf0),a167_0x5e449e(0xe5),a167_0x5e449e(0x10d)]);export const AggregationTypeSchema=z[a167_0x5e449e(0xe2)](['Count',a167_0x5e449e(0xe7),a167_0x5e449e(0xde),a167_0x5e449e(0x110),'Max',a167_0x5e449e(0x105),a167_0x5e449e(0x10a),a167_0x5e449e(0xd5)]);const TemporalValueSchema=z[a167_0x5e449e(0xd0)]([z[a167_0x5e449e(0xf1)]({'timestamp':z['string']()}),z[a167_0x5e449e(0xf1)]({'last':z[a167_0x5e449e(0xd0)]([z[a167_0x5e449e(0x122)](),z[a167_0x5e449e(0xe9)](z[a167_0x5e449e(0xfc)](),z[a167_0x5e449e(0x122)]())]),'unit':z[a167_0x5e449e(0xfc)]()})]),OperatorValueSchema=z[a167_0x5e449e(0xd0)]([z['string'](),z[a167_0x5e449e(0x122)](),z[a167_0x5e449e(0xeb)](),TemporalValueSchema,z[a167_0x5e449e(0xf2)](z[a167_0x5e449e(0xd0)]([z[a167_0x5e449e(0xfc)](),z['number'](),z[a167_0x5e449e(0xeb)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a167_0x5e449e(0xf6),'Greater','GreaterEqual','Less',a167_0x5e449e(0x121),'In',a167_0x5e449e(0x11d),a167_0x5e449e(0x116),a167_0x5e449e(0xed),a167_0x5e449e(0xf9),a167_0x5e449e(0x11f),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a167_0x5e449e(0xd6)]);export const OperatorDefSchema=z[a167_0x5e449e(0xf1)]({'type':OperatorTypeSchema,'not':z[a167_0x5e449e(0xeb)]()[a167_0x5e449e(0xd7)](),'value':OperatorValueSchema[a167_0x5e449e(0xd7)](),'min':z['union']([z[a167_0x5e449e(0x122)](),z[a167_0x5e449e(0xfc)](),TemporalValueSchema])[a167_0x5e449e(0xd7)](),'max':z['union']([z[a167_0x5e449e(0x122)](),z[a167_0x5e449e(0xfc)](),TemporalValueSchema])[a167_0x5e449e(0xd7)](),'unit':TimeUnitSchema['optional'](),'duration':z[a167_0x5e449e(0xf1)]({'day':z[a167_0x5e449e(0x122)]()[a167_0x5e449e(0xd7)](),'week':z[a167_0x5e449e(0x122)]()['optional'](),'month':z[a167_0x5e449e(0x122)]()[a167_0x5e449e(0xd7)](),'year':z[a167_0x5e449e(0x122)]()[a167_0x5e449e(0xd7)](),'hour':z[a167_0x5e449e(0x122)]()['optional'](),'minute':z[a167_0x5e449e(0x122)]()[a167_0x5e449e(0xd7)](),'second':z['number']()[a167_0x5e449e(0xd7)]()})['optional'](),'from':z[a167_0x5e449e(0xf1)]({'last':z[a167_0x5e449e(0xd0)]([z[a167_0x5e449e(0x122)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a167_0x5e449e(0xeb)]()[a167_0x5e449e(0xd7)]()})[a167_0x5e449e(0x111)]((_0x28b738,_0x4fbff1)=>{const _0x30ceb6=a167_0x5e449e;OPERATORS_REQUIRING_VALUE['has'](_0x28b738['type'])&&(_0x28b738[_0x30ceb6(0xdf)]===undefined||_0x28b738[_0x30ceb6(0xdf)]===null)&&_0x4fbff1[_0x30ceb6(0xfd)]({'code':_0x30ceb6(0xe6),'message':'Operator\x20\x27'+_0x28b738[_0x30ceb6(0xdc)]+_0x30ceb6(0xfa),'path':[_0x30ceb6(0xdf)]}),_0x28b738[_0x30ceb6(0xdc)]===_0x30ceb6(0xd2)&&_0x28b738[_0x30ceb6(0xea)]===undefined&&_0x28b738[_0x30ceb6(0xee)]===undefined&&_0x4fbff1[_0x30ceb6(0xfd)]({'code':_0x30ceb6(0xe6),'message':_0x30ceb6(0x102),'params':{'validationCode':_0x30ceb6(0x11c)}}),OPERATORS_REQUIRING_UNIT['has'](_0x28b738[_0x30ceb6(0xdc)])&&_0x28b738['value']!==undefined&&!_0x28b738[_0x30ceb6(0x104)]&&_0x4fbff1[_0x30ceb6(0xfd)]({'code':_0x30ceb6(0xe6),'message':_0x30ceb6(0x100)+_0x28b738['type']+_0x30ceb6(0x10e),'path':[_0x30ceb6(0x104)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x28b738[_0x30ceb6(0xdc)]===_0x30ceb6(0x120)&&(!_0x28b738['duration']&&_0x4fbff1[_0x30ceb6(0xfd)]({'code':_0x30ceb6(0xe6),'message':_0x30ceb6(0xcb),'path':[_0x30ceb6(0x117)]}),!_0x28b738[_0x30ceb6(0x10b)]&&_0x4fbff1[_0x30ceb6(0xfd)]({'code':_0x30ceb6(0xe6),'message':_0x30ceb6(0xf7),'path':[_0x30ceb6(0x10b)]}));});export const ArrayMatchingSchema=z['union']([z['literal'](a167_0x5e449e(0x10f)),z[a167_0x5e449e(0xcd)](a167_0x5e449e(0x108)),z['object']({'atLeast':z[a167_0x5e449e(0x122)]()}),z[a167_0x5e449e(0xf1)]({'atMost':z['number']()}),z['object']({'exactly':z['number']()})]);export const AggregationDefSchema=z[a167_0x5e449e(0xf5)](a167_0x5e449e(0xdc),[z[a167_0x5e449e(0xf1)]({'type':z['enum']([a167_0x5e449e(0xe7),'Min',a167_0x5e449e(0xca),a167_0x5e449e(0xde)]),'column':z['string'](),'groupingColumns':z[a167_0x5e449e(0xf2)](z['string']())[a167_0x5e449e(0xd7)]()}),z[a167_0x5e449e(0xf1)]({'type':z[a167_0x5e449e(0xcd)](a167_0x5e449e(0xf8)),'groupingColumns':z[a167_0x5e449e(0xf2)](z['string']())[a167_0x5e449e(0xd7)]()}),z['object']({'type':z['literal']('CountDistinct'),'columns':z['array'](z[a167_0x5e449e(0xfc)]())}),z[a167_0x5e449e(0xf1)]({'type':z[a167_0x5e449e(0xe2)](['First',a167_0x5e449e(0xd5)]),'column':z[a167_0x5e449e(0xfc)](),'orderColumn':z[a167_0x5e449e(0xfc)](),'groupingColumns':z[a167_0x5e449e(0xf2)](z[a167_0x5e449e(0xfc)]())[a167_0x5e449e(0xd7)]()})]);export const TimeWindowDefSchema=z[a167_0x5e449e(0xf1)]({'duration':z[a167_0x5e449e(0x122)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a167_0x5e449e(0x11f),'TimeWithinNext','TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z[a167_0x5e449e(0xcd)](a167_0x5e449e(0x112)),'column':z[a167_0x5e449e(0xfc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x5e449e(0xd7)]()})['superRefine']((_0xd41000,_0x3cfb13)=>{const _0x4c9864=a167_0x5e449e,_0x5c287b=_0xd41000[_0x4c9864(0x11e)][_0x4c9864(0xdc)];_0xd41000[_0x4c9864(0x11a)]===_0x4c9864(0x118)?!TIMESTAMP_OPERATORS[_0x4c9864(0xef)](_0x5c287b)&&_0x3cfb13[_0x4c9864(0xfd)]({'code':_0x4c9864(0xe6),'message':_0x4c9864(0xe3)+_0x5c287b+'\x27)','path':['operator',_0x4c9864(0xdc)]}):TIMESTAMP_OPERATORS[_0x4c9864(0xef)](_0x5c287b)&&_0x3cfb13[_0x4c9864(0xfd)]({'code':_0x4c9864(0xe6),'message':'Operator\x20\x27'+_0x5c287b+_0x4c9864(0x106),'path':[_0x4c9864(0x11e),_0x4c9864(0xdc)]});});export const FilterRuleDefSchema=z['object']({'type':z[a167_0x5e449e(0xcd)](a167_0x5e449e(0x101)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a167_0x5e449e(0x114)](()=>z['object']({'type':z[a167_0x5e449e(0xcd)](a167_0x5e449e(0x10c)),'attribute':z[a167_0x5e449e(0xfc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x5e449e(0xd7)](),'exclude':z[a167_0x5e449e(0xeb)]()['optional'](),'aggregation':AggregationDefSchema[a167_0x5e449e(0xd7)](),'source':z[a167_0x5e449e(0xfc)]()[a167_0x5e449e(0xd7)](),'filter':FilterRuleDefSchema[a167_0x5e449e(0xd7)](),'limit':z[a167_0x5e449e(0x122)]()[a167_0x5e449e(0xd7)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z[a167_0x5e449e(0xf1)]({'type':z[a167_0x5e449e(0xcd)]('Behavior'),'attribute':z[a167_0x5e449e(0xfc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x5e449e(0xd7)](),'exclude':z[a167_0x5e449e(0xeb)]()[a167_0x5e449e(0xd7)](),'aggregation':AggregationDefSchema[a167_0x5e449e(0xd7)](),'source':z['string']()[a167_0x5e449e(0xd7)](),'filter':FilterRuleDefSchema[a167_0x5e449e(0xd7)](),'timeWindow':TimeWindowDefSchema[a167_0x5e449e(0xd7)](),'limit':z[a167_0x5e449e(0x122)]()[a167_0x5e449e(0xd7)]()}));function a167_0x1d72(){const _0x38da27=['discriminatedUnion','Equal','TimeRange\x20operator\x20requires\x20\x27from\x27','Count','Regexp','\x27\x20requires\x20a\x20value','33BWCTmH','string','addIssue','Less','day','Operator\x20\x27','And','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','funnel_stage','unit','CountDistinct','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','segment','all','2176430fQfvSj','First','from','Value','year','\x27\x20requires\x20a\x20time\x20unit','any','Min','superRefine','Column','Segment\x20reference\x20must\x20not\x20be\x20empty','lazy','exclude','StartWith','duration','timestamp','269222qdZtSI','column','Composite','MISSING_BETWEEN_BOUNDS','Contain','operator','TimeWithinPast','TimeRange','LessEqual','number','Max','TimeRange\x20operator\x20requires\x20\x27duration\x27','hour','literal','18iLfMYq','228yFxwxR','union','81753Yeaytz','Between','batch','Greater','Last','TimeWithinNext','optional','include','2436910dIOrBy','4mXJKYD','1497252iSjjWo','type','9750376uIxCaH','Average','value','second','IsNull','enum','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','minute','month','custom','Sum','GreaterEqual','record','min','boolean','27HBnTEq','EndWith','max','has','week','object','array','realtime','729737OwLQTH'];a167_0x1d72=function(){return _0x38da27;};return a167_0x1d72();}export const ColumnConditionDefSchema=z[a167_0x5e449e(0xf1)]({'type':z[a167_0x5e449e(0xcd)](a167_0x5e449e(0x112)),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a167_0x5e449e(0x101),'Or',a167_0x5e449e(0x11b)]),'conditions':z[a167_0x5e449e(0xf2)](ConditionDefSchema),'description':z['string']()['optional'](),'expr':z['string']()['optional']()}));function a167_0xfd33(_0x55e042,_0x244d41){_0x55e042=_0x55e042-0xca;const _0x1d72db=a167_0x1d72();let _0xfd3343=_0x1d72db[_0x55e042];return _0xfd3343;}export const SegmentRefConditionDefSchema=z[a167_0x5e449e(0xf1)]({'type':z[a167_0x5e449e(0xe2)]([a167_0x5e449e(0xd8),a167_0x5e449e(0x115)]),'segment':z['string']()[a167_0x5e449e(0xea)](0x1,a167_0x5e449e(0x113))});export const ConditionDefSchema=z[a167_0x5e449e(0x114)](()=>z[a167_0x5e449e(0xd0)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a167_0x5e449e(0x114)](()=>z['object']({'type':z[a167_0x5e449e(0xe2)]([a167_0x5e449e(0x101),'Or',a167_0x5e449e(0x11b)]),'conditions':z['array'](ConditionDefSchema),'description':z['string']()[a167_0x5e449e(0xd7)](),'expr':z[a167_0x5e449e(0xfc)]()[a167_0x5e449e(0xd7)]()}));export const SegmentDefSchema=z['object']({'type':z[a167_0x5e449e(0xcd)](a167_0x5e449e(0x107))['optional'](),'name':z[a167_0x5e449e(0xfc)]()[a167_0x5e449e(0xea)](0x1,'Segment\x20name\x20is\x20required'),'description':z['string']()['optional'](),'folder':z[a167_0x5e449e(0xfc)]()[a167_0x5e449e(0xd7)](),'rule':RuleDefSchema[a167_0x5e449e(0xd7)](),'kind':z[a167_0x5e449e(0xe2)]([a167_0x5e449e(0xd3),a167_0x5e449e(0xf3),a167_0x5e449e(0x103)])[a167_0x5e449e(0xd7)](),'visible':z[a167_0x5e449e(0xeb)]()[a167_0x5e449e(0xd7)](),'activations':z[a167_0x5e449e(0xf2)](z[a167_0x5e449e(0x10f)]())[a167_0x5e449e(0xd7)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a168_0x2dd17c=a168_0x6ba4;(function(_0x2f4e3d,_0x2b8d99){const _0x37ad19=a168_0x6ba4,_0x10c239=_0x2f4e3d();while(!![]){try{const _0x493801=parseInt(_0x37ad19(0x110))/0x1*(-parseInt(_0x37ad19(0x113))/0x2)+parseInt(_0x37ad19(0x106))/0x3*(-parseInt(_0x37ad19(0x115))/0x4)+parseInt(_0x37ad19(0x120))/0x5*(parseInt(_0x37ad19(0x11e))/0x6)+-parseInt(_0x37ad19(0x105))/0x7+-parseInt(_0x37ad19(0x112))/0x8+parseInt(_0x37ad19(0x11d))/0x9*(-parseInt(_0x37ad19(0x10b))/0xa)+parseInt(_0x37ad19(0x11c))/0xb;if(_0x493801===_0x2b8d99)break;else _0x10c239['push'](_0x10c239['shift']());}catch(_0x370491){_0x10c239['push'](_0x10c239['shift']());}}}(a168_0x1c86,0x7d16c));import{readFileSync}from'fs';import*as a168_0x21b202 from'path';import*as a168_0xbcf3b6 from'yaml';function a168_0x1c86(){const _0xf89d99=['result','campaign_type','793688WHyuIp','12sFNnzf','length','has','valid','map','60790pZLeLn','error','YAML\x20parse\x20error:\x20','template','type','9363rdlnha','journey','2848328fdvhDY','188HYrFnC','email','236724MddGUD','utf-8','skipped','basename','YAML_PARSE_ERROR','object','campaign','22435017kxzeBX','279xnvmXb','6tXqGRO','relative','1237685fbjMAz','warnings','segment','not\x20a\x20','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)'];a168_0x1c86=function(){return _0xf89d99;};return a168_0x1c86();}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([a168_0x2dd17c(0x114),'push']);export function isJourneyDef(_0x5d7ede){const _0x55c379=a168_0x2dd17c;return typeof _0x5d7ede===_0x55c379(0x11a)&&_0x5d7ede!==null&&_0x55c379(0x10f)in _0x5d7ede&&_0x5d7ede[_0x55c379(0x10f)]==='journey';}export function isCampaignDef(_0x57cbe3){const _0x30d0b1=a168_0x2dd17c;if(typeof _0x57cbe3!=='object'||_0x57cbe3===null)return![];const _0x2b66d9=_0x57cbe3,_0x570dc4=VALID_CAMPAIGN_TYPES[_0x30d0b1(0x108)](_0x2b66d9[_0x30d0b1(0x104)]);if(_0x2b66d9['type']==='campaign'&&_0x570dc4)return!![];if(_0x570dc4&&!_0x2b66d9[_0x30d0b1(0x10f)])return!![];return![];}export function isTemplateDef(_0x335555){return typeof _0x335555==='object'&&_0x335555!==null&&'type'in _0x335555&&_0x335555['type']==='template';}export function isValidationResult(_0x359645){const _0x432024=a168_0x2dd17c;return!(_0x432024(0x117)in _0x359645);}export function createParseErrorResult(_0x5901f3,_0x21b1b1,_0xe1292b,_0xa5deb2,_0x2c9769='segment'){const _0x42a39b=a168_0x2dd17c;return{'filePath':_0x5901f3,'relativePath':_0x21b1b1,'source':_0xe1292b,'result':{'valid':![],'errors':[{'level':_0x42a39b(0x10c),'path':'','code':_0x42a39b(0x119),'message':_0xa5deb2}],'warnings':[]},'fileType':_0x2c9769};}export function validateYamlFile(_0x217b88,_0x373cac,_0x211cc1={}){const _0x3468bc=a168_0x2dd17c,_0x10efc7=a168_0x21b202[_0x3468bc(0x11f)](_0x373cac,_0x217b88)||a168_0x21b202[_0x3468bc(0x118)](_0x217b88);try{const _0x38317e=readFileSync(_0x217b88,_0x3468bc(0x116)),_0xffcc1b=a168_0xbcf3b6['parseDocument'](_0x38317e),_0x24a14b=_0xffcc1b['toJSON']();if(!_0x24a14b)return createParseErrorResult(_0x217b88,_0x10efc7,_0x38317e,_0x3468bc(0x124));let _0x463d69;if(isJourneyDef(_0x24a14b))_0x463d69=_0x3468bc(0x111);else{if(isCampaignDef(_0x24a14b))_0x463d69=_0x3468bc(0x11b);else isTemplateDef(_0x24a14b)?_0x463d69=_0x3468bc(0x10e):_0x463d69=_0x3468bc(0x122);}if(_0x211cc1['filterType']&&_0x463d69!==_0x211cc1['filterType'])return{'filePath':_0x217b88,'relativePath':_0x10efc7,'skipped':!![],'reason':_0x3468bc(0x123)+_0x211cc1['filterType']};const _0x47ce12={'source':_0x38317e,'document':_0xffcc1b};let _0x14f5d5;if(_0x463d69===_0x3468bc(0x111))_0x14f5d5=validateJourneyDef(_0x24a14b,_0x47ce12);else{if(_0x463d69===_0x3468bc(0x11b))_0x14f5d5=validateCampaignDef(_0x24a14b,_0x47ce12);else _0x463d69==='template'?_0x14f5d5=validateTemplateDef(_0x24a14b,_0x47ce12):_0x14f5d5=validateSegmentDef(_0x24a14b,_0x47ce12);}return{'filePath':_0x217b88,'relativePath':_0x10efc7,'source':_0x38317e,'result':_0x14f5d5,'fileType':_0x463d69};}catch(_0x587834){const _0x3f47b3=_0x587834 instanceof Error?_0x587834['message']:String(_0x587834);return createParseErrorResult(_0x217b88,_0x10efc7,'',_0x3468bc(0x10d)+_0x3f47b3);}}export function validateYamlFiles(_0x41f2cb,_0x467445,_0xf38dd={}){const _0xb7a3a7=a168_0x2dd17c;return _0x41f2cb[_0xb7a3a7(0x10a)](_0x1687f4=>validateYamlFile(_0x1687f4,_0x467445,_0xf38dd));}function a168_0x6ba4(_0x4131c4,_0x5f2869){_0x4131c4=_0x4131c4-0x103;const _0x1c8610=a168_0x1c86();let _0x6ba4e1=_0x1c8610[_0x4131c4];return _0x6ba4e1;}export function calculateSummary(_0x1536e6){const _0x2ffbc7=a168_0x2dd17c;let _0x13e17b=0x0,_0x27dccb=0x0,_0x108a1c=0x0,_0x383a58=0x0;for(const _0x23a76b of _0x1536e6){if(!isValidationResult(_0x23a76b)){_0x383a58++;continue;}_0x23a76b[_0x2ffbc7(0x103)][_0x2ffbc7(0x109)]?_0x13e17b++:_0x27dccb++,_0x108a1c+=_0x23a76b[_0x2ffbc7(0x103)][_0x2ffbc7(0x121)][_0x2ffbc7(0x107)];}return{'validCount':_0x13e17b,'invalidCount':_0x27dccb,'warningCount':_0x108a1c,'skippedCount':_0x383a58,'hasErrors':_0x27dccb>0x0};}
1
+ const a168_0x4f5ac6=a168_0x3ac1;(function(_0x3e6ae3,_0x1f2004){const _0x399f8c=a168_0x3ac1,_0x28a523=_0x3e6ae3();while(!![]){try{const _0x262d5b=-parseInt(_0x399f8c(0x138))/0x1*(parseInt(_0x399f8c(0x14c))/0x2)+-parseInt(_0x399f8c(0x13d))/0x3+parseInt(_0x399f8c(0x134))/0x4+-parseInt(_0x399f8c(0x136))/0x5*(-parseInt(_0x399f8c(0x144))/0x6)+-parseInt(_0x399f8c(0x139))/0x7*(parseInt(_0x399f8c(0x14e))/0x8)+-parseInt(_0x399f8c(0x137))/0x9+-parseInt(_0x399f8c(0x147))/0xa*(parseInt(_0x399f8c(0x14f))/0xb);if(_0x262d5b===_0x1f2004)break;else _0x28a523['push'](_0x28a523['shift']());}catch(_0x764673){_0x28a523['push'](_0x28a523['shift']());}}}(a168_0x30c7,0x57aab));import{readFileSync}from'fs';import*as a168_0x2617d9 from'path';import*as a168_0x1bb857 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';function a168_0x30c7(){const _0x3f409d=['result','segment','10EBUjdz','push','basename','journey','campaign','2ELSjWU','error','498872kEDbtL','3704437uUwKfw','message','object','not\x20a\x20','warnings','filterType','relative','2067996cBEYgB','has','3464115SMccHh','464994lYJWSV','122777vdeYog','21xYmIiu','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','email','template','457356lAWYco','utf-8','type','skipped','toJSON','YAML_PARSE_ERROR','map','6hMBZGE'];a168_0x30c7=function(){return _0x3f409d;};return a168_0x30c7();}const VALID_CAMPAIGN_TYPES=new Set([a168_0x4f5ac6(0x13b),a168_0x4f5ac6(0x148)]);export function isJourneyDef(_0x1a478d){const _0x3f5ec5=a168_0x4f5ac6;return typeof _0x1a478d===_0x3f5ec5(0x151)&&_0x1a478d!==null&&_0x3f5ec5(0x13f)in _0x1a478d&&_0x1a478d['type']==='journey';}export function isCampaignDef(_0x30fd3a){const _0x1f1dc5=a168_0x4f5ac6;if(typeof _0x30fd3a!==_0x1f1dc5(0x151)||_0x30fd3a===null)return![];const _0x2fc623=_0x30fd3a,_0x11c010=VALID_CAMPAIGN_TYPES[_0x1f1dc5(0x135)](_0x2fc623['campaign_type']);if(_0x2fc623['type']===_0x1f1dc5(0x14b)&&_0x11c010)return!![];if(_0x11c010&&!_0x2fc623[_0x1f1dc5(0x13f)])return!![];return![];}function a168_0x3ac1(_0x4cbdc0,_0x7770b2){_0x4cbdc0=_0x4cbdc0-0x134;const _0x30c73f=a168_0x30c7();let _0x3ac1b2=_0x30c73f[_0x4cbdc0];return _0x3ac1b2;}export function isTemplateDef(_0x1f220d){const _0x3f297a=a168_0x4f5ac6;return typeof _0x1f220d==='object'&&_0x1f220d!==null&&_0x3f297a(0x13f)in _0x1f220d&&_0x1f220d[_0x3f297a(0x13f)]===_0x3f297a(0x13c);}export function isValidationResult(_0x4721a4){const _0x3d1b42=a168_0x4f5ac6;return!(_0x3d1b42(0x140)in _0x4721a4);}export function createParseErrorResult(_0x47d868,_0x2f3c3a,_0xbc86a1,_0xa615f5,_0xcd03dd=a168_0x4f5ac6(0x146)){const _0x10ac3e=a168_0x4f5ac6;return{'filePath':_0x47d868,'relativePath':_0x2f3c3a,'source':_0xbc86a1,'result':{'valid':![],'errors':[{'level':_0x10ac3e(0x14d),'path':'','code':_0x10ac3e(0x142),'message':_0xa615f5}],'warnings':[]},'fileType':_0xcd03dd};}export function validateYamlFile(_0x2b11b5,_0x443c20,_0x371334={}){const _0x384519=a168_0x4f5ac6,_0x39a073=a168_0x2617d9[_0x384519(0x155)](_0x443c20,_0x2b11b5)||a168_0x2617d9[_0x384519(0x149)](_0x2b11b5);try{const _0x126504=readFileSync(_0x2b11b5,_0x384519(0x13e)),_0x52400b=a168_0x1bb857['parseDocument'](_0x126504),_0x14f62a=_0x52400b[_0x384519(0x141)]();if(!_0x14f62a)return createParseErrorResult(_0x2b11b5,_0x39a073,_0x126504,_0x384519(0x13a));let _0x4ba1b4;if(isJourneyDef(_0x14f62a))_0x4ba1b4=_0x384519(0x14a);else{if(isCampaignDef(_0x14f62a))_0x4ba1b4='campaign';else isTemplateDef(_0x14f62a)?_0x4ba1b4='template':_0x4ba1b4=_0x384519(0x146);}if(_0x371334[_0x384519(0x154)]&&_0x4ba1b4!==_0x371334[_0x384519(0x154)])return{'filePath':_0x2b11b5,'relativePath':_0x39a073,'skipped':!![],'reason':_0x384519(0x152)+_0x371334[_0x384519(0x154)]};const _0x2b793b={'source':_0x126504,'document':_0x52400b};let _0xa5a9e4;if(_0x4ba1b4===_0x384519(0x14a))_0xa5a9e4=validateJourneyDef(_0x14f62a,_0x2b793b);else{if(_0x4ba1b4===_0x384519(0x14b))_0xa5a9e4=validateCampaignDef(_0x14f62a,_0x2b793b);else _0x4ba1b4===_0x384519(0x13c)?_0xa5a9e4=validateTemplateDef(_0x14f62a,_0x2b793b):_0xa5a9e4=validateSegmentDef(_0x14f62a,_0x2b793b);}return{'filePath':_0x2b11b5,'relativePath':_0x39a073,'source':_0x126504,'result':_0xa5a9e4,'fileType':_0x4ba1b4};}catch(_0x31e70d){const _0x4d607a=_0x31e70d instanceof Error?_0x31e70d[_0x384519(0x150)]:String(_0x31e70d);return createParseErrorResult(_0x2b11b5,_0x39a073,'','YAML\x20parse\x20error:\x20'+_0x4d607a);}}export function validateYamlFiles(_0x4d7858,_0x3d19f8,_0x159397={}){const _0x32fba9=a168_0x4f5ac6;return _0x4d7858[_0x32fba9(0x143)](_0x28c51b=>validateYamlFile(_0x28c51b,_0x3d19f8,_0x159397));}export function calculateSummary(_0x3952cb){const _0x315fc6=a168_0x4f5ac6;let _0x3fb830=0x0,_0x52a879=0x0,_0x4f2129=0x0,_0x4e4959=0x0;for(const _0x5d3524 of _0x3952cb){if(!isValidationResult(_0x5d3524)){_0x4e4959++;continue;}_0x5d3524[_0x315fc6(0x145)]['valid']?_0x3fb830++:_0x52a879++,_0x4f2129+=_0x5d3524[_0x315fc6(0x145)][_0x315fc6(0x153)]['length'];}return{'validCount':_0x3fb830,'invalidCount':_0x52a879,'warningCount':_0x4f2129,'skippedCount':_0x4e4959,'hasErrors':_0x52a879>0x0};}
@@ -1 +1 @@
1
- (function(_0x3b1415,_0x40b110){const _0x2f12b1=a169_0x52fc,_0x1f11b6=_0x3b1415();while(!![]){try{const _0x24dfb6=parseInt(_0x2f12b1(0x1fc))/0x1+parseInt(_0x2f12b1(0x1f5))/0x2*(parseInt(_0x2f12b1(0x204))/0x3)+parseInt(_0x2f12b1(0x218))/0x4+-parseInt(_0x2f12b1(0x215))/0x5+-parseInt(_0x2f12b1(0x1f6))/0x6+-parseInt(_0x2f12b1(0x210))/0x7*(parseInt(_0x2f12b1(0x203))/0x8)+parseInt(_0x2f12b1(0x208))/0x9;if(_0x24dfb6===_0x40b110)break;else _0x1f11b6['push'](_0x1f11b6['shift']());}catch(_0x55b70f){_0x1f11b6['push'](_0x1f11b6['shift']());}}}(a169_0x5800,0x85399));import*as a169_0x3f13d3 from'yaml';import a169_0xed42f from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x478e34,_0x201fb5,_0x59cb9c){const _0x357222=a169_0x52fc;if(!_0x478e34||!_0x201fb5)return undefined;try{let _0x3260e4=_0x478e34['getIn'](_0x59cb9c,!![]),_0x38c10c=[..._0x59cb9c];while((!_0x3260e4||typeof _0x3260e4!=='object'||!(_0x357222(0x201)in _0x3260e4)||!_0x3260e4['range'])&&_0x38c10c[_0x357222(0x1ff)]>0x0){_0x38c10c['pop'](),_0x3260e4=_0x38c10c[_0x357222(0x1ff)]>0x0?_0x478e34[_0x357222(0x20f)](_0x38c10c,!![]):_0x478e34[_0x357222(0x209)];}if(!_0x3260e4||typeof _0x3260e4!==_0x357222(0x21b)||!('range'in _0x3260e4)||!_0x3260e4['range'])return undefined;const [_0x5b7cc7]=_0x3260e4[_0x357222(0x201)];return offsetToLocation(_0x201fb5,_0x5b7cc7);}catch{return undefined;}}function a169_0x5800(){const _0xc8a66d=['path','errors','match','\x27:\x20','getIn','455rkZTdc','number','push','error','min','1611525LipHQJ','code','message','318568ITJlkZ','warnings','repeat','object','YAML\x20validation\x20error:\x20','dim','level','cyan','map','line','9316BAkndO','2956194ImOYEF','issues','yellow','column','Invalid\x20YAML:\x20expected\x20an\x20object','join','233748FqnvBC','invalid_union','max','length','parse','range','data','13232BxUspZ','393DbMVMH','red','location','split','4901535BSiNqt','contents','success'];a169_0x5800=function(){return _0xc8a66d;};return a169_0x5800();}export function offsetToLocation(_0x164afa,_0x47fc3f){const _0x10dd68=a169_0x52fc;let _0x4cb233=0x1,_0x112826=0x1;for(let _0x4e0e61=0x0;_0x4e0e61<_0x47fc3f&&_0x4e0e61<_0x164afa[_0x10dd68(0x1ff)];_0x4e0e61++){_0x164afa[_0x4e0e61]==='\x0a'?(_0x4cb233++,_0x112826=0x1):_0x112826++;}return{'line':_0x4cb233,'column':_0x112826,'offset':_0x47fc3f};}export function pathToArray(_0x52cb6c){const _0x8fb026=a169_0x52fc;if(!_0x52cb6c)return[];return _0x52cb6c[_0x8fb026(0x207)]('.')['flatMap'](_0x34c729=>{const _0x207840=_0x8fb026,_0x57f569=_0x34c729[_0x207840(0x20d)](/^(\w+)\[(\d+)\]$/);if(_0x57f569)return[_0x57f569[0x1],parseInt(_0x57f569[0x2],0xa)];return[_0x34c729];});}export function formatZodPath(_0x400857){const _0x15efe6=a169_0x52fc;let _0x595c11='';for(const _0x1154f7 of _0x400857){if(typeof _0x1154f7===_0x15efe6(0x211))_0x595c11+='['+_0x1154f7+']';else{const _0x4dfab6=String(_0x1154f7);_0x595c11+=_0x595c11?'.'+_0x4dfab6:_0x4dfab6;}}return _0x595c11;}export function flattenZodIssues(_0x53a29d){const _0x1cd29e=a169_0x52fc,_0x43f62e=[];for(const _0x414f33 of _0x53a29d){if(_0x414f33['code']===_0x1cd29e(0x1fd)&&_0x1cd29e(0x20c)in _0x414f33){const _0x1b6bd7=_0x414f33[_0x1cd29e(0x20c)];let _0x36fa85=_0x1b6bd7[0x0]||[];for(const _0x1d2a73 of _0x1b6bd7){_0x1d2a73[_0x1cd29e(0x1ff)]<_0x36fa85[_0x1cd29e(0x1ff)]&&(_0x36fa85=_0x1d2a73);}const _0xa98cf8=_0x36fa85[_0x1cd29e(0x220)](_0x468463=>({..._0x468463,'path':[..._0x414f33[_0x1cd29e(0x20b)],..._0x468463['path']]}));_0x43f62e[_0x1cd29e(0x212)](...flattenZodIssues(_0xa98cf8));}else _0x43f62e[_0x1cd29e(0x212)](_0x414f33);}return _0x43f62e;}export function safeParseYaml(_0x4d3e93,_0x3322c6){const _0x5bc2d7=a169_0x52fc,_0x500d65=a169_0x3f13d3[_0x5bc2d7(0x200)](_0x4d3e93);if(!_0x500d65||typeof _0x500d65!==_0x5bc2d7(0x21b))throw new Error(_0x5bc2d7(0x1fa));const _0x245ea9=_0x3322c6['safeParse'](_0x500d65);if(!_0x245ea9[_0x5bc2d7(0x20a)]){const _0x1216e8=_0x245ea9[_0x5bc2d7(0x213)][_0x5bc2d7(0x1f7)][0x0],_0x2101a3=formatZodPath(_0x1216e8[_0x5bc2d7(0x20b)]);throw new Error(_0x2101a3?'YAML\x20validation\x20error\x20at\x20\x27'+_0x2101a3+_0x5bc2d7(0x20e)+_0x1216e8[_0x5bc2d7(0x217)]:_0x5bc2d7(0x21c)+_0x1216e8[_0x5bc2d7(0x217)]);}return _0x245ea9[_0x5bc2d7(0x202)];}function a169_0x52fc(_0x52c2d3,_0x10c1aa){_0x52c2d3=_0x52c2d3-0x1f4;const _0x5800aa=a169_0x5800();let _0x52fc71=_0x5800aa[_0x52c2d3];return _0x52fc71;}export function formatIssueWithContext(_0x885218,_0x56f589,_0x31b9c8){const _0x1c80bf=a169_0x52fc,_0x528f77=[],_0x4e6c33=_0x885218[_0x1c80bf(0x21e)]==='error',_0x1013ca=_0x4e6c33?a169_0xed42f[_0x1c80bf(0x205)]:a169_0xed42f[_0x1c80bf(0x1f8)],_0xe4c844=_0x4e6c33?a169_0xed42f[_0x1c80bf(0x205)]:a169_0xed42f[_0x1c80bf(0x1f8)],_0x5613cb=_0x31b9c8?a169_0xed42f[_0x1c80bf(0x21f)](_0x31b9c8+':'):'';if(_0x885218[_0x1c80bf(0x206)]){const _0x1d0ce0=a169_0xed42f[_0x1c80bf(0x21f)](_0x885218['location'][_0x1c80bf(0x1f4)]+':'+_0x885218[_0x1c80bf(0x206)][_0x1c80bf(0x1f9)]);_0x528f77[_0x1c80bf(0x212)](''+_0x5613cb+_0x1d0ce0+':\x20'+_0x1013ca(_0x885218[_0x1c80bf(0x21e)])+'\x20'+_0xe4c844('['+_0x885218[_0x1c80bf(0x216)]+']'));}else _0x528f77['push'](''+_0x5613cb+a169_0xed42f[_0x1c80bf(0x21d)](_0x885218['path'])+':\x20'+_0x1013ca(_0x885218[_0x1c80bf(0x21e)])+'\x20'+_0xe4c844('['+_0x885218[_0x1c80bf(0x216)]+']'));_0x528f77[_0x1c80bf(0x212)](_0x885218[_0x1c80bf(0x217)]);if(_0x885218[_0x1c80bf(0x206)]&&_0x56f589){const _0x10efa4=_0x56f589[_0x1c80bf(0x207)]('\x0a'),{line:_0x58cc40,column:_0x44e0b8}=_0x885218[_0x1c80bf(0x206)],_0x50a203=Math[_0x1c80bf(0x1fe)](0x1,_0x58cc40-0x1),_0x493cc4=Math[_0x1c80bf(0x214)](_0x10efa4[_0x1c80bf(0x1ff)],_0x58cc40+0x1);_0x528f77[_0x1c80bf(0x212)]('');for(let _0x4fdc32=_0x50a203;_0x4fdc32<=_0x493cc4;_0x4fdc32++){const _0x170c57=_0x10efa4[_0x4fdc32-0x1]||'',_0xcc7e44=a169_0xed42f[_0x1c80bf(0x21d)](_0x4fdc32['toString']()['padStart'](0x4)),_0xa328fb=a169_0xed42f[_0x1c80bf(0x21d)]('\x20|\x20');if(_0x4fdc32===_0x58cc40){_0x528f77['push']('\x20\x20'+_0xcc7e44+_0xa328fb+_0x1013ca(_0x170c57));const _0x2b3e47='\x20'[_0x1c80bf(0x21a)](0x4+0x3+_0x44e0b8-0x1);_0x528f77[_0x1c80bf(0x212)]('\x20\x20'+_0x2b3e47+_0x1013ca('^'));}else _0x528f77[_0x1c80bf(0x212)]('\x20\x20'+_0xcc7e44+_0xa328fb+a169_0xed42f[_0x1c80bf(0x21d)](_0x170c57));}}return _0x528f77[_0x1c80bf(0x1fb)]('\x0a');}export function formatValidationResult(_0x26e73d,_0x462cc3,_0x40afb2){const _0x394acb=a169_0x52fc,_0x51ab68=[];for(const _0x5826ca of _0x26e73d['errors']){_0x51ab68['push'](formatIssueWithContext(_0x5826ca,_0x462cc3,_0x40afb2)),_0x51ab68[_0x394acb(0x212)]('');}for(const _0x26b199 of _0x26e73d[_0x394acb(0x219)]){_0x51ab68[_0x394acb(0x212)](formatIssueWithContext(_0x26b199,_0x462cc3,_0x40afb2)),_0x51ab68['push']('');}return _0x51ab68[_0x394acb(0x1fb)]('\x0a');}
1
+ (function(_0xb9b5d3,_0x4c4c20){const _0xcd20e2=a169_0x822b,_0x4df1ea=_0xb9b5d3();while(!![]){try{const _0x3d20c8=-parseInt(_0xcd20e2(0x9b))/0x1*(parseInt(_0xcd20e2(0x8b))/0x2)+-parseInt(_0xcd20e2(0x88))/0x3+-parseInt(_0xcd20e2(0x7d))/0x4+parseInt(_0xcd20e2(0x82))/0x5+-parseInt(_0xcd20e2(0x84))/0x6*(-parseInt(_0xcd20e2(0x79))/0x7)+-parseInt(_0xcd20e2(0x98))/0x8+parseInt(_0xcd20e2(0x8a))/0x9;if(_0x3d20c8===_0x4c4c20)break;else _0x4df1ea['push'](_0x4df1ea['shift']());}catch(_0x4ae412){_0x4df1ea['push'](_0x4df1ea['shift']());}}}(a169_0x39ee,0x52378));import*as a169_0x23231e from'yaml';import a169_0x3a0a35 from'chalk';function a169_0x39ee(){const _0x53da25=['yellow','YAML\x20validation\x20error\x20at\x20\x27','data','code','2219765SHIaey','issues','449724ptNNCs','error','toString','errors','1516305zHAbaQ','push','9557793MJIxWY','2McNGef','parse','pop','safeParse','\x20|\x20','map','cyan','padStart','level','getIn','join','dim','contents','196168ufxyQy','warnings','max','587173wzXwYn','invalid_union','repeat','split','success','object','range','flatMap','length','location','path','YAML\x20validation\x20error:\x20','message','42uHfHfc','Invalid\x20YAML:\x20expected\x20an\x20object','number','column','2007060SITIBs'];a169_0x39ee=function(){return _0x53da25;};return a169_0x39ee();}export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0xd274f0,_0x40d1b4,_0xf3501c){const _0x5450d3=a169_0x822b;if(!_0xd274f0||!_0x40d1b4)return undefined;try{let _0x3fb65f=_0xd274f0[_0x5450d3(0x94)](_0xf3501c,!![]),_0x3fc909=[..._0xf3501c];while((!_0x3fb65f||typeof _0x3fb65f!==_0x5450d3(0x71)||!(_0x5450d3(0x72)in _0x3fb65f)||!_0x3fb65f[_0x5450d3(0x72)])&&_0x3fc909[_0x5450d3(0x74)]>0x0){_0x3fc909[_0x5450d3(0x8d)](),_0x3fb65f=_0x3fc909[_0x5450d3(0x74)]>0x0?_0xd274f0[_0x5450d3(0x94)](_0x3fc909,!![]):_0xd274f0[_0x5450d3(0x97)];}if(!_0x3fb65f||typeof _0x3fb65f!==_0x5450d3(0x71)||!('range'in _0x3fb65f)||!_0x3fb65f[_0x5450d3(0x72)])return undefined;const [_0x5ea31b]=_0x3fb65f[_0x5450d3(0x72)];return offsetToLocation(_0x40d1b4,_0x5ea31b);}catch{return undefined;}}export function offsetToLocation(_0x1ae636,_0x25c981){let _0x2faeb1=0x1,_0x1eebda=0x1;for(let _0x250a51=0x0;_0x250a51<_0x25c981&&_0x250a51<_0x1ae636['length'];_0x250a51++){_0x1ae636[_0x250a51]==='\x0a'?(_0x2faeb1++,_0x1eebda=0x1):_0x1eebda++;}return{'line':_0x2faeb1,'column':_0x1eebda,'offset':_0x25c981};}function a169_0x822b(_0xfca53f,_0x270fe8){_0xfca53f=_0xfca53f-0x6e;const _0x39eea4=a169_0x39ee();let _0x822b8=_0x39eea4[_0xfca53f];return _0x822b8;}export function pathToArray(_0x156682){const _0x750ef6=a169_0x822b;if(!_0x156682)return[];return _0x156682['split']('.')[_0x750ef6(0x73)](_0xd1286f=>{const _0x43fe58=_0xd1286f['match'](/^(\w+)\[(\d+)\]$/);if(_0x43fe58)return[_0x43fe58[0x1],parseInt(_0x43fe58[0x2],0xa)];return[_0xd1286f];});}export function formatZodPath(_0x2c6bf5){const _0x4097e2=a169_0x822b;let _0x1f9305='';for(const _0x4a22a5 of _0x2c6bf5){if(typeof _0x4a22a5===_0x4097e2(0x7b))_0x1f9305+='['+_0x4a22a5+']';else{const _0x3ba5bd=String(_0x4a22a5);_0x1f9305+=_0x1f9305?'.'+_0x3ba5bd:_0x3ba5bd;}}return _0x1f9305;}export function flattenZodIssues(_0x2c1a2c){const _0x5e3335=a169_0x822b,_0x4fd86a=[];for(const _0x377f09 of _0x2c1a2c){if(_0x377f09[_0x5e3335(0x81)]===_0x5e3335(0x9c)&&_0x5e3335(0x87)in _0x377f09){const _0x1c4cee=_0x377f09[_0x5e3335(0x87)];let _0x50c82f=_0x1c4cee[0x0]||[];for(const _0x23b6ea of _0x1c4cee){_0x23b6ea[_0x5e3335(0x74)]<_0x50c82f['length']&&(_0x50c82f=_0x23b6ea);}const _0x419f7c=_0x50c82f[_0x5e3335(0x90)](_0x25c799=>({..._0x25c799,'path':[..._0x377f09['path'],..._0x25c799[_0x5e3335(0x76)]]}));_0x4fd86a['push'](...flattenZodIssues(_0x419f7c));}else _0x4fd86a['push'](_0x377f09);}return _0x4fd86a;}export function safeParseYaml(_0x3bd434,_0x398062){const _0x1d4736=a169_0x822b,_0x138641=a169_0x23231e[_0x1d4736(0x8c)](_0x3bd434);if(!_0x138641||typeof _0x138641!==_0x1d4736(0x71))throw new Error(_0x1d4736(0x7a));const _0x4fac08=_0x398062[_0x1d4736(0x8e)](_0x138641);if(!_0x4fac08[_0x1d4736(0x70)]){const _0x1964f7=_0x4fac08[_0x1d4736(0x85)][_0x1d4736(0x83)][0x0],_0x3a5216=formatZodPath(_0x1964f7[_0x1d4736(0x76)]);throw new Error(_0x3a5216?_0x1d4736(0x7f)+_0x3a5216+'\x27:\x20'+_0x1964f7[_0x1d4736(0x78)]:_0x1d4736(0x77)+_0x1964f7[_0x1d4736(0x78)]);}return _0x4fac08[_0x1d4736(0x80)];}export function formatIssueWithContext(_0x28d882,_0x523af6,_0x5bd254){const _0x238324=a169_0x822b,_0x268571=[],_0x30a665=_0x28d882[_0x238324(0x93)]===_0x238324(0x85),_0x46528e=_0x30a665?a169_0x3a0a35['red']:a169_0x3a0a35['yellow'],_0x527f91=_0x30a665?a169_0x3a0a35['red']:a169_0x3a0a35[_0x238324(0x7e)],_0x23b557=_0x5bd254?a169_0x3a0a35[_0x238324(0x91)](_0x5bd254+':'):'';if(_0x28d882[_0x238324(0x75)]){const _0x333e8a=a169_0x3a0a35[_0x238324(0x91)](_0x28d882['location']['line']+':'+_0x28d882[_0x238324(0x75)][_0x238324(0x7c)]);_0x268571['push'](''+_0x23b557+_0x333e8a+':\x20'+_0x46528e(_0x28d882[_0x238324(0x93)])+'\x20'+_0x527f91('['+_0x28d882['code']+']'));}else _0x268571['push'](''+_0x23b557+a169_0x3a0a35['dim'](_0x28d882['path'])+':\x20'+_0x46528e(_0x28d882[_0x238324(0x93)])+'\x20'+_0x527f91('['+_0x28d882[_0x238324(0x81)]+']'));_0x268571[_0x238324(0x89)](_0x28d882[_0x238324(0x78)]);if(_0x28d882[_0x238324(0x75)]&&_0x523af6){const _0x1002ad=_0x523af6[_0x238324(0x6f)]('\x0a'),{line:_0x476111,column:_0x52acfd}=_0x28d882[_0x238324(0x75)],_0x154082=Math[_0x238324(0x9a)](0x1,_0x476111-0x1),_0x2e8b8d=Math['min'](_0x1002ad[_0x238324(0x74)],_0x476111+0x1);_0x268571[_0x238324(0x89)]('');for(let _0x1e2fa2=_0x154082;_0x1e2fa2<=_0x2e8b8d;_0x1e2fa2++){const _0x16f3b1=_0x1002ad[_0x1e2fa2-0x1]||'',_0x2b8740=a169_0x3a0a35[_0x238324(0x96)](_0x1e2fa2[_0x238324(0x86)]()[_0x238324(0x92)](0x4)),_0x1bb66b=a169_0x3a0a35[_0x238324(0x96)](_0x238324(0x8f));if(_0x1e2fa2===_0x476111){_0x268571[_0x238324(0x89)]('\x20\x20'+_0x2b8740+_0x1bb66b+_0x46528e(_0x16f3b1));const _0x2c2284='\x20'[_0x238324(0x6e)](0x4+0x3+_0x52acfd-0x1);_0x268571[_0x238324(0x89)]('\x20\x20'+_0x2c2284+_0x46528e('^'));}else _0x268571['push']('\x20\x20'+_0x2b8740+_0x1bb66b+a169_0x3a0a35['dim'](_0x16f3b1));}}return _0x268571[_0x238324(0x95)]('\x0a');}export function formatValidationResult(_0x4eda8d,_0x140126,_0x12d2b4){const _0x463dd4=a169_0x822b,_0x2fea0d=[];for(const _0x125d32 of _0x4eda8d[_0x463dd4(0x87)]){_0x2fea0d[_0x463dd4(0x89)](formatIssueWithContext(_0x125d32,_0x140126,_0x12d2b4)),_0x2fea0d[_0x463dd4(0x89)]('');}for(const _0x10749a of _0x4eda8d[_0x463dd4(0x99)]){_0x2fea0d[_0x463dd4(0x89)](formatIssueWithContext(_0x10749a,_0x140126,_0x12d2b4)),_0x2fea0d['push']('');}return _0x2fea0d[_0x463dd4(0x95)]('\x0a');}