@treasuredata/tdx 2026.7.0 → 2026.7.1
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.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-move-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.d.ts +1 -0
- package/dist/sdk/client/http-client.d.ts.map +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/http-client.js.map +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/util/tree-search.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ead6e,_0xfa1a72){const _0x4d1f7c=a161_0x8dfc,_0x2c48a5=_0x1ead6e();while(!![]){try{const _0x25e621=parseInt(_0x4d1f7c(0x7c))/0x1+-parseInt(_0x4d1f7c(0x89))/0x2*(parseInt(_0x4d1f7c(0x82))/0x3)+-parseInt(_0x4d1f7c(0x76))/0x4*(parseInt(_0x4d1f7c(0x73))/0x5)+parseInt(_0x4d1f7c(0x96))/0x6+parseInt(_0x4d1f7c(0x8d))/0x7*(-parseInt(_0x4d1f7c(0x9b))/0x8)+-parseInt(_0x4d1f7c(0x6f))/0x9*(-parseInt(_0x4d1f7c(0xa2))/0xa)+-parseInt(_0x4d1f7c(0x91))/0xb;if(_0x25e621===_0xfa1a72)break;else _0x2c48a5['push'](_0x2c48a5['shift']());}catch(_0x333c78){_0x2c48a5['push'](_0x2c48a5['shift']());}}}(a161_0x4197,0x2e463));import a161_0x998731 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 a161_0x8dfc(_0x1d97b1,_0xf4c7bb){_0x1d97b1=_0x1d97b1-0x6c;const _0x41975f=a161_0x4197();let _0x8dfc7f=_0x41975f[_0x1d97b1];return _0x8dfc7f;}import{getSegmentRootDir}from'./tdx-config.js';function a161_0x4197(){const _0x1b45e4=['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','file','452771iMoALC','relative','isDirectory','File\x20not\x20found','dirname','989730BVwdfZ','No\x20tdx.json\x20found\x20for\x20file:\x20','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','context','basename','3304TiNvfY','parent_segment','type','directory','message','segmentName','error','10940QVhgey','parent_name','Not\x20a\x20YAML\x20file:\x20','invalid_yaml','2529jTyCKX','isScoped','includes','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','844765WQhURy','root','Parent\x20segment\x20not\x20specified','4vTExYP','cwd','string','trim','scopedFolderPath','parse','221871dRvWTa','segment','readFile','resolve','file_not_found','folderPath','708yNzYBK','configDir','parentSegment','match','no_config','File\x20not\x20found:\x20','replace','372jkWDHV','isFile','exists','resourceType','4249KCKWDN','journey'];a161_0x4197=function(){return _0x1b45e4;};return a161_0x4197();}export function isSuccessfulResolution(_0x29bf39){const _0x3bcbfb=a161_0x8dfc;return _0x29bf39[_0x3bcbfb(0x9d)]!==_0x3bcbfb(0xa1);}export function isScopedResolution(_0x30baee){const _0x22ffb7=a161_0x8dfc;return _0x30baee[_0x22ffb7(0x9d)]===_0x22ffb7(0x9e)||_0x30baee[_0x22ffb7(0x9d)]==='file'||_0x30baee['type']===_0x22ffb7(0x99);}export function getScopedDetails(_0x3f0bea){const _0x483271=a161_0x8dfc;if(isScopedResolution(_0x3f0bea))return{'isScoped':_0x3f0bea[_0x483271(0x70)],'scopedFolderPath':_0x3f0bea['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0xc4d87a,_0x219815){const _0x4f9195=a161_0x8dfc;let _0x581ff2=a161_0x998731['resolve'](_0xc4d87a);const _0x4ff9bc=a161_0x998731[_0x4f9195(0x7b)](_0x581ff2)[_0x4f9195(0x74)];while(_0x581ff2!==_0x4ff9bc){const _0x74bb21=a161_0x998731['join'](_0x581ff2,'tdx.json');if(await _0x219815[_0x4f9195(0x8b)](_0x74bb21))try{const _0x15a0bc=await _0x219815[_0x4f9195(0x7e)](_0x74bb21),_0x202ced=JSON[_0x4f9195(0x7b)](_0x15a0bc);if(_0x202ced[_0x4f9195(0x9c)]&&typeof _0x202ced[_0x4f9195(0x9c)]===_0x4f9195(0x78))return{'configPath':_0x74bb21,'configDir':_0x581ff2,'parentSegment':_0x202ced[_0x4f9195(0x9c)]};}catch{}_0x581ff2=a161_0x998731[_0x4f9195(0x95)](_0x581ff2);}return null;}function calculateScopedPath(_0x8fb2e9,_0x54ef7d){const _0x3fcbd2=a161_0x8dfc,_0x36b134=a161_0x998731[_0x3fcbd2(0x92)](_0x54ef7d,_0x8fb2e9),_0x505045=_0x36b134!==''&&_0x36b134!=='.'&&!_0x36b134['startsWith']('..');return{'isScoped':_0x505045,'scopedFolderPath':_0x505045?_0x36b134[_0x3fcbd2(0x88)](/\\/g,'/'):''};}export async function resolveTarget(_0x4652c4){const _0x319540=a161_0x8dfc,{arg:_0x4e2d1a,contextParent:_0xe99353,cwd:cwd=process[_0x319540(0x77)](),fs:fs=nodeFileSystem}=_0x4652c4;if(_0x4e2d1a&&isYamlFilePath(_0x4e2d1a))try{const _0x3195c3=await resolveYamlFilePath(_0x4e2d1a,fs),_0x5f362d=a161_0x998731['resolve'](_0x4e2d1a),_0x55a90f=a161_0x998731[_0x319540(0x95)](_0x5f362d),_0x3c9409=await findTdxConfigAsync(_0x55a90f,fs);if(!_0x3c9409){if(_0xe99353){const _0x4439c7=a161_0x998731[_0x319540(0x95)](_0x5f362d);return{'type':_0x319540(0x90),'parentName':_0xe99353,'targetDir':_0x4439c7,'configRoot':_0x4439c7,'filePath':_0x5f362d,'resourceName':_0x3195c3['segmentName'],'folderPath':_0x3195c3[_0x319540(0x81)],'resourceType':_0x3195c3[_0x319540(0x8c)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x319540(0xa1),'errorCode':_0x319540(0x86),'message':_0x319540(0x97)+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':_0x319540(0x8f)};}const _0x3d8ccc=calculateScopedPath(_0x55a90f,_0x3c9409[_0x319540(0x83)]);return{'type':_0x319540(0x90),'parentName':_0x3c9409[_0x319540(0x84)],'targetDir':_0x3c9409['configDir'],'configRoot':_0x3c9409['configDir'],'filePath':_0x5f362d,'resourceName':_0x3195c3[_0x319540(0xa0)],'folderPath':_0x3195c3[_0x319540(0x81)],'resourceType':_0x3195c3[_0x319540(0x8c)],'isScoped':_0x3d8ccc[_0x319540(0x70)],'scopedFolderPath':_0x3d8ccc[_0x319540(0x7a)]};}catch(_0x4b0896){const _0x23271e=_0x4b0896 instanceof Error?_0x4b0896[_0x319540(0x9f)]:String(_0x4b0896);if(_0x23271e[_0x319540(0x71)](_0x319540(0x94)))return{'type':'error','errorCode':_0x319540(0x80),'message':_0x319540(0x87)+_0x4e2d1a,'arg':_0x4e2d1a};if(_0x23271e['includes']('No\x20tdx.json\x20found')){if(_0xe99353){const _0x2c3375=a161_0x998731[_0x319540(0x7f)](_0x4e2d1a);if(await fs[_0x319540(0x8b)](_0x2c3375)){const _0x53c5f2=a161_0x998731[_0x319540(0x95)](_0x2c3375),_0x3995c2=await fs[_0x319540(0x7e)](_0x2c3375),_0x9f7d8=_0x3995c2[_0x319540(0x85)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x575776=_0x3995c2[_0x319540(0x85)](/^type:\s*["']?([^"'\n]+)["']?/m),_0xd3899f=_0x9f7d8?_0x9f7d8[0x1][_0x319540(0x79)]():a161_0x998731[_0x319540(0x9a)](_0x4e2d1a,a161_0x998731['extname'](_0x4e2d1a)),_0x55f343=_0x575776&&_0x575776[0x1][_0x319540(0x79)]()===_0x319540(0x8e)?'journey':_0x319540(0x7d);return{'type':_0x319540(0x90),'parentName':_0xe99353,'targetDir':_0x53c5f2,'configRoot':_0x53c5f2,'filePath':_0x2c3375,'resourceName':_0xd3899f,'folderPath':'','resourceType':_0x55f343,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x319540(0xa1),'errorCode':_0x319540(0x86),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':_0x319540(0x8f)};}return{'type':_0x319540(0xa1),'errorCode':'invalid_yaml','message':_0x23271e,'arg':_0x4e2d1a};}if(_0x4e2d1a){const _0x258648=a161_0x998731['resolve'](cwd,_0x4e2d1a);let _0x19c5af=null;try{_0x19c5af=await fs['stat'](_0x258648);}catch{}if(_0x19c5af?.[_0x319540(0x93)]()){const _0x5bd768=await findTdxConfigAsync(_0x258648,fs);if(_0x5bd768){const _0x1dad21=calculateScopedPath(_0x258648,_0x5bd768[_0x319540(0x83)]);return{'type':_0x319540(0x9e),'parentName':_0x5bd768['parentSegment'],'targetDir':_0x258648,'configRoot':_0x5bd768['configDir'],'isScoped':_0x1dad21[_0x319540(0x70)],'scopedFolderPath':_0x1dad21[_0x319540(0x7a)]};}if(_0xe99353)return{'type':_0x319540(0x9e),'parentName':_0xe99353,'targetDir':_0x258648,'configRoot':_0x258648,'isScoped':![],'scopedFolderPath':''};return{'type':_0x319540(0xa1),'errorCode':_0x319540(0x86),'message':_0x319540(0x72)+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':_0x319540(0x8f)};}if(_0x19c5af?.[_0x319540(0x8a)]())return{'type':'error','errorCode':_0x319540(0x6e),'message':_0x319540(0x6d)+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x13e2a3=sanitizeFileName(_0x4e2d1a),_0x1e9a04=getSegmentRootDir(_0x13e2a3,cwd);return{'type':_0x319540(0x6c),'parentName':_0x4e2d1a,'targetDir':_0x1e9a04,'configRoot':_0x1e9a04};}const _0x2b8912=await findTdxConfigAsync(cwd,fs);if(_0x2b8912){const _0x277d8e=calculateScopedPath(cwd,_0x2b8912['configDir']);return{'type':'context','parentName':_0x2b8912[_0x319540(0x84)],'targetDir':cwd,'configRoot':_0x2b8912[_0x319540(0x83)],'isScoped':_0x277d8e['isScoped'],'scopedFolderPath':_0x277d8e[_0x319540(0x7a)]};}if(_0xe99353){const _0x20828f=sanitizeFileName(_0xe99353),_0xdb140b=getSegmentRootDir(_0x20828f,cwd);return{'type':_0x319540(0x99),'parentName':_0xe99353,'targetDir':_0xdb140b,'configRoot':_0xdb140b,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x319540(0xa1),'errorCode':'no_parent','message':_0x319540(0x75),'helpText':_0x319540(0x98)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x26db2e=a162_0x521d;(function(_0x325789,_0x2080f2){const _0x312902=a162_0x521d,_0x8bd7b6=_0x325789();while(!![]){try{const _0x30badf=parseInt(_0x312902(0x99))/0x1+parseInt(_0x312902(0x9d))/0x2*(parseInt(_0x312902(0x87))/0x3)+-parseInt(_0x312902(0x8e))/0x4+-parseInt(_0x312902(0x96))/0x5+-parseInt(_0x312902(0x9c))/0x6+parseInt(_0x312902(0x9a))/0x7*(parseInt(_0x312902(0x88))/0x8)+parseInt(_0x312902(0x8a))/0x9*(parseInt(_0x312902(0x94))/0xa);if(_0x30badf===_0x2080f2)break;else _0x8bd7b6['push'](_0x8bd7b6['shift']());}catch(_0x5cc1a7){_0x8bd7b6['push'](_0x8bd7b6['shift']());}}}(a162_0x32d5,0x9746e));import{existsSync,readFileSync}from'fs';import a162_0x5ece5d from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a162_0x26db2e(0x8d);export function findTdxConfigPath(_0x1c4e83=process[a162_0x26db2e(0x9b)]()){const _0x515739=a162_0x26db2e;let _0x15c20d=a162_0x5ece5d[_0x515739(0x9e)](_0x1c4e83);const _0x53c462=a162_0x5ece5d[_0x515739(0x95)](_0x15c20d)[_0x515739(0x91)];while(_0x15c20d!==_0x53c462){const _0x543b4a=a162_0x5ece5d[_0x515739(0x8b)](_0x15c20d,TDX_CONFIG_FILE);if(existsSync(_0x543b4a))return _0x543b4a;_0x15c20d=a162_0x5ece5d[_0x515739(0x8c)](_0x15c20d);}return null;}export function loadTdxConfig(_0x3ff06c){const _0x56d8d0=a162_0x26db2e,_0x12616e=readFileSync(_0x3ff06c,_0x56d8d0(0x93));let _0x46932c;try{_0x46932c=JSON['parse'](_0x12616e);}catch{throw new Error(_0x56d8d0(0x89)+_0x3ff06c);}if(!_0x46932c||typeof _0x46932c!==_0x56d8d0(0x85))throw new Error(_0x56d8d0(0x90));const _0x53e297=_0x46932c,_0x2588d6=_0x53e297['parent_segment']&&typeof _0x53e297[_0x56d8d0(0x97)]===_0x56d8d0(0x8f),_0x2042dd=_0x53e297['engage_workspace']&&typeof _0x53e297[_0x56d8d0(0x92)]===_0x56d8d0(0x8f);if(!_0x2588d6&&!_0x2042dd)throw new Error(_0x56d8d0(0x9f));const _0x2f7965={};return _0x2588d6&&(_0x2f7965[_0x56d8d0(0x97)]=_0x53e297[_0x56d8d0(0x97)]),_0x2042dd&&(_0x2f7965[_0x56d8d0(0x92)]=_0x53e297['engage_workspace']),_0x2f7965;}export function findTdxConfig(_0x49bda7=process[a162_0x26db2e(0x9b)]()){const _0x367173=a162_0x26db2e,_0x18aef6=findTdxConfigPath(_0x49bda7);if(!_0x18aef6)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x438bfd=loadTdxConfig(_0x18aef6),_0x5191dd=a162_0x5ece5d[_0x367173(0x8c)](_0x18aef6);return{'config':_0x438bfd,'configPath':_0x18aef6,'configDir':_0x5191dd};}export function tryFindTdxConfig(_0x462fb3){try{return findTdxConfig(_0x462fb3);}catch{return null;}}export function getSegmentRootDir(_0x29c0f8,_0x153bce=process[a162_0x26db2e(0x9b)]()){const _0x1c3ebe=a162_0x26db2e;return a162_0x5ece5d[_0x1c3ebe(0x8b)](_0x153bce,SEGMENTS_DIR,_0x29c0f8);}function a162_0x521d(_0x42d4a0,_0x3e95f8){_0x42d4a0=_0x42d4a0-0x85;const _0x32d51c=a162_0x32d5();let _0x521da6=_0x32d51c[_0x42d4a0];return _0x521da6;}export function getTdxConfigPath(_0x139cfa,_0x87d6f2=process[a162_0x26db2e(0x9b)]()){return a162_0x5ece5d['join'](getSegmentRootDir(_0x139cfa,_0x87d6f2),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x16259e,_0x35ca67){const _0x5aac7e=a162_0x26db2e,_0x1bd140=a162_0x5ece5d[_0x5aac7e(0x9e)](_0x16259e),_0x4f388a=a162_0x5ece5d['relative'](_0x35ca67,_0x1bd140);if(_0x4f388a['startsWith']('..'))return'';return _0x4f388a;}export function localPathToTdFolderPath(_0x19282e){const _0x559116=a162_0x26db2e,_0x555028=a162_0x5ece5d[_0x559116(0x8c)](_0x19282e);if(_0x555028==='.'||_0x555028==='')return'';return _0x555028[_0x559116(0x98)](/\\/g,'/');}function a162_0x32d5(){const _0x5e3485=['77640XZHNYU','423990NzsGbP','cwd','2498436fVsxZa','226WQCgBy','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','object','stringify','2889UqYxkW','16PIubqc','Invalid\x20JSON\x20in\x20','9LjXzyp','join','dirname','segments','1096392oQaEGp','string','Invalid\x20tdx.json:\x20expected\x20object','root','engage_workspace','utf-8','13086490JsXOsE','parse','1530570sGwidw','parent_segment','replace'];a162_0x32d5=function(){return _0x5e3485;};return a162_0x32d5();}export function tdFolderPathToLocalPath(_0x51e634,_0x4af0d5){const _0x101315=a162_0x26db2e;if(!_0x51e634)return _0x4af0d5;return a162_0x5ece5d[_0x101315(0x8b)](_0x4af0d5,_0x51e634);}export function createTdxConfigContent(_0x19bbae){const _0x2cb0d5=a162_0x26db2e,_0x2d9cd7={'parent_segment':_0x19bbae};return JSON[_0x2cb0d5(0x86)](_0x2d9cd7,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x3a9b05){const _0x5d9192=a162_0x26db2e,_0x16fdf5={'engage_workspace':_0x3a9b05};return JSON[_0x5d9192(0x86)](_0x16fdf5,null,0x2)+'\x0a';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x229159=a163_0x3ff9;(function(_0x2bbe14,_0x153f88){const _0x157a97=a163_0x3ff9,_0x3e60b9=_0x2bbe14();while(!![]){try{const _0x456293=parseInt(_0x157a97(0x192))/0x1+-parseInt(_0x157a97(0x17c))/0x2*(parseInt(_0x157a97(0x17d))/0x3)+-parseInt(_0x157a97(0x183))/0x4+-parseInt(_0x157a97(0x188))/0x5+parseInt(_0x157a97(0x17f))/0x6*(parseInt(_0x157a97(0x18e))/0x7)+-parseInt(_0x157a97(0x1a5))/0x8*(-parseInt(_0x157a97(0x19e))/0x9)+parseInt(_0x157a97(0x185))/0xa*(parseInt(_0x157a97(0x18f))/0xb);if(_0x456293===_0x153f88)break;else _0x3e60b9['push'](_0x3e60b9['shift']());}catch(_0x147948){_0x3e60b9['push'](_0x3e60b9['shift']());}}}(a163_0x9b55,0x59b9a));import{z}from'zod';export const ScheduleTypeSchema=z[a163_0x229159(0x193)]([a163_0x229159(0x18d),a163_0x229159(0x1a2),'daily',a163_0x229159(0x199),a163_0x229159(0x184),a163_0x229159(0x187),a163_0x229159(0x189)]);export const RepeatUnitSchema=z[a163_0x229159(0x193)](['minute','hour',a163_0x229159(0x198),a163_0x229159(0x1a3),a163_0x229159(0x18b),a163_0x229159(0x1a4),a163_0x229159(0x18d)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema[a163_0x229159(0x197)](),'repeat_unit':RepeatUnitSchema[a163_0x229159(0x197)](),'repeat_frequency':z[a163_0x229159(0x18a)]()[a163_0x229159(0x197)](),'repeat_sub_frequency':z['array'](z['number']())[a163_0x229159(0x197)](),'start_at':z['string']()['nullable']()['optional'](),'end_on':z[a163_0x229159(0x18c)]()[a163_0x229159(0x186)]()[a163_0x229159(0x197)](),'timezone':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)]()});export const NotificationDefSchema=z['object']({'notify_on':z['array'](z['enum']([a163_0x229159(0x196),'onFailure']))[a163_0x229159(0x197)](),'email_recipients':z['array'](z[a163_0x229159(0x18c)]())['optional']()});export const ActivationColumnDefSchema=z[a163_0x229159(0x180)]([z['string'](),z['object']({'name':z[a163_0x229159(0x18c)](),'type':z['string']()['optional'](),'visibility':z[a163_0x229159(0x193)]([a163_0x229159(0x195),a163_0x229159(0x19a)])[a163_0x229159(0x197)]()})]);function a163_0x9b55(){const _0x2b7f32=['week','once','5336gcOoZZ','record','10cMUqBY','9nXghUV','unknown','405336wsliMd','union','cols','asc','1502816tFzCQr','monthly','892210tUVyao','nullable','cron','285460woMeZs','minutes_interval','number','month','string','none','14HdfTqx','22ketGZl','All','rows','5864GEDPJA','enum','Top-N','clear','onSuccess','optional','day','weekly','masked','object','boolean','Connection\x20name\x20is\x20required','6489WhgrJH','desc','Last','array','hourly'];a163_0x9b55=function(){return _0x2b7f32;};return a163_0x9b55();}function a163_0x3ff9(_0x5a1cb0,_0xac2948){_0x5a1cb0=_0x5a1cb0-0x17b;const _0x9b556b=a163_0x9b55();let _0x3ff9c2=_0x9b556b[_0x5a1cb0];return _0x3ff9c2;}export const ActivationBehaviorDefSchema=z['object']({'columns':z[a163_0x229159(0x1a1)](z[a163_0x229159(0x19b)]({'name':z['string'](),'type':z['string']()[a163_0x229159(0x197)](),'visibility':z[a163_0x229159(0x193)]([a163_0x229159(0x195),a163_0x229159(0x19a)])['optional']()}))[a163_0x229159(0x197)](),'behavior_table':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)](),'join_row':z[a163_0x229159(0x18a)]()[a163_0x229159(0x186)]()['optional'](),'join_strategy':z[a163_0x229159(0x193)]([a163_0x229159(0x190),'First',a163_0x229159(0x1a0),a163_0x229159(0x194)])['optional'](),'formatting':z[a163_0x229159(0x193)]([a163_0x229159(0x191),a163_0x229159(0x181)])['optional'](),'order_by':z[a163_0x229159(0x1a1)](z[a163_0x229159(0x19b)]({'key':z[a163_0x229159(0x18c)](),'order':z[a163_0x229159(0x193)]([a163_0x229159(0x182),a163_0x229159(0x19f)])}))['optional']()});export const ActivationDefSchema=z['object']({'name':z['string']()['min'](0x1,'Activation\x20name\x20is\x20required'),'description':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)](),'connection':z[a163_0x229159(0x18c)]()['min'](0x1,a163_0x229159(0x19d)),'all_columns':z[a163_0x229159(0x19c)]()[a163_0x229159(0x197)](),'columns':z[a163_0x229159(0x1a1)](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a163_0x229159(0x197)](),'notification':NotificationDefSchema[a163_0x229159(0x197)](),'connector_config':z[a163_0x229159(0x17b)](z[a163_0x229159(0x18c)](),z[a163_0x229159(0x17e)]())[a163_0x229159(0x197)](),'activation_template_id':z[a163_0x229159(0x18c)]()[a163_0x229159(0x186)]()['optional'](),'behavior':ActivationBehaviorDefSchema['nullable']()[a163_0x229159(0x197)](),'run_after_journey_refresh':z[a163_0x229159(0x19c)]()['optional'](),'nested_workflow_project_name':z[a163_0x229159(0x18c)]()['optional'](),'nested_workflow_name':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)](),'lock_enabled':z['boolean']()['optional']()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a164_0x13ec(){var _0x508964=['241692yyrFCf','53TiABHE','8LuJsld','1651596BbCYJP','5QWWeKP','115155jZkhfd','8315720JVDqpR','4958GMHOIT','565960ZaYvrL','267043LuuEYO'];a164_0x13ec=function(){return _0x508964;};return a164_0x13ec();}(function(_0x586e5b,_0x5b249d){var _0x5a952b=a164_0x13c5,_0x4dabb1=_0x586e5b();while(!![]){try{var _0xe99e57=parseInt(_0x5a952b(0x1f1))/0x1*(-parseInt(_0x5a952b(0x1f7))/0x2)+-parseInt(_0x5a952b(0x1f0))/0x3+-parseInt(_0x5a952b(0x1f8))/0x4+parseInt(_0x5a952b(0x1f4))/0x5*(-parseInt(_0x5a952b(0x1f3))/0x6)+-parseInt(_0x5a952b(0x1ef))/0x7*(parseInt(_0x5a952b(0x1f2))/0x8)+parseInt(_0x5a952b(0x1f5))/0x9+parseInt(_0x5a952b(0x1f6))/0xa;if(_0xe99e57===_0x5b249d)break;else _0x4dabb1['push'](_0x4dabb1['shift']());}catch(_0x16f01e){_0x4dabb1['push'](_0x4dabb1['shift']());}}}(a164_0x13ec,0x2b567));function a164_0x13c5(_0x8dec25,_0x3cc7b0){_0x8dec25=_0x8dec25-0x1ef;var _0x13ec44=a164_0x13ec();var _0x13c52c=_0x13ec44[_0x8dec25];return _0x13c52c;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a165_0x482527=a165_0x20d4;(function(_0x535816,_0x398626){const _0x5d4282=a165_0x20d4,_0x5b230e=_0x535816();while(!![]){try{const _0x1815bd=parseInt(_0x5d4282(0x104))/0x1+parseInt(_0x5d4282(0xf2))/0x2+parseInt(_0x5d4282(0xf8))/0x3*(parseInt(_0x5d4282(0x107))/0x4)+-parseInt(_0x5d4282(0x10e))/0x5+-parseInt(_0x5d4282(0xee))/0x6*(-parseInt(_0x5d4282(0x106))/0x7)+parseInt(_0x5d4282(0x10b))/0x8+parseInt(_0x5d4282(0xfa))/0x9;if(_0x1815bd===_0x398626)break;else _0x5b230e['push'](_0x5b230e['shift']());}catch(_0x42ad4f){_0x5b230e['push'](_0x5b230e['shift']());}}}(a165_0xf3bd,0xac6d3));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a165_0x482527(0xf9),'simulation',a165_0x482527(0x10c)]);export const ReentryModeTypeSchema=z[a165_0x482527(0xec)]([a165_0x482527(0xe9),a165_0x482527(0x105),a165_0x482527(0x109)]);export const WaitUnitTypeSchema=z[a165_0x482527(0xec)]([a165_0x482527(0xf1),a165_0x482527(0xff)]);export const StepTypeValueSchema=z['enum']([a165_0x482527(0xed),a165_0x482527(0xe8),'decision_point',a165_0x482527(0xf5),a165_0x482527(0xfc),'jump',a165_0x482527(0xfe)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a165_0x482527(0x110)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()});export const CriteriaDefSchema=z['object']({'name':z[a165_0x482527(0x101)](),'description':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'segment':z['string'](),'target':JumpTargetDefSchema[a165_0x482527(0xeb)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a165_0x482527(0xf3)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a165_0x482527(0xeb)]()}),WaitConditionDefSchema=z[a165_0x482527(0x110)]({'segment':z[a165_0x482527(0x101)](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'timeout':WaitConditionTimeoutDefSchema[a165_0x482527(0xeb)]()}),WaitStepParamsDefSchema=z[a165_0x482527(0x110)]({'duration':z[a165_0x482527(0xf3)]()[a165_0x482527(0xeb)](),'unit':WaitUnitTypeSchema[a165_0x482527(0xeb)](),'wait_until':z[a165_0x482527(0x101)]()['optional'](),'condition':WaitConditionDefSchema[a165_0x482527(0xeb)](),'days_of_week':z[a165_0x482527(0xef)](z[a165_0x482527(0x101)]())['optional']()}),StepBaseFields={'name':z[a165_0x482527(0x101)](),'uuid':z['string']()['optional'](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()},WaitStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z['literal'](a165_0x482527(0xed)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a165_0x482527(0x110)]({'activation':z[a165_0x482527(0x101)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a165_0x482527(0x10f)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a165_0x482527(0x110)]({'name':z['string'](),'segment':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'segment_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'excluded':z[a165_0x482527(0x100)]()['optional'](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()}),DecisionPointStepParamsDefSchema=z[a165_0x482527(0x110)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z[a165_0x482527(0x10f)](a165_0x482527(0x108)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a165_0x482527(0x110)]({'id':z['string']()[a165_0x482527(0xeb)](),'name':z[a165_0x482527(0x101)](),'percentage':z[a165_0x482527(0xf3)](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()}),AbTestStepParamsDefSchema=z[a165_0x482527(0x110)]({'variants':z[a165_0x482527(0xef)](AbTestVariantDefSchema),'unique_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'customized_split':z[a165_0x482527(0x100)]()['optional']()}),AbTestStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z['literal']('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z['literal'](a165_0x482527(0xfc))}),JumpStepParamsDefSchema=z[a165_0x482527(0x110)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z[a165_0x482527(0x10f)](a165_0x482527(0xf7)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z[a165_0x482527(0x10f)](a165_0x482527(0xfe))})[a165_0x482527(0xe7)]();export const StepDefSchema=z[a165_0x482527(0x103)](a165_0x482527(0x112),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z['string'](),'description':z[a165_0x482527(0x101)]()['optional'](),'id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a165_0x482527(0xef)](CriteriaDefSchema)[a165_0x482527(0xeb)](),'milestone':CriteriaDefSchema[a165_0x482527(0xeb)](),'root_step':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'steps':z[a165_0x482527(0xef)](StepDefSchema)[a165_0x482527(0xeb)]()});function a165_0xf3bd(){const _0x390497=['launched','stages','4321250VzzXHP','literal','object','isArray','type','passthrough','activation','no_reentry','min','optional','enum','wait','426WERDIX','array','length','day','426520rYHSWP','number','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','ab_test','refine','jump','1299xhcQrI','draft','2001744RfMYTS','versions','merge','Journey\x20name\x20is\x20required','end','week','boolean','string','lazy','discriminatedUnion','356654BRCRqo','reentry_unless_goal_achieved','17234UgtnlF','4988PFzgAb','decision_point','reentry_always','record','507408mxYwIo'];a165_0xf3bd=function(){return _0x390497;};return a165_0xf3bd();}export const JourneyEntryDefSchema=z[a165_0x482527(0x110)]({'name':z[a165_0x482527(0x101)]()['optional'](),'version':z[a165_0x482527(0x101)]()['optional'](),'state':JourneyStateTypeSchema[a165_0x482527(0xeb)](),'latest':z[a165_0x482527(0x100)]()[a165_0x482527(0xeb)](),'stages':z[a165_0x482527(0xef)](StageDefSchema),'id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'version_number':z[a165_0x482527(0xf3)]()[a165_0x482527(0xeb)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema[a165_0x482527(0xeb)]()});export const JourneyDefSchema=z[a165_0x482527(0x102)](()=>z[a165_0x482527(0x110)]({'type':z[a165_0x482527(0x10f)]('journey'),'name':z[a165_0x482527(0x101)]()[a165_0x482527(0xea)](0x1,a165_0x482527(0xfd)),'description':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'bundle_id':z['string']()['optional'](),'bundle_name':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'folder_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'reentry':ReentryModeTypeSchema[a165_0x482527(0xeb)](),'allow_reentry':z[a165_0x482527(0x100)]()['optional'](),'goal':CriteriaDefSchema[a165_0x482527(0xeb)](),'id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'version':z[a165_0x482527(0x101)]()['optional'](),'version_number':z[a165_0x482527(0xf3)]()['optional'](),'stages':z[a165_0x482527(0xef)](StageDefSchema)[a165_0x482527(0xeb)](),'versions':z[a165_0x482527(0xef)](JourneyEntryDefSchema)[a165_0x482527(0xeb)](),'journeys':z['array'](JourneyEntryDefSchema)[a165_0x482527(0xeb)](),'segments':z['record'](z['string'](),EmbeddedSegmentDefSchema)[a165_0x482527(0xeb)](),'activations':z[a165_0x482527(0x10a)](z[a165_0x482527(0x101)](),ActivationDefSchema)[a165_0x482527(0xeb)]()})[a165_0x482527(0xf6)](_0x41bbc8=>{const _0x3efe40=a165_0x482527,_0x3f7cda=[_0x41bbc8['journeys'],_0x41bbc8[_0x3efe40(0x10d)],_0x41bbc8[_0x3efe40(0xfb)]]['filter'](_0x4cef90=>Array[_0x3efe40(0x111)](_0x4cef90)&&_0x4cef90['length']>0x0)[_0x3efe40(0xf0)];return _0x3f7cda===0x1;},{'message':a165_0x482527(0xf4)}));const _syncCheck1=!![],_syncCheck2=!![];function a165_0x20d4(_0x2e3611,_0xfa118c){_0x2e3611=_0x2e3611-0xe7;const _0xf3bdcf=a165_0xf3bd();let _0x20d4a3=_0xf3bdcf[_0x2e3611];return _0x20d4a3;}void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1cde09,_0x1cc380){var _0x2b18fb=a167_0x1108,_0x1b1a38=_0x1cde09();while(!![]){try{var _0x192e6a=-parseInt(_0x2b18fb(0x8d))/0x1+parseInt(_0x2b18fb(0x8f))/0x2+parseInt(_0x2b18fb(0x89))/0x3*(-parseInt(_0x2b18fb(0x8b))/0x4)+parseInt(_0x2b18fb(0x88))/0x5*(parseInt(_0x2b18fb(0x8c))/0x6)+-parseInt(_0x2b18fb(0x90))/0x7*(parseInt(_0x2b18fb(0x8e))/0x8)+-parseInt(_0x2b18fb(0x8a))/0x9+parseInt(_0x2b18fb(0x87))/0xa*(parseInt(_0x2b18fb(0x91))/0xb);if(_0x192e6a===_0x1cc380)break;else _0x1b1a38['push'](_0x1b1a38['shift']());}catch(_0x41ca79){_0x1b1a38['push'](_0x1b1a38['shift']());}}}(a167_0x27bd,0xa8faf));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a167_0x1108(_0xffb1f1,_0x1c41ae){_0xffb1f1=_0xffb1f1-0x87;var _0x27bd39=a167_0x27bd();var _0x1108a7=_0x27bd39[_0xffb1f1];return _0x1108a7;}function a167_0x27bd(){var _0x2b3068=['2719788qWxReR','220381XvoLZC','3064435KTTAoa','50MXJOfJ','610sqfetv','129dHsNOQ','10182276OnRbrX','72984MJweTZ','65982wbbzKv','290014yYaoxS','304MjKniG'];a167_0x27bd=function(){return _0x2b3068;};return a167_0x27bd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a168_0x156a5b=a168_0x13c1;(function(_0x35c2e8,_0x23c9ba){const _0x56fc33=a168_0x13c1,_0x530086=_0x35c2e8();while(!![]){try{const _0x588e4a=-parseInt(_0x56fc33(0xcc))/0x1*(-parseInt(_0x56fc33(0xf8))/0x2)+parseInt(_0x56fc33(0xf3))/0x3*(-parseInt(_0x56fc33(0xaf))/0x4)+-parseInt(_0x56fc33(0xe7))/0x5*(-parseInt(_0x56fc33(0xd9))/0x6)+-parseInt(_0x56fc33(0xbf))/0x7+parseInt(_0x56fc33(0xed))/0x8*(-parseInt(_0x56fc33(0xd7))/0x9)+-parseInt(_0x56fc33(0xbe))/0xa*(parseInt(_0x56fc33(0xe1))/0xb)+-parseInt(_0x56fc33(0xdd))/0xc*(-parseInt(_0x56fc33(0xca))/0xd);if(_0x588e4a===_0x23c9ba)break;else _0x530086['push'](_0x530086['shift']());}catch(_0x2a51bb){_0x530086['push'](_0x530086['shift']());}}}(a168_0x3d26,0x7902f));import{z}from'zod';export const OperatorTypeSchema=z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xa7),a168_0x156a5b(0xbc),'Less',a168_0x156a5b(0xcb),'LessEqual','In','Between',a168_0x156a5b(0xd0),a168_0x156a5b(0xd3),a168_0x156a5b(0xc2),a168_0x156a5b(0xe2),a168_0x156a5b(0xf0),a168_0x156a5b(0xeb),a168_0x156a5b(0xb1),a168_0x156a5b(0xea)]);export const TimeUnitSchema=z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe5),a168_0x156a5b(0xf5),'hour',a168_0x156a5b(0xc3),a168_0x156a5b(0xbd),a168_0x156a5b(0xaa),a168_0x156a5b(0xce)]);export const AggregationTypeSchema=z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe3),a168_0x156a5b(0xda),a168_0x156a5b(0xd4),a168_0x156a5b(0xe4),a168_0x156a5b(0xba),a168_0x156a5b(0xd5),'First',a168_0x156a5b(0xc0)]);const TemporalValueSchema=z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xa5)]({'timestamp':z[a168_0x156a5b(0xc1)]()}),z['object']({'last':z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xcd)](z[a168_0x156a5b(0xc1)](),z[a168_0x156a5b(0xb2)]())]),'unit':z[a168_0x156a5b(0xc1)]()})]),OperatorValueSchema=z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xc1)](),z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xdc)](),TemporalValueSchema,z[a168_0x156a5b(0xa8)](z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xc1)](),z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xdc)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a168_0x156a5b(0xa7),a168_0x156a5b(0xbc),'GreaterEqual',a168_0x156a5b(0xec),a168_0x156a5b(0xdf),'In',a168_0x156a5b(0xf0),a168_0x156a5b(0xeb),a168_0x156a5b(0xb1),a168_0x156a5b(0xd0),a168_0x156a5b(0xc2),a168_0x156a5b(0xe2)]),OPERATORS_REQUIRING_UNIT=new Set([a168_0x156a5b(0xc2),'TimeWithinNext']);export const OperatorDefSchema=z[a168_0x156a5b(0xa5)]({'type':OperatorTypeSchema,'not':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)](),'value':OperatorValueSchema[a168_0x156a5b(0xc9)](),'min':z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xc1)](),TemporalValueSchema])[a168_0x156a5b(0xc9)](),'max':z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xc1)](),TemporalValueSchema])[a168_0x156a5b(0xc9)](),'unit':TimeUnitSchema[a168_0x156a5b(0xc9)](),'duration':z['object']({'day':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)](),'week':z[a168_0x156a5b(0xb2)]()['optional'](),'month':z['number']()[a168_0x156a5b(0xc9)](),'year':z['number']()[a168_0x156a5b(0xc9)](),'hour':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)](),'minute':z[a168_0x156a5b(0xb2)]()['optional'](),'second':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)]()})[a168_0x156a5b(0xc9)](),'from':z[a168_0x156a5b(0xa5)]({'last':z['union']([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xc1)]()]),'unit':TimeUnitSchema})[a168_0x156a5b(0xc9)](),'reverse':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)]()})[a168_0x156a5b(0xf4)]((_0x590853,_0x4afb7b)=>{const _0x44b5c9=a168_0x156a5b;OPERATORS_REQUIRING_VALUE[_0x44b5c9(0xa3)](_0x590853['type'])&&(_0x590853[_0x44b5c9(0xab)]===undefined||_0x590853[_0x44b5c9(0xab)]===null)&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xcf)+_0x590853[_0x44b5c9(0xad)]+_0x44b5c9(0xf1),'path':[_0x44b5c9(0xab)]}),_0x590853['type']===_0x44b5c9(0xd2)&&_0x590853[_0x44b5c9(0xd1)]===undefined&&_0x590853[_0x44b5c9(0xe8)]===undefined&&_0x4afb7b['addIssue']({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xb3),'params':{'validationCode':_0x44b5c9(0xee)}}),OPERATORS_REQUIRING_UNIT[_0x44b5c9(0xa3)](_0x590853['type'])&&_0x590853[_0x44b5c9(0xab)]!==undefined&&!_0x590853[_0x44b5c9(0xf9)]&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xcf)+_0x590853[_0x44b5c9(0xad)]+_0x44b5c9(0xb8),'path':[_0x44b5c9(0xf9)],'params':{'validationCode':_0x44b5c9(0xc6)}}),_0x590853['type']===_0x44b5c9(0xea)&&(!_0x590853[_0x44b5c9(0xa4)]&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0x44b5c9(0xa4)]}),!_0x590853[_0x44b5c9(0xb6)]&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xb4),'path':[_0x44b5c9(0xb6)]}));});export const ArrayMatchingSchema=z[a168_0x156a5b(0xa6)]([z['literal']('any'),z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xb7)),z[a168_0x156a5b(0xa5)]({'atLeast':z[a168_0x156a5b(0xb2)]()}),z[a168_0x156a5b(0xa5)]({'atMost':z[a168_0x156a5b(0xb2)]()}),z[a168_0x156a5b(0xa5)]({'exactly':z[a168_0x156a5b(0xb2)]()})]);export const AggregationDefSchema=z['discriminatedUnion'](a168_0x156a5b(0xad),[z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xdb)](['Sum',a168_0x156a5b(0xe4),a168_0x156a5b(0xba),a168_0x156a5b(0xd4)]),'column':z['string'](),'groupingColumns':z['array'](z[a168_0x156a5b(0xc1)]())[a168_0x156a5b(0xc9)]()}),z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xe3)),'groupingColumns':z[a168_0x156a5b(0xa8)](z['string']())['optional']()}),z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xd5)),'columns':z[a168_0x156a5b(0xa8)](z[a168_0x156a5b(0xc1)]())}),z['object']({'type':z[a168_0x156a5b(0xdb)](['First',a168_0x156a5b(0xc0)]),'column':z[a168_0x156a5b(0xc1)](),'orderColumn':z[a168_0x156a5b(0xc1)](),'groupingColumns':z[a168_0x156a5b(0xa8)](z[a168_0x156a5b(0xc1)]())[a168_0x156a5b(0xc9)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a168_0x156a5b(0xc2),a168_0x156a5b(0xe2),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z['literal'](a168_0x156a5b(0xef)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x156a5b(0xc9)]()})[a168_0x156a5b(0xf4)]((_0x545f51,_0x3adca2)=>{const _0x319bd8=a168_0x156a5b,_0x3dac5c=_0x545f51['operator']['type'];_0x545f51[_0x319bd8(0xae)]===_0x319bd8(0xf6)?!TIMESTAMP_OPERATORS[_0x319bd8(0xa3)](_0x3dac5c)&&_0x3adca2['addIssue']({'code':_0x319bd8(0xb9),'message':_0x319bd8(0xbb)+_0x3dac5c+'\x27)','path':[_0x319bd8(0xe6),'type']}):TIMESTAMP_OPERATORS['has'](_0x3dac5c)&&_0x3adca2['addIssue']({'code':_0x319bd8(0xb9),'message':'Operator\x20\x27'+_0x3dac5c+_0x319bd8(0xac),'path':[_0x319bd8(0xe6),'type']});});export const FilterRuleDefSchema=z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xe0)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a168_0x156a5b(0xc7)](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xc8)),'attribute':z[a168_0x156a5b(0xc1)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x156a5b(0xc9)](),'exclude':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)](),'aggregation':AggregationDefSchema[a168_0x156a5b(0xc9)](),'source':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'filter':FilterRuleDefSchema[a168_0x156a5b(0xc9)](),'limit':z['number']()[a168_0x156a5b(0xc9)]()}));function a168_0x3d26(){const _0x17400f=['Operator\x20\x27','Regexp','min','Between','IsNull','Average','CountDistinct','realtime','198ftIhmw','include','36HJbZdX','Sum','enum','boolean','27708VViuFi','Segment\x20name\x20is\x20required','LessEqual','And','1243XlylnH','TimeWithinNext','Count','Min','second','operator','800775WsIAOW','max','Segment\x20reference\x20must\x20not\x20be\x20empty','TimeRange','StartWith','Less','32544wKZWKS','MISSING_BETWEEN_BOUNDS','Column','Contain','\x27\x20requires\x20a\x20value','exclude','3rlRvbr','superRefine','minute','timestamp','Composite','2NiqxUs','unit','has','duration','object','union','Equal','array','Behavior','month','value','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','type','column','3358116camWaJ','addIssue','EndWith','number','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','TimeRange\x20operator\x20requires\x20\x27from\x27','literal','from','all','\x27\x20requires\x20a\x20time\x20unit','custom','Max','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Greater','week','50620KNsvxV','6110573gJQXag','Last','string','TimeWithinPast','day','funnel_stage','segment','MISSING_TIME_UNIT','lazy','Value','optional','8827pVxzDM','GreaterEqual','340892pPYlCy','record','year'];a168_0x3d26=function(){return _0x17400f;};return a168_0x3d26();}export const BehaviorConditionDefSchema=z[a168_0x156a5b(0xc7)](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xa9)),'attribute':z[a168_0x156a5b(0xc1)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)](),'aggregation':AggregationDefSchema[a168_0x156a5b(0xc9)](),'source':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'filter':FilterRuleDefSchema[a168_0x156a5b(0xc9)](),'timeWindow':TimeWindowDefSchema[a168_0x156a5b(0xc9)](),'limit':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)]()}));export const ColumnConditionDefSchema=z['object']({'type':z['literal'](a168_0x156a5b(0xef)),'column':z[a168_0x156a5b(0xc1)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe0),'Or',a168_0x156a5b(0xf7)]),'conditions':z[a168_0x156a5b(0xa8)](ConditionDefSchema),'description':z['string']()['optional'](),'expr':z['string']()[a168_0x156a5b(0xc9)]()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xd8),a168_0x156a5b(0xf2)]),'segment':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xd1)](0x1,a168_0x156a5b(0xe9))});export const ConditionDefSchema=z[a168_0x156a5b(0xc7)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));function a168_0x13c1(_0x1513a4,_0x453435){_0x1513a4=_0x1513a4-0xa3;const _0x3d2639=a168_0x3d26();let _0x13c168=_0x3d2639[_0x1513a4];return _0x13c168;}export const RuleDefSchema=z[a168_0x156a5b(0xc7)](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe0),'Or',a168_0x156a5b(0xf7)]),'conditions':z['array'](ConditionDefSchema),'description':z['string']()[a168_0x156a5b(0xc9)](),'expr':z['string']()[a168_0x156a5b(0xc9)]()}));export const SegmentDefSchema=z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xc5))[a168_0x156a5b(0xc9)](),'name':z[a168_0x156a5b(0xc1)]()['min'](0x1,a168_0x156a5b(0xde)),'description':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'folder':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'rule':RuleDefSchema[a168_0x156a5b(0xc9)](),'kind':z[a168_0x156a5b(0xdb)](['batch',a168_0x156a5b(0xd6),a168_0x156a5b(0xc4)])[a168_0x156a5b(0xc9)](),'visible':z['boolean']()['optional'](),'activations':z[a168_0x156a5b(0xa8)](z['any']())[a168_0x156a5b(0xc9)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
|
|
1
|
+
const a168_0x4ab327=a168_0x4d9d;(function(_0x548336,_0x19d068){const _0x4637ac=a168_0x4d9d,_0x1d84b1=_0x548336();while(!![]){try{const _0x597dcc=parseInt(_0x4637ac(0x20d))/0x1*(-parseInt(_0x4637ac(0x214))/0x2)+-parseInt(_0x4637ac(0x1dc))/0x3*(parseInt(_0x4637ac(0x22b))/0x4)+-parseInt(_0x4637ac(0x210))/0x5+parseInt(_0x4637ac(0x1e5))/0x6*(-parseInt(_0x4637ac(0x216))/0x7)+-parseInt(_0x4637ac(0x1df))/0x8+-parseInt(_0x4637ac(0x219))/0x9*(-parseInt(_0x4637ac(0x1e0))/0xa)+parseInt(_0x4637ac(0x215))/0xb;if(_0x597dcc===_0x19d068)break;else _0x1d84b1['push'](_0x1d84b1['shift']());}catch(_0x494c5d){_0x1d84b1['push'](_0x1d84b1['shift']());}}}(a168_0x4ee3,0x3809c));import{z}from'zod';export const OperatorTypeSchema=z[a168_0x4ab327(0x228)]([a168_0x4ab327(0x201),a168_0x4ab327(0x207),'Less',a168_0x4ab327(0x213),a168_0x4ab327(0x1dd),'In','Between',a168_0x4ab327(0x21f),a168_0x4ab327(0x22a),a168_0x4ab327(0x20f),a168_0x4ab327(0x1fe),'Contain',a168_0x4ab327(0x220),'EndWith','TimeRange']);export const TimeUnitSchema=z['enum'](['second','minute',a168_0x4ab327(0x1fa),a168_0x4ab327(0x1f6),a168_0x4ab327(0x1fc),a168_0x4ab327(0x21b),a168_0x4ab327(0x1f1)]);export const AggregationTypeSchema=z[a168_0x4ab327(0x228)](['Count',a168_0x4ab327(0x1ec),a168_0x4ab327(0x20c),a168_0x4ab327(0x1e4),a168_0x4ab327(0x1f4),a168_0x4ab327(0x21a),'First',a168_0x4ab327(0x1e7)]);const TemporalValueSchema=z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x21c)]({'timestamp':z['string']()}),z['object']({'last':z['union']([z['number'](),z['record'](z[a168_0x4ab327(0x20b)](),z['number']())]),'unit':z[a168_0x4ab327(0x20b)]()})]),OperatorValueSchema=z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x20b)](),z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x227)](),TemporalValueSchema,z[a168_0x4ab327(0x204)](z['union']([z['string'](),z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x227)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a168_0x4ab327(0x201),a168_0x4ab327(0x207),'GreaterEqual',a168_0x4ab327(0x223),a168_0x4ab327(0x1dd),'In',a168_0x4ab327(0x224),a168_0x4ab327(0x220),a168_0x4ab327(0x1f3),a168_0x4ab327(0x21f),a168_0x4ab327(0x20f),a168_0x4ab327(0x1fe)]),OPERATORS_REQUIRING_UNIT=new Set([a168_0x4ab327(0x20f),'TimeWithinNext']);export const OperatorDefSchema=z[a168_0x4ab327(0x21c)]({'type':OperatorTypeSchema,'not':z[a168_0x4ab327(0x227)]()[a168_0x4ab327(0x1f7)](),'value':OperatorValueSchema['optional'](),'min':z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x20b)](),TemporalValueSchema])['optional'](),'max':z['union']([z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x20b)](),TemporalValueSchema])[a168_0x4ab327(0x1f7)](),'unit':TimeUnitSchema['optional'](),'duration':z[a168_0x4ab327(0x21c)]({'day':z['number']()[a168_0x4ab327(0x1f7)](),'week':z[a168_0x4ab327(0x209)]()[a168_0x4ab327(0x1f7)](),'month':z[a168_0x4ab327(0x209)]()['optional'](),'year':z[a168_0x4ab327(0x209)]()[a168_0x4ab327(0x1f7)](),'hour':z['number']()['optional'](),'minute':z[a168_0x4ab327(0x209)]()[a168_0x4ab327(0x1f7)](),'second':z['number']()[a168_0x4ab327(0x1f7)]()})[a168_0x4ab327(0x1f7)](),'from':z['object']({'last':z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x20b)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a168_0x4ab327(0x227)]()['optional']()})[a168_0x4ab327(0x1f5)]((_0x28a81c,_0x547768)=>{const _0x1b9112=a168_0x4ab327;OPERATORS_REQUIRING_VALUE[_0x1b9112(0x1f8)](_0x28a81c[_0x1b9112(0x208)])&&(_0x28a81c[_0x1b9112(0x1f9)]===undefined||_0x28a81c[_0x1b9112(0x1f9)]===null)&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':'Operator\x20\x27'+_0x28a81c[_0x1b9112(0x208)]+_0x1b9112(0x1ef),'path':['value']}),_0x28a81c[_0x1b9112(0x208)]==='Between'&&_0x28a81c[_0x1b9112(0x222)]===undefined&&_0x28a81c[_0x1b9112(0x1e9)]===undefined&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':_0x1b9112(0x21d),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x1b9112(0x1f8)](_0x28a81c[_0x1b9112(0x208)])&&_0x28a81c[_0x1b9112(0x1f9)]!==undefined&&!_0x28a81c[_0x1b9112(0x226)]&&_0x547768[_0x1b9112(0x206)]({'code':'custom','message':'Operator\x20\x27'+_0x28a81c[_0x1b9112(0x208)]+_0x1b9112(0x212),'path':['unit'],'params':{'validationCode':_0x1b9112(0x1e6)}}),_0x28a81c[_0x1b9112(0x208)]===_0x1b9112(0x1ee)&&(!_0x28a81c['duration']&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':_0x1b9112(0x1e1),'path':[_0x1b9112(0x200)]}),!_0x28a81c['from']&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':_0x1b9112(0x1ed),'path':['from']}));});export const ArrayMatchingSchema=z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x221)](a168_0x4ab327(0x211)),z['literal'](a168_0x4ab327(0x1ff)),z[a168_0x4ab327(0x21c)]({'atLeast':z[a168_0x4ab327(0x209)]()}),z[a168_0x4ab327(0x21c)]({'atMost':z[a168_0x4ab327(0x209)]()}),z['object']({'exactly':z[a168_0x4ab327(0x209)]()})]);export const AggregationDefSchema=z[a168_0x4ab327(0x1ea)](a168_0x4ab327(0x208),[z[a168_0x4ab327(0x21c)]({'type':z['enum']([a168_0x4ab327(0x1ec),'Min',a168_0x4ab327(0x1f4),'Average']),'column':z[a168_0x4ab327(0x20b)](),'groupingColumns':z[a168_0x4ab327(0x204)](z['string']())['optional']()}),z[a168_0x4ab327(0x21c)]({'type':z['literal'](a168_0x4ab327(0x1e8)),'groupingColumns':z[a168_0x4ab327(0x204)](z['string']())[a168_0x4ab327(0x1f7)]()}),z[a168_0x4ab327(0x21c)]({'type':z['literal'](a168_0x4ab327(0x21a)),'columns':z[a168_0x4ab327(0x204)](z[a168_0x4ab327(0x20b)]())}),z['object']({'type':z['enum']([a168_0x4ab327(0x1e2),'Last']),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a168_0x4ab327(0x204)](z[a168_0x4ab327(0x20b)]())[a168_0x4ab327(0x1f7)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a168_0x4ab327(0x209)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a168_0x4ab327(0x20f),a168_0x4ab327(0x1fe),a168_0x4ab327(0x1ee)]);export const FilterColumnConditionDefSchema=z[a168_0x4ab327(0x21c)]({'type':z['literal']('Column'),'column':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})[a168_0x4ab327(0x1f5)]((_0x1020c6,_0x3b5fee)=>{const _0x4ebe49=a168_0x4ab327,_0x27886c=_0x1020c6[_0x4ebe49(0x20a)]['type'];_0x1020c6[_0x4ebe49(0x1f0)]===_0x4ebe49(0x1eb)?!TIMESTAMP_OPERATORS[_0x4ebe49(0x1f8)](_0x27886c)&&_0x3b5fee[_0x4ebe49(0x206)]({'code':_0x4ebe49(0x217),'message':_0x4ebe49(0x1e3)+_0x27886c+'\x27)','path':['operator',_0x4ebe49(0x208)]}):TIMESTAMP_OPERATORS[_0x4ebe49(0x1f8)](_0x27886c)&&_0x3b5fee[_0x4ebe49(0x206)]({'code':_0x4ebe49(0x217),'message':_0x4ebe49(0x1fb)+_0x27886c+_0x4ebe49(0x218),'path':['operator','type']});});export const FilterRuleDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)]('And'),'conditions':z[a168_0x4ab327(0x204)](FilterColumnConditionDefSchema)});function a168_0x4ee3(){const _0x180f75=['781070zKvaVv','any','\x27\x20requires\x20a\x20time\x20unit','GreaterEqual','2RnSFwx','13531716FmKWco','301217LSVWmC','custom','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','9Zsdiez','CountDistinct','month','object','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','segment','Regexp','StartWith','literal','min','Less','Contain','funnel_stage','unit','boolean','enum','exclude','IsNull','4LTdMSr','Segment\x20reference\x20must\x20not\x20be\x20empty','1167663NwnaJX','LessEqual','union','3079392IZePGr','3216140zSgAoV','TimeRange\x20operator\x20requires\x20\x27duration\x27','First','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Min','30OCytnI','MISSING_TIME_UNIT','Last','Count','max','discriminatedUnion','timestamp','Sum','TimeRange\x20operator\x20requires\x20\x27from\x27','TimeRange','\x27\x20requires\x20a\x20value','column','year','Segment\x20name\x20is\x20required','EndWith','Max','superRefine','day','optional','has','value','hour','Operator\x20\x27','week','lazy','TimeWithinNext','all','duration','Equal','realtime','And','array','Column','addIssue','Greater','type','number','operator','string','Average','176724hyCgIs','include','TimeWithinPast'];a168_0x4ee3=function(){return _0x180f75;};return a168_0x4ee3();}export const ValueConditionDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)]('Value'),'attribute':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x4ab327(0x1f7)](),'exclude':z[a168_0x4ab327(0x227)]()[a168_0x4ab327(0x1f7)](),'aggregation':AggregationDefSchema[a168_0x4ab327(0x1f7)](),'source':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'filter':FilterRuleDefSchema[a168_0x4ab327(0x1f7)](),'limit':z[a168_0x4ab327(0x209)]()['optional']()}));export const BehaviorConditionDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)]('Behavior'),'attribute':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x4ab327(0x1f7)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z['string']()[a168_0x4ab327(0x1f7)](),'filter':FilterRuleDefSchema[a168_0x4ab327(0x1f7)](),'timeWindow':TimeWindowDefSchema[a168_0x4ab327(0x1f7)](),'limit':z['number']()['optional']()}));export const ColumnConditionDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)](a168_0x4ab327(0x205)),'column':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x228)]([a168_0x4ab327(0x203),'Or','Composite']),'conditions':z[a168_0x4ab327(0x204)](ConditionDefSchema),'description':z[a168_0x4ab327(0x20b)]()['optional'](),'expr':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)]()}));export const SegmentRefConditionDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x228)]([a168_0x4ab327(0x20e),a168_0x4ab327(0x229)]),'segment':z['string']()[a168_0x4ab327(0x222)](0x1,a168_0x4ab327(0x22c))});export const ConditionDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x1de)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x228)](['And','Or','Composite']),'conditions':z[a168_0x4ab327(0x204)](ConditionDefSchema),'description':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'expr':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)]()}));export const SegmentDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)](a168_0x4ab327(0x21e))[a168_0x4ab327(0x1f7)](),'name':z[a168_0x4ab327(0x20b)]()['min'](0x1,a168_0x4ab327(0x1f2)),'description':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'folder':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'rule':RuleDefSchema[a168_0x4ab327(0x1f7)](),'kind':z[a168_0x4ab327(0x228)](['batch',a168_0x4ab327(0x202),a168_0x4ab327(0x225)])['optional'](),'visible':z['boolean']()['optional'](),'activations':z[a168_0x4ab327(0x204)](z[a168_0x4ab327(0x211)]())[a168_0x4ab327(0x1f7)]()});const _syncCheck1=!![],_syncCheck2=!![];function a168_0x4d9d(_0x13cbc8,_0x4ed6c6){_0x13cbc8=_0x13cbc8-0x1dc;const _0x4ee3d7=a168_0x4ee3();let _0x4d9d0f=_0x4ee3d7[_0x13cbc8];return _0x4d9d0f;}void _syncCheck1,void _syncCheck2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a169_0x1a34ee=a169_0x72fb;(function(_0xd158df,_0x26589f){const _0x347287=a169_0x72fb,_0x319b80=_0xd158df();while(!![]){try{const _0x3aa7f8=parseInt(_0x347287(0xb8))/0x1+-parseInt(_0x347287(0xa5))/0x2+-parseInt(_0x347287(0xa9))/0x3*(-parseInt(_0x347287(0xa1))/0x4)+-parseInt(_0x347287(0xa8))/0x5+parseInt(_0x347287(0xb2))/0x6*(-parseInt(_0x347287(0xa3))/0x7)+-parseInt(_0x347287(0x9d))/0x8*(parseInt(_0x347287(0xbe))/0x9)+-parseInt(_0x347287(0xb0))/0xa*(-parseInt(_0x347287(0xb5))/0xb);if(_0x3aa7f8===_0x26589f)break;else _0x319b80['push'](_0x319b80['shift']());}catch(_0x3ad201){_0x319b80['push'](_0x319b80['shift']());}}}(a169_0xb22d,0x33c02));import{readFileSync}from'fs';import*as a169_0x1347cf from'path';import*as a169_0x3f7989 from'yaml';function a169_0xb22d(){const _0x25eaf1=['filterType','482392hERAKO','has','message','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','2540XNoYbm','warnings','133jwUqHw','basename','73464TuUMcB','push','utf-8','725305uyQjYn','93ulKpVg','campaign_type','object','error','segment','template','YAML_PARSE_ERROR','7751510MTtRAh','email','104268EIfktl','skipped','parseDocument','11dCHoYJ','type','result','351202EPZvNv','campaign','relative','not\x20a\x20','journey','length','63CfaMOd','valid'];a169_0xb22d=function(){return _0x25eaf1;};return a169_0xb22d();}import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';function a169_0x72fb(_0x27f8df,_0x2e4092){_0x27f8df=_0x27f8df-0x9d;const _0xb22d1a=a169_0xb22d();let _0x72fb4d=_0xb22d1a[_0x27f8df];return _0x72fb4d;}import{validateTemplateDef}from'../engage/template-validator.js';import{isJourneyDef}from'./journey-yaml.js';const VALID_CAMPAIGN_TYPES=new Set([a169_0x1a34ee(0xb1),a169_0x1a34ee(0xa6)]);export{isJourneyDef};export function isCampaignDef(_0x3685ef){const _0x5edfd4=a169_0x1a34ee;if(typeof _0x3685ef!==_0x5edfd4(0xab)||_0x3685ef===null)return![];const _0x5e9de7=_0x3685ef,_0xc1cbba=VALID_CAMPAIGN_TYPES[_0x5edfd4(0x9e)](_0x5e9de7[_0x5edfd4(0xaa)]);if(_0x5e9de7[_0x5edfd4(0xb6)]==='campaign'&&_0xc1cbba)return!![];if(_0xc1cbba&&!_0x5e9de7['type'])return!![];return![];}export function isTemplateDef(_0x4f5796){const _0x427036=a169_0x1a34ee;return typeof _0x4f5796===_0x427036(0xab)&&_0x4f5796!==null&&'type'in _0x4f5796&&_0x4f5796['type']===_0x427036(0xae);}export function isValidationResult(_0x3fdb48){const _0x487850=a169_0x1a34ee;return!(_0x487850(0xb3)in _0x3fdb48);}export function createParseErrorResult(_0x1bd278,_0x356098,_0x4db10f,_0x15834d,_0xe2b8fa='segment'){const _0x1687b5=a169_0x1a34ee;return{'filePath':_0x1bd278,'relativePath':_0x356098,'source':_0x4db10f,'result':{'valid':![],'errors':[{'level':_0x1687b5(0xac),'path':'','code':_0x1687b5(0xaf),'message':_0x15834d}],'warnings':[]},'fileType':_0xe2b8fa};}export function validateYamlFile(_0x5f1f53,_0x691b94,_0x53a641={}){const _0x5b8094=a169_0x1a34ee,_0x4f666a=a169_0x1347cf[_0x5b8094(0xba)](_0x691b94,_0x5f1f53)||a169_0x1347cf[_0x5b8094(0xa4)](_0x5f1f53);try{const _0x2d45dd=readFileSync(_0x5f1f53,_0x5b8094(0xa7)),_0x339499=a169_0x3f7989[_0x5b8094(0xb4)](_0x2d45dd),_0x52ae14=_0x339499['toJSON']();if(!_0x52ae14)return createParseErrorResult(_0x5f1f53,_0x4f666a,_0x2d45dd,_0x5b8094(0xa0));let _0xf9fa98;if(isJourneyDef(_0x52ae14,_0x5f1f53))_0xf9fa98='journey';else{if(isCampaignDef(_0x52ae14))_0xf9fa98=_0x5b8094(0xb9);else isTemplateDef(_0x52ae14)?_0xf9fa98=_0x5b8094(0xae):_0xf9fa98=_0x5b8094(0xad);}if(_0x53a641[_0x5b8094(0xc0)]&&_0xf9fa98!==_0x53a641[_0x5b8094(0xc0)])return{'filePath':_0x5f1f53,'relativePath':_0x4f666a,'skipped':!![],'reason':_0x5b8094(0xbb)+_0x53a641[_0x5b8094(0xc0)]};const _0x3e7838={'source':_0x2d45dd,'document':_0x339499};let _0x1ee54b;if(_0xf9fa98===_0x5b8094(0xbc))_0x1ee54b=validateJourneyDef(_0x52ae14,_0x3e7838);else{if(_0xf9fa98===_0x5b8094(0xb9))_0x1ee54b=validateCampaignDef(_0x52ae14,_0x3e7838);else _0xf9fa98==='template'?_0x1ee54b=validateTemplateDef(_0x52ae14,_0x3e7838):_0x1ee54b=validateSegmentDef(_0x52ae14,_0x3e7838);}return{'filePath':_0x5f1f53,'relativePath':_0x4f666a,'source':_0x2d45dd,'result':_0x1ee54b,'fileType':_0xf9fa98};}catch(_0x504ed2){const _0xc30c21=_0x504ed2 instanceof Error?_0x504ed2[_0x5b8094(0x9f)]:String(_0x504ed2);return createParseErrorResult(_0x5f1f53,_0x4f666a,'','YAML\x20parse\x20error:\x20'+_0xc30c21);}}export function validateYamlFiles(_0x7766d7,_0x36af6d,_0x2f8ee7={}){return _0x7766d7['map'](_0x145c94=>validateYamlFile(_0x145c94,_0x36af6d,_0x2f8ee7));}export function calculateSummary(_0x345b3a){const _0x2bf547=a169_0x1a34ee;let _0x47fe96=0x0,_0xbbe1c5=0x0,_0x506142=0x0,_0x4ba749=0x0;for(const _0x2faa39 of _0x345b3a){if(!isValidationResult(_0x2faa39)){_0x4ba749++;continue;}_0x2faa39[_0x2bf547(0xb7)][_0x2bf547(0xbf)]?_0x47fe96++:_0xbbe1c5++,_0x506142+=_0x2faa39[_0x2bf547(0xb7)][_0x2bf547(0xa2)][_0x2bf547(0xbd)];}return{'validCount':_0x47fe96,'invalidCount':_0xbbe1c5,'warningCount':_0x506142,'skippedCount':_0x4ba749,'hasErrors':_0xbbe1c5>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x219b2a,_0x2b1aa1){const _0x524169=a170_0x2e43,_0x4c1a24=_0x219b2a();while(!![]){try{const _0x35c758=-parseInt(_0x524169(0x95))/0x1*(-parseInt(_0x524169(0x89))/0x2)+-parseInt(_0x524169(0xa4))/0x3+-parseInt(_0x524169(0x8b))/0x4+-parseInt(_0x524169(0x9d))/0x5*(parseInt(_0x524169(0xa2))/0x6)+-parseInt(_0x524169(0xa5))/0x7*(-parseInt(_0x524169(0xac))/0x8)+-parseInt(_0x524169(0x88))/0x9+-parseInt(_0x524169(0x9a))/0xa*(-parseInt(_0x524169(0x9c))/0xb);if(_0x35c758===_0x2b1aa1)break;else _0x4c1a24['push'](_0x4c1a24['shift']());}catch(_0x2284f1){_0x4c1a24['push'](_0x4c1a24['shift']());}}}(a170_0x58a4,0x8b1fb));import*as a170_0x3525ca from'yaml';import a170_0x5c61fe from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x51f907,_0x301188,_0x4c6aef){const _0x17615d=a170_0x2e43;if(!_0x51f907||!_0x301188)return undefined;try{let _0x23f4a3=_0x51f907[_0x17615d(0xad)](_0x4c6aef,!![]),_0x2dcc10=[..._0x4c6aef];while((!_0x23f4a3||typeof _0x23f4a3!==_0x17615d(0x85)||!(_0x17615d(0xaa)in _0x23f4a3)||!_0x23f4a3[_0x17615d(0xaa)])&&_0x2dcc10[_0x17615d(0x8e)]>0x0){_0x2dcc10[_0x17615d(0x9f)](),_0x23f4a3=_0x2dcc10[_0x17615d(0x8e)]>0x0?_0x51f907['getIn'](_0x2dcc10,!![]):_0x51f907['contents'];}if(!_0x23f4a3||typeof _0x23f4a3!==_0x17615d(0x85)||!(_0x17615d(0xaa)in _0x23f4a3)||!_0x23f4a3[_0x17615d(0xaa)])return undefined;const [_0x58bcc6]=_0x23f4a3['range'];return offsetToLocation(_0x301188,_0x58bcc6);}catch{return undefined;}}export function offsetToLocation(_0x2a1bf6,_0x5265f7){const _0x13c772=a170_0x2e43;let _0x2bf8e2=0x1,_0x8afc8a=0x1;for(let _0x200206=0x0;_0x200206<_0x5265f7&&_0x200206<_0x2a1bf6[_0x13c772(0x8e)];_0x200206++){_0x2a1bf6[_0x200206]==='\x0a'?(_0x2bf8e2++,_0x8afc8a=0x1):_0x8afc8a++;}return{'line':_0x2bf8e2,'column':_0x8afc8a,'offset':_0x5265f7};}export function pathToArray(_0x5c43d2){const _0x4d3c3b=a170_0x2e43;if(!_0x5c43d2)return[];return _0x5c43d2[_0x4d3c3b(0xa1)]('.')[_0x4d3c3b(0x86)](_0x4de3f0=>{const _0x3d20d1=_0x4d3c3b,_0x4e4dbd=_0x4de3f0[_0x3d20d1(0x93)](/^(\w+)\[(\d+)\]$/);if(_0x4e4dbd)return[_0x4e4dbd[0x1],parseInt(_0x4e4dbd[0x2],0xa)];return[_0x4de3f0];});}function a170_0x2e43(_0x2fa9dd,_0x4c967b){_0x2fa9dd=_0x2fa9dd-0x7d;const _0x58a4ca=a170_0x58a4();let _0x2e433d=_0x58a4ca[_0x2fa9dd];return _0x2e433d;}function a170_0x58a4(){const _0x373f0a=['72331ArexyN','error','parse','invalid_union','issues','range','level','664thpSkL','getIn','location','code','push','\x27:\x20','map','path','Invalid\x20YAML:\x20expected\x20an\x20object','dim','object','flatMap','data','2595942koowIJ','40070nhQbSK','red','426220jvUrCk','padStart','message','length','max','join','errors','cyan','match','number','43kfaqxs','line','repeat','success','column','1070RQNweB','safeParse','46882OqSmIm','295lEdSzP','min','pop','YAML\x20validation\x20error:\x20','split','84036JgLfkp','yellow','1151940sYrtKn'];a170_0x58a4=function(){return _0x373f0a;};return a170_0x58a4();}export function formatZodPath(_0xe0fced){const _0x4d8e9b=a170_0x2e43;let _0xc5bdbc='';for(const _0x5a2674 of _0xe0fced){if(typeof _0x5a2674===_0x4d8e9b(0x94))_0xc5bdbc+='['+_0x5a2674+']';else{const _0x58d09b=String(_0x5a2674);_0xc5bdbc+=_0xc5bdbc?'.'+_0x58d09b:_0x58d09b;}}return _0xc5bdbc;}export function flattenZodIssues(_0x4620af){const _0x2d45d0=a170_0x2e43,_0x2d95e0=[];for(const _0x212c2a of _0x4620af){if(_0x212c2a['code']===_0x2d45d0(0xa8)&&_0x2d45d0(0x91)in _0x212c2a){const _0x4d6d99=_0x212c2a[_0x2d45d0(0x91)];let _0x2f747a=_0x4d6d99[0x0]||[];for(const _0x53b9eb of _0x4d6d99){_0x53b9eb[_0x2d45d0(0x8e)]<_0x2f747a[_0x2d45d0(0x8e)]&&(_0x2f747a=_0x53b9eb);}const _0x213606=_0x2f747a[_0x2d45d0(0x81)](_0x5c3ad2=>({..._0x5c3ad2,'path':[..._0x212c2a[_0x2d45d0(0x82)],..._0x5c3ad2[_0x2d45d0(0x82)]]}));_0x2d95e0[_0x2d45d0(0x7f)](...flattenZodIssues(_0x213606));}else _0x2d95e0['push'](_0x212c2a);}return _0x2d95e0;}export function safeParseYaml(_0x9e1f9d,_0x4379ee){const _0x26965a=a170_0x2e43,_0x4a7093=a170_0x3525ca[_0x26965a(0xa7)](_0x9e1f9d);if(!_0x4a7093||typeof _0x4a7093!=='object')throw new Error(_0x26965a(0x83));const _0x3bf519=_0x4379ee[_0x26965a(0x9b)](_0x4a7093);if(!_0x3bf519[_0x26965a(0x98)]){const _0x559568=_0x3bf519[_0x26965a(0xa6)][_0x26965a(0xa9)][0x0],_0xce8df3=formatZodPath(_0x559568['path']);throw new Error(_0xce8df3?'YAML\x20validation\x20error\x20at\x20\x27'+_0xce8df3+_0x26965a(0x80)+_0x559568[_0x26965a(0x8d)]:_0x26965a(0xa0)+_0x559568[_0x26965a(0x8d)]);}return _0x3bf519[_0x26965a(0x87)];}export function formatIssueWithContext(_0x30b4b3,_0xbe82c6,_0x5446b2){const _0x5797bb=a170_0x2e43,_0x145540=[],_0x4baff2=_0x30b4b3['level']==='error',_0x1abc42=_0x4baff2?a170_0x5c61fe[_0x5797bb(0x8a)]:a170_0x5c61fe[_0x5797bb(0xa3)],_0x396533=_0x4baff2?a170_0x5c61fe[_0x5797bb(0x8a)]:a170_0x5c61fe['yellow'],_0x205dc2=_0x5446b2?a170_0x5c61fe[_0x5797bb(0x92)](_0x5446b2+':'):'';if(_0x30b4b3[_0x5797bb(0x7d)]){const _0x44fedc=a170_0x5c61fe[_0x5797bb(0x92)](_0x30b4b3[_0x5797bb(0x7d)][_0x5797bb(0x96)]+':'+_0x30b4b3[_0x5797bb(0x7d)][_0x5797bb(0x99)]);_0x145540[_0x5797bb(0x7f)](''+_0x205dc2+_0x44fedc+':\x20'+_0x1abc42(_0x30b4b3[_0x5797bb(0xab)])+'\x20'+_0x396533('['+_0x30b4b3[_0x5797bb(0x7e)]+']'));}else _0x145540[_0x5797bb(0x7f)](''+_0x205dc2+a170_0x5c61fe[_0x5797bb(0x84)](_0x30b4b3[_0x5797bb(0x82)])+':\x20'+_0x1abc42(_0x30b4b3[_0x5797bb(0xab)])+'\x20'+_0x396533('['+_0x30b4b3[_0x5797bb(0x7e)]+']'));_0x145540[_0x5797bb(0x7f)](_0x30b4b3['message']);if(_0x30b4b3['location']&&_0xbe82c6){const _0x4b0ca1=_0xbe82c6[_0x5797bb(0xa1)]('\x0a'),{line:_0x25906e,column:_0x7159d6}=_0x30b4b3[_0x5797bb(0x7d)],_0x32782d=Math[_0x5797bb(0x8f)](0x1,_0x25906e-0x1),_0x3cd966=Math[_0x5797bb(0x9e)](_0x4b0ca1[_0x5797bb(0x8e)],_0x25906e+0x1);_0x145540[_0x5797bb(0x7f)]('');for(let _0x56f45b=_0x32782d;_0x56f45b<=_0x3cd966;_0x56f45b++){const _0x2d38ac=_0x4b0ca1[_0x56f45b-0x1]||'',_0x2711a4=a170_0x5c61fe[_0x5797bb(0x84)](_0x56f45b['toString']()[_0x5797bb(0x8c)](0x4)),_0x363a8b=a170_0x5c61fe[_0x5797bb(0x84)]('\x20|\x20');if(_0x56f45b===_0x25906e){_0x145540['push']('\x20\x20'+_0x2711a4+_0x363a8b+_0x1abc42(_0x2d38ac));const _0x22ec73='\x20'[_0x5797bb(0x97)](0x4+0x3+_0x7159d6-0x1);_0x145540[_0x5797bb(0x7f)]('\x20\x20'+_0x22ec73+_0x1abc42('^'));}else _0x145540[_0x5797bb(0x7f)]('\x20\x20'+_0x2711a4+_0x363a8b+a170_0x5c61fe[_0x5797bb(0x84)](_0x2d38ac));}}return _0x145540[_0x5797bb(0x90)]('\x0a');}export function formatValidationResult(_0x27f2c6,_0x282aac,_0xcaa028){const _0x49c0b2=a170_0x2e43,_0x2103c0=[];for(const _0x56da79 of _0x27f2c6[_0x49c0b2(0x91)]){_0x2103c0[_0x49c0b2(0x7f)](formatIssueWithContext(_0x56da79,_0x282aac,_0xcaa028)),_0x2103c0['push']('');}for(const _0x5d1bc9 of _0x27f2c6['warnings']){_0x2103c0[_0x49c0b2(0x7f)](formatIssueWithContext(_0x5d1bc9,_0x282aac,_0xcaa028)),_0x2103c0[_0x49c0b2(0x7f)]('');}return _0x2103c0[_0x49c0b2(0x90)]('\x0a');}
|