@treasuredata/tdx 2026.6.1 → 2026.6.3

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 (241) 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-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/schedule-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-pull-command.js +1 -1
  46. package/dist/commands/segment-push-command.js +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segment-validate-command.js +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/show.js +1 -1
  52. package/dist/commands/status-command.js +1 -1
  53. package/dist/commands/table-deleted.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.d.ts +2 -2
  61. package/dist/commands/workflow-command.d.ts.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/commands/workflow-command.js.map +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.js +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/tools/work-create-item.js +1 -1
  85. package/dist/mcp/utils.js +1 -1
  86. package/dist/proxy/claude-usage-tracker.js +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/sse-usage-parser.js +1 -1
  89. package/dist/sdk/agent/agent-config.js +1 -1
  90. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  91. package/dist/sdk/agent/agent-yaml.js +1 -1
  92. package/dist/sdk/agent/test/evaluator.js +1 -1
  93. package/dist/sdk/agent/test/executor.js +1 -1
  94. package/dist/sdk/agent/test/index.js +1 -1
  95. package/dist/sdk/agent/test/output.js +1 -1
  96. package/dist/sdk/agent/test/parser.js +1 -1
  97. package/dist/sdk/agent/tool-target-registry.js +1 -1
  98. package/dist/sdk/api.js +1 -1
  99. package/dist/sdk/cas/cas-api-client.js +1 -1
  100. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  101. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  102. package/dist/sdk/cas/index.js +1 -1
  103. package/dist/sdk/cas/pull-workflow.js +1 -1
  104. package/dist/sdk/cas/push-workflow.js +1 -1
  105. package/dist/sdk/client/cdp-api-client.js +1 -1
  106. package/dist/sdk/client/delivery-api-client.js +1 -1
  107. package/dist/sdk/client/endpoints.js +1 -1
  108. package/dist/sdk/client/engage-api-client.js +1 -1
  109. package/dist/sdk/client/http-client.js +1 -1
  110. package/dist/sdk/client/llm-api-client.js +1 -1
  111. package/dist/sdk/client/oauth-refresh.js +1 -1
  112. package/dist/sdk/client/rate-limiter.js +1 -1
  113. package/dist/sdk/client/td-api-client.js +1 -1
  114. package/dist/sdk/client/trino-api-client.js +1 -1
  115. package/dist/sdk/client/workflow-client.d.ts +23 -1
  116. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  117. package/dist/sdk/client/workflow-client.js +1 -1
  118. package/dist/sdk/client/workflow-client.js.map +1 -1
  119. package/dist/sdk/connection-validator.js +1 -1
  120. package/dist/sdk/connection.js +1 -1
  121. package/dist/sdk/delivery.js +1 -1
  122. package/dist/sdk/engage/campaign-pull.js +1 -1
  123. package/dist/sdk/engage/campaign-push.js +1 -1
  124. package/dist/sdk/engage/campaign-validator.js +1 -1
  125. package/dist/sdk/engage/campaign-yaml.js +1 -1
  126. package/dist/sdk/engage/template-pull.js +1 -1
  127. package/dist/sdk/engage/template-push.js +1 -1
  128. package/dist/sdk/engage/template-validator.js +1 -1
  129. package/dist/sdk/engage/template-yaml.js +1 -1
  130. package/dist/sdk/engage/types/campaign-def.js +1 -1
  131. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  132. package/dist/sdk/engage/types/template-schema.js +1 -1
  133. package/dist/sdk/engage.js +1 -1
  134. package/dist/sdk/errors.js +1 -1
  135. package/dist/sdk/index.js +1 -1
  136. package/dist/sdk/io/index.js +1 -1
  137. package/dist/sdk/io/node-filesystem.js +1 -1
  138. package/dist/sdk/job.js +1 -1
  139. package/dist/sdk/journey.js +1 -1
  140. package/dist/sdk/llm/chat-cache.js +1 -1
  141. package/dist/sdk/llm/index.js +1 -1
  142. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  143. package/dist/sdk/llm/model-factors.js +1 -1
  144. package/dist/sdk/llm/user-settings.js +1 -1
  145. package/dist/sdk/personalization.js +1 -1
  146. package/dist/sdk/policy.js +1 -1
  147. package/dist/sdk/query/deleted-table-validation.js +1 -1
  148. package/dist/sdk/query/index.js +1 -1
  149. package/dist/sdk/query/sql-parser.js +1 -1
  150. package/dist/sdk/realtime.js +1 -1
  151. package/dist/sdk/schedule.js +1 -1
  152. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  153. package/dist/sdk/segment/fields-display.js +1 -1
  154. package/dist/sdk/segment/file-discovery.js +1 -1
  155. package/dist/sdk/segment/journey-utils.js +1 -1
  156. package/dist/sdk/segment/journey-validator.js +1 -1
  157. package/dist/sdk/segment/journey-yaml.js +1 -1
  158. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  159. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  160. package/dist/sdk/segment/pull-workflow.js +1 -1
  161. package/dist/sdk/segment/push-recovery.js +1 -1
  162. package/dist/sdk/segment/push-workflow.js +1 -1
  163. package/dist/sdk/segment/resolution-context.js +1 -1
  164. package/dist/sdk/segment/segment-path-parser.js +1 -1
  165. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  166. package/dist/sdk/segment/segment-validator.js +1 -1
  167. package/dist/sdk/segment/target-resolution.js +1 -1
  168. package/dist/sdk/segment/tdx-config.js +1 -1
  169. package/dist/sdk/segment/types/activation-schema.js +1 -1
  170. package/dist/sdk/segment/types/journey-def.js +1 -1
  171. package/dist/sdk/segment/types/journey-schema.js +1 -1
  172. package/dist/sdk/segment/types/segment-def.js +1 -1
  173. package/dist/sdk/segment/types/segment-schema.js +1 -1
  174. package/dist/sdk/segment/validate-files.js +1 -1
  175. package/dist/sdk/segment/yaml-validator.js +1 -1
  176. package/dist/sdk/segment.js +1 -1
  177. package/dist/sdk/types/index.js +1 -1
  178. package/dist/sdk/types/progress.js +1 -1
  179. package/dist/sdk/types/workflow.d.ts +1 -1
  180. package/dist/sdk/types/workflow.d.ts.map +1 -1
  181. package/dist/sdk/types/workspace.js +1 -1
  182. package/dist/sdk/user.js +1 -1
  183. package/dist/sdk/util/format-detector.js +1 -1
  184. package/dist/sdk/util/formatters.js +1 -1
  185. package/dist/sdk/util/index.js +1 -1
  186. package/dist/sdk/util/paginate.js +1 -1
  187. package/dist/sdk/util/tree-formatter.js +1 -1
  188. package/dist/sdk/workflow/archive-validation.js +1 -1
  189. package/dist/sdk/workflow/clone-workflow.js +1 -1
  190. package/dist/sdk/workflow/index.d.ts +23 -2
  191. package/dist/sdk/workflow/index.d.ts.map +1 -1
  192. package/dist/sdk/workflow/index.js +1 -1
  193. package/dist/sdk/workflow/index.js.map +1 -1
  194. package/dist/sdk/workflow/pull-workflow.js +1 -1
  195. package/dist/sdk/workflow/push-workflow.d.ts +4 -0
  196. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  197. package/dist/sdk/workflow/push-workflow.js +1 -1
  198. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  199. package/dist/sdk/workflow/task-graph.js +1 -1
  200. package/dist/sdk/workflow/tdx-config.js +1 -1
  201. package/dist/sdk/workflow/workflow-utils.js +1 -1
  202. package/dist/sdk/workspace/access-tracker.js +1 -1
  203. package/dist/sdk/workspace/frontmatter.js +1 -1
  204. package/dist/sdk/workspace/git.js +1 -1
  205. package/dist/sdk/workspace/index.js +1 -1
  206. package/dist/sdk/workspace/templates.js +1 -1
  207. package/dist/sdk/workspace/weekly.js +1 -1
  208. package/dist/sdk/workspace/wikilinks.js +1 -1
  209. package/dist/test-utils/command-runner.js +1 -1
  210. package/dist/test-utils/factories.js +1 -1
  211. package/dist/test-utils/fixtures.js +1 -1
  212. package/dist/test-utils/http-mock.js +1 -1
  213. package/dist/test-utils/index.js +1 -1
  214. package/dist/utils/async.js +1 -1
  215. package/dist/utils/colors.js +1 -1
  216. package/dist/utils/diff.js +1 -1
  217. package/dist/utils/file-permissions.js +1 -1
  218. package/dist/utils/file-reader.js +1 -1
  219. package/dist/utils/github-releases.js +1 -1
  220. package/dist/utils/global-cache.js +1 -1
  221. package/dist/utils/json-loader.js +1 -1
  222. package/dist/utils/local-cache.js +1 -1
  223. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  224. package/dist/utils/logger/formatters/index.js +1 -1
  225. package/dist/utils/logger/handlers/console-handler.js +1 -1
  226. package/dist/utils/logger/handlers/file-handler.js +1 -1
  227. package/dist/utils/logger/handlers/index.js +1 -1
  228. package/dist/utils/logger/handlers/null-handler.js +1 -1
  229. package/dist/utils/logger/index.js +1 -1
  230. package/dist/utils/logger/logger.js +1 -1
  231. package/dist/utils/logger/types.js +1 -1
  232. package/dist/utils/option-validation.js +1 -1
  233. package/dist/utils/process.js +1 -1
  234. package/dist/utils/prompt.js +1 -1
  235. package/dist/utils/spinner.js +1 -1
  236. package/dist/utils/sse-parser.js +1 -1
  237. package/dist/utils/string-utils.js +1 -1
  238. package/dist/utils/table-ref-parser.js +1 -1
  239. package/dist/utils/tdx-logger.js +1 -1
  240. package/dist/utils/version-check.js +1 -1
  241. 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(_0x1ceb02,_0x10c9aa){const _0x3bae1d=a160_0x481b,_0x3aa9f6=_0x1ceb02();while(!![]){try{const _0x166bb8=parseInt(_0x3bae1d(0x1ac))/0x1+-parseInt(_0x3bae1d(0x19c))/0x2+parseInt(_0x3bae1d(0x1b0))/0x3+parseInt(_0x3bae1d(0x1cc))/0x4*(parseInt(_0x3bae1d(0x19f))/0x5)+-parseInt(_0x3bae1d(0x199))/0x6+parseInt(_0x3bae1d(0x1c5))/0x7+-parseInt(_0x3bae1d(0x1a9))/0x8*(parseInt(_0x3bae1d(0x1bc))/0x9);if(_0x166bb8===_0x10c9aa)break;else _0x3aa9f6['push'](_0x3aa9f6['shift']());}catch(_0x421d6c){_0x3aa9f6['push'](_0x3aa9f6['shift']());}}}(a160_0x436a,0x7dfdb));import a160_0x285ebb 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';function a160_0x436a(){const _0x349ed9=['configDir','no_config','string','readFile','No\x20tdx.json\x20found','38424JSDpZB','parent_segment','relative','27535VWlyxG','cwd','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','parse','1121052upniEJ','isScoped','context','replace','parent_name','folderPath','includes','No\x20tdx.json\x20found\x20for\x20file:\x20','no_parent','tdx.json','scopedFolderPath','trim','1683iHgOFp','error','match','exists','isDirectory','parentSegment','journey','dirname','directory','7119735GojXRD','file','File\x20not\x20found','root','segmentName','resolve','extname','13824pVYUNs','1257864tDwaRx','message','segment','867640LKXQAd','invalid_yaml','basename','925JNAObo','join','resourceType','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','type'];a160_0x436a=function(){return _0x349ed9;};return a160_0x436a();}export function isSuccessfulResolution(_0x2c3068){const _0x3ffe26=a160_0x481b;return _0x2c3068[_0x3ffe26(0x1a3)]!==_0x3ffe26(0x1bd);}export function isScopedResolution(_0x42ec7d){const _0xe0c1de=a160_0x481b;return _0x42ec7d[_0xe0c1de(0x1a3)]===_0xe0c1de(0x1c4)||_0x42ec7d['type']===_0xe0c1de(0x1c6)||_0x42ec7d[_0xe0c1de(0x1a3)]===_0xe0c1de(0x1b2);}function a160_0x481b(_0x33e04b,_0x4f2152){_0x33e04b=_0x33e04b-0x199;const _0x436a12=a160_0x436a();let _0x481bce=_0x436a12[_0x33e04b];return _0x481bce;}export function getScopedDetails(_0x3ff98f){const _0x365118=a160_0x481b;if(isScopedResolution(_0x3ff98f))return{'isScoped':_0x3ff98f[_0x365118(0x1b1)],'scopedFolderPath':_0x3ff98f[_0x365118(0x1ba)]};return undefined;}async function findTdxConfigAsync(_0xa2a83e,_0xe5e989){const _0x4174e2=a160_0x481b;let _0x5d8831=a160_0x285ebb[_0x4174e2(0x1ca)](_0xa2a83e);const _0x12904e=a160_0x285ebb[_0x4174e2(0x1af)](_0x5d8831)[_0x4174e2(0x1c8)];while(_0x5d8831!==_0x12904e){const _0x3b6664=a160_0x285ebb[_0x4174e2(0x1a0)](_0x5d8831,_0x4174e2(0x1b9));if(await _0xe5e989[_0x4174e2(0x1bf)](_0x3b6664))try{const _0x228847=await _0xe5e989[_0x4174e2(0x1a7)](_0x3b6664),_0x3454be=JSON[_0x4174e2(0x1af)](_0x228847);if(_0x3454be[_0x4174e2(0x1aa)]&&typeof _0x3454be[_0x4174e2(0x1aa)]===_0x4174e2(0x1a6))return{'configPath':_0x3b6664,'configDir':_0x5d8831,'parentSegment':_0x3454be[_0x4174e2(0x1aa)]};}catch{}_0x5d8831=a160_0x285ebb[_0x4174e2(0x1c3)](_0x5d8831);}return null;}function calculateScopedPath(_0x4c87fc,_0x2691eb){const _0x4543de=a160_0x481b,_0x3c76ce=a160_0x285ebb[_0x4543de(0x1ab)](_0x2691eb,_0x4c87fc),_0x13834d=_0x3c76ce!==''&&_0x3c76ce!=='.'&&!_0x3c76ce['startsWith']('..');return{'isScoped':_0x13834d,'scopedFolderPath':_0x13834d?_0x3c76ce[_0x4543de(0x1b3)](/\\/g,'/'):''};}export async function resolveTarget(_0x5e39fe){const _0x502e4e=a160_0x481b,{arg:_0x133116,contextParent:_0x4eb914,cwd:cwd=process[_0x502e4e(0x1ad)](),fs:fs=nodeFileSystem}=_0x5e39fe;if(_0x133116&&isYamlFilePath(_0x133116))try{const _0x1643b6=await resolveYamlFilePath(_0x133116,fs),_0x16344d=a160_0x285ebb[_0x502e4e(0x1ca)](_0x133116),_0x87cf0b=a160_0x285ebb[_0x502e4e(0x1c3)](_0x16344d),_0x5f2d98=await findTdxConfigAsync(_0x87cf0b,fs);if(!_0x5f2d98){if(_0x4eb914){const _0x5ecde4=a160_0x285ebb[_0x502e4e(0x1c3)](_0x16344d);return{'type':_0x502e4e(0x1c6),'parentName':_0x4eb914,'targetDir':_0x5ecde4,'configRoot':_0x5ecde4,'filePath':_0x16344d,'resourceName':_0x1643b6[_0x502e4e(0x1c9)],'folderPath':_0x1643b6[_0x502e4e(0x1b5)],'resourceType':_0x1643b6['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x502e4e(0x1a5),'message':_0x502e4e(0x1b7)+_0x133116,'arg':_0x133116,'helpText':_0x502e4e(0x1ae)};}const _0x346219=calculateScopedPath(_0x87cf0b,_0x5f2d98[_0x502e4e(0x1a4)]);return{'type':_0x502e4e(0x1c6),'parentName':_0x5f2d98[_0x502e4e(0x1c1)],'targetDir':_0x5f2d98[_0x502e4e(0x1a4)],'configRoot':_0x5f2d98['configDir'],'filePath':_0x16344d,'resourceName':_0x1643b6[_0x502e4e(0x1c9)],'folderPath':_0x1643b6[_0x502e4e(0x1b5)],'resourceType':_0x1643b6[_0x502e4e(0x1a1)],'isScoped':_0x346219[_0x502e4e(0x1b1)],'scopedFolderPath':_0x346219['scopedFolderPath']};}catch(_0x2591f0){const _0x17e6b0=_0x2591f0 instanceof Error?_0x2591f0[_0x502e4e(0x19a)]:String(_0x2591f0);if(_0x17e6b0[_0x502e4e(0x1b6)](_0x502e4e(0x1c7)))return{'type':_0x502e4e(0x1bd),'errorCode':'file_not_found','message':'File\x20not\x20found:\x20'+_0x133116,'arg':_0x133116};if(_0x17e6b0[_0x502e4e(0x1b6)](_0x502e4e(0x1a8))){if(_0x4eb914){const _0x251ec8=a160_0x285ebb[_0x502e4e(0x1ca)](_0x133116);if(await fs[_0x502e4e(0x1bf)](_0x251ec8)){const _0x266770=a160_0x285ebb['dirname'](_0x251ec8),_0x275e87=await fs['readFile'](_0x251ec8),_0x5b7148=_0x275e87[_0x502e4e(0x1be)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x5c7aca=_0x275e87[_0x502e4e(0x1be)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x231948=_0x5b7148?_0x5b7148[0x1][_0x502e4e(0x1bb)]():a160_0x285ebb[_0x502e4e(0x19e)](_0x133116,a160_0x285ebb[_0x502e4e(0x1cb)](_0x133116)),_0x225cb6=_0x5c7aca&&_0x5c7aca[0x1][_0x502e4e(0x1bb)]()===_0x502e4e(0x1c2)?_0x502e4e(0x1c2):_0x502e4e(0x19b);return{'type':'file','parentName':_0x4eb914,'targetDir':_0x266770,'configRoot':_0x266770,'filePath':_0x251ec8,'resourceName':_0x231948,'folderPath':'','resourceType':_0x225cb6,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x502e4e(0x1bd),'errorCode':'no_config','message':_0x502e4e(0x1b7)+_0x133116,'arg':_0x133116,'helpText':_0x502e4e(0x1ae)};}return{'type':_0x502e4e(0x1bd),'errorCode':_0x502e4e(0x19d),'message':_0x17e6b0,'arg':_0x133116};}if(_0x133116){const _0x515ffb=a160_0x285ebb[_0x502e4e(0x1ca)](cwd,_0x133116);let _0x140019=null;try{_0x140019=await fs['stat'](_0x515ffb);}catch{}if(_0x140019?.[_0x502e4e(0x1c0)]()){const _0x23594d=await findTdxConfigAsync(_0x515ffb,fs);if(_0x23594d){const _0x12a056=calculateScopedPath(_0x515ffb,_0x23594d['configDir']);return{'type':_0x502e4e(0x1c4),'parentName':_0x23594d[_0x502e4e(0x1c1)],'targetDir':_0x515ffb,'configRoot':_0x23594d['configDir'],'isScoped':_0x12a056[_0x502e4e(0x1b1)],'scopedFolderPath':_0x12a056[_0x502e4e(0x1ba)]};}if(_0x4eb914)return{'type':'directory','parentName':_0x4eb914,'targetDir':_0x515ffb,'configRoot':_0x515ffb,'isScoped':![],'scopedFolderPath':''};return{'type':_0x502e4e(0x1bd),'errorCode':_0x502e4e(0x1a5),'message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x133116,'arg':_0x133116,'helpText':_0x502e4e(0x1ae)};}if(_0x140019?.['isFile']())return{'type':_0x502e4e(0x1bd),'errorCode':_0x502e4e(0x19d),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x133116,'arg':_0x133116,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x3d0de2=sanitizeFileName(_0x133116),_0x530f15=getSegmentRootDir(_0x3d0de2,cwd);return{'type':_0x502e4e(0x1b4),'parentName':_0x133116,'targetDir':_0x530f15,'configRoot':_0x530f15};}const _0x36b9e0=await findTdxConfigAsync(cwd,fs);if(_0x36b9e0){const _0x4664b9=calculateScopedPath(cwd,_0x36b9e0[_0x502e4e(0x1a4)]);return{'type':'context','parentName':_0x36b9e0[_0x502e4e(0x1c1)],'targetDir':cwd,'configRoot':_0x36b9e0['configDir'],'isScoped':_0x4664b9[_0x502e4e(0x1b1)],'scopedFolderPath':_0x4664b9[_0x502e4e(0x1ba)]};}if(_0x4eb914){const _0x53f86b=sanitizeFileName(_0x4eb914),_0xef2c9=getSegmentRootDir(_0x53f86b,cwd);return{'type':'context','parentName':_0x4eb914,'targetDir':_0xef2c9,'configRoot':_0xef2c9,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x502e4e(0x1bd),'errorCode':_0x502e4e(0x1b8),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x502e4e(0x1a2)};}
@@ -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_0x4a227b=a161_0x5894;(function(_0x155291,_0x153d90){const _0x2fbc1f=a161_0x5894,_0x3292c0=_0x155291();while(!![]){try{const _0x5bb40d=-parseInt(_0x2fbc1f(0x1cd))/0x1+-parseInt(_0x2fbc1f(0x1d5))/0x2+-parseInt(_0x2fbc1f(0x1cc))/0x3*(parseInt(_0x2fbc1f(0x1de))/0x4)+-parseInt(_0x2fbc1f(0x1d3))/0x5+-parseInt(_0x2fbc1f(0x1da))/0x6+parseInt(_0x2fbc1f(0x1cb))/0x7+parseInt(_0x2fbc1f(0x1d8))/0x8;if(_0x5bb40d===_0x153d90)break;else _0x3292c0['push'](_0x3292c0['shift']());}catch(_0x68e29){_0x3292c0['push'](_0x3292c0['shift']());}}}(a161_0x3ef2,0xba853));import{existsSync,readFileSync}from'fs';import a161_0x2821ab from'path';function a161_0x3ef2(){const _0x2a5fb0=['107517KSDbYL','343432yaPyoM','resolve','cwd','parent_segment','segments','stringify','6614225bEjyuM','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','513736uDTtvr','startsWith','string','23229024PbsleU','dirname','1983762YvwjRW','relative','parse','object','24RVkwDT','utf-8','join','root','engage_workspace','tdx.json','replace','2304155plLudz'];a161_0x3ef2=function(){return _0x2a5fb0;};return a161_0x3ef2();}const TDX_CONFIG_FILE=a161_0x4a227b(0x1c9),SEGMENTS_DIR=a161_0x4a227b(0x1d1);export function findTdxConfigPath(_0x2226fe=process[a161_0x4a227b(0x1cf)]()){const _0x4bcac7=a161_0x4a227b;let _0x228793=a161_0x2821ab[_0x4bcac7(0x1ce)](_0x2226fe);const _0x19296c=a161_0x2821ab[_0x4bcac7(0x1dc)](_0x228793)[_0x4bcac7(0x1c7)];while(_0x228793!==_0x19296c){const _0x4369d5=a161_0x2821ab[_0x4bcac7(0x1c6)](_0x228793,TDX_CONFIG_FILE);if(existsSync(_0x4369d5))return _0x4369d5;_0x228793=a161_0x2821ab[_0x4bcac7(0x1d9)](_0x228793);}return null;}export function loadTdxConfig(_0x35c5c0){const _0x2d3977=a161_0x4a227b,_0x243740=readFileSync(_0x35c5c0,_0x2d3977(0x1df));let _0x2fc884;try{_0x2fc884=JSON[_0x2d3977(0x1dc)](_0x243740);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x35c5c0);}if(!_0x2fc884||typeof _0x2fc884!==_0x2d3977(0x1dd))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x304550=_0x2fc884,_0x316bc2=_0x304550[_0x2d3977(0x1d0)]&&typeof _0x304550[_0x2d3977(0x1d0)]===_0x2d3977(0x1d7),_0xcb8298=_0x304550['engage_workspace']&&typeof _0x304550['engage_workspace']==='string';if(!_0x316bc2&&!_0xcb8298)throw new Error(_0x2d3977(0x1d4));const _0x10ac61={};return _0x316bc2&&(_0x10ac61['parent_segment']=_0x304550[_0x2d3977(0x1d0)]),_0xcb8298&&(_0x10ac61[_0x2d3977(0x1c8)]=_0x304550[_0x2d3977(0x1c8)]),_0x10ac61;}export function findTdxConfig(_0x4d4b64=process[a161_0x4a227b(0x1cf)]()){const _0x5680d0=a161_0x4a227b,_0x131091=findTdxConfigPath(_0x4d4b64);if(!_0x131091)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x3b7f30=loadTdxConfig(_0x131091),_0x47123a=a161_0x2821ab[_0x5680d0(0x1d9)](_0x131091);return{'config':_0x3b7f30,'configPath':_0x131091,'configDir':_0x47123a};}export function tryFindTdxConfig(_0x22109a){try{return findTdxConfig(_0x22109a);}catch{return null;}}export function getSegmentRootDir(_0x1cb78a,_0x109df0=process[a161_0x4a227b(0x1cf)]()){const _0x1ca729=a161_0x4a227b;return a161_0x2821ab[_0x1ca729(0x1c6)](_0x109df0,SEGMENTS_DIR,_0x1cb78a);}function a161_0x5894(_0x521888,_0x2587e8){_0x521888=_0x521888-0x1c6;const _0x3ef2c3=a161_0x3ef2();let _0x589469=_0x3ef2c3[_0x521888];return _0x589469;}export function getTdxConfigPath(_0x25125d,_0x508e81=process['cwd']()){const _0x3948af=a161_0x4a227b;return a161_0x2821ab[_0x3948af(0x1c6)](getSegmentRootDir(_0x25125d,_0x508e81),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x30940f,_0x2f87c8){const _0x444f2a=a161_0x4a227b,_0x574707=a161_0x2821ab[_0x444f2a(0x1ce)](_0x30940f),_0x4269b9=a161_0x2821ab[_0x444f2a(0x1db)](_0x2f87c8,_0x574707);if(_0x4269b9[_0x444f2a(0x1d6)]('..'))return'';return _0x4269b9;}export function localPathToTdFolderPath(_0x394e66){const _0x493434=a161_0x4a227b,_0x4eadd3=a161_0x2821ab[_0x493434(0x1d9)](_0x394e66);if(_0x4eadd3==='.'||_0x4eadd3==='')return'';return _0x4eadd3[_0x493434(0x1ca)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x579381,_0xe8c259){const _0x1e4940=a161_0x4a227b;if(!_0x579381)return _0xe8c259;return a161_0x2821ab[_0x1e4940(0x1c6)](_0xe8c259,_0x579381);}export function createTdxConfigContent(_0x4e1aca){const _0x3d06d4=a161_0x4a227b,_0x46b60c={'parent_segment':_0x4e1aca};return JSON[_0x3d06d4(0x1d2)](_0x46b60c,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x412b6a){const _0x40a5fe={'engage_workspace':_0x412b6a};return JSON['stringify'](_0x40a5fe,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_0x2dc9c4=a162_0x40ed;(function(_0x1d3fec,_0x5c4afb){const _0x28793a=a162_0x40ed,_0x2cfedd=_0x1d3fec();while(!![]){try{const _0x18dfca=parseInt(_0x28793a(0x7d))/0x1*(-parseInt(_0x28793a(0x9b))/0x2)+-parseInt(_0x28793a(0x9c))/0x3+parseInt(_0x28793a(0x91))/0x4*(parseInt(_0x28793a(0x78))/0x5)+parseInt(_0x28793a(0x89))/0x6*(-parseInt(_0x28793a(0x8b))/0x7)+parseInt(_0x28793a(0x92))/0x8*(parseInt(_0x28793a(0x74))/0x9)+parseInt(_0x28793a(0x7b))/0xa*(parseInt(_0x28793a(0x9a))/0xb)+parseInt(_0x28793a(0x81))/0xc*(parseInt(_0x28793a(0x75))/0xd);if(_0x18dfca===_0x5c4afb)break;else _0x2cfedd['push'](_0x2cfedd['shift']());}catch(_0x525c01){_0x2cfedd['push'](_0x2cfedd['shift']());}}}(a162_0x49c1,0x8ff89));import{z}from'zod';export const ScheduleTypeSchema=z[a162_0x2dc9c4(0x73)]([a162_0x2dc9c4(0x8a),a162_0x2dc9c4(0x8e),a162_0x2dc9c4(0x96),a162_0x2dc9c4(0x8c),a162_0x2dc9c4(0x88),'cron','minutes_interval']);export const RepeatUnitSchema=z[a162_0x2dc9c4(0x73)](['minute',a162_0x2dc9c4(0x90),a162_0x2dc9c4(0x8f),'week','month','once',a162_0x2dc9c4(0x8a)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a162_0x2dc9c4(0x85)](),'repeat_frequency':z[a162_0x2dc9c4(0x7e)]()['optional'](),'repeat_sub_frequency':z['array'](z[a162_0x2dc9c4(0x7e)]())[a162_0x2dc9c4(0x85)](),'start_at':z[a162_0x2dc9c4(0x87)]()['nullable']()[a162_0x2dc9c4(0x85)](),'end_on':z['string']()[a162_0x2dc9c4(0x82)]()[a162_0x2dc9c4(0x85)](),'timezone':z[a162_0x2dc9c4(0x87)]()[a162_0x2dc9c4(0x85)]()});export const NotificationDefSchema=z[a162_0x2dc9c4(0x94)]({'notify_on':z[a162_0x2dc9c4(0x8d)](z[a162_0x2dc9c4(0x73)]([a162_0x2dc9c4(0x97),a162_0x2dc9c4(0x7a)]))[a162_0x2dc9c4(0x85)](),'email_recipients':z[a162_0x2dc9c4(0x8d)](z[a162_0x2dc9c4(0x87)]())[a162_0x2dc9c4(0x85)]()});export const ActivationColumnDefSchema=z[a162_0x2dc9c4(0x72)]([z[a162_0x2dc9c4(0x87)](),z['object']({'name':z[a162_0x2dc9c4(0x87)](),'type':z['string']()[a162_0x2dc9c4(0x85)](),'visibility':z[a162_0x2dc9c4(0x73)](['clear',a162_0x2dc9c4(0x98)])[a162_0x2dc9c4(0x85)]()})]);function a162_0x49c1(){const _0x4f1c1a=['boolean','object','cols','daily','onSuccess','masked','Top-N','4103cSUrPG','4MXynsz','1510773lwkCrp','union','enum','526770JgYZLh','8359mNqtmM','unknown','min','60205aLKmKo','desc','onFailure','25700ciHGXw','All','378892fSkOsV','number','Activation\x20name\x20is\x20required','asc','23784XYRGvd','nullable','clear','First','optional','Last','string','monthly','6aHWPBF','none','7517650uWAwAb','weekly','array','hourly','day','hour','16FsXKoH','88wJPHGO'];a162_0x49c1=function(){return _0x4f1c1a;};return a162_0x49c1();}function a162_0x40ed(_0x85bb94,_0x583e19){_0x85bb94=_0x85bb94-0x72;const _0x49c144=a162_0x49c1();let _0x40ed1f=_0x49c144[_0x85bb94];return _0x40ed1f;}export const ActivationBehaviorDefSchema=z[a162_0x2dc9c4(0x94)]({'columns':z['array'](z[a162_0x2dc9c4(0x94)]({'name':z[a162_0x2dc9c4(0x87)](),'type':z[a162_0x2dc9c4(0x87)]()[a162_0x2dc9c4(0x85)](),'visibility':z['enum']([a162_0x2dc9c4(0x83),a162_0x2dc9c4(0x98)])[a162_0x2dc9c4(0x85)]()}))[a162_0x2dc9c4(0x85)](),'behavior_table':z[a162_0x2dc9c4(0x87)]()['optional'](),'join_row':z['number']()[a162_0x2dc9c4(0x82)]()['optional'](),'join_strategy':z['enum']([a162_0x2dc9c4(0x7c),a162_0x2dc9c4(0x84),a162_0x2dc9c4(0x86),a162_0x2dc9c4(0x99)])[a162_0x2dc9c4(0x85)](),'formatting':z[a162_0x2dc9c4(0x73)](['rows',a162_0x2dc9c4(0x95)])[a162_0x2dc9c4(0x85)](),'order_by':z[a162_0x2dc9c4(0x8d)](z[a162_0x2dc9c4(0x94)]({'key':z[a162_0x2dc9c4(0x87)](),'order':z[a162_0x2dc9c4(0x73)]([a162_0x2dc9c4(0x80),a162_0x2dc9c4(0x79)])}))['optional']()});export const ActivationDefSchema=z[a162_0x2dc9c4(0x94)]({'name':z[a162_0x2dc9c4(0x87)]()[a162_0x2dc9c4(0x77)](0x1,a162_0x2dc9c4(0x7f)),'description':z[a162_0x2dc9c4(0x87)]()['optional'](),'connection':z[a162_0x2dc9c4(0x87)]()['min'](0x1,'Connection\x20name\x20is\x20required'),'all_columns':z['boolean']()[a162_0x2dc9c4(0x85)](),'columns':z['array'](ActivationColumnDefSchema)[a162_0x2dc9c4(0x85)](),'schedule':ScheduleDefSchema[a162_0x2dc9c4(0x85)](),'notification':NotificationDefSchema['optional'](),'connector_config':z['record'](z['string'](),z[a162_0x2dc9c4(0x76)]())['optional'](),'activation_template_id':z[a162_0x2dc9c4(0x87)]()['nullable']()[a162_0x2dc9c4(0x85)](),'behavior':ActivationBehaviorDefSchema['nullable']()['optional'](),'run_after_journey_refresh':z[a162_0x2dc9c4(0x93)]()['optional'](),'nested_workflow_project_name':z[a162_0x2dc9c4(0x87)]()[a162_0x2dc9c4(0x85)](),'nested_workflow_name':z['string']()['optional'](),'lock_enabled':z[a162_0x2dc9c4(0x93)]()[a162_0x2dc9c4(0x85)]()});
@@ -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_0xb588(){var _0x1c0486=['5412440ffVlvk','11WIfVfR','5143500tfqzOu','386627zFvuCl','4067560NewHWv','16dxMmnl','1746CetzAh','807OLlfet','13538TdxGcl','48376uaDJnT','1978030xrlzDg'];a163_0xb588=function(){return _0x1c0486;};return a163_0xb588();}(function(_0x1ed14c,_0x3451f3){var _0x28ea90=a163_0x26ae,_0xc9c1fc=_0x1ed14c();while(!![]){try{var _0x3c2a53=parseInt(_0x28ea90(0x13e))/0x1+parseInt(_0x28ea90(0x138))/0x2*(parseInt(_0x28ea90(0x137))/0x3)+-parseInt(_0x28ea90(0x135))/0x4*(parseInt(_0x28ea90(0x13a))/0x5)+-parseInt(_0x28ea90(0x13d))/0x6+parseInt(_0x28ea90(0x134))/0x7+parseInt(_0x28ea90(0x139))/0x8*(parseInt(_0x28ea90(0x136))/0x9)+-parseInt(_0x28ea90(0x13b))/0xa*(parseInt(_0x28ea90(0x13c))/0xb);if(_0x3c2a53===_0x3451f3)break;else _0xc9c1fc['push'](_0xc9c1fc['shift']());}catch(_0x1efe79){_0xc9c1fc['push'](_0xc9c1fc['shift']());}}}(a163_0xb588,0xef720));function a163_0x26ae(_0x204805,_0x4ca91a){_0x204805=_0x204805-0x134;var _0xb588ba=a163_0xb588();var _0x26ae60=_0xb588ba[_0x204805];return _0x26ae60;}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
+ function a164_0x42a2(){const _0x1d80d5=['filter','journey','reentry_always','enum','min','object','number','week','optional','array','decision_point','wait','17275520AARgLo','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','6273544iHCkWz','106916sWDJTg','2897574eaWBxE','9bOzvNW','lazy','record','simulation','length','stages','string','day','discriminatedUnion','end','jump','no_reentry','185vYuLxD','Journey\x20name\x20is\x20required','ab_test','7FwanlR','6865242JpeNqZ','refine','boolean','type','literal','449700gLhsBP','reentry_unless_goal_achieved','draft','1684048Tftrcq','activation'];a164_0x42a2=function(){return _0x1d80d5;};return a164_0x42a2();}const a164_0x4b46ed=a164_0x404d;(function(_0x24c594,_0x32e5c7){const _0x56cb1f=a164_0x404d,_0x3fdced=_0x24c594();while(!![]){try{const _0x62150d=-parseInt(_0x56cb1f(0x7e))/0x1+parseInt(_0x56cb1f(0x81))/0x2+-parseInt(_0x56cb1f(0x93))/0x3+-parseInt(_0x56cb1f(0x92))/0x4*(-parseInt(_0x56cb1f(0x75))/0x5)+parseInt(_0x56cb1f(0x79))/0x6*(parseInt(_0x56cb1f(0x78))/0x7)+parseInt(_0x56cb1f(0x91))/0x8+-parseInt(_0x56cb1f(0x94))/0x9*(parseInt(_0x56cb1f(0x8f))/0xa);if(_0x62150d===_0x32e5c7)break;else _0x3fdced['push'](_0x3fdced['shift']());}catch(_0x173778){_0x3fdced['push'](_0x3fdced['shift']());}}}(a164_0x42a2,0x9675f));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a164_0x4b46ed(0x86)]([a164_0x4b46ed(0x80),a164_0x4b46ed(0x6c),'launched']);export const ReentryModeTypeSchema=z[a164_0x4b46ed(0x86)]([a164_0x4b46ed(0x74),a164_0x4b46ed(0x7f),a164_0x4b46ed(0x85)]);function a164_0x404d(_0x27cdcb,_0x782e3c){_0x27cdcb=_0x27cdcb-0x6c;const _0x42a2eb=a164_0x42a2();let _0x404d81=_0x42a2eb[_0x27cdcb];return _0x404d81;}export const WaitUnitTypeSchema=z[a164_0x4b46ed(0x86)]([a164_0x4b46ed(0x70),a164_0x4b46ed(0x8a)]);export const StepTypeValueSchema=z[a164_0x4b46ed(0x86)]([a164_0x4b46ed(0x8e),a164_0x4b46ed(0x82),a164_0x4b46ed(0x8d),a164_0x4b46ed(0x77),'merge','jump',a164_0x4b46ed(0x72)]);export const EmbeddedSegmentDefSchema=z[a164_0x4b46ed(0x88)]({'description':z['string']()[a164_0x4b46ed(0x8b)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a164_0x4b46ed(0x6f)](),'stage':z[a164_0x4b46ed(0x6f)](),'bundle_id':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)]()});export const CriteriaDefSchema=z[a164_0x4b46ed(0x88)]({'name':z[a164_0x4b46ed(0x6f)](),'description':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'segment':z[a164_0x4b46ed(0x6f)](),'target':JumpTargetDefSchema[a164_0x4b46ed(0x8b)]()});const WaitConditionTimeoutDefSchema=z[a164_0x4b46ed(0x88)]({'duration':z[a164_0x4b46ed(0x89)](),'unit':WaitUnitTypeSchema,'next':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)]()}),WaitConditionDefSchema=z[a164_0x4b46ed(0x88)]({'segment':z['string'](),'next':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'timeout':WaitConditionTimeoutDefSchema[a164_0x4b46ed(0x8b)]()}),WaitStepParamsDefSchema=z[a164_0x4b46ed(0x88)]({'duration':z['number']()[a164_0x4b46ed(0x8b)](),'unit':WaitUnitTypeSchema[a164_0x4b46ed(0x8b)](),'wait_until':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'condition':WaitConditionDefSchema[a164_0x4b46ed(0x8b)](),'days_of_week':z[a164_0x4b46ed(0x8c)](z[a164_0x4b46ed(0x6f)]())[a164_0x4b46ed(0x8b)]()}),StepBaseFields={'name':z['string'](),'uuid':z['string']()[a164_0x4b46ed(0x8b)](),'next':z['string']()[a164_0x4b46ed(0x8b)]()},WaitStepDefSchema=z[a164_0x4b46ed(0x88)]({...StepBaseFields,'type':z['literal']('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a164_0x4b46ed(0x88)]({'activation':z[a164_0x4b46ed(0x6f)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a164_0x4b46ed(0x7d)](a164_0x4b46ed(0x82)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a164_0x4b46ed(0x6f)](),'segment':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'segment_id':z[a164_0x4b46ed(0x6f)]()['optional'](),'excluded':z[a164_0x4b46ed(0x7b)]()[a164_0x4b46ed(0x8b)](),'next':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)]()}),DecisionPointStepParamsDefSchema=z[a164_0x4b46ed(0x88)]({'branches':z[a164_0x4b46ed(0x8c)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a164_0x4b46ed(0x88)]({...StepBaseFields,'type':z['literal'](a164_0x4b46ed(0x8d)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a164_0x4b46ed(0x88)]({'id':z[a164_0x4b46ed(0x6f)]()['optional'](),'name':z[a164_0x4b46ed(0x6f)](),'percentage':z[a164_0x4b46ed(0x89)](),'next':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a164_0x4b46ed(0x8c)](AbTestVariantDefSchema),'unique_id':z['string']()['optional'](),'customized_split':z[a164_0x4b46ed(0x7b)]()[a164_0x4b46ed(0x8b)]()}),AbTestStepDefSchema=z[a164_0x4b46ed(0x88)]({...StepBaseFields,'type':z[a164_0x4b46ed(0x7d)]('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a164_0x4b46ed(0x7d)]('merge')}),JumpStepParamsDefSchema=z[a164_0x4b46ed(0x88)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a164_0x4b46ed(0x88)]({...StepBaseFields,'type':z[a164_0x4b46ed(0x7d)](a164_0x4b46ed(0x73)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a164_0x4b46ed(0x88)]({...StepBaseFields,'type':z[a164_0x4b46ed(0x7d)](a164_0x4b46ed(0x72))})['passthrough']();export const StepDefSchema=z[a164_0x4b46ed(0x71)](a164_0x4b46ed(0x7c),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a164_0x4b46ed(0x88)]({'name':z['string'](),'description':z['string']()[a164_0x4b46ed(0x8b)](),'id':z['string']()[a164_0x4b46ed(0x8b)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a164_0x4b46ed(0x8c)](CriteriaDefSchema)[a164_0x4b46ed(0x8b)](),'milestone':CriteriaDefSchema[a164_0x4b46ed(0x8b)](),'root_step':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'steps':z[a164_0x4b46ed(0x8c)](StepDefSchema)[a164_0x4b46ed(0x8b)]()});export const JourneyEntryDefSchema=z[a164_0x4b46ed(0x88)]({'name':z[a164_0x4b46ed(0x6f)]()['optional'](),'version':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'state':JourneyStateTypeSchema[a164_0x4b46ed(0x8b)](),'latest':z[a164_0x4b46ed(0x7b)]()[a164_0x4b46ed(0x8b)](),'stages':z['array'](StageDefSchema),'id':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'version_number':z[a164_0x4b46ed(0x89)]()[a164_0x4b46ed(0x8b)](),'goal':CriteriaDefSchema[a164_0x4b46ed(0x8b)](),'reentry':ReentryModeTypeSchema[a164_0x4b46ed(0x8b)]()});export const JourneyDefSchema=z[a164_0x4b46ed(0x95)](()=>z['object']({'type':z[a164_0x4b46ed(0x7d)](a164_0x4b46ed(0x84)),'name':z['string']()[a164_0x4b46ed(0x87)](0x1,a164_0x4b46ed(0x76)),'description':z['string']()[a164_0x4b46ed(0x8b)](),'bundle_id':z['string']()[a164_0x4b46ed(0x8b)](),'bundle_name':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'folder_id':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'reentry':ReentryModeTypeSchema[a164_0x4b46ed(0x8b)](),'allow_reentry':z[a164_0x4b46ed(0x7b)]()[a164_0x4b46ed(0x8b)](),'goal':CriteriaDefSchema[a164_0x4b46ed(0x8b)](),'id':z[a164_0x4b46ed(0x6f)]()[a164_0x4b46ed(0x8b)](),'version':z['string']()['optional'](),'version_number':z['number']()[a164_0x4b46ed(0x8b)](),'stages':z[a164_0x4b46ed(0x8c)](StageDefSchema)['optional'](),'versions':z['array'](JourneyEntryDefSchema)['optional'](),'journeys':z[a164_0x4b46ed(0x8c)](JourneyEntryDefSchema)[a164_0x4b46ed(0x8b)](),'segments':z[a164_0x4b46ed(0x96)](z[a164_0x4b46ed(0x6f)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a164_0x4b46ed(0x96)](z['string'](),ActivationDefSchema)['optional']()})[a164_0x4b46ed(0x7a)](_0x3ea15c=>{const _0x30c83c=a164_0x4b46ed,_0x509461=[_0x3ea15c['journeys'],_0x3ea15c[_0x30c83c(0x6e)],_0x3ea15c['versions']][_0x30c83c(0x83)](_0x2a55b1=>Array['isArray'](_0x2a55b1)&&_0x2a55b1[_0x30c83c(0x6d)]>0x0)[_0x30c83c(0x6d)];return _0x509461===0x1;},{'message':a164_0x4b46ed(0x90)}));const _syncCheck1=!![],_syncCheck2=!![];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(_0x5cbfe8,_0x2cd003){var _0x14f266=a166_0x3735,_0x420833=_0x5cbfe8();while(!![]){try{var _0xd8749e=-parseInt(_0x14f266(0x19e))/0x1+-parseInt(_0x14f266(0x1a4))/0x2+-parseInt(_0x14f266(0x1a0))/0x3+parseInt(_0x14f266(0x19d))/0x4*(-parseInt(_0x14f266(0x19f))/0x5)+-parseInt(_0x14f266(0x1a1))/0x6+-parseInt(_0x14f266(0x1a5))/0x7*(-parseInt(_0x14f266(0x1a2))/0x8)+parseInt(_0x14f266(0x1a3))/0x9;if(_0xd8749e===_0x2cd003)break;else _0x420833['push'](_0x420833['shift']());}catch(_0x42d611){_0x420833['push'](_0x420833['shift']());}}}(a166_0xbf27,0x2eff2));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a166_0x3735(_0x44dd09,_0x3d7248){_0x44dd09=_0x44dd09-0x19d;var _0xbf27f6=a166_0xbf27();var _0x3735a2=_0xbf27f6[_0x44dd09];return _0x3735a2;}function a166_0xbf27(){var _0xccb4bd=['1220552IHWpXP','7604577DSncKk','347922IFDtHt','7Jthjeo','28AsHwKB','362629grhWrL','98570xzktoP','213813bzeAom','354990gTkCQK'];a166_0xbf27=function(){return _0xccb4bd;};return a166_0xbf27();}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_0x32bf94=a167_0x412b;(function(_0x2643a2,_0x51d6a0){const _0xdacdbe=a167_0x412b,_0x341f97=_0x2643a2();while(!![]){try{const _0x111c47=parseInt(_0xdacdbe(0x153))/0x1*(-parseInt(_0xdacdbe(0x134))/0x2)+parseInt(_0xdacdbe(0x146))/0x3+-parseInt(_0xdacdbe(0x147))/0x4*(-parseInt(_0xdacdbe(0x15f))/0x5)+-parseInt(_0xdacdbe(0x159))/0x6*(-parseInt(_0xdacdbe(0x142))/0x7)+parseInt(_0xdacdbe(0x12f))/0x8+parseInt(_0xdacdbe(0x143))/0x9+-parseInt(_0xdacdbe(0x161))/0xa*(-parseInt(_0xdacdbe(0x148))/0xb);if(_0x111c47===_0x51d6a0)break;else _0x341f97['push'](_0x341f97['shift']());}catch(_0xb993ad){_0x341f97['push'](_0x341f97['shift']());}}}(a167_0x4f32,0xc69e2));import{z}from'zod';export const OperatorTypeSchema=z[a167_0x32bf94(0x16f)]([a167_0x32bf94(0x132),a167_0x32bf94(0x171),a167_0x32bf94(0x176),a167_0x32bf94(0x14b),a167_0x32bf94(0x13f),'In',a167_0x32bf94(0x167),a167_0x32bf94(0x126),'IsNull',a167_0x32bf94(0x162),'TimeWithinNext',a167_0x32bf94(0x15a),a167_0x32bf94(0x151),'EndWith',a167_0x32bf94(0x14c)]);function a167_0x412b(_0x2226f7,_0x2365e3){_0x2226f7=_0x2226f7-0x124;const _0x4f3281=a167_0x4f32();let _0x412bd9=_0x4f3281[_0x2226f7];return _0x412bd9;}export const TimeUnitSchema=z[a167_0x32bf94(0x16f)]([a167_0x32bf94(0x129),a167_0x32bf94(0x124),a167_0x32bf94(0x160),a167_0x32bf94(0x15d),a167_0x32bf94(0x13d),a167_0x32bf94(0x136),'year']);export const AggregationTypeSchema=z[a167_0x32bf94(0x16f)]([a167_0x32bf94(0x14f),a167_0x32bf94(0x16e),a167_0x32bf94(0x131),a167_0x32bf94(0x163),a167_0x32bf94(0x154),a167_0x32bf94(0x144),a167_0x32bf94(0x177),a167_0x32bf94(0x15e)]);function a167_0x4f32(){const _0x4c80bb=['Last','5dlAgzY','hour','1483010mdWnYE','TimeWithinPast','Min','boolean','TimeWithinNext','from','Between','Behavior','timestamp','MISSING_BETWEEN_BOUNDS','Segment\x20reference\x20must\x20not\x20be\x20empty','segment','min','Sum','enum','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Greater','exclude','literal','funnel_stage','Segment\x20name\x20is\x20required','Less','First','minute','EndWith','Regexp','any','column','second','realtime','custom','all','Operator\x20\x27','\x27\x20requires\x20a\x20value','1616208sZjnIe','\x27\x20requires\x20a\x20time\x20unit','Average','Equal','addIssue','2658116ALwUGA','unit','month','has','duration','object','value','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','number','week','And','LessEqual','union','Composite','3010lDOliS','9862443owfSRb','CountDistinct','type','1449387neytFZ','328652FzVaWm','11RXoyfY','Column','TimeRange\x20operator\x20requires\x20\x27from\x27','GreaterEqual','TimeRange','superRefine','lazy','Count','batch','StartWith','optional','1MRBQTb','Max','TimeRange\x20operator\x20requires\x20\x27duration\x27','operator','array','Value','1830ugSwmc','Contain','string','record','day'];a167_0x4f32=function(){return _0x4c80bb;};return a167_0x4f32();}const TemporalValueSchema=z[a167_0x32bf94(0x140)]([z[a167_0x32bf94(0x139)]({'timestamp':z['string']()}),z[a167_0x32bf94(0x139)]({'last':z[a167_0x32bf94(0x140)]([z['number'](),z[a167_0x32bf94(0x15c)](z[a167_0x32bf94(0x15b)](),z[a167_0x32bf94(0x13c)]())]),'unit':z[a167_0x32bf94(0x15b)]()})]),OperatorValueSchema=z[a167_0x32bf94(0x140)]([z[a167_0x32bf94(0x15b)](),z[a167_0x32bf94(0x13c)](),z['boolean'](),TemporalValueSchema,z[a167_0x32bf94(0x157)](z['union']([z[a167_0x32bf94(0x15b)](),z[a167_0x32bf94(0x13c)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a167_0x32bf94(0x132),a167_0x32bf94(0x171),a167_0x32bf94(0x14b),a167_0x32bf94(0x176),a167_0x32bf94(0x13f),'In',a167_0x32bf94(0x15a),'StartWith',a167_0x32bf94(0x125),'Regexp','TimeWithinPast','TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a167_0x32bf94(0x165)]);export const OperatorDefSchema=z[a167_0x32bf94(0x139)]({'type':OperatorTypeSchema,'not':z[a167_0x32bf94(0x164)]()[a167_0x32bf94(0x152)](),'value':OperatorValueSchema['optional'](),'min':z['union']([z['number'](),z['string'](),TemporalValueSchema])[a167_0x32bf94(0x152)](),'max':z[a167_0x32bf94(0x140)]([z[a167_0x32bf94(0x13c)](),z[a167_0x32bf94(0x15b)](),TemporalValueSchema])[a167_0x32bf94(0x152)](),'unit':TimeUnitSchema[a167_0x32bf94(0x152)](),'duration':z[a167_0x32bf94(0x139)]({'day':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)](),'week':z[a167_0x32bf94(0x13c)]()['optional'](),'month':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)](),'year':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)](),'hour':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)](),'minute':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)](),'second':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)]()})['optional'](),'from':z['object']({'last':z['union']([z[a167_0x32bf94(0x13c)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z['boolean']()[a167_0x32bf94(0x152)]()})['superRefine']((_0x18b983,_0x5245e4)=>{const _0x286989=a167_0x32bf94;OPERATORS_REQUIRING_VALUE[_0x286989(0x137)](_0x18b983[_0x286989(0x145)])&&(_0x18b983[_0x286989(0x13a)]===undefined||_0x18b983[_0x286989(0x13a)]===null)&&_0x5245e4[_0x286989(0x133)]({'code':_0x286989(0x12b),'message':_0x286989(0x12d)+_0x18b983['type']+_0x286989(0x12e),'path':[_0x286989(0x13a)]}),_0x18b983[_0x286989(0x145)]===_0x286989(0x167)&&_0x18b983[_0x286989(0x16d)]===undefined&&_0x18b983['max']===undefined&&_0x5245e4[_0x286989(0x133)]({'code':_0x286989(0x12b),'message':_0x286989(0x170),'params':{'validationCode':_0x286989(0x16a)}}),OPERATORS_REQUIRING_UNIT[_0x286989(0x137)](_0x18b983[_0x286989(0x145)])&&_0x18b983['value']!==undefined&&!_0x18b983[_0x286989(0x135)]&&_0x5245e4['addIssue']({'code':'custom','message':_0x286989(0x12d)+_0x18b983[_0x286989(0x145)]+_0x286989(0x130),'path':['unit'],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x18b983[_0x286989(0x145)]===_0x286989(0x14c)&&(!_0x18b983[_0x286989(0x138)]&&_0x5245e4['addIssue']({'code':_0x286989(0x12b),'message':_0x286989(0x155),'path':['duration']}),!_0x18b983[_0x286989(0x166)]&&_0x5245e4[_0x286989(0x133)]({'code':_0x286989(0x12b),'message':_0x286989(0x14a),'path':['from']}));});export const ArrayMatchingSchema=z[a167_0x32bf94(0x140)]([z[a167_0x32bf94(0x173)](a167_0x32bf94(0x127)),z[a167_0x32bf94(0x173)](a167_0x32bf94(0x12c)),z[a167_0x32bf94(0x139)]({'atLeast':z['number']()}),z[a167_0x32bf94(0x139)]({'atMost':z['number']()}),z[a167_0x32bf94(0x139)]({'exactly':z['number']()})]);export const AggregationDefSchema=z['discriminatedUnion'](a167_0x32bf94(0x145),[z[a167_0x32bf94(0x139)]({'type':z[a167_0x32bf94(0x16f)]([a167_0x32bf94(0x16e),a167_0x32bf94(0x163),a167_0x32bf94(0x154),'Average']),'column':z[a167_0x32bf94(0x15b)](),'groupingColumns':z[a167_0x32bf94(0x157)](z[a167_0x32bf94(0x15b)]())[a167_0x32bf94(0x152)]()}),z[a167_0x32bf94(0x139)]({'type':z[a167_0x32bf94(0x173)](a167_0x32bf94(0x14f)),'groupingColumns':z[a167_0x32bf94(0x157)](z[a167_0x32bf94(0x15b)]())[a167_0x32bf94(0x152)]()}),z[a167_0x32bf94(0x139)]({'type':z[a167_0x32bf94(0x173)](a167_0x32bf94(0x144)),'columns':z['array'](z[a167_0x32bf94(0x15b)]())}),z['object']({'type':z[a167_0x32bf94(0x16f)](['First',a167_0x32bf94(0x15e)]),'column':z[a167_0x32bf94(0x15b)](),'orderColumn':z['string'](),'groupingColumns':z[a167_0x32bf94(0x157)](z[a167_0x32bf94(0x15b)]())[a167_0x32bf94(0x152)]()})]);export const TimeWindowDefSchema=z[a167_0x32bf94(0x139)]({'duration':z[a167_0x32bf94(0x13c)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a167_0x32bf94(0x162),a167_0x32bf94(0x165),a167_0x32bf94(0x14c)]);export const FilterColumnConditionDefSchema=z[a167_0x32bf94(0x139)]({'type':z[a167_0x32bf94(0x173)]('Column'),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x32bf94(0x152)]()})[a167_0x32bf94(0x14d)]((_0x450213,_0x3b1025)=>{const _0x167c34=a167_0x32bf94,_0x33e23a=_0x450213[_0x167c34(0x156)][_0x167c34(0x145)];_0x450213[_0x167c34(0x128)]===_0x167c34(0x169)?!TIMESTAMP_OPERATORS[_0x167c34(0x137)](_0x33e23a)&&_0x3b1025[_0x167c34(0x133)]({'code':_0x167c34(0x12b),'message':_0x167c34(0x13b)+_0x33e23a+'\x27)','path':[_0x167c34(0x156),_0x167c34(0x145)]}):TIMESTAMP_OPERATORS[_0x167c34(0x137)](_0x33e23a)&&_0x3b1025[_0x167c34(0x133)]({'code':'custom','message':_0x167c34(0x12d)+_0x33e23a+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x167c34(0x156),_0x167c34(0x145)]});});export const FilterRuleDefSchema=z[a167_0x32bf94(0x139)]({'type':z[a167_0x32bf94(0x173)]('And'),'conditions':z[a167_0x32bf94(0x157)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z['lazy'](()=>z[a167_0x32bf94(0x139)]({'type':z['literal'](a167_0x32bf94(0x158)),'attribute':z[a167_0x32bf94(0x15b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x32bf94(0x152)](),'exclude':z['boolean']()[a167_0x32bf94(0x152)](),'aggregation':AggregationDefSchema[a167_0x32bf94(0x152)](),'source':z['string']()[a167_0x32bf94(0x152)](),'filter':FilterRuleDefSchema[a167_0x32bf94(0x152)](),'limit':z[a167_0x32bf94(0x13c)]()[a167_0x32bf94(0x152)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z['object']({'type':z[a167_0x32bf94(0x173)](a167_0x32bf94(0x168)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a167_0x32bf94(0x152)](),'exclude':z[a167_0x32bf94(0x164)]()[a167_0x32bf94(0x152)](),'aggregation':AggregationDefSchema[a167_0x32bf94(0x152)](),'source':z[a167_0x32bf94(0x15b)]()[a167_0x32bf94(0x152)](),'filter':FilterRuleDefSchema[a167_0x32bf94(0x152)](),'timeWindow':TimeWindowDefSchema[a167_0x32bf94(0x152)](),'limit':z[a167_0x32bf94(0x13c)]()['optional']()}));export const ColumnConditionDefSchema=z[a167_0x32bf94(0x139)]({'type':z['literal'](a167_0x32bf94(0x149)),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z[a167_0x32bf94(0x16f)](['And','Or',a167_0x32bf94(0x141)]),'conditions':z[a167_0x32bf94(0x157)](ConditionDefSchema),'description':z[a167_0x32bf94(0x15b)]()['optional'](),'expr':z[a167_0x32bf94(0x15b)]()[a167_0x32bf94(0x152)]()}));export const SegmentRefConditionDefSchema=z[a167_0x32bf94(0x139)]({'type':z[a167_0x32bf94(0x16f)](['include',a167_0x32bf94(0x172)]),'segment':z['string']()[a167_0x32bf94(0x16d)](0x1,a167_0x32bf94(0x16b))});export const ConditionDefSchema=z[a167_0x32bf94(0x14e)](()=>z[a167_0x32bf94(0x140)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a167_0x32bf94(0x14e)](()=>z[a167_0x32bf94(0x139)]({'type':z['enum']([a167_0x32bf94(0x13e),'Or',a167_0x32bf94(0x141)]),'conditions':z[a167_0x32bf94(0x157)](ConditionDefSchema),'description':z[a167_0x32bf94(0x15b)]()[a167_0x32bf94(0x152)](),'expr':z[a167_0x32bf94(0x15b)]()[a167_0x32bf94(0x152)]()}));export const SegmentDefSchema=z[a167_0x32bf94(0x139)]({'type':z['literal'](a167_0x32bf94(0x16c))[a167_0x32bf94(0x152)](),'name':z[a167_0x32bf94(0x15b)]()[a167_0x32bf94(0x16d)](0x1,a167_0x32bf94(0x175)),'description':z[a167_0x32bf94(0x15b)]()[a167_0x32bf94(0x152)](),'folder':z[a167_0x32bf94(0x15b)]()['optional'](),'rule':RuleDefSchema[a167_0x32bf94(0x152)](),'kind':z['enum']([a167_0x32bf94(0x150),a167_0x32bf94(0x12a),a167_0x32bf94(0x174)])[a167_0x32bf94(0x152)](),'visible':z[a167_0x32bf94(0x164)]()['optional'](),'activations':z[a167_0x32bf94(0x157)](z[a167_0x32bf94(0x127)]())[a167_0x32bf94(0x152)]()});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_0x3e7165=a168_0x504a;(function(_0xa0989,_0x35dc94){const _0x3f49cf=a168_0x504a,_0x5eaab3=_0xa0989();while(!![]){try{const _0x22bc5f=parseInt(_0x3f49cf(0x197))/0x1*(parseInt(_0x3f49cf(0x198))/0x2)+-parseInt(_0x3f49cf(0x193))/0x3+parseInt(_0x3f49cf(0x18d))/0x4+-parseInt(_0x3f49cf(0x1a7))/0x5+parseInt(_0x3f49cf(0x19a))/0x6*(parseInt(_0x3f49cf(0x19b))/0x7)+parseInt(_0x3f49cf(0x19e))/0x8*(-parseInt(_0x3f49cf(0x199))/0x9)+-parseInt(_0x3f49cf(0x19f))/0xa*(parseInt(_0x3f49cf(0x1a1))/0xb);if(_0x22bc5f===_0x35dc94)break;else _0x5eaab3['push'](_0x5eaab3['shift']());}catch(_0x188dba){_0x5eaab3['push'](_0x5eaab3['shift']());}}}(a168_0x3cd2,0xe3e58));import{readFileSync}from'fs';import*as a168_0xfa576c from'path';function a168_0x3cd2(){const _0x5e2c21=['journey','not\x20a\x20','template','2763505ewxQxA','message','error','filterType','valid','utf-8','YAML\x20parse\x20error:\x20','length','5795372zzbOtU','map','push','campaign','warnings','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','94554yqgrdM','object','has','campaign_type','43RcdNFa','7502sOnjby','441558YXWlFy','78eBKSOw','989310WhfaqU','parseDocument','skipped','120vxMKIB','11938130kOBhMv','result','11jCBtbn','toJSON','type'];a168_0x3cd2=function(){return _0x5e2c21;};return a168_0x3cd2();}import*as a168_0x4b49a8 from'yaml';function a168_0x504a(_0x4638cd,_0x471015){_0x4638cd=_0x4638cd-0x18b;const _0x3cd2ba=a168_0x3cd2();let _0x504a37=_0x3cd2ba[_0x4638cd];return _0x504a37;}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(['email',a168_0x3e7165(0x18f)]);export function isJourneyDef(_0x335e63){const _0x3db138=a168_0x3e7165;return typeof _0x335e63===_0x3db138(0x194)&&_0x335e63!==null&&_0x3db138(0x1a3)in _0x335e63&&_0x335e63[_0x3db138(0x1a3)]==='journey';}export function isCampaignDef(_0x24b026){const _0x239e44=a168_0x3e7165;if(typeof _0x24b026!==_0x239e44(0x194)||_0x24b026===null)return![];const _0x5c57af=_0x24b026,_0x1ae96d=VALID_CAMPAIGN_TYPES[_0x239e44(0x195)](_0x5c57af[_0x239e44(0x196)]);if(_0x5c57af[_0x239e44(0x1a3)]===_0x239e44(0x190)&&_0x1ae96d)return!![];if(_0x1ae96d&&!_0x5c57af['type'])return!![];return![];}export function isTemplateDef(_0x59ac7a){const _0x15300c=a168_0x3e7165;return typeof _0x59ac7a===_0x15300c(0x194)&&_0x59ac7a!==null&&_0x15300c(0x1a3)in _0x59ac7a&&_0x59ac7a[_0x15300c(0x1a3)]==='template';}export function isValidationResult(_0x41f069){const _0x4413db=a168_0x3e7165;return!(_0x4413db(0x19d)in _0x41f069);}export function createParseErrorResult(_0x418772,_0x376d92,_0x55718f,_0xf253e3,_0x1e4391='segment'){const _0x30e975=a168_0x3e7165;return{'filePath':_0x418772,'relativePath':_0x376d92,'source':_0x55718f,'result':{'valid':![],'errors':[{'level':_0x30e975(0x1a9),'path':'','code':'YAML_PARSE_ERROR','message':_0xf253e3}],'warnings':[]},'fileType':_0x1e4391};}export function validateYamlFile(_0x16791c,_0xbe1c38,_0xd8b1b={}){const _0x2f6245=a168_0x3e7165,_0x3a10d5=a168_0xfa576c['relative'](_0xbe1c38,_0x16791c)||a168_0xfa576c['basename'](_0x16791c);try{const _0x56f09e=readFileSync(_0x16791c,_0x2f6245(0x1ac)),_0x2c0cc2=a168_0x4b49a8[_0x2f6245(0x19c)](_0x56f09e),_0x10411b=_0x2c0cc2[_0x2f6245(0x1a2)]();if(!_0x10411b)return createParseErrorResult(_0x16791c,_0x3a10d5,_0x56f09e,_0x2f6245(0x192));let _0x13de33;if(isJourneyDef(_0x10411b))_0x13de33=_0x2f6245(0x1a4);else{if(isCampaignDef(_0x10411b))_0x13de33=_0x2f6245(0x190);else isTemplateDef(_0x10411b)?_0x13de33='template':_0x13de33='segment';}if(_0xd8b1b[_0x2f6245(0x1aa)]&&_0x13de33!==_0xd8b1b[_0x2f6245(0x1aa)])return{'filePath':_0x16791c,'relativePath':_0x3a10d5,'skipped':!![],'reason':_0x2f6245(0x1a5)+_0xd8b1b[_0x2f6245(0x1aa)]};const _0x51aa13={'source':_0x56f09e,'document':_0x2c0cc2};let _0x4ebb26;if(_0x13de33===_0x2f6245(0x1a4))_0x4ebb26=validateJourneyDef(_0x10411b,_0x51aa13);else{if(_0x13de33==='campaign')_0x4ebb26=validateCampaignDef(_0x10411b,_0x51aa13);else _0x13de33===_0x2f6245(0x1a6)?_0x4ebb26=validateTemplateDef(_0x10411b,_0x51aa13):_0x4ebb26=validateSegmentDef(_0x10411b,_0x51aa13);}return{'filePath':_0x16791c,'relativePath':_0x3a10d5,'source':_0x56f09e,'result':_0x4ebb26,'fileType':_0x13de33};}catch(_0x12be7d){const _0x2dec0d=_0x12be7d instanceof Error?_0x12be7d[_0x2f6245(0x1a8)]:String(_0x12be7d);return createParseErrorResult(_0x16791c,_0x3a10d5,'',_0x2f6245(0x18b)+_0x2dec0d);}}export function validateYamlFiles(_0x59dd8e,_0x1c5316,_0x41436d={}){const _0x38f214=a168_0x3e7165;return _0x59dd8e[_0x38f214(0x18e)](_0x26e42b=>validateYamlFile(_0x26e42b,_0x1c5316,_0x41436d));}export function calculateSummary(_0x50933b){const _0x449dde=a168_0x3e7165;let _0x2cc049=0x0,_0x17b0a3=0x0,_0x4c16f1=0x0,_0x44e20e=0x0;for(const _0x2265f2 of _0x50933b){if(!isValidationResult(_0x2265f2)){_0x44e20e++;continue;}_0x2265f2['result'][_0x449dde(0x1ab)]?_0x2cc049++:_0x17b0a3++,_0x4c16f1+=_0x2265f2[_0x449dde(0x1a0)][_0x449dde(0x191)][_0x449dde(0x18c)];}return{'validCount':_0x2cc049,'invalidCount':_0x17b0a3,'warningCount':_0x4c16f1,'skippedCount':_0x44e20e,'hasErrors':_0x17b0a3>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(_0x38ab43,_0x173c58){const _0xd79568=a169_0x3c49,_0x9c0bcd=_0x38ab43();while(!![]){try{const _0x5284e8=-parseInt(_0xd79568(0xe3))/0x1+parseInt(_0xd79568(0xd2))/0x2+-parseInt(_0xd79568(0xf0))/0x3*(-parseInt(_0xd79568(0xf2))/0x4)+parseInt(_0xd79568(0xd3))/0x5*(-parseInt(_0xd79568(0xdc))/0x6)+parseInt(_0xd79568(0xdb))/0x7+parseInt(_0xd79568(0xec))/0x8+-parseInt(_0xd79568(0xdf))/0x9*(-parseInt(_0xd79568(0xf1))/0xa);if(_0x5284e8===_0x173c58)break;else _0x9c0bcd['push'](_0x9c0bcd['shift']());}catch(_0x44a9a1){_0x9c0bcd['push'](_0x9c0bcd['shift']());}}}(a169_0x5009,0x95acd));import*as a169_0x4d928b from'yaml';function a169_0x3c49(_0xdbd504,_0x339426){_0xdbd504=_0xdbd504-0xcb;const _0x500972=a169_0x5009();let _0x3c49c7=_0x500972[_0xdbd504];return _0x3c49c7;}import a169_0x354302 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x339795,_0x641216,_0x65cddd){const _0x29a2bb=a169_0x3c49;if(!_0x339795||!_0x641216)return undefined;try{let _0x493d6c=_0x339795['getIn'](_0x65cddd,!![]),_0x11bb37=[..._0x65cddd];while((!_0x493d6c||typeof _0x493d6c!=='object'||!(_0x29a2bb(0xe2)in _0x493d6c)||!_0x493d6c[_0x29a2bb(0xe2)])&&_0x11bb37[_0x29a2bb(0xea)]>0x0){_0x11bb37['pop'](),_0x493d6c=_0x11bb37['length']>0x0?_0x339795['getIn'](_0x11bb37,!![]):_0x339795[_0x29a2bb(0xe8)];}if(!_0x493d6c||typeof _0x493d6c!==_0x29a2bb(0xd7)||!(_0x29a2bb(0xe2)in _0x493d6c)||!_0x493d6c['range'])return undefined;const [_0x43c94b]=_0x493d6c['range'];return offsetToLocation(_0x641216,_0x43c94b);}catch{return undefined;}}export function offsetToLocation(_0x354d26,_0x1c2fd6){let _0x45abdb=0x1,_0x3d7c03=0x1;for(let _0x22858f=0x0;_0x22858f<_0x1c2fd6&&_0x22858f<_0x354d26['length'];_0x22858f++){_0x354d26[_0x22858f]==='\x0a'?(_0x45abdb++,_0x3d7c03=0x1):_0x3d7c03++;}return{'line':_0x45abdb,'column':_0x3d7c03,'offset':_0x1c2fd6};}export function pathToArray(_0x465f32){const _0x4a9893=a169_0x3c49;if(!_0x465f32)return[];return _0x465f32[_0x4a9893(0xf6)]('.')['flatMap'](_0x2b560c=>{const _0x21a6ae=_0x4a9893,_0x3eba52=_0x2b560c[_0x21a6ae(0xd4)](/^(\w+)\[(\d+)\]$/);if(_0x3eba52)return[_0x3eba52[0x1],parseInt(_0x3eba52[0x2],0xa)];return[_0x2b560c];});}export function formatZodPath(_0x45484f){const _0x165ebe=a169_0x3c49;let _0x4a111b='';for(const _0x534767 of _0x45484f){if(typeof _0x534767===_0x165ebe(0xee))_0x4a111b+='['+_0x534767+']';else{const _0x576736=String(_0x534767);_0x4a111b+=_0x4a111b?'.'+_0x576736:_0x576736;}}return _0x4a111b;}export function flattenZodIssues(_0x5a79e1){const _0x4051fd=a169_0x3c49,_0x3de40d=[];for(const _0x168e05 of _0x5a79e1){if(_0x168e05['code']===_0x4051fd(0xf8)&&'errors'in _0x168e05){const _0x4e012c=_0x168e05[_0x4051fd(0xf5)];let _0x153be6=_0x4e012c[0x0]||[];for(const _0x15e990 of _0x4e012c){_0x15e990[_0x4051fd(0xea)]<_0x153be6[_0x4051fd(0xea)]&&(_0x153be6=_0x15e990);}const _0x2c976e=_0x153be6[_0x4051fd(0xcf)](_0x4f9a0a=>({..._0x4f9a0a,'path':[..._0x168e05[_0x4051fd(0xeb)],..._0x4f9a0a['path']]}));_0x3de40d[_0x4051fd(0xf4)](...flattenZodIssues(_0x2c976e));}else _0x3de40d[_0x4051fd(0xf4)](_0x168e05);}return _0x3de40d;}function a169_0x5009(){const _0x32fd2a=['2848041CaomWe','7118652sEOWDb','join','column','90333xQzDIC','padStart','success','range','358325JfsXZV','warnings','safeParse','issues','repeat','contents','dim','length','path','3430984rwHSSN','location','number','parse','15RHxntN','410titzIL','513452PrzLIv','\x27:\x20','push','errors','split','min','invalid_union','cyan','toString','code','yellow','Invalid\x20YAML:\x20expected\x20an\x20object','\x20|\x20','map','data','red','537536Gtbxnv','5IYoKXo','match','YAML\x20validation\x20error\x20at\x20\x27','message','object','YAML\x20validation\x20error:\x20','level','error'];a169_0x5009=function(){return _0x32fd2a;};return a169_0x5009();}export function safeParseYaml(_0x915b21,_0x584f63){const _0x138bee=a169_0x3c49,_0x5b1a0a=a169_0x4d928b[_0x138bee(0xef)](_0x915b21);if(!_0x5b1a0a||typeof _0x5b1a0a!=='object')throw new Error(_0x138bee(0xcd));const _0x1c3fa0=_0x584f63[_0x138bee(0xe5)](_0x5b1a0a);if(!_0x1c3fa0[_0x138bee(0xe1)]){const _0x2619c3=_0x1c3fa0[_0x138bee(0xda)][_0x138bee(0xe6)][0x0],_0x39c05a=formatZodPath(_0x2619c3[_0x138bee(0xeb)]);throw new Error(_0x39c05a?_0x138bee(0xd5)+_0x39c05a+_0x138bee(0xf3)+_0x2619c3[_0x138bee(0xd6)]:_0x138bee(0xd8)+_0x2619c3[_0x138bee(0xd6)]);}return _0x1c3fa0[_0x138bee(0xd0)];}export function formatIssueWithContext(_0x3ccfff,_0x23f655,_0x13aaff){const _0x59efd1=a169_0x3c49,_0xc2e2dc=[],_0x483655=_0x3ccfff[_0x59efd1(0xd9)]===_0x59efd1(0xda),_0x3628e5=_0x483655?a169_0x354302['red']:a169_0x354302[_0x59efd1(0xcc)],_0x902942=_0x483655?a169_0x354302[_0x59efd1(0xd1)]:a169_0x354302[_0x59efd1(0xcc)],_0x2e0ddf=_0x13aaff?a169_0x354302[_0x59efd1(0xf9)](_0x13aaff+':'):'';if(_0x3ccfff[_0x59efd1(0xed)]){const _0x1061da=a169_0x354302[_0x59efd1(0xf9)](_0x3ccfff[_0x59efd1(0xed)]['line']+':'+_0x3ccfff['location'][_0x59efd1(0xde)]);_0xc2e2dc['push'](''+_0x2e0ddf+_0x1061da+':\x20'+_0x3628e5(_0x3ccfff['level'])+'\x20'+_0x902942('['+_0x3ccfff[_0x59efd1(0xcb)]+']'));}else _0xc2e2dc[_0x59efd1(0xf4)](''+_0x2e0ddf+a169_0x354302[_0x59efd1(0xe9)](_0x3ccfff[_0x59efd1(0xeb)])+':\x20'+_0x3628e5(_0x3ccfff[_0x59efd1(0xd9)])+'\x20'+_0x902942('['+_0x3ccfff[_0x59efd1(0xcb)]+']'));_0xc2e2dc['push'](_0x3ccfff[_0x59efd1(0xd6)]);if(_0x3ccfff[_0x59efd1(0xed)]&&_0x23f655){const _0x5fc52b=_0x23f655[_0x59efd1(0xf6)]('\x0a'),{line:_0x3c0aff,column:_0x459908}=_0x3ccfff[_0x59efd1(0xed)],_0x34d108=Math['max'](0x1,_0x3c0aff-0x1),_0x301348=Math[_0x59efd1(0xf7)](_0x5fc52b['length'],_0x3c0aff+0x1);_0xc2e2dc[_0x59efd1(0xf4)]('');for(let _0x219f06=_0x34d108;_0x219f06<=_0x301348;_0x219f06++){const _0x3c55b1=_0x5fc52b[_0x219f06-0x1]||'',_0x5bad9c=a169_0x354302['dim'](_0x219f06[_0x59efd1(0xfa)]()[_0x59efd1(0xe0)](0x4)),_0x2f6dc6=a169_0x354302[_0x59efd1(0xe9)](_0x59efd1(0xce));if(_0x219f06===_0x3c0aff){_0xc2e2dc[_0x59efd1(0xf4)]('\x20\x20'+_0x5bad9c+_0x2f6dc6+_0x3628e5(_0x3c55b1));const _0x1bc2e0='\x20'[_0x59efd1(0xe7)](0x4+0x3+_0x459908-0x1);_0xc2e2dc[_0x59efd1(0xf4)]('\x20\x20'+_0x1bc2e0+_0x3628e5('^'));}else _0xc2e2dc['push']('\x20\x20'+_0x5bad9c+_0x2f6dc6+a169_0x354302[_0x59efd1(0xe9)](_0x3c55b1));}}return _0xc2e2dc[_0x59efd1(0xdd)]('\x0a');}export function formatValidationResult(_0x1db225,_0x5b1695,_0x33651e){const _0x5c22ed=a169_0x3c49,_0x1db909=[];for(const _0x5da127 of _0x1db225[_0x5c22ed(0xf5)]){_0x1db909['push'](formatIssueWithContext(_0x5da127,_0x5b1695,_0x33651e)),_0x1db909[_0x5c22ed(0xf4)]('');}for(const _0x3aa23e of _0x1db225[_0x5c22ed(0xe4)]){_0x1db909[_0x5c22ed(0xf4)](formatIssueWithContext(_0x3aa23e,_0x5b1695,_0x33651e)),_0x1db909[_0x5c22ed(0xf4)]('');}return _0x1db909[_0x5c22ed(0xdd)]('\x0a');}